Skip to content

fix(design): each rule stated once, a uniform closed schema, and full check coverage - #604

Merged
github-actions[bot] merged 5 commits into
mainfrom
feat/design-audit
Oct 22, 2026
Merged

github-actions[bot] merged 5 commits into
mainfrom
feat/design-audit

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • D-VERB-1 and D-VERB-6: verb classes and application checks;
  • D-KIND-1, D-PLUG-7 and D-VAL-10: namespaced foreign words;
  • D-CLI-1 and D-CLI-3: application commands;
  • D-HW-7 and D-VENUE-2: a microVM venue has no exec;
  • D-DRV-2 and D-HW-3: an unmet need fails early;
  • D-CAPTURE-4 and D-VAL-11: process capture;
  • D-CANDY-6 and D-STORE-9: local-install;
  • D-KIND-5 and S10.

§7.1 restated D-CLI-2's list of writers and contradicted it: box reconcile and deploy adopt were filed as driver commands, while box cat and box merge sat 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:

  • One authored form per package. package: is always a set of locators, and a manager's input is package_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.
  • S5 sets. Every set is a unique list (#TextSet, #RepoSet, #TypeNameSet), including a manifest's provide: role words. Published ports are written as a map named after the provide: port they publish, e.g. port: {http: {host: 18080, guest: 8080}}. That pairing is a naming convention in this PR: no rule checks a key against provide:. The follow-up schema review turns it into a checked §5.4 rule.
  • S6. The gpu and mount needs embed the one #Optional fragment.
  • S3. Repeated enums are word lists: _scopeWord, _busWord and _formWord. The _-typed _directive struct is now _directiveWord, which LIST_PAIRS still checks against #Document.
  • S2. The audit timestamp is a named scalar, #Timestamp.
  • Naming. Each single-verb input is named #<Verb>Check, and its operation table #<Verb>CheckAlt. vnc and spice share #ScreenCheck, because they are one observation over two transports.
  • S4. #Builder is a tag table, bootstrap or manager; the old all-optional form could not say what a builder does. The old output? field is dropped: no document or example ever used it (evidence below).
  • Removed.
    • the dead #Manager and #Role (D-LAW-2);
    • the need that #AgentBody re-declared;
    • the redundant disjunction phase: "runtime" | *"runtime";
    • the single-use #SourceNode and #OsNode wrappers.

Check machinery:

  • A.4 and the consistency script's header now describe all seven checks; check 7, table shape, was undocumented. The headers name the verb-table control and the user-config example mode.
  • A §5.4 negative now isolates its rule. design-examples.sh requires every D-VAL negative to pass cue vet -d '#Document' before rules.cue judges it, and A.5 states this.
  • Four new self-test rows: a dangling § in the ledger's home column, a table row without its trailing |, a protocol negative that is wrongly accepted, and a D-VAL negative that also fails the schema.
  • Six new negative cases: the three reference rules docs(design)!: restate the target as eight unified mechanisms with full capability parity #597 added (roster bed, stage pipeline, builder box), plus D-VAL-13, D-IR-6, and the builder's one-arm rule (D-PLUG-2). builder-box-candy now names manager: npm, so it fails only on its reference.
  • Two negative cases were re-targeted at the new forms: type-name-hyphen and manager-attributes-as-core-fields.

Round 2 (the BLOCK on ad9fe80):

  • The evidence is re-taken on the head this push publishes; main was merged locally first, as ff409ea.
  • builder-box-candy is fixed, and the isolation control above is new.

Round 3:

Session: https://claude.ai/code/session_01CXmkTVnkLrnMR64RYAHc2d

How tested

The design check on the head this push publishes, after merging current origin/main into the branch locally:

# head 13f37d49d99723f2c1873244b4dbfa1bfa775893 (git rev-parse HEAD)
$ bash scripts/design-check.sh
== 1/5 toolchain
cue version v0.17.1
== 2/5 DESIGN.md ↔ DESIGN.cue
consistency: tables, table shape, word lists, rule tags, ids and § references, vocabulary — all agree
== 3/5 examples and negative cases
examples: 11 validated
negatives: 84 checked
== 4/5 self-test of the consistency check
selftest design-consistency.sh: 35 planted defects
== 5/5 self-test of the example check
selftest design-examples.sh: 21 planted defects
design-check: all controls pass
$ git rev-parse HEAD
13f37d49d99723f2c1873244b4dbfa1bfa775893
$ git diff --stat origin/main...HEAD | tail -1
 17 files changed, 223 insertions(+), 130 deletions(-)
$ grep -c '^#Manager:\|^#Role:\|^_directive:\|#PackageEntry\|#ManagerPackage' DESIGN.cue
0
$ grep -c "#SourceNode\|#OsNode" DESIGN.cue DESIGN.md
DESIGN.cue:0
DESIGN.md:0
$ grep -n '"system" | "user"\|"session" | "system"\|"image" | "disk"' DESIGN.cue
9://   S3 literal enum           *"system" | "user" inline, or or(_xWord) from a word list that tools read
$ grep -nE "\[\.\.\.#(Text|Repo)\]$" DESIGN.cue
293:	entrypoint?:  [...#Text]
525:	entrypoint?:  [...#Text]
543:	command!:     [...#Text]
$ grep -E "parity-dangling-section|table-no-trailing-pipe|protocol-negative-accepted|val-negative-schema-invalid" <design-check output>
selftest parity-dangling-section: caught
selftest table-no-trailing-pipe: caught
selftest protocol-negative-accepted: caught
selftest val-negative-schema-invalid: caught
$ for each D-VAL negative: cue vet -c -d #Document (schema-valid?)
builder-box-candy.yaml D-VAL-2 schema-valid
candy-without-check.yaml D-VAL-1 schema-valid
misspelled-field.yaml D-VAL-8 schema-valid
namespace-is-node.yaml D-VAL-4 schema-valid
package-input-unlisted.yaml D-VAL-13 schema-valid
require-a-pod.yaml D-VAL-2 schema-valid
roster-bed-candy.yaml D-VAL-2 schema-valid
stage-pipeline-candy.yaml D-VAL-2 schema-valid
unresolved-from.yaml D-VAL-2 schema-valid
unresolved-namespaced-reference.yaml D-VAL-2 schema-valid
$ git show 9e4d9c5^:DESIGN.cue | grep -n 'output?:      #AbsPath'
533:	output?:      #AbsPath
$ git grep -c 'output:' 9e4d9c5^ -- DESIGN.md design/
(no matches)

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:

# head 13f37d49d99723f2c1873244b4dbfa1bfa775893 (git rev-parse HEAD)
$ bash verify_parity.sh design/parity.tsv
repos with manifests: 110; declared words: 208; ledger word rows: 208
unmapped: none
ledger rows no manifest declares: none

Rulebook compliance

  • R0: /charly-internals:git-workflow and the pre-validator self-audit were loaded in this session before any git action.
  • R1: every finding has an RCA.
    • Round 1: nothing checked for a rule stated twice, for dead definitions, or for pattern uniformity, and self-test coverage was never audited against A.4 and A.5. Each structural finding is now held by a schema rule with a negative case, or by a self-test row.
    • Round 2, the BLOCK:
      • The evidence described 9e4d9c5 while the head was the merge commit ad9fe80. The missed control was the skill's rule that a branch update invalidates every tree-pinned evidence block; gh pr update-branch was run after the body was frozen. This push merges main locally, gates the resulting commit, and writes the body for it.
      • The builder negative did not isolate its rule because no control required a D-VAL negative to be schema-valid. That control now exists, with a self-test row.
    • TODO.md still names #ManagerPackage and #PackageEntry as current state; that is added as evidence to TODO.md: re-baseline the migration ledger against DESIGN.md's eight mechanisms #594.
  • R2: eight duplicated rules are reduced to one statement each; repeated enums become word lists; one #Optional fragment and one set definition per element type; one package form.
  • R3: N/A — no runtime code.
  • R4: N/A — the design document and its check only.
  • R5: the removed definitions are gone (grep fence above): #Manager, #Role, _directive, #PackageEntry, #ManagerPackage, #SourceNode and #OsNode.
  • R6: git status was checked first. The branch feat/design-audit was cut in a session worktree from origin/main, and origin/main is merged in (head shown above). The pre-commit hook printed pre-commit: OK with the worktree-local charly build.
  • R7: every new schema rule has a negative case that fails with its expected text, and every new control a self-test row that is caught (above).
  • R8: N/A — no live service boundary. The parity re-fetch ran live against the GitHub API.
  • R9: N/A — no charly code or binary change. The pre-commit hook ran against the worktree-local build (bootstrap-charly.sh, version 2026.295.1709).
  • R10: the change-class gate passed on the head this push publishes (above).

Change classification

The design normative documents plus their executable check: DESIGN.md, DESIGN.cue, design/, scripts/design-consistency.sh and scripts/design-examples.sh. A script's logic changed and executed live with its self-tests, so the tier is fully tested and validated.

Filed issues

Agent: design-unify
Assisted-by: Claude Code Claude Opus 5.5 (fully tested and validated)

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

Copy link
Copy Markdown
Contributor

Review — PASS

I re-derived every claim in the body against the current diff, commit, and the (empty) comment thread. No comments to disposition.

What checks out

Scope & counts. The diff contains exactly the 17 files named. Summing the per-file ±counts gives 211 additions / 128 deletions, matching git diff --stat ... | tail -1. The negative-case arithmetic is consistent: 78 baseline + 6 new design/negative/*.yaml files = the reported negatives: 84 checked. Self-test arithmetic matches: 33→35 consistency rows (two added: parity-dangling-section, table-no-trailing-pipe) and 19→20 example rows (one added: protocol-negative-accepted).

Schema correctness (DESIGN.cue). The changes are internally coherent and closed-form:

  • #Package string form, #PackageInput = {[#ManagerLocator]: #ManagerInput}, and #PackageSet: [...#Package] & list.UniqueItems() correctly replace the old string-or-struct #PackageEntry/#ManagerPackage union. The package-input-os-package negative (key ripgrep fails #ManagerLocator → "field not allowed") and package-input-unlisted (valid locator, caught by rules.cue) are well-targeted at the two distinct failure modes.
  • #Timestamp regex is valid CUE (\\. inside the string yields the regex \. for the fractional-seconds dot), and #AuditEvent.at!: #Timestamp consumes it.
  • #BuilderFields/#BuilderAlt correctly make a builder row exactly one of bootstrap/manager; the pacstrap example is migrated to bootstrap: {command: …} and builder-two-arms.yaml is the matching negative.
  • #Optional reuse in gpu/mount, the #NameSet/#RepoSet/#TypeNameSet/#TextSet conversions, and or(_scopeWord|_busWord|_formWord) are all consistent, and the body's grep fence (only line 9 comment matches "system" | "user", only the three ordered [...#Text] vectors remain) is reproducible from the diff.
  • Removed defs (#Manager, #Role, _directive, #PackageEntry, #ManagerPackage, #SourceNode, #OsNode) have no surviving references; design/example/load.cue is correctly migrated to _directiveSet built from _directiveWord, and #KindNode inlines the source/os tags.
  • The rules.cue D-VAL-13 loop correctly errors when a package_input: key names a package absent from package:, matching the negative's expected text.

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 provide: example and the port:/package:/package_input: examples are migrated to the new forms. A.4 now says "Seven checks" and adds item 7.

Scripts. design-consistency.sh and design-examples.sh changes are comment-only, which is consistent with the body's claim that check 7 (table shape) and the verb-table/user-config controls already existed and were merely undocumented — no executable logic is altered, so no regression is introduced there.

Security. No secrets, no new input handling, no privilege changes; the change is design documents plus shell-check documentation.

Notes (non-blocking)

  • Body count. The "Check machinery" bullet says "Five new negative cases" and enumerates roster-bed, stage-pipeline, builder-box, D-VAL-13, D-IR-6 — but the diff adds a sixth (builder-two-arms.yaml, D-PLUG-2), and the reported 84 (78+6) only reconciles with six. The sixth is disclosed under the S4 bullet, so this is an undercount in prose, not a hidden change. Worth correcting the word "five" to "six".
  • "Every verb input is named #<Verb>Check." vnc and spice map to #ScreenCheck (the shared-observation name the in-file comment explains), so the uniformity claim is slightly overstated for shared-observation verbs.
  • _directiveWord. It changed from a derived list ([for k,_ in _directive {k}]) to an authored literal. Since the script diff is comment-only, it is worth confirming the consistency check still validates _directiveWord against a definition (a LIST_PAIRS entry, if any, would need updating) so the new authored list cannot silently drift.

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.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 22, 2026 18:18
@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS — the three notes of the PASS verdict:

  1. Body count: fixed. The body now says six new negative cases and names the sixth (builder-two-arms.yaml, D-PLUG-2).
  2. #ScreenCheck: rebutted. vnc and spice share one input because they are one observation over two transports; the shared definition carries the observation's name, and every single-verb input is #<Verb>Check. The follow-up schema review folds both into one display verb, so the shared name goes away there.
  3. _directiveWord: rebutted. It is still checked against a definition. scripts/design-consistency.sh line 168 keeps the pair "_directiveWord=#Document", so check 2 fails if the authored list drifts from #Document's fields.

Next: gh pr update-branch, because the branch is BEHIND main.

Agent: design-unify
Assisted-by: Claude Code Claude Opus 5.5 (fully tested and validated)

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

I 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

  • Scope & counts. The diff contains exactly the 17 named files. Summing the per-file ±counts gives 211 additions / 128 deletions, matching the body's git diff --stat line. Negative arithmetic is consistent: 78 baseline + 6 new design/negative/*.yaml (builder-box-candy, builder-two-arms, package-input-os-package, package-input-unlisted, roster-bed-candy, stage-pipeline-candy) = the reported 84. Self-tests: +2 consistency rows (parity-dangling-section, table-no-trailing-pipe) → 35; +1 example row (protocol-negative-accepted) → 20, matching the reported 35/20.
  • Schema (DESIGN.cue). The one-form package change is coherent: #Package stays a string, #ManagerLocator is its strict manager subset, #PackageInput: {[#ManagerLocator]: #ManagerInput} keys a manager's input by its locator, and #PackageSet: [...#Package] drops the string-or-struct union. The two new negatives target the two distinct failure modes (non-locator key → CUE field not allowed; valid-but-unlisted key → rules.cue D-VAL-13), and the D-VAL-13 loop in design/example/rules.cue correctly compares each package_input key against the package: list. #Timestamp, the #TextSet/#RepoSet/#TypeNameSet conversions, or(_scopeWord|_busWord|_formWord), #Optional reuse in gpu/mount, #BuilderFields/#BuilderAlt (one arm each), and the #KindNode source/os inlining are all consistent; the removed #Manager, #Role, _directive, #PackageEntry, #ManagerPackage, #SourceNode, #OsNode have no surviving references, and design/example/load.cue is correctly migrated to a _directiveSet built from _directiveWord. The type-name-hyphen / manager-attributes-as-core-fields re-targets match the new forms.
  • 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; A.4 now says "Seven checks" and adds table shape.
  • Scripts. Both shell diffs are comment-only, so no executable logic changes; the headers now document check 7 and the user-config mode, consistent with the body.
  • Security. No secrets, no input handling, no privilege change — design docs plus check documentation only.

Blocks

  1. The test evidence is for a commit that is not the PR head (DESIGN.md/body evidence, all "How tested" output).
    The body states # head 9e4d9c5df76f8a6ad9473ad76637640105386706 (git rev-parse HEAD) and reports the design-check output at that commit. The PR metadata gives Head SHA ad9fe807b21136f0f4694778cb55f10145ea0952, and the commit list shows ad9fe807 is a "Merge branch 'main' into feat/design-audit" commit that sits on top of 9e4d9c5. Comment 2 by @aitrawog confirms the sequence: after the body/review, "Next: gh pr update-branch, because the branch is BEHIND main." So the 9e4d9c5 output was produced before the branch was synced with main, and the current head (ad9fe807) has a different base. The body's git rev-parse HEAD claim and its check output therefore do not describe the reviewed state.
    Required fix: re-run bash scripts/design-check.sh (and the parity fetch if retained) at the current head ad9fe807 (or at whatever head remains after any further update), and update the body's head SHA and output to that commit. If the main sync touched DESIGN.md, DESIGN.cue, design/, or the scripts, confirm the check still passes on the merged tree; the current evidence does not establish this.

Notes (non-blocking)

  • #Builder drops output?: #AbsPath without it appearing in the body's "Removed" list. The old #Builder carried command?/output?; the new bootstrap arm has command! and no output. No DESIGN.md example used output, but any manifest that does would now break. Worth stating the removal explicitly (or confirming output was dead) so the change is not silently wider than documented.
  • The three new reference negatives may be rejected for a second reason. builder-box-candy.yaml (and, similarly, roster-bed-candy.yaml / stage-pipeline-candy.yaml) omit required fields of the enclosing row — e.g. b.builder has neither a bootstrap nor a manager arm, so it fails the #Builder disjunction independently of the D-VAL-2 ref-kind check. The body claims each "fails with its expected text"; that holds only if the example runner reports the rules.cue violation even when the schema also fails. Confirm the expected text is what is actually matched, so the negative isolates the reference rule rather than being satisfied by an unrelated schema error.
  • #MachineOnly.port is keyed by #Name, not by a provide: port reference. The body says published ports are "keyed by the provide: port they publish," but no schema or (visible) rules check enforces that the key names a provide: port. This is a documentation-level convention, not an enforced rule — fine if intentional, but the claim reads as stronger than the schema guarantees.
  • Comment disposition. @github-actions[bot]'s PASS re-derives the same counts and is consistent with the diff, but it predates the main sync, so its evidence is now stale (see Block 1); its three notes are addressed: the body now says "six" (fixed), vnc/spice → #ScreenCheck is a deliberate shared observation (body's "every verb input is #<Verb>Check" is slightly overstated but not wrong in substance), and the consistency-script diff is comment-only so the _directiveWord=#Document pair remains. @aitrawog's comment is the PR author, not a designated-maintainer sign-off, so it does not substitute for the missing evidence; it does explain how the head became stale.

Verdict: BLOCK


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

View action run

…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)
@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS — round 2, addressing the BLOCK on ad9fe80. Every finding is fixed or answered.

RCA, Block 1 (stale evidence).

  • Mechanism: gh pr update-branch created the merge commit ad9fe80 after the body's evidence had been pinned to 9e4d9c5.
  • Missed control: the git-workflow rule that any branch update invalidates every tree-pinned evidence block. I ran the update without re-taking the evidence first.
  • Root fix: origin/main is merged locally (ff409ea), the design check and the parity fetch run on that exact commit, and the body is rewritten for it before this push.

Notes.

  • builder-box-candy (valid): fixed. It now names manager: npm, so it fails only on its reference. The missed control was that no check required a D-VAL negative to pass the schema. design-examples.sh now requires it, with the self-test row val-negative-schema-invalid. All ten D-VAL negatives pass the schema; the per-file list is in the body.
  • roster-bed-candy and stage-pipeline-candy: rebutted. Both already passed the schema; the same evidence block shows it.
  • #Builder output?: stated in the body as dead. git grep 'output:' over DESIGN.md and design/ at 9e4d9c5^ has no matches.
  • Port keys: clarified in the body. In this PR, naming a published port after its provide: port is a convention with no check; the follow-up review makes it a §5.4 rule.

Agent: design-unify
Assisted-by: Claude Code Claude Opus 5.5 (fully tested and validated)

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

I re-derived every claim in the body against the complete current diff, the commit list, and all four comments. The prior BLOCK on ad9fe80 is resolved: the body's evidence is pinned to the actual head ff409ea29f62878c9ab6c698e65f5020778a123c, which is the head named in the PR metadata, and the commit list shows ff409ea is the merge of current origin/main into the branch.

What checks out

Head / evidence. Body says git rev-parse HEAD → ff409ea…, and the PR head is ff409ea…. The stale-evidence block no longer applies. The body also discloses the local merge and the sequence that produced it.

Counts are internally consistent. Summing the per-file ±counts from the 17 diffs gives 223 additions / 130 deletions, exactly matching the body's git diff --stat origin/main...HEAD | tail -1 (17 files, 223/130). Negative arithmetic: 6 new design/negative/*.yaml (builder-box-candy, builder-two-arms, package-input-os-package, package-input-unlisted, roster-bed-candy, stage-pipeline-candy) against the reported negatives: 84 checked (78 baseline). Self-tests: consistency +2 rows (parity-dangling-section, table-no-trailing-pipe) → 35; example +2 rows (protocol-negative-accepted, val-negative-schema-invalid) plus the re-targeted shape row → 21. Both match the reported 35/21. The body now says six new negatives (the earlier undercount is fixed) and the sixth (builder-two-arms, D-PLUG-2) is named.

Schema (DESIGN.cue). The one-form package change is coherent: #Package stays a string, #ManagerLocator is its strict manager subset, #PackageInput: {[#ManagerLocator]: #ManagerInput} keys a manager's input by its locator, and #PackageSet: [...#Package] removes the string-or-struct union. The two new negatives target the two distinct failure modes (non-locator key → CUE field not allowed; valid-but-unlisted key → rules.cue D-VAL-13), and the D-VAL-13 loop in rules.cue correctly compares each package_input key against the package: list (empty listed → violation, including the absent-package case). #Timestamp, #TextSet/#RepoSet/#TypeNameSet, or(_scopeWord|_busWord|_formWord), #Optional reuse in gpu/mount, #BuilderFields/#BuilderAlt (one arm each), #KindNode source/os inlining, #Provide role-word sets, and #RuntimeStep are all consistent. Removed #Manager, #Role, _directive, #PackageEntry, #ManagerPackage, #SourceNode, #OsNode have no surviving references, and design/example/load.cue is correctly migrated to _directiveSet built from _directiveWord. _candyField gains package_input in step with #CandyBody.

Isolation control. design-examples.sh now requires every D-VAL negative to pass cue vet -c -d '#Document' before rules.cue judges it, with the val-negative-schema-invalid self-test row planting the defect in unresolved-from.yaml. This is the missing control the BLOCK's note identified, and builder-box-candy is fixed (manager: npm) so it fails only on its D-VAL-2 reference.

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

  • Comment 1 (@github-actions[bot], PASS). Its count re-derivation was correct for its state, but its evidence predates the main sync; its three notes are addressed (body says "six"; vnc/spice → #ScreenCheck is a deliberate shared observation; _directiveWord=#Document pair remains in the comment-only script). Stale, but not contradicting the current state.
  • Comment 2 (@aitrawog). Author status, not a sign-off; correctly identifies the BEHIND state and the three notes. No designated maintainers are configured, so no comment is a sign-off.
  • Comment 3 (@github-actions[bot], BLOCK). Its sole block (evidence at 9e4d9c5 while head was ad9fe80) is resolved by the re-pinned ff409ea evidence. Its notes are addressed: builder-box-candy fixed, roster/stage rebutted as schema-valid, output? stated as removed with git grep evidence, port-key convention clarified as a documented convention.
  • Comment 4 (@aitrawog). Author round-2 status; its RCA and fixes match the diff.

Non-blocking notes

  • #Builder output? removal. The dead-code evidence greps DESIGN.md and design/ at 9e4d9c5^, not the 110 live manifests. The removal is disclosed in the body's "Removed" list, but if a real manifest used builder.output, this is a breaking schema change; worth confirming manifest usage (or tracking the code follow-up) explicitly.
  • package_input?: alignment. The new field is one character longer than the surrounding aligned fields, so the block's spacing is slightly off. Cosmetic only.
  • _scopeWord / _busWord redundancy. *"system" | or(_scopeWord) and *"session" | or(_busWord) restate the default inside the word list; semantically harmless, but the "stated once" spirit is only approximately met.
  • #MachineOnly.port key convention. The map key is a #Name, not a checked reference to a provide: port; the body correctly discloses this as a convention with a follow-up rule, so the DESIGN.md wording ("keyed by the provide: port each one publishes") is aspirational rather than enforced.
  • D-VERB-1 content move. The dropped "application-specific checking uses http or command" clause is not visible in the diff; the body asserts D-VERB-6 carries it. Since the body frames D-VERB-1/D-VERB-6 as restatements of one rule, D-VERB-6 being unchanged is consistent with the clause surviving there, but the prose move is not independently verifiable from the supplied diff.

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.

View action run

@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS — round 3. The round-2 verdict on ff409ea was PASS, and nothing in it asked for a change. Its run still concluded failure.

RCA (infrastructure, not the diff).

Agent: design-unify
Assisted-by: Claude Code Claude Opus 5.5 (fully tested and validated)

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

I 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 13f37d49d99723f2c1873244b4dbfa1bfa775893, which is the head named in the PR metadata and the last commit in the list.

What checks out

Scope & counts. The diff contains exactly the 17 named files. Summing the per-file ±counts gives 223 additions / 130 deletions, matching the body's git diff --stat origin/main...HEAD | tail -1. Negative arithmetic: 6 added design/negative/*.yaml (builder-box-candy, builder-two-arms, package-input-os-package, package-input-unlisted, roster-bed-candy, stage-pipeline-candy) against the reported negatives: 84 checked (78 baseline). Self-tests: consistency +2 rows (parity-dangling-section, table-no-trailing-pipe) → 35; example +2 rows (protocol-negative-accepted, val-negative-schema-invalid) plus the re-targeted shape row → 21. Both match the reported 35/21. The body now says six new negatives and names the sixth (builder-two-arms, D-PLUG-2).

Schema (DESIGN.cue). The one-form package change is coherent: #Package stays a string, #ManagerLocator is its strict manager subset, #PackageInput: {[#ManagerLocator]: #ManagerInput} keys a manager's input by its locator, and #PackageSet: [...#Package] removes the string-or-struct union. The two new negatives target the two distinct failure modes (non-locator key → CUE field not allowed; valid-but-unlisted key → rules.cue D-VAL-13), and the D-VAL-13 loop in design/example/rules.cue correctly compares each package_input key against the package: list (empty listed → violation, including the absent-package case). #Timestamp, the #TextSet/#RepoSet/#TypeNameSet conversions, or(_scopeWord|_busWord|_formWord), #Optional reuse in gpu/mount, #BuilderFields/#BuilderAlt (one arm each), #KindNode source/os inlining, #Provide role-word sets, and the #RuntimeStep simplification are all internally consistent. Removed #Manager, #Role, _directive, #PackageEntry, #ManagerPackage, #SourceNode, #OsNode have no surviving references, and design/example/load.cue is correctly migrated to _directiveSet built from _directiveWord. _candyField gains package_input in step with #CandyBody.

Isolation control. design-examples.sh now requires every D-VAL negative to pass cue vet -c -d '#Document' before rules.cue judges it, with the val-negative-schema-invalid self-test row planting the defect in unresolved-from.yaml. builder-box-candy is fixed (manager: npm) so it fails only on its D-VAL-2 reference. This is the missing control the earlier BLOCK's note identified.

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 provide: example, package:/package_input: example, and port: examples are migrated to the new forms.

Scripts. Both shell diffs are comment-only except the D-VAL schema-validity check in design-examples.sh; no other executable logic changes.

Security. No secrets, no new input handling, no privilege change — design documents plus their check.

Comment disposition

  • Comment 1 (@github-actions[bot], PASS). Its count re-derivation was correct for its state, but its evidence predates the main sync; its three notes are addressed (body says "six"; vnc/spice → #ScreenCheck is a deliberate shared observation; the comment-only script keeps the _directiveWord=#Document pair). Stale, not contradicting current state.
  • Comment 2 (@aitrawog). Author status, not a sign-off; correctly identifies the BEHIND state and the three notes.
  • Comment 3 (@github-actions[bot], BLOCK). Its sole block (evidence at 9e4d9c5 while head was ad9fe80) is resolved by the re-pinned 13f37d4 evidence. Its notes are addressed: builder-box-candy fixed, roster/stage rebutted as schema-valid, output? stated as removed with git grep evidence, port-key convention disclosed as a documented convention.
  • Comment 4 (@aitrawog). Author round-2 status; its RCA and fixes match the diff.
  • Comment 5 (@github-actions[bot], PASS). Correct for ff409ea; the current head 13f37d4 is the same change set with evidence re-taken.
  • Comment 6 (@aitrawog). Author round-3 status; the auto-close timeout is an infrastructure note (pr-validator: a transient GitHub API timeout in the auto-close step fails a PASS run and skips Enable auto-merge .github#227), not a diff defect. No designated maintainers are configured, so no comment is a sign-off; the change stands on its own evidence.

Non-blocking notes

  • #Builder output? removal. The dead-code evidence greps DESIGN.md and design/ at 9e4d9c5^, not the 110 live manifests; the removal is disclosed in the body's "Removed" list, but if a real builder node used builder.output this is a breaking schema change worth tracking.
  • #MachineOnly.port key convention. The map key is a #Name, not a checked reference to a provide: port; the body correctly discloses this as a convention with a follow-up rule.
  • _scopeWord/_busWord redundancy. *"system" | or(_scopeWord) restates the default inside the word list; semantically harmless.
  • D-VERB-1 content move. The dropped "application-specific checking uses http or command" clause is not visible in the supplied diff; the body asserts D-VERB-6 (unchanged) carries it, which is consistent but not independently verifiable from the diff alone.

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.

View action run

@github-actions
github-actions Bot merged commit 94487a7 into main Oct 22, 2026
1 check passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 22, 2026
aitrawog added a commit that referenced this pull request Oct 22, 2026
`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)
@aitrawog
aitrawog deleted the feat/design-audit branch November 1, 2026 19:07
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.

DESIGN.*: audit — rules stated once, a uniform closed schema, and full check coverage

1 participant