Skip to content

docs(design): add normative DESIGN.md + DESIGN.cue, TODO.md and the executable design check - #347

Closed
aitrawog wants to merge 3 commits into
mainfrom
feat/design-md
Closed

aitrawog wants to merge 3 commits into
mainfrom
feat/design-md

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

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.md is the target architecture of charly, spec, sdk, every plugin and every candy repository. Its sections:
    • laws and a closed term registry (§1–§2);
    • the CUE schema patterns S1–S9 (§3.1);
    • parsing, linking and validation, with tag dispatch D-LOAD-5 (§4–§5);
    • the complete core↔plugin protocol: method table, handshake, calls, host service, conformance (§8);
    • the authoring model for candies, boxes, sources, os and deployments, with intention-based nesting (Part III);
    • one ownership table (§7.1);
    • Appendix A, which explains every script of the design check.
  • DESIGN.cue is 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.md gives every migration step from today's code. Each step has its current state (evidence re-verified at origin/main on 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↔.cue tables, word lists, @ref↔rule lists, rule tags, IDs, § and S<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 f89f1bc in the session worktree .worktrees/design-md/opencharly, branched from origin/main e042e80, with a clean tree (git status --short printed nothing). git diff --stat origin/main...HEAD -- AGENTS.md README.md charly.yml prints nothing: no existing file is changed.

bash scripts/design-check.sh, output with the selftest <name>: caught lines filtered out by grep -v ': caught$':


== 1/5 toolchain
cue version v0.17.1

== 2/5 DESIGN.md ↔ DESIGN.cue
consistency: tables, word lists, rule tags, ids and § references, vocabulary — all agree

== 3/5 examples and negative cases
examples: 7 validated
negatives: 63 checked

== 4/5 self-test of the consistency check
selftest design-consistency.sh: 23 planted defects

== 5/5 self-test of the example check
selftest design-examples.sh: 18 planted defects

design-check: all controls pass

./charly/bin/charly task verify (the worktree-local binary, see R9), filtered by grep -E '^\s+\[(pass|fail)\]' plus the summary line:

task verify: 9 step(s), 0 failed
[pass] check — policy B — every distro-* gitlink equals charly's own box/* gitlink
[pass] check — every submodule is clean and checked out at its recorded gitlink, and its branch equals the remote default
[pass] check — the submodule-cleanliness step above — uninitialized paths are a NOTICE, real defects still FAIL (fixtures)
[pass] check — the opencode gate plugin contract (the check-opencode-plugin gate the former verify-pins.sh ran)
[pass] check — the PR-watch plugin's pure logic + its shipped (uncommented) SDK delivery primitives
[pass] check — the agent-progress monitor+control plugin — static (no .sh), the classifier (RCA regression), and a read-only store
[pass] check — the session tracker plugin — the durable ledger (rule 11 invariant), the three tools, and the real-binary load
[pass] check — every harness-config surface parses and is wired (rule 8)
[pass] check — the pi gate extension fails CLOSED, uses the rule-9 worktree path, and wires both gate scripts

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:

  1. Schema-pattern references. TODO.md said S1–S8 where §3.1 defines S1–S9; it is fixed. The root cause was hand-written counts and ranges with no control, so design-consistency.sh now checks that every S<n> in DESIGN.md, DESIGN.cue and TODO.md names a §3.1 pattern, and that every range S1–S<n> ends at the last one (self-test rows pattern-range and pattern-unknown). §3.1 no longer restates the pattern count.
  2. Appendix A.4 no longer enumerates the marked tables; the markers themselves are the list.
  3. Appendix A.5 no longer claims the check catches an unused declared plugin. No control implements that; D-PLUG-6 is core's load-time rule, as §5.4 says.
  4. Scope. The operator ruled changes to AGENTS.md and README.md out of scope for now. AGENTS.md, README.md and the charly.yml task entity that backed their maintenance lists are restored to origin/main, and Appendix A.1 no longer cites the AGENTS.md rule this PR had proposed.

Rulebook compliance

