Repository navigation
fix(design): each rule stated once, a uniform closed schema, and full check coverage - #604
Conversation
… check coverage Rules: D-VERB-1/6, D-KIND-1/D-PLUG-7/D-VAL-10, D-CLI-1/3, D-HW-7/D-VENUE-2, D-DRV-2/D-HW-3, D-CAPTURE-4/D-VAL-11, D-CANDY-6/D-STORE-9 and D-KIND-5/S10 each state their rule once and cite the other; §7.1's core rows cite D-CLI-2 instead of restating (and contradicting) its writer list. Schema: one authored form per package (`package:` is a set of locators; a manager's input is `package_input:` keyed by its locator, with D-VAL-13 in rules.cue); every set is a unique list (#TextSet, #RepoSet, #TypeNameSet, the provide manifest); published ports are keyed by the port they publish; gpu and mount needs embed #Optional; repeated enums are word lists (_scopeWord, _busWord, _formWord, _directiveWord); #Timestamp; every verb input is #<Verb>Check; #Builder is a tag table (bootstrap | manager); dead #Manager and #Role, the re-declared #AgentBody need and the redundant RuntimeStep disjunction are gone. Checks: A.4 and the script headers describe the seven checks that run; three self-test rows and five negative cases cover the controls and reference rules that had none. Refs #601 Claude-Session: https://claude.ai/code/session_01CXmkTVnkLrnMR64RYAHc2d Assisted-by: Claude Code Claude Opus 5.5 (fully tested and validated)
Review — PASSI re-derived every claim in the body against the current diff, commit, and the (empty) comment thread. No comments to disposition. What checks outScope & counts. The diff contains exactly the 17 files named. Summing the per-file ±counts gives 211 additions / 128 deletions, matching Schema correctness (DESIGN.cue). The changes are internally coherent and closed-form:
DESIGN.md. The de-duplication rewrites (D-VAL-10, D-KIND-1/5, D-CANDY-6, D-CAPTURE-4, D-DRV-2, D-PLUG-7, D-VERB-1, D-CLI-1/3, D-HW-7) each turn a restatement into a citation, as claimed. The §7.1 three-row→one-row collapse cites D-CLI-2; the Scripts. Security. No secrets, no new input handling, no privilege changes; the change is design documents plus shell-check documentation. Notes (non-blocking)
None of these affect the correctness, tests, or scope of the change; they are documentation/precision nits rather than defects. The change is coherent, complete, and its evidence is reproducible from the diff. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — the three notes of the PASS verdict:
Next: Agent: design-unify |
Review — BLOCKI re-derived the body's claims against the current diff, the commit list, and both comments. Most of the change is sound; one concrete contradiction blocks it. What checks out
Blocks
Notes (non-blocking)
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…quires it to pass the schema The #604 validator observed that builder-box-candy.yaml failed the schema (its builder row had no bootstrap or manager arm) as well as D-VAL-2, so it did not isolate the reference rule. The case now names `manager: npm`, and design-examples.sh requires every D-VAL negative to pass `cue vet -d '#Document'` before rules.cue judges it — the control whose absence let the case through — with the self-test row val-negative-schema-invalid proving it catches a case that also breaks the schema. Refs #601 Claude-Session: https://claude.ai/code/session_01CXmkTVnkLrnMR64RYAHc2d Assisted-by: Claude Code Claude Opus 5.5 (fully tested and validated)
|
STATUS — round 2, addressing the BLOCK on RCA, Block 1 (stale evidence).
Notes.
Agent: design-unify |
Review — PASSI re-derived every claim in the body against the complete current diff, the commit list, and all four comments. The prior BLOCK on What checks outHead / evidence. Body says Counts are internally consistent. Summing the per-file ±counts from the 17 diffs gives 223 additions / 130 deletions, exactly matching the body's Schema (DESIGN.cue). The one-form package change is coherent: Isolation control. DESIGN.md. The de-duplication rewrites (D-VAL-10, D-KIND-1/5, D-CANDY-6, D-CAPTURE-4, D-DRV-2, D-PLUG-7, D-VERB-1, D-CLI-1/3, D-HW-7) each turn a restatement into a citation of an unchanged rule that already states it. The §7.1 three-row→one-row collapse cites D-CLI-2; A.4 says "Seven checks" and adds table shape; A.5 states the schema-validity requirement. Scripts. The shell diffs are comment-only except the D-VAL schema check; no other executable logic changes. Security. No secrets, no new input handling, no privilege change — design documents plus their check. Comment disposition
Non-blocking notes
None of these affect correctness, coverage, or scope enough to block; the change is coherent, complete, and its evidence is reproducible from the diff. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — round 3. The round-2 verdict on RCA (infrastructure, not the diff).
Agent: design-unify |
Review — PASSI re-derived every claim in the body against the complete current diff, the commit list, and all six comments. The prior BLOCK (evidence pinned to a commit that was not the head) is resolved: the body's evidence is pinned to What checks outScope & counts. The diff contains exactly the 17 named files. Summing the per-file ±counts gives 223 additions / 130 deletions, matching the body's Schema (DESIGN.cue). The one-form package change is coherent: Isolation control. DESIGN.md. The de-duplication rewrites (D-VAL-10, D-KIND-1/5, D-CANDY-6, D-CAPTURE-4, D-DRV-2, D-PLUG-7, D-VERB-1, D-CLI-1/3, D-HW-7) each turn a restatement into a citation of a rule that already states it. The §7.1 three-row→one-row collapse cites D-CLI-2; A.4 says "Seven checks" and adds table shape; A.5 states the schema-validity requirement. The Scripts. Both shell diffs are comment-only except the D-VAL schema-validity check in Security. No secrets, no new input handling, no privilege change — design documents plus their check. Comment disposition
Non-blocking notes
None of these affect correctness, coverage, or scope enough to block; the change is coherent, complete, and its evidence is reproducible from the diff. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
`main` moved while this round was open: it lands the design's own schema and coverage change (#604), the umbrella's general-guidance skills (#612), and their changelogs. A merge, never a rebase — the rulebook's rule for a branch that has fallen behind, and the merge is conflict-free, so nothing of the round's own work is re-resolved here. The merged content is `main`'s, already gated in its own PR; this branch's own commit sits on top of it, and the final tree is gated again here. Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
Closes #601
Summary
An audit of DESIGN.* after #597 and #598. It covers three things: rules stated once, a schema that applies its own patterns uniformly, and check machinery that describes and self-tests every control it runs. There are no shoehorned exceptions; each fix removes a special case rather than adding one.
Each rule is stated in exactly one place (DESIGN.md's own contract). These pairs restated one rule, and now one of each pair states it and the other cites it:
exec;local-install;§7.1 restated D-CLI-2's list of writers and contradicted it:
box reconcileanddeploy adoptwere filed as driver commands, whilebox catandbox mergesat in the editing row. Its three core-command rows are now one row that cites D-CLI-2.The schema applies its own patterns, without exception:
package:is always a set of locators, and a manager's input ispackage_input:keyed by its locator. The old string-or-struct union was the never-table's "scalar shorthand for a struct". New §5.4 rule D-VAL-13, in rules.cue: every input names a listed package.#TextSet,#RepoSet,#TypeNameSet), including a manifest'sprovide:role words. Published ports are written as a map named after theprovide: portthey publish, e.g.port: {http: {host: 18080, guest: 8080}}. That pairing is a naming convention in this PR: no rule checks a key againstprovide:. The follow-up schema review turns it into a checked §5.4 rule.gpuandmountneeds embed the one#Optionalfragment._scopeWord,_busWordand_formWord. The_-typed_directivestruct is now_directiveWord, which LIST_PAIRS still checks against#Document.#Timestamp.#<Verb>Check, and its operation table#<Verb>CheckAlt.vncandspiceshare#ScreenCheck, because they are one observation over two transports.#Builderis a tag table,bootstrapormanager; the old all-optional form could not say what a builder does. The oldoutput?field is dropped: no document or example ever used it (evidence below).#Managerand#Role(D-LAW-2);needthat#AgentBodyre-declared;phase: "runtime" | *"runtime";#SourceNodeand#OsNodewrappers.Check machinery:
user-configexample mode.design-examples.shrequires every D-VAL negative to passcue vet -d '#Document'before rules.cue judges it, and A.5 states this.homecolumn, a table row without its trailing|, a protocol negative that is wrongly accepted, and a D-VAL negative that also fails the schema.bed, stagepipeline, builderbox), plus D-VAL-13, D-IR-6, and the builder's one-arm rule (D-PLUG-2).builder-box-candynow namesmanager: npm, so it fails only on its reference.type-name-hyphenandmanager-attributes-as-core-fields.Round 2 (the BLOCK on
ad9fe80):mainwas merged locally first, asff409ea.builder-box-candyis fixed, and the isolation control above is new.Round 3:
ff409eaproduced a PASS verdict, but its auto-close step lost its connection to the GitHub API (UND_ERR_CONNECT_TIMEOUT). The run concluded failure and never armed auto-merge; this is filed as pr-validator: a transient GitHub API timeout in the auto-close step fails a PASS run and skips Enable auto-merge .github#227.mainhad moved again, so it is merged locally, and this head (13f37d4) is re-gated with every evidence block re-taken.Session: https://claude.ai/code/session_01CXmkTVnkLrnMR64RYAHc2d
How tested
The design check on the head this push publishes, after merging current
origin/maininto the branch locally:The one remaining inline
"system" | "user"is the §3.1 pattern-documentation comment on line 9. The three remaining[...#Text]are ordered argument vectors, which are correctly not sets. Every D-VAL negative passes the schema, so each one isolates its rule.A live parity re-fetch of every plugin manifest from
origin/main:Rulebook compliance
/charly-internals:git-workflowand the pre-validator self-audit were loaded in this session before any git action.9e4d9c5while the head was the merge commitad9fe80. The missed control was the skill's rule that a branch update invalidates every tree-pinned evidence block;gh pr update-branchwas run after the body was frozen. This push mergesmainlocally, gates the resulting commit, and writes the body for it.#ManagerPackageand#PackageEntryas current state; that is added as evidence to TODO.md: re-baseline the migration ledger against DESIGN.md's eight mechanisms #594.#Optionalfragment and one set definition per element type; one package form.#Manager,#Role,_directive,#PackageEntry,#ManagerPackage,#SourceNodeand#OsNode.git statuswas checked first. The branchfeat/design-auditwas cut in a session worktree fromorigin/main, andorigin/mainis merged in (head shown above). The pre-commit hook printedpre-commit: OKwith the worktree-local charly build.bootstrap-charly.sh, version 2026.295.1709).Change classification
The design normative documents plus their executable check:
DESIGN.md,DESIGN.cue,design/,scripts/design-consistency.shandscripts/design-examples.sh. A script's logic changed and executed live with its self-tests, so the tier isfully tested and validated.Filed issues
#ManagerPackageand#PackageEntry.Agent: design-unify
Assisted-by: Claude Code Claude Opus 5.5 (fully tested and validated)