Repository navigation
Conversation
…xecutable design check DESIGN.md is the target architecture of charly, spec, sdk, every plugin and candy repository: schema patterns S1–S9, parsing/linking/validation, the core↔plugin protocol (§8), the authoring model, ownership (§7.1). DESIGN.cue is its single schema copy (authoring + protocol, CUE v0.17.1). TODO.md is the migration from today's code, evidence at origin/main. scripts/design-*.sh + design/ prove DESIGN.md and DESIGN.cue agree, with CUE v0.17.1 only: pinned toolchain, .md↔.cue consistency, automatic example validation, 61 negative cases asserting rule + reason, and self-tests that plant 37 defects. `charly task design-check` runs it; AGENTS.md rule 12 makes DESIGN.md normative. Closes #346 Claude-Session: https://claude.ai/code/session_01VQ3NL7BVepzGaJMpRL4F3P
1. Alongside dispatch: load.cue now dispatches the nodes beside a top-level pod/vm kind key through #AlongsideAlt (one placed-node list, one dispatch); negatives alongside-candy and alongside-local-no-host, self-test row alongside-dispatch. Header and Appendix A.5 state exactly what is dispatched. 2. No claimed enforcement that does not exist: Appendix A.1 and AGENTS.md rule 12 state the design check runs on demand like task verify (no CI gate), its output pasted in the PR body; TODO 0.5, completed by this PR, is removed. 4. One list of the rules.cue rules: §5.4's "Design check" column. The script, rules.cue and Appendix A cite it; design-consistency.sh checks rules.cue emits exactly that set (self-test row rules-emit-drift). (Block 3 — the R2/R8/R9 rows — is fixed in the PR body.) Claude-Session: https://claude.ai/code/session_01VQ3NL7BVepzGaJMpRL4F3P
…o the deliverables 1. Schema-pattern references: TODO.md said S1–S8 where §3.1 defines S1–S9. Fixed, and design-consistency.sh now checks every S<n> in DESIGN.md, DESIGN.cue and TODO.md names a §3.1 pattern and every range S1–S<n> ends at the last (self-test rows pattern-range, pattern-unknown). §3.1 no longer restates the pattern count. 2. Appendix A.4 no longer enumerates the marked tables: the markers are the list. 3. Appendix A.5 no longer claims the check catches an unused declared plugin: no control implements it (D-PLUG-6 is core's load-time rule, §5.4). Scope: the operator ruled AGENTS.md and README.md changes out of scope for now, so AGENTS.md, README.md and the charly.yml task entity that backed their maintenance lists are restored to origin/main; Appendix A.1 no longer cites the AGENTS.md rule. TODO 10.1 already carries the umbrella adoption. Claude-Session: https://claude.ai/code/session_01VQ3NL7BVepzGaJMpRL4F3P
validator INCONCLUSIVE — no review verdict was produced (not a BLOCK; no code finding)The gate could not obtain a review verdict on this run, so it produced no code finding. This is not a BLOCK and the PR is not being rejected — but the required check stays RED on purpose: unreviewed code must never merge.
Root cause. The ENGINE sent no generation bound ( Durable remedy.
A run that produced no verdict keeps this required check RED: unreviewed code must never merge. Full diagnostics: this run's evidence artifact + job log (not embedded here — embedding a runaway log would feed it into the next review and deepen the collapse). |
Review — BLOCKHead SHA: The prior Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
1. Candy default: DESIGN.cue and §12.2 now say only #InnerOfLocalAlt and #InnerOfAndroidAlt carry the `candy` default; the pod/vm, kubernetes and alongside tables admit no keyless node — matching the schema and the candy-in-pod / alongside-candy negatives. 2. Unmarked mirroring tables: design-consistency.sh now fails any unmarked table whose backticked first column equals a schema source (any struct, word list or tag table). §9.4 gets its keys(#ActionAlt) marker. The control found three tables hand-listing the deployment kinds with no schema source: `_deploymentKind` (derived from #InnerOfMachineAlt — the deployment kinds are exactly what a pod or vm admits) is that source, and §9.1, §12.1 and §12.2 carry its marker. 3. D-PAT-1 enforced: check 6 (the pattern gate) fails a close(), a matchN, a forbidden field ?: _|_, or any open struct other than #Opaque in DESIGN.cue (comments excluded). D-PAT-4 is scoped to the rules about documents and protocol messages; rules about schemas are check 6 and the §22 gates. 4. The duplicate-ID control now fails: its loop reads a file in the current shell instead of setting `fail` inside a pipeline subshell (the only instance of that pattern in the scripts). 5. (PR body) the org search is pasted with its real output. Self-test rows: unmarked-mirror, pattern-close, pattern-open. Claude-Session: https://claude.ai/code/session_01VQ3NL7BVepzGaJMpRL4F3P
validator INCONCLUSIVE — no review verdict was produced (not a BLOCK; no code finding)The gate could not obtain a review verdict on this run, so it produced no code finding. This is not a BLOCK and the PR is not being rejected — but the required check stays RED on purpose: unreviewed code must never merge.
Root cause. The ENGINE sent no generation bound ( Durable remedy.
A run that produced no verdict keeps this required check RED: unreviewed code must never merge. Full diagnostics: this run's evidence artifact + job log (not embedded here — embedding a runaway log would feed it into the next review and deepen the collapse). |
Review — BLOCKHead SHA: Comment intake (1 comment). Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
The verdict on d5ef720 found D-PAT-4 claiming that A.4 check 6 enforces D-PAT-1..3, while check 6 implements only D-PAT-1. D-PAT-4 now attributes D-PAT-1 on DESIGN.cue to check 6 and D-PAT-1..3 on plugin modules to a named §22 gate, which the §22 CI-gate list now carries; TODO 2.16 adds that gate and states that until then only D-PAT-1 has a control. Claude-Session: https://claude.ai/code/session_01VQ3NL7BVepzGaJMpRL4F3P
Review — BLOCKHead SHA: Change class: documentation + tooling ( Placement: CORRECT — nothing lands in core/sdk; the schema copy is explicitly transitional (A.1) and the check lives with the umbrella's design. Comment intake (2 comments, both
Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Auto-closed: 5 unanswered BLOCK/INCONCLUSIVE verdictsThis PR has received 5 non-PASS validator verdicts — Why: re-running the validator against the same unfixed head only adds another verdict and grows this PR's comment thread, which is what drives the reviewer into a runaway. The loop is bounded here instead. What to do: open a NEW pull request from a fresh branch. Fix every finding from any This is a policy action, not a code finding — the validator verdict on this run stands. |
|
RESOLVED — superseded by #350 The validator auto-closed this PR after its fifth non-PASS verdict ( Agent: |
…xecutable design check (#350) * docs(design): add normative DESIGN.md + DESIGN.cue, TODO.md and the executable design check DESIGN.md is the target architecture of charly, spec, sdk, every plugin and candy repository: schema patterns S1–S9, parsing/linking/validation, the core↔plugin protocol (§8), the authoring model, ownership (§7.1). DESIGN.cue is its single schema copy (authoring + protocol, CUE v0.17.1). TODO.md is the migration from today's code, evidence at origin/main. scripts/design-*.sh + design/ prove DESIGN.md and DESIGN.cue agree, with CUE v0.17.1 only: pinned toolchain, .md↔.cue consistency, automatic example validation, 61 negative cases asserting rule + reason, and self-tests that plant 37 defects. `charly task design-check` runs it; AGENTS.md rule 12 makes DESIGN.md normative. Closes #346 Claude-Session: https://claude.ai/code/session_01VQ3NL7BVepzGaJMpRL4F3P * fix(design): resolve all four pr-validator blocks on #347 1. Alongside dispatch: load.cue now dispatches the nodes beside a top-level pod/vm kind key through #AlongsideAlt (one placed-node list, one dispatch); negatives alongside-candy and alongside-local-no-host, self-test row alongside-dispatch. Header and Appendix A.5 state exactly what is dispatched. 2. No claimed enforcement that does not exist: Appendix A.1 and AGENTS.md rule 12 state the design check runs on demand like task verify (no CI gate), its output pasted in the PR body; TODO 0.5, completed by this PR, is removed. 4. One list of the rules.cue rules: §5.4's "Design check" column. The script, rules.cue and Appendix A cite it; design-consistency.sh checks rules.cue emits exactly that set (self-test row rules-emit-drift). (Block 3 — the R2/R8/R9 rows — is fixed in the PR body.) Claude-Session: https://claude.ai/code/session_01VQ3NL7BVepzGaJMpRL4F3P * fix(design): resolve the three pr-validator blocks on dd1ddf4; keep to the deliverables 1. Schema-pattern references: TODO.md said S1–S8 where §3.1 defines S1–S9. Fixed, and design-consistency.sh now checks every S<n> in DESIGN.md, DESIGN.cue and TODO.md names a §3.1 pattern and every range S1–S<n> ends at the last (self-test rows pattern-range, pattern-unknown). §3.1 no longer restates the pattern count. 2. Appendix A.4 no longer enumerates the marked tables: the markers are the list. 3. Appendix A.5 no longer claims the check catches an unused declared plugin: no control implements it (D-PLUG-6 is core's load-time rule, §5.4). Scope: the operator ruled AGENTS.md and README.md changes out of scope for now, so AGENTS.md, README.md and the charly.yml task entity that backed their maintenance lists are restored to origin/main; Appendix A.1 no longer cites the AGENTS.md rule. TODO 10.1 already carries the umbrella adoption. Claude-Session: https://claude.ai/code/session_01VQ3NL7BVepzGaJMpRL4F3P * fix(design): resolve the five pr-validator blocks on f89f1bc (#348) 1. Candy default: DESIGN.cue and §12.2 now say only #InnerOfLocalAlt and #InnerOfAndroidAlt carry the `candy` default; the pod/vm, kubernetes and alongside tables admit no keyless node — matching the schema and the candy-in-pod / alongside-candy negatives. 2. Unmarked mirroring tables: design-consistency.sh now fails any unmarked table whose backticked first column equals a schema source (any struct, word list or tag table). §9.4 gets its keys(#ActionAlt) marker. The control found three tables hand-listing the deployment kinds with no schema source: `_deploymentKind` (derived from #InnerOfMachineAlt — the deployment kinds are exactly what a pod or vm admits) is that source, and §9.1, §12.1 and §12.2 carry its marker. 3. D-PAT-1 enforced: check 6 (the pattern gate) fails a close(), a matchN, a forbidden field ?: _|_, or any open struct other than #Opaque in DESIGN.cue (comments excluded). D-PAT-4 is scoped to the rules about documents and protocol messages; rules about schemas are check 6 and the §22 gates. 4. The duplicate-ID control now fails: its loop reads a file in the current shell instead of setting `fail` inside a pipeline subshell (the only instance of that pattern in the scripts). 5. (PR body) the org search is pasted with its real output. Self-test rows: unmarked-mirror, pattern-close, pattern-open. Claude-Session: https://claude.ai/code/session_01VQ3NL7BVepzGaJMpRL4F3P * fix(design): D-PAT-4 names only the control that exists (#348) The verdict on d5ef720 found D-PAT-4 claiming that A.4 check 6 enforces D-PAT-1..3, while check 6 implements only D-PAT-1. D-PAT-4 now attributes D-PAT-1 on DESIGN.cue to check 6 and D-PAT-1..3 on plugin modules to a named §22 gate, which the §22 CI-gate list now carries; TODO 2.16 adds that gate and states that until then only D-PAT-1 has a control. Claude-Session: https://claude.ai/code/session_01VQ3NL7BVepzGaJMpRL4F3P * fix(design): resolve the four pr-validator blocks on e7f536b (#346) 1. Path rule: D-SCH-7 states that every authored path is a literal absolute path; #AbsPath carries the tag and file-variable-path.yaml names it. D-CAP-1 is tagged at #Optional and gets the negative need-optional-not-bool.yaml. 2. Unmarked mirrors: the control now fails an unmarked table whose column 1 contains every name of a source (3+ names) that are most of its words. It found §12.3 (now marked _deploymentKind) and the §9 origin table (now marked keys(#SourceAlt)); A.4 check 1 states the rule; self-test row unmarked-superset. 3. §22 no longer lists the design check as a CI gate; A.1 is the one statement. 4. (PR body) the search is pasted as the plain command output. Claude-Session: https://claude.ai/code/session_01VQ3NL7BVepzGaJMpRL4F3P --------- Co-authored-by: atrawog <[email protected]>
#703) The arm landed in #699 read THREE of the NINE closing keywords GitHub accepts — `Closes`, `Fixes`, `Resolves`, capitalised — and its fence reader could not tell a four-backtick fence from a three-backtick one. Both were raised by the fresh `charly/pr-validator` on #699 itself, so the arm's claim — "every closing directive names something the directive CAN close" — was false for six of the nine forms and for every case GitHub accepts. GitHub's "Linking a pull request to an issue" names the whole set (`close`, `closes`, `closed`, `fix`, `fixes`, `fixed`, `resolve`, `resolves`, `resolved`) and adds: "The keywords can be followed by colons or in uppercase." The arm read none of those forms. This repo's own 447 merged bodies carry 52 line-starting bare `#N` directives, and the three forms the arm read were exactly the three it read. The fence reader was TWO readers of one thing: `proseLines` toggled on a backtick or a tilde fence, `fencedBlocks` toggled on a backtick fence only, and both ignored CommonMark's fence rules. So a body could paste evidence in a tilde block and the evidence arm never saw it; a four-backtick fence closed early at the three-backtick line inside it; a directive after a nested fence escaped the arm entirely; and a run followed by text closed a fence that CommonMark says is still open. ONE scanner now serves both readers, and it implements CommonMark's fence rules: the length rule, and the closing fence's rule that only whitespace may follow the run (an info string belongs to the OPENING fence alone). The keyword grammar reads all nine forms, case-insensitively, with the optional colon, and the finding quotes the directive as it was written. The boundary the widening does NOT cross is the arm's POSITION — a directive is read only when the body OPENS a line with it — and that boundary is measured and filed rather than asserted: 8 mid-line directives in this repo's 447 merged bodies, 3 of them naming a pull request and 2 of them legitimate prose ("the auto-closed #348", "the channel bootstrap fix #43's gitlink") that a full-parity grammar would block. The self-test's fixture table was spelled out in twelve arms and is now one constant, so no arm can spell the table differently from another. R7: the self-test grows to 30 live arms — one per keyword form, the uppercase form, the colon form, a directive after a nested fence, a tilde-fenced evidence block, a directive inside a nested fence, a mid-line directive, and a fence whose closing line carries text. On four bodies the OLD gate is green and the NEW gate is red, and on two the OLD gate is red and the NEW gate is green; the ONE difference between the two runs is this change. Closes #702 Refs #700 Refs #701 Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
Summary
This PR adds the umbrella's normative design and the executable control that keeps it consistent (closes #346; supersedes #347). It adds the plan's deliverables only, and changes no existing file.
DESIGN.mdis the target architecture of charly,spec,sdk, every plugin and every candy repository. Its sections:osand deployments, with intention-based nesting (Part III);DESIGN.cueis the single schema copy, in CUE v0.17.1: the authoring part and the protocol part. Every rule the schema enforces on a document or a protocol message is tagged// D-…at its enforcing line. The rules about the schema itself (D-PAT-1) are enforced by the pattern gate, A.4 check 6.TODO.mdgives every migration step from today's code. Each step has its current state (evidence re-verified atorigin/mainon 2026-10-03), its DESIGN target, its config migration before → after, and its code work. Adopting the design in the umbrella rulebook is item 10.1.scripts/design-*.sh+design/form the design check, which needs CUE v0.17.1 only:design-cue.sh: the pinned toolchain, sha256-verified;design-consistency.sh:.md↔.cuetables (marked, and unmarked tables that mirror a source), word lists,@ref↔rule lists, rule tags, IDs,§andS<n>references, vocabulary, and the schema-pattern gate;design-examples.sh: automatic validation of every example, through the loader's dispatch and through#Document, plus 63 negative cases that each assert their rule and their error text;design-selftest.sh: planted defects, each of which must be caught;design-check.sh: runs all of the above.No code changes. Each TODO.md item becomes its own issue and PR.
How tested
All commands ran on head
e7f536bin the session worktree.worktrees/design-md/opencharly, branched fromorigin/maine042e80, with a clean tree (git status --shortprinted nothing).git diff --stat origin/main...HEAD -- AGENTS.md README.md charly.ymlprints nothing: no existing file is changed.bash scripts/design-check.sh, output with theselftest <name>: caughtlines filtered out bygrep -v ': caught$':./charly/bin/charly task verify(the worktree-local binary, see R9), filtered bygrep -E '^\s+\[(pass|fail)\]'plus the summary line:The umbrella pre-commit hook passed on every change set of this branch, ending
pre-commit: OK.Supersedes #347
This PR continues #347, which is closed on the operator's request so that a fresh review thread starts from the fixed state. #347 collected two BLOCK verdicts and two INCONCLUSIVE notices. The INCONCLUSIVE notices were the provider class — the review model gave no answer within the gate's attempt timeout — and carried no code finding. Same branch; #348 opened at
f89f1bc.Every finding of both BLOCK verdicts is fixed on this head, each with the evidence that it holds:
d5ef720ab65dd1#1design/example/load.cuedispatches the nodes beside a top-levelpod/vmkind key through#AlongsideAlt, with the same placed-node list as inner nodes. Negative casesalongside-candyandalongside-local-no-host; self-test rowalongside-dispatch.ab65dd1#2ab65dd1#3ab65dd1#4rules.cuerule setrules.cueand Appendix A cite it, anddesign-consistency.shchecks thatrules.cueemits exactly that set (self-test rowrules-emit-drift).dd1ddf4#1design-consistency.shchecks everyS<n>in DESIGN.md, DESIGN.cue and TODO.md against §3.1, and that every range ends at the last pattern (self-test rowspattern-rangeandpattern-unknown). §3.1 no longer restates the count.dd1ddf4#2dd1ddf4#3The root cause these share was a hand-written claim, list or count in prose with no control behind it. Each one now either has a check with a self-test row, or the prose no longer restates the fact.
Scope: the operator ruled changes to AGENTS.md and README.md out of scope for now. This PR changes no existing file —
git diff --stat origin/main...HEAD -- AGENTS.md README.md charly.ymlprints nothing.Changes since the verdict on
f89f1bc(BLOCK, 5 findings)The verdict re-derived all seven #347 findings as fixed. Its five new findings are fixed in one commit (
d5ef720). Their shared root cause was a claim or control that nothing proved, so each fix is a control:#InnerOfLocalAltand#InnerOfAndroidAltcarry thecandydefault, matching the schema and thecandy-in-podandalongside-candynegative cases.design-consistency.shnow fails any unmarked table whose backticked first column equals a schema source: any struct, word list or tag table. §9.4 got itskeys(#ActionAlt)marker. The new control also found three tables hand-listing the deployment kinds with no schema source._deploymentKindis now that source, derived from#InnerOfMachineAlt(the deployment kinds are exactly what a pod or vm admits), and §9.1, §12.1 and §12.2 carry its marker.close(, amatchN, a?: _|_forbidden field, or any open struct other than#Opaquein DESIGN.cue, outside comments. D-PAT-4 is scoped to the rules about documents and protocol messages (its statement about the schema rules is corrected again one7f536b, below).failinside a pipeline subshell. It was the only instance of that pattern in the scripts.New self-test rows:
unmarked-mirror,pattern-close,pattern-open.The validator re-run that produced this verdict used
AI_REVIEW_REASONING_EFFORT=high. The operator set that org var on 2026-10-04 (opencharly/plugin-review#36, opencharly/.github#133).Changes since the verdict on
d5ef720(BLOCK, 1 finding)The verdict re-derived all five findings on
f89f1bcas fixed. Its one new finding is fixed ine7f536b:DESIGN.cueby check 6, and D-PAT-1..3 on every plugin CUE module by a named §22 schema-pattern gate. The §22 CI-gate list now carries that gate. TODO 2.16 adds it, and says that until it exists only D-PAT-1 has a control. A search of DESIGN.md, TODO.md and the scripts found no other claim about check 6 or the pattern gate.That verdict ran at
AI_REVIEW_REASONING_EFFORT=mediumwithAI_REVIEW_ATTEMPT_TIMEOUT=1080. The operator set both org vars on 2026-10-04, after the first run ond5ef720hit the 15-minute cap.Rulebook compliance
git -C charly status --shortis empty.git -C <absolute path>from the session worktree. Nothing was run implicitly across a submodule boundary.go.work.worktrees/design-md/opencharlyonfeat/design-md, from freshorigin/maine042e80. The shared checkout is untouched.task policy-bpassed in the pre-commit hook and intask verify.task verifypassed./charly-internals:git-workflow(with references/pre-validator-self-audit.md),/charly-internals:root-cause-analyzerand/charly-internals:skillsbefore any git or PR action.S<n>,rules.cue-emission and spelling checks. Landing anomalies each got their own RCA: a stale shared binary was replaced by the worktree build, andtask harnesswas found folded into verify by #341.rules.cuerules. Examples are extracted at run time and never committed as copies. One self-test runner serves both checks.-F <file>requirement was followed, not bypassed.bash scripts/design-check.sh) is named as maintenance this project performs, not as a step a charly user runs.main.task verifyand the design check ran on the final tree of this head. Output is pasted above.cue vetagainstDESIGN.cue(stage 3 above).charly/scripts/bootstrap-charly.shand invoked through the worktree'scharly/bin. It reports version2026.276.1041, the CalVer of the pinned charly commitfe4b00b. The gitlink and the checkout are bothfe4b00b44b469a7d947a48a85ce206bf37b27310, and the checkout is clean. It is never installed as a shared binary.design-cue.shdownloads the real release archive and verifies its published sha256.Change classification
.md,.cue,.tsvand.yamldesign files and five bash scripts, so it is not documentation-only. It changes no existing file.bash scripts/design-check.shand./charly/bin/charly task verifyon the final tree.task verifypassed on the final tree, and the changed paths (the design-check scripts) were executed live.https://claude.ai/code/session_01VQ3NL7BVepzGaJMpRL4F3P
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)