Repository navigation
setup-openspeckit: re-sync the Triad protocol fallbacks (D001-D003); n or no stops per design D2 (D004) - #140
Conversation
Brett Heap's "merge 139 and 52" merged the shared protocol's Triad advisory (brettheap/new-workstation#52, e081c5a). This brings the three fallbacks setup-openspeckit writes, when the live files are missing, back in line with the live text. These are the deferred D001-D003 of specs/021-triad-shape-advisory. - D001: openspec_speckit_protocol() gains the Triad preference paragraph and the "Advise a single repository once" block. It now renders byte-identical to the live openspec-speckit-workflow.md (26017 bytes). - D002: project_agent_bootstrap_protocol() gains the workspace-config paragraph and the "## Non-Triad Advisory" section. It also gains the Script Status entries for the Non-Triad advisory and the 2026-10-04 feature amendment workflow, and the "Earlier bootstrap delivery" heading. It was already two sections behind before #52. It now renders byte-identical to the live project-agent-bootstrap.md (14895 bytes). - D003: global_agent_entrypoint()'s shape bullet now matches the live AGENTS.md bullet byte for byte. Both bodies were generated from the live files by #131's rules: - braces doubled (one {spec,code} each); - absolute protocol paths rendered from agent_root; - the tilde literal ~/.agents/workspace.yaml kept. Rendering with another agent root moves exactly two lines in each file. test-openspeckit-bootstrap.sh gains 13 assert_contains lines pinning the restored sections. Against the previous script they fail, exactly those 13. Totals: 966 PASS before, 979 PASS / 0 FAIL after. update-upstream.py check: 23 vendored copies match before and after. Refs #138 Lane: codeXfactory-5 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@codex review |
|
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 22 hours and 7 minutes by commenting |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRe-syncs the three embedded setup-openspeckit fallbacks with the live Triad protocol documents through template-only insertions and one entrypoint bullet replacement, while adding 13 targeted regression assertions. Review the byte-identity claims, preserved agent-root interpolation, and the documented contract discrepancies between the live bootstrap text and the merged script behavior. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Bookkeeping only. The three deferred re-syncs of specs/021-triad-shape-advisory are done in #140, after brettheap/new-workstation#52 merged as e081c5a. - D001 and D002: the protocol fallbacks render byte-identical to the live files. - D003: the entrypoint shape bullet matches the live one. Refs #138 Lane: codeXfactory-5 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…n D2 Ratified design D2 of openxFactory's prefer-triad-project-shape (a2dc658d, lines 76-80) says: "Answering no ends the run before it writes anything; that is the person choosing to stop, not the advisory refusing, and the realization owner picks the exit status for it with the rule that nothing reads that status as a verdict about the repository." #139 shipped "no" as an unrecognised answer that continues. The lane coordinator, acting as realization owner, ruled the correction. What changes: - New TRIAD_STOP_ANSWERS = ("n", "no"), matched after strip().lower(), at both questions. Such an answer takes Ctrl-C's path, stop_at_the_triad_question(): nothing has been written, the stop is said, and the run ends by SIGINT, the platform's own status for an interrupted process. - Enter, y, yes, any other answer, and end of file still continue. s shows the steps and asks once more. - Both questions now read "n or Ctrl-C stops before anything is written". The D002 fallback takes brettheap/new-workstation#53's corrected Script Status sentence ("is realized in the script under #138."). It now renders byte-identical to project-agent-bootstrap.md at #53's head 35623857: 14821 bytes, md5 692f68037aa27d17eeb6f460b194597d. D001 and the entrypoint bullet are unchanged and still match. Pseudo-terminal tests: - stop on n, no, NO, " No ", s then n, and steps then No: SIGINT, the stop is said, nothing is written; - continue on Enter, y, yes, an unrecognised word, SHOW then a word, and end of file. Suite: 979 PASS before (e2cfc09), 1042 PASS / 0 FAIL after. update-upstream.py check: 23 copies match. Refs #138 Lane: codeXfactory-5 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rkstation#53 - tasks.md gains D004, ticked by #140. It quotes design D2 verbatim and records the realization and its tests. - D002 now notes that it tracks the corrected Script Status sentence of brettheap/new-workstation#53, and that #140 merges after #53. - spec.md decision 2 and User Story 3 are amended to the stop-on-no behaviour. The superseded "typing no continues" bullet is kept as the record of what #139 shipped. Refs #138 Lane: codeXfactory-5 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
LANDED — lane codeXfactory-5, session ed23f049-7e99-4601-8a6d-760b6aeb5f26@Eagle, 2026-10-06T22:00:06Z, PR #140 into opensoft/workBenches main → squash Merged on Brett Heap's word "merge 53 and 140". It went in after brettheap/new-workstation#53 ( Lane: codeXfactory-5 |
Lane: codeXfactory-5
Refs #138
This PR has two parts, both under #138:
setup-openspeckit's embedded protocol fallbacks with the live Triad protocol. These are D001-D003, deferred by setup-openspeckit: advise a non-Triad repository at bootstrap (prefer-triad-project-shape 5.4) #139.nornoat the Triad question stop the run, as ratified design D2 says. This is D004.Merge order: this PR must merge after brettheap/new-workstation#53. Part A's D002 fallback renders byte-identical to
project-agent-bootstrap.mdat #53's head. That head corrects one stale Script Status sentence. Once both PRs have landed, the fallback and the live file match.Trigger
Brett Heap, verbatim: "merge 139 and 52".
9fbe609c977573f3d077240c771f7cac7665fab0. That realized task 5.4 of openxFactory's ratifiedprefer-triad-project-shape.e081c5ab1166f0bbfd252973f32f21fa4c979131. That is the shared protocol's Triad advisory.Part A: the fallback re-syncs (D001-D003)
All of this is inside three f-strings in
devBenches/base-image/files/openspeckit/setup-openspeckit.openspec_speckit_protocol()openspec-speckit-workflow.md(new-workstatione081c5a, unchanged by #53)5b36047e02421ab4e295285122a103fcproject_agent_bootstrap_protocol()project-agent-bootstrap.mdat new-workstation#53's head356238579549c65dd010575e0a579ea4a862f451692f68037aa27d17eeb6f460b194597dglobal_agent_entrypoint()AGENTS.md(unchanged by #53)What D002 restored. D002 had already been two sections behind before #52. It gains:
## Non-Triad Advisorysection;The corrected sentence. #53 corrects the stale "Until that lands, the installed script only logs
shape: single repository." It now reads "is realized in the script under #138." The fallback carries the corrected text.Method (#131's). Both protocol bodies are generated from the live files:
{spec,code}each);agent_root;~/.agents/workspace.yamlis kept.Rendering with another agent root changes exactly two lines per file.
Not byte-identical, by design.
global_agent_entrypoint()as a whole renders a 43-line curated subset of the 517-line liveAGENTS.md. Only its shape bullet is in scope. The live file's separate "Preferred triad default" bullet is not in the fallback.Part B: stop-on-no (D004), as ratified design D2 says
openxFactory
openspec/changes/prefer-triad-project-shape/design.md, D2, ata2dc658d, lines 76-80, verbatim:Why it changes. #139 shipped
noas an unrecognised answer that continues, which departs from D2. The lane coordinator, acting as realization owner, ruled the correction. The live protocol's "Answering no stops before anything is written" stays as it is.What changes:
TRIAD_STOP_ANSWERS = ("n", "no")is matched afterstrip().lower(), at both the first question and the question after the steps.stop_at_the_triad_question(). Nothing has been written, "Stopped at your request; nothing was written." is said, and the run ends by SIGINT. That is the platform's own status for an interrupted process: the advisory adds no exit status of its own, and nothing reads it as a verdict.y,yes, any other answer and end-of-file still continue, and the run is then exactly the one without the advisory.sstill shows the steps.Bookkeeping.
specs/021-triad-shape-advisory/gains:tasks.md, ticked here and quoting D2;spec.mddecision 2 and User Story 3. The superseded "typingnocontinues" bullet is kept as the record of what setup-openspeckit: advise a non-Triad repository at bootstrap (prefer-triad-project-shape 5.4) #139 shipped.Audit, reported and not edited. No sentence in the D001 or D003 fallback says that "no" continues or that Ctrl-C is the only stop. Ctrl-C appears in none of the three protocol texts. The workflow's "Never ask, block or convert on its account" and the entrypoint's "carry on" describe agent sessions, which never ask; the bootstrap's question is governed by D002's "Answering no stops before anything is written", and the code now matches it.
Validation
main9fbe609ce2cfc09b(Part A only)d692274fbash devBenches/devcontainer.test/test-openspeckit-bootstrap.shpython3 devBenches/base-image/update-upstream.py checkassert_containslines, one per restored section. Againstmain's script they fail, exactly those 13.n,no,NOandNoat the first question, plussthennandstepsthenNo. Each of these must:done;y,yes,maybe later,sthen Enter,SHOWthenmaybe, and end-of-file. Each of these must:done;nocontinues, in itstyped-nocase and inSHOWthenno. Those two cases are gone from the continue loop:nonow sits in the stop loop, and the steps case answersmaybe.yandyesare added as continue cases.python3 -m py_compileandbash -npass. CI runs neither shellcheck nor a separate compile step. Locally, shellcheck reports only SC2016 notes: 16 onmainand 19 here. The three extra come from Part A's literal backtick needles, and Part B adds none.Held for Brett Heap's merge word; do not merge.
🤖 Generated with Claude Code