Repository navigation
docs(exitcode): delete the duplicate exit-code table and point at the canonical one - #403
Merged
Merged
Conversation
… canonical one The re-export file restated the convention while its own docstring said it was single-sourced in github.com/opencharly/spec/exitcode — and the two copies had diverged: this one still said 3 meant only "a required host prerequisite is absent", after the check modes began reporting 3 for a plan resolution that came back EMPTY (opencharly/plugin-check#110, fixed in #114). A reader of this copy therefore learned a narrower contract than the code implements. The duplicate is deleted, the constants keep their alias form with their values visible, and the canonical statement is named as the place to read. Sibling PR: the canonical table itself, in opencharly/spec. Comment-only, zero behaviour change. Agent: dsh-opencharly Assisted-by: dsh deepseek-v4.1-flash (documentation reviewed)
Review — PASSHead SHA: Security screen: PASS (comment-only; no secrets/egress/deps/gate edits). Checklist: All applicable rules PASS or NA. Comment-only diff matches the Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
This was referenced Nov 20, 2026
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.
Summary
This module's re-export file carried a second copy of the check-command exit-code convention — the table that says what process exit codes
charly checkreturns — while its own docstring says the convention is "single-sourced here so both the HOST … and candy/plugin-check reference ONE contract". The two copies had already diverged. The canonical one (github.com/opencharly/spec/exitcode) and this one both said 3 meant only "the bed was SKIPPED (a required host prerequisite — e.g. a GPU — is absent)", but the code now reaches 3 by a second route: a check mode whose plan resolution comes back EMPTY is a SKIP rather than a pass (opencharly/plugin-check#110, fixed inopencharly/plugin-check#114), so a reader of this copy learned a narrower contract than the code implements.This is a comment-only change: the duplicated table is deleted and the constants keep their alias form, with the canonical statement named as the place to read. That is the R2 fix rather than a re-wording — a second statement of a contract is a second contract, and the divergence above is the evidence, not the argument. The canonical table itself now names both routes to 3 (sibling PR to
opencharly/spec), so the pair reads as one change: the contract states it once, and the re-export points at it.How tested
Change class: documentation-only (a comment in a contract module — zero behaviour change). The row's non-runtime standards, plus the module gates because a comment still has to compile and the repo's CI runs them:
No bed and no image build: the matrix's documentation-only row states that "ANY bed run or image build" is NOT required for prose.
golangci-lintis not installed on this host; the repo's CI runs it at its pin on this head, and a comment-only diff cannot introduce a lint finding — stated rather than skipped silently.R5 sweep, executed (the duplicate, org-wide):
Exactly two statements existed; one is rewritten at its canonical home, the other deleted here.
Rulebook compliance
## Filed issuesstates nothing was filed (the divergence is fixed in the pair), footer last.documentation reviewed; runtime tiers are forbidden for prose and none is claimed./charly-internals:plugin,:go,:git-workflow,:strict-policyloaded before the first tool call; this repo'sAGENTS.mdread.plugin-check#114); the docs are corrected to it.git status --shortclean before staging; one commit, no amend, no force-push, no bypass, no direct push tomain.exitcode_test.go, unchanged.//comment cannot move a generated artifact.kind-blindness: it re-exports a contract, and this change removes its second statement of that contract.gofmt -lempty,go build/go vetclean, the module suite green on this head (pasted). Lint: not installed here, run by CI at its pin (stated).opencharly/spec, the canonical table) is named here so the two read as one story;opencharly/plugin-check#110carries the behaviour,#114its round, andopencharly/sdk#402is the finding that asked for this pair.Change classification
documentation reviewed— comment-only, every non-runtime standard passed, module gates green.Filed issues
None: the divergence is fixed by this PR and its
specsibling in the same round, so it is not parked.Closes #402 — the issue that asked for exactly this contract-prose fix; this PR is the sdk half of it and
opencharly/spec#248is the canonical half.Agent: dsh-opencharly
Assisted-by: dsh deepseek-v4.1-flash (documentation reviewed)