Rule How
1 never edit inside a submodule No submodule is edited and no gitlink changes. The charly submodule was checked out in the worktree at its gitlink only to build the worktree binary; git -C charly status --short is empty.
2 git op rule All git ran as git -C <absolute path> from the session worktree. Nothing was run implicitly across a submodule boundary.
3 no nested go.work None added. The diff adds no Go code.
4 session worktree .worktrees/design-md/opencharly on feat/design-md, from fresh origin/main e042e80. The shared checkout is untouched.
5 pin discipline No pin changes.
6 policy B Unchanged. task policy-b passed in the pre-commit hook and in task verify.
7 subrepo rulebooks N/A: no subrepo is changed.
8 harness config Unchanged. The rule-8 parity step of task verify passed.
9 session ownership, issue first The org was searched (gh search issues/prs --owner opencharly "DESIGN.md": none). This session filed and self-assigned #346. Other sessions' untracked files are untouched.
10 read live state before update pushes Before this push: the PR's comments, the two earlier BLOCK verdicts and the INCONCLUSIVE notice were read in full, and #346 has no comments. Every finding of the latest verdict is addressed above.
11 todo ledger N/A: no subagent is running and nothing else is in flight; the state of this one change lives in the session plan.
R0 skills first Loaded /charly-internals:git-workflow (with references/pre-validator-self-audit.md), /charly-internals:root-cause-analyzer and /charly-internals:skills before any git or PR action.
R1 RCA Two rounds of cold, first-principles review, run with CUE 0.17.1: about 70 findings, then 28. Each round's findings were grouped into root causes (5, then 7) and fixed as controls rather than per finding. Each validator BLOCK was traced to its mechanism and closed with a control and a self-test row: unchecked claims and lists in prose → the 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, and task harness was found folded into verify by #341.
R2 finish the whole cutover This change is complete in itself: the design, its schema and its check. TODO.md is not deferred work of this change. It is the plan's separate deliverable describing the later migrations, each to be its own issue and PR. No code is left half-migrated.
R3 no duplication One schema copy. Each rule is stated once and cited elsewhere; the §5.4 "Design check" column is the single list of rules.cue rules. Examples are extracted at run time and never committed as copies. One self-test runner serves both checks.
R4 no workarounds The toolchain is pinned with no fallback version. The hook's -F <file> requirement was followed, not bypassed.
R5 delete legacy N/A: nothing is replaced. TODO.md lists the removals of the later changes.
R6 git safety No force-push, no hook bypass, no direct push to main.
R7 prove the gate task verify and the design check ran on the final tree of this head. Output is pasted above.
R8 preserve emitted artifacts The artifacts this change emits are the schema and its examples, validated at their real boundary: every example and negative case through cue vet against DESIGN.cue (stage 3 above).
R9 binary equals source The binary is built with charly/scripts/bootstrap-charly.sh and invoked through the worktree's charly/bin. It reports version 2026.276.1041, the CalVer of the pinned charly commit fe4b00b. The gitlink and the checkout are both fe4b00b44b469a7d947a48a85ce206bf37b27310, and the checkout is clean. It is never installed as a shared binary.
R10 fresh proof Both runs above happened on the final head, with a clean tree.
live or skip The design check runs CUE locally and crosses no live-service boundary. design-cue.sh downloads the real release archive and verifies its published sha256.

Change classification

  • Change class: documentation plus tooling. The diff adds .md, .cue, .tsv and .yaml design files and five bash scripts, so it is not documentation-only. It changes no existing file.
  • Verification gate: bash scripts/design-check.sh and ./charly/bin/charly task verify on the final tree.
  • Attribution tier: fully tested and validated. task verify passed 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)

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

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: ab65dd199ce36b3e00ed81a476f91cee9e66eb6d (branch: feat/design-md)

Change class: documentation + repo tooling — .md/.cue/.tsv design files, five bash scripts under scripts/ + design/, one charly.yml task entity, two maintenance-list edits. No Go/product code, no submodule/gitlink or pin change. Not docs-only, so the tooling gate (task design-check, task verify) is the right gate.

Comment thread: empty — no comments to disposition.

