Repository navigation
docs(agents): name DESIGN.md as the contract this module projects (TODO 10.1) - #371
Merged
Merged
Conversation
…DO 10.1) Row 10.1: none of the four rulebooks mentions `DESIGN.md`. This is `spec`'s — and it is the one that can state the projection rule authoritatively, because this repo contains `schema/*.cue`, `cue_types_gen.go`, and the `cue-gen` task that produces one from the other. ## Summary `AGENTS.md` gains a section between the intro and R0: **`DESIGN.md` is the contract this module projects.** It states the obligation the other three rulebooks can only point at: - `DESIGN.md` is the MUST's **subject** — the umbrella says how to work, DESIGN says what must be true when the work is done. Read it before adding a field, a shape or a mechanism. - conformance to the rulebook with a violation of `DESIGN.md` is not a pass; - a disagreement between the two is a defect in one of them, fixed in the open; - **`schema/*.cue` IS the machine-readable projection of `DESIGN.md`, and `DESIGN.cue` is its schema** — where prose and CUE differ, the CUE is what the tooling enforces and the difference is a defect to resolve, never a licence to pick whichever is convenient; - the spec-specific half nobody else can write: a field in `schema/*.cue` and not in `DESIGN.md` is **either** an undocumented projection **or** a field to delete, and **which one must be decided in `DESIGN.md`, not in the PR that needs the field.** That is the shape of every row the census marked stale with "the premise no longer describes the tree". The real grep, run on the committed tree (not transcribed): ``` $ grep -n 'DESIGN' AGENTS.md 27:## `DESIGN.md` is the contract this module projects 29:[`DESIGN.md`](https://github.com/opencharly/opencharly/blob/main/DESIGN.md) is **the MUST's 30:subject**: the umbrella `AGENTS.md` says how to work; `DESIGN.md` says what must be true when the 35:- **Conformance to the rulebook with a violation of `DESIGN.md` is not a pass.** 38:- **`schema/*.cue` IS the machine-readable projection of `DESIGN.md`, and `DESIGN.cue` is its 42: `schema/*.cue` and not in `DESIGN.md` is **either** a projection that has not been documented 43: **or** a field that should be deleted — and **which one it is must be decided in `DESIGN.md`, not 45: exactly this shape: the schema moved and the prose did not. Add the `DESIGN.md` row for a new ``` Before the change the same grep was empty, as measured at `origin/main`: ``` $ git -C spec grep -c -F DESIGN origin/main -- AGENTS.md 0 # rc=1, no output: zero matches in 89 lines ``` ## How tested Docs-only: one file changed, `AGENTS.md`, +21 lines, no code, no schema, no generated artifact. ``` $ git diff --stat AGENTS.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) ``` The change cannot alter any generated output: `schema/*.cue` is untouched, so `charly task cue-gen` is a no-op by construction — its reproducibility check, `TestGenReproducible`, reads the schema tree, not this file. The placement was decided by reading the file's own section list: ``` $ grep -n '^#' AGENTS.md 1:# AGENTS.md — opencharly/spec 27:## `DESIGN.md` is the contract this module projects 55:## Load these skills first (R0) ``` No test can fail for a prose addition, and claiming one would be false; the proof this diff can carry is the before/after grep pasted above, which is why both are here. ## Rulebook compliance - **R0** — the dispatcher's rows for this change (git workflow, docs, `spec/schema/*.cue`) were loaded before the first action; the paragraph itself is *about* the schema contract those rows govern. - **R1** — no anomaly; no finding to fix or file. The one doc-vs-reality divergence this PR is about (three rulebooks silent on `DESIGN.md`) is the row itself, closed here for `spec`. - **R2** — the paragraph is stated once, here, as the repo that owns the projection; the other rulebooks point at it rather than restating it. - **R4** — product before prose: this PR changes no product, and the contract it describes (`schema/*.cue` ↔ `DESIGN.md`) already holds; the rulebook was the missing side. - **R5** — nothing legacy removed; nothing added that a later PR must delete. - **R3** — no workaround: one paragraph of prose, no suppression, no retry, no fixture. - **R6** — work in a session worktree branched off fresh `origin/main` (`ff9ec6c`); `git status` clean before the edit; submodule edited through its own worktree, never in the umbrella. - **R7/R10** — docs-only: no runtime path changed, so no bed applies and none is claimed. The `grep -n` above is the changed surface executed. - **R8** — no live service is involved; nothing is mocked and nothing is skipped. - **R9** — no binary is built or used by this change; it moves no code. - **HC** — one row, one repo, one paragraph; no sibling rulebook is touched here (the umbrella's landed in opencharly/opencharly#1087, `charly` and `sdk` are teammate scopes). ## Change classification **Docs-only.** No authored wire key, no schema, no generated file, no runtime behaviour, and no consumer of this repo changes behaviour. Nothing breaks for any consumer of `spec`; rollback is a revert of this one file, and no version machinery is involved because no `schema/*.cue` byte moved. ## Filed issues None. The row this closes is `TODO.md` 10.1; the census that measured it (`grep -c -F DESIGN` on each rulebook) is the evidence in the Summary above, and no separate issue is needed for a paragraph that lands in one PR. *Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed)*
Review — PASSHead SHA: Security screen: PASS — prose-only addition to Change class: Docs-only (1 file, Checklist: All applicable rules PASS or NA.
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
docs(agents): name DESIGN.md as the contract this module projects (TODO 10.1)
Row 10.1: none of the four rulebooks mentions
DESIGN.md. This isspec's — and it is the onethat can state the projection rule authoritatively, because this repo contains
schema/*.cue,cue_types_gen.go, and thecue-gentask that produces one from the other.Summary
AGENTS.mdgains a section between the intro and R0:DESIGN.mdis the contract this moduleprojects. It states the obligation the other three rulebooks can only point at:
DESIGN.mdis the MUST's subject — the umbrella says how to work, DESIGN says what must betrue when the work is done. Read it before adding a field, a shape or a mechanism.
DESIGN.mdis not a pass;schema/*.cueIS the machine-readable projection ofDESIGN.md, andDESIGN.cueis itsschema — where prose and CUE differ, the CUE is what the tooling enforces and the difference is
a defect to resolve, never a licence to pick whichever is convenient;
schema/*.cueand not inDESIGN.mdiseither an undocumented projection or a field to delete, and which one must be decided
in
DESIGN.md, not in the PR that needs the field. That is the shape of every row the censusmarked stale with "the premise no longer describes the tree".
The real grep, run on the committed tree (not transcribed):
Before the change the same grep was empty, as measured at
origin/main:How tested
Docs-only: one file changed,
AGENTS.md, +21 lines, no code, no schema, no generated artifact.The change cannot alter any generated output:
schema/*.cueis untouched, socharly task cue-genis a no-op by construction — its reproducibility check,
TestGenReproducible, reads the schema tree,not this file. The placement was decided by reading the file's own section list:
No test can fail for a prose addition, and claiming one would be false; the proof this diff can
carry is the before/after grep pasted above, which is why both are here.
Rulebook compliance
spec/schema/*.cue) wereloaded before the first action; the paragraph itself is about the schema contract those rows
govern.
about (three rulebooks silent on
DESIGN.md) is the row itself, closed here forspec.rulebooks point at it rather than restating it.
(
schema/*.cue↔DESIGN.md) already holds; the rulebook was the missing side.origin/main(ff9ec6c);git statusclean before the edit; submodule edited through its own worktree, never in the umbrella.
grep -nabove is the changed surface executed.landed in docs(agents): name DESIGN.md as the MUST's subject opencharly#1087,
charlyandsdkare teammate scopes).Change classification
Docs-only. No authored wire key, no schema, no generated file, no runtime behaviour, and no
consumer of this repo changes behaviour. Nothing breaks for any consumer of
spec; rollback is arevert of this one file, and no version machinery is involved because no
schema/*.cuebyte moved.Filed issues
None. The row this closes is
TODO.md10.1; the census that measured it (grep -c -F DESIGNoneach rulebook) is the evidence in the Summary above, and no separate issue is needed for a
paragraph that lands in one PR.
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed)