Skip to content

docs(agents): name DESIGN.md as the contract this module projects (TODO 10.1) - #371

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/agents-design-subject
Nov 17, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/agents-design-subject

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

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 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 docs(agents): name DESIGN.md as the MUST's subject 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)

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

Copy link
Copy Markdown

Review — PASS

Head SHA: 46102f5d738fa99693f6221c34a257b75bfda63f (branch: feat/agents-design-subject)

Security screen: PASS — prose-only addition to spec/AGENTS.md; no secrets, no scope mismatch, no guardrail weakening, no injected directives (T1–T4 clean). Evaluated as a diff against main; it does not redefine this validator's rules.

Change class: Docs-only (1 file, AGENTS.md, +21/−0).

Checklist: All applicable rules PASS or NA.

  • A1 — body supplies Summary, How tested with pasted before/after grep, docs-only tier, full R0–R10+HC compliance, ## Filed issues: None, and a correct Assisted-by: footer. Diff accounting matches the section described.
  • A2/A3 — docs-only gate correctly applied (no bed claimed); documentation reviewed legal for an all-.md diff; not inflated.
  • R1/R5 — pasted grep output is internally consistent with the diff (line numbers 27–45 align; pre-change count 0 plausible for the 89-line base). No warnings/forbidden framing.
  • R2/R3/R4/R6/R7/R8/R9/R10 — NA or satisfied for prose; no code/schema/generated artifact touched, so cue-gen no-op claim holds.
  • CONC/HC — single commit, one-repo scope, no parking phrases; multi-repo row correctly scoped (umbrella landed in #1087; charly/sdk are teammate scopes).
  • ARCH — placement CORRECT: a projection/contract statement belongs in the owning spec module.
  • Comment intake — 0 comments on the thread; nothing to disposition.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 17, 2026 23:44
@github-actions
github-actions Bot merged commit 813dd5a into main Nov 17, 2026
4 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 17, 2026
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