Skip to content

docs(exitcode): delete the duplicate exit-code table and point at the canonical one - #403

Merged
github-actions[bot] merged 1 commit into
mainfrom
docs/exitcode-skip-routes
Oct 15, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
docs/exitcode-skip-routes

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

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 check returns — 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 in opencharly/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:

$ cd .worktrees/dsh-opencharly/sdk-exitcode-doc && git rev-parse HEAD ; git rev-parse HEAD^{tree}
8f9d60b1dd3f0dd5cb47b58d528d04ff8112065a
4d854d3011295e9cac9961ada8630394b3af4b89
$ go build ./... ; echo rc=$?
rc=0
$ gofmt -l .        # empty
$ go vet ./...      ; echo rc=$?
rc=0
$ go test -count=1 ./... ; echo rc=$?
ok  	github.com/opencharly/sdk/storekit	0.177s
ok  	github.com/opencharly/sdk/vmshared	0.148s
… 19 packages ok, 0 failures, rc=0

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-lint is 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):

$ grep -rn 'the bed was SKIPPED\|required host prerequisite' --include=*.go .
./exitcode.go:26:  (this duplicate table — deleted by this PR)
$ grep -rn 'the bed was SKIPPED' ~/Sync/Atrapub/lo/dsh/opencharly/spec/exitcode/
(exitcode.go:40 — the canonical copy, rewritten in its own PR)

Exactly two statements existed; one is rewritten at its canonical home, the other deleted here.

Rulebook compliance

Rule / check Answer
T1–T4 No secrets, no egress, no dependency change, no gate edit, no supply-chain change — a comment in a contract-re-export file.
A1 Four required sections present, the single diff path accounted for, ## Filed issues states nothing was filed (the divergence is fixed in the pair), footer last.
A2 Documentation-only class named above with the matrix row that excludes a bed; the module gates are pasted.
A3 Tier documentation reviewed; runtime tiers are forbidden for prose and none is claimed.
R0 /charly-internals:plugin, :go, :git-workflow, :strict-policy loaded before the first tool call; this repo's AGENTS.md read.
R1 The anomaly is a doc-vs-reality divergence with a root cause (two statements of one contract; the check modes gained a second route to 3) and it is fixed in this round in both homes.
R2 This PR is the R2 fix: one canonical statement, the duplicate deleted in the same change, rather than two tables kept in step by hand.
R3 No sleep, retry, suppression or ad-hoc command.
R4 The prose follows the product: the code behaves this way (plugin-check#114); the docs are corrected to it.
R5 The sweep above is executed and pasted, with both hits dispositioned (one rewritten, one deleted).
R6 git status --short clean before staging; one commit, no amend, no force-push, no bypass, no direct push to main.
R7 N/A for prose; the values the deleted table listed are asserted in the contract module's own exitcode_test.go, unchanged.
R8 N/A — no service boundary.
R9 N/A — no binary built or installed by this diff.
R10 N/A by class (documentation-only; the NOT-required column names the bed and the image build for this row).
HC One cutover, one commit, comment-only.
PIL — SDD No schema, generated type or wire key touched; a // comment cannot move a generated artifact.
CONC CONC(b)'s paste requirement met; no forbidden framing.
ARCH The mechanism library keeps its kind-blindness: it re-exports a contract, and this change removes its second statement of that contract.
DISP Nothing destroyed or rebuilt.
QUAL gofmt -l empty, go build/go vet clean, the module suite green on this head (pasted). Lint: not installed here, run by CI at its pin (stated).
COORD The sibling PR (opencharly/spec, the canonical table) is named here so the two read as one story; opencharly/plugin-check#110 carries the behaviour, #114 its round, and opencharly/sdk#402 is 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 spec sibling 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#248 is the canonical half.

Agent: dsh-opencharly
Assisted-by: dsh deepseek-v4.1-flash (documentation reviewed)

… 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)
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 8f9d60b1dd3f0dd5cb47b58d528d04ff8112065a (branch: docs/exitcode-skip-routes)

Security screen: PASS (comment-only; no secrets/egress/deps/gate edits).

Checklist: All applicable rules PASS or NA. Comment-only diff matches the documentation reviewed tier; body supplies Summary / How tested (pasted go build/gofmt/go vet/go test), tier, and per-rule compliance; ends with the Assisted-by: line. R2/R5 (duplicate table deleted, sweep pasted, two hits dispositioned), R6 (single commit, no rewrite), A2/R10 (docs-only row excludes beds), COORD (spec sibling + issue refs named) all hold. No comments to disposition.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 15, 2026 11:52
@github-actions
github-actions Bot merged commit 2ef9300 into main Oct 15, 2026
6 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

the exit-code contract lists one route to 3; the code now has two (an empty plan resolution is a skip)

1 participant