Blocks

  1. B5/R1 — DESIGN.md Appendix A.5 and design/example/load.cue document an alongside-node dispatch the code does not perform. §A.5 stage 1 states the loader's view unifies “each inner or alongside node of a kind body with the one entry of that body's nesting table its kind key selects”, and design/example/load.cue's header states “Dispatch reaches top-level nodes, their steps, and the inner and alongside nodes of their kind bodies”. But the dispatch comprehension only walks the kind body — for n, v in _node for k, b in v if _innerTable[k] != _|_ for name, x in b … (_inner) — so a node written beside a pod/vm kind key (#PodNode's [#InnerNodeName]: or([… #AlongsideAlt …])) is never dispatched, is never reported as the documented “exactly one of …”, and is covered by no design/negative/*.yaml case and no design/*/selftest.tsv row (no example in DESIGN.md exercises an alongside node either). Either implement alongside dispatch (with a negative case and a self-test row) or correct §A.5 and the load.cue comment.

  2. B5/B15 — the design check is made normative but is not wired to run on every change, and half of the PR's own adoption item is left in TODO.md. DESIGN.md §A.1 claims “it runs on every change and must pass”; AGENTS.md rule 12 says a change “lands only with ./charly/bin/charly task design-check passing”. But the only gate that runs on every change is the git hook's pre-commit gate, whose steps the body pastes (task policy-b, task self-test, check-opencode-plugin, check-pr-watch, check-pi-gates) and which does not include design-check; the diff adds no hook/CI wiring. TODO.md 0.5 — the adoption item for this very change — still lists the second half (“… and run it on every change to these files (Appendix A)”) as an open precondition. Wire the check (hook or CI) or amend §A.1/rule 12 so they do not assert enforcement that does not exist.

  3. A1 — the rulebook-compliance section is incomplete. The body's table answers AGENTS.md rules 1–12 and review rules R0, R1, R3–R7, R10, but R2, R8 and R9 are absent — neither a one-line HOW nor an N/A — <reason> row. R2 is applicable (the PR defers the entire migration to TODO.md; nothing in the section says how that avoids the forbidden pre-existing/out-of-scope split), R9 is applicable (the change was exercised with a built binary, but the section never asserts the rebuilt binary matches source), and R8 needs at least an N/A row. Add the missing rows.

  4. B5/R1 — scripts/design-examples.sh misstates what rules.cue checks. Its stage-3 header comment reads “design/example/rules.cue: an empty violation list (D-VAL-1, D-VAL-2, D-VAL-4)”, but rules.cue also enforces D-VAL-8, and DESIGN.md §A.5 and §5.4's “Design check” column name “D-VAL-1, D-VAL-2, D-VAL-4 and D-VAL-8”. Make the script comment, rules.cue and Appendix A state the same set.

Verdict: BLOCK


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

View action run

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

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

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.

  • class: provider unanswered (the provider returned no response headers within the attempt timeout)
  • review exit code: 1
  • in-job retries: none — the gate REPORTS the class instead of papering over it (R4)

Root cause. The ENGINE sent no generation bound (reasoning_effort / max_tokens), so a reasoning model generated megabytes of reasoning before answering (measured: 1.75 MB / 786 s on the real context). THIS WORKFLOW then converted that into a hard failure by handing the engine a hardcoded 5-minute whole-request AI_REVIEW_ATTEMPT_TIMEOUT (the engine streams, so a whole-generation deadline is the wrong bound) — the cap killed the generation mid-flight and the per-turn retry re-sent the SAME request. The primary cause is the unbounded generation (owner: the engine, opencharly/plugin-review#10); the hardcoded cap is the workflow-side amplifier this PR removes.

Durable remedy.

  1. bound the generation in the engine (refactor(review): use the shared sdk/llmkit client (one OpenAI path) plugin-review#10); pass AI_REVIEW_STREAM_IDLE_TIMEOUT (the correct bound for a streaming engine) and leave AI_REVIEW_ATTEMPT_TIMEOUT UNSET so no whole-generation cap cuts a progressing stream;
  2. if this persists, raise the idle bound or the tool-result cap (AI_REVIEW_TOOL_RESULT_MAX_BYTES) rather than capping total generation time.

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).

@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: dd1ddf487d873f3e17fd5515afa9574da346f341 (branch: feat/design-md)

Change class: documentation + repo tooling — .md/.cue/.tsv/.yaml design files, five scripts/design-*.sh, design/ (load/rules/negative/selftest), one charly.yml task entity, two maintenance-list edits. No Go/product code, no submodule/gitlink, no pin change. Not docs-only, so the tooling gate (task design-check, task verify) is the right gate and both are pasted. Two commits (ab65dd1 + dd1ddf4): the second completes the same scope (alongside dispatch, R2/R8/R9 rows, rules-set wording) — no partial/split work pattern; the merge squash will collapse them.

Comment intake (1 comment considered). Comment 5975882744 by @github-actions[bot] (BLOCK on ab65dd1) — stale-superseded on all four blocks, re-derived against the current diff: (1) design/example/load.cue now dispatches alongside nodes through #AlongsideAlt (_placed), with negatives alongside-candy/alongside-local-no-host and selftest row alongside-dispatch; (2) DESIGN.md §A.1 and AGENTS.md rule 12 now state "run on demand — there is no CI gate", and TODO.md 0.5 is removed; (3) the R2, R8 and R9 rows are present in the body; (4) design-examples.sh's stage-3 comment now cites the §5.4 "Design check" column instead of enumerating D-VAL-1, D-VAL-2, D-VAL-4. No surviving claim.

Blocks

  1. B5/R1 — TODO.md contradicts DESIGN.md/D-PAT-1 on the schema-pattern set. TODO.md §1 ("the schema patterns are S1–S8 of §3.1") and TODO.md item 2.16 ("Rewrite every schema with S1–S8") say eight patterns, while DESIGN.md §3.1 defines nine ("these nine CUE patterns", table rows S1…S9) and D-PAT-1 says "Every schema uses only S1–S9"; DESIGN.cue's header also lists S1…S9, and the body's Summary says "nine CUE schema patterns S1–S9 (§3.1)". Two statements of one rule disagree inside the PR — a divergence DESIGN.md's own header calls a defect — and design-consistency.sh cannot catch it (check 4 covers D-… IDs, check 5 covers § references and vocabulary; nothing validates S<n> references). Fix TODO.md to S1–S9, and add a control (with a design/consistency/selftest.tsv row) that every S<n> reference in DESIGN.md/DESIGN.cue/TODO.md is a pattern §3.1 defines.

  2. B5/R1 — DESIGN.md §A.4 check 1 misstates the check's own coverage. It says "The marked tables are: roles and methods (§8.2), host methods (§8.6), kinds (§10), the candy body (§11.1), the os body (§11.4), deployment and machine-only fields (§12.1), and verbs (§20)" — seven tables — but DESIGN.md carries nine <!-- schema: … --> markers: the §15 #Need and #Provide tables are marked and are processed by design-consistency.sh check 1. Correct the enumeration (or state explicitly that it is not exhaustive).

  3. B5 — DESIGN.md §A.5 asserts a catch no control implements. "…so a name defined twice across examples, or a declared plugin no example uses, is caught as in a real project": the duplicate-name half is real (selftest row shared-duplicate), but no control implements the unused-declared-plugin rule — rules.cue emits only D-VAL-1/2/4/8, and design-consistency.sh reads DESIGN.md/DESIGN.cue, never the examples' plugin usage. Either drop that clause or add the control (with a self-test row).

Verdict: BLOCK


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

View action run

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

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

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.

  • class: provider unanswered (the provider returned no response headers within the attempt timeout)
  • review exit code: 1
  • in-job retries: none — the gate REPORTS the class instead of papering over it (R4)

Root cause. The ENGINE sent no generation bound (reasoning_effort / max_tokens), so a reasoning model generated megabytes of reasoning before answering (measured: 1.75 MB / 786 s on the real context). THIS WORKFLOW then converted that into a hard failure by handing the engine a hardcoded 5-minute whole-request AI_REVIEW_ATTEMPT_TIMEOUT (the engine streams, so a whole-generation deadline is the wrong bound) — the cap killed the generation mid-flight and the per-turn retry re-sent the SAME request. The primary cause is the unbounded generation (owner: the engine, opencharly/plugin-review#10); the hardcoded cap is the workflow-side amplifier this PR removes.

Durable remedy.

  1. bound the generation in the engine (refactor(review): use the shared sdk/llmkit client (one OpenAI path) plugin-review#10); pass AI_REVIEW_STREAM_IDLE_TIMEOUT (the correct bound for a streaming engine) and leave AI_REVIEW_ATTEMPT_TIMEOUT UNSET so no whole-generation cap cuts a progressing stream;
  2. if this persists, raise the idle bound or the tool-result cap (AI_REVIEW_TOOL_RESULT_MAX_BYTES) rather than capping total generation time.

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).

@aitrawog

aitrawog commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

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 (f89f1bc).

This thread is no longer acted on; please follow #348.

Agent: design-md · session 2e90ca1f-55b3-4792-b6a5-e37d6ed1a1a8
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (fully tested and validated)

github-actions Bot pushed a commit that referenced this pull request Oct 4, 2026
…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]>
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.md + DESIGN.cue: normative architecture, schema and executable design check (+ TODO.md migration plan)

2 participants