Repository navigation
docs: record the improvement proposals an audit produced - #13
Merged
Merged
Conversation
The repository had no document of known defects, so every audit started from zero and the same findings were rediscovered and re-litigated. Write them down with the file, the line and the failure each one produces, so a fix can be traced back to the proposal that asked for it. Severity is assigned by whether the code contradicts its own comment, documentation or an invariant in AGENTS.md, not by how interesting the finding is. Two things are recorded as deliberately not findings: the smoke suite's port refusal, which is the documented behaviour when a local opencode serve already holds 4405, and the SSE keep-alive injector, which is a second exception to byte passthrough that an owner should decide on rather than discover later. Each proposed feature is a few lines in one module. None of them weakens an invariant, and the areas checked and found clean are listed so they are not re-audited.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this is
IMPROVEMENT_PROPOSALS.mddid not exist. This adds it: an audit of the repository as it stands, with every finding carrying the file and line it was found at, the failure it produces, and the change to make.How severity was assigned
A defect is a case where the code does something other than what its own comment, its documentation or an invariant in
AGENTS.mdsays it does. Improvements and features follow. Nothing proposed weakens an invariant.Headline findings
C1a truncated non-streaming body is recorded as a provider success, so a flaky instance answers502forever while the Providers tab shows it healthyH1UPSTREAM_TOTAL_TIMEOUT_MSdoes not bound the body, so a provider that dribbles one byte per interval pins a slot and 256 MiB indefinitelyH2an emptyADMIN_PASSWORDin the environment creates the default-password account, contradicting the entrypoint's own warningM1two log fields are namedcodeand are therefore redacted by the masker, so the only log line explaining a client's502hides the classificationM4a throw afterreply.hijack()leaks the provider slot (invariant 7) and the connection ownership (invariant 14)Verified before writing
pnpm run checkpnpm run typecheckpnpm run test:webpnpm test:unitSMOKE_STUB_PORT=4500 pnpm test:smokeThe one failure observed was
pnpm testaborting before the smoke file because a localopencode serveholds port 4405. The suite's refusal is the documented behaviour; the documented override runs it clean.Not done here
This is the proposal document only. No code is changed by this pull request.