Skip to content

docs(agents): name DESIGN.md as the MUST's subject (TODO 10.1) - #555

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

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

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

TODO row 10.1 for opencharly/sdk: none of the four rulebooks named DESIGN.md, and the census measured this one at 0 (git -C sdk grep -c -F DESIGN origin/main -- AGENTS.md → no output, exit 1). The umbrella's own copy is fixed (opencharly/opencharly#1087); this is the sdk's, in the SDK's own terms because its version of the paragraph is the most concrete of the four.

sdk/AGENTS.md now says, in one new paragraph after the intro that describes what the SDK is and that it consumes the contract module:

  • DESIGN.md is the MUST's subject — the umbrella's AGENTS.md says how to work; DESIGN.md says what must be true when the work is done, and it is to be read before designing anything.
  • Conformance to the rulebook with a violation of DESIGN.md is not a pass — a rule in the rulebook and a requirement in DESIGN.md are two halves of one obligation.
  • A disagreement is a defect in one of them — fix the one that is wrong, in the open, and say so.
  • spec/schema/*.cue is DESIGN.md's machine-readable projection and DESIGN.cue is that projection's schema — where the prose and the 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 SDK-specific line: every package here is a RENDERER of a shape DESIGN.md owns — deploykit/ renders InstallPlan steps, buildkit/ renders a Containerfile, loaderkit/ parses the unified config, vmshared/ carries the VM types — so a hand-written shape in the SDK that DESIGN.md does not define is a defect, not an implementation detail, and R5's cutover rule means it goes when the DESIGN shape lands, not later.

Docs only: one prose file, +20 lines. No Go, no schema, no pin, no generated artifact, no behaviour.

How tested

Everything below is the terminal's own output on the committed tree (HEAD 2b99f45), pasted, not transcribed.

The change itself, and the premise it answers:

$ grep -n 'DESIGN' AGENTS.md
12:The MUST's subject is **`DESIGN.md`** in the umbrella,
13:[`opencharly/opencharly`](https://github.com/opencharly/opencharly/blob/main/DESIGN.md).
14:The umbrella's `AGENTS.md` says how to work; DESIGN.md says what must be true when
17:the rulebook with a violation of DESIGN.md as **not a pass**: a rule in the rulebook
18:and a requirement in DESIGN.md are two halves of one obligation, and when the two
20:in the open, and say so. `spec/schema/*.cue` is DESIGN.md's machine-readable
21:projection and `DESIGN.cue` is that projection's schema: where the prose and the CUE
25:**Every package here is a RENDERER of a shape DESIGN.md owns.** `deploykit/` renders
28:`agentkit/` the same way). A hand-written shape in the SDK that DESIGN.md does not
30:goes when the DESIGN shape lands, not later.
$ wc -l AGENTS.md
91 AGENTS.md

Before the change the same question answered nothing:

$ git -C sdk grep -c -F DESIGN origin/main -- AGENTS.md
$ echo $?
1

(no output, exit 1 — zero matching lines; the control that the rulebook was silent.)

This repo's class gate is its Go module (it ships no image and declares no candy plan that executes a step), so a docs-only diff must leave that module exactly as green as it was:

$ gofmt -l .
clean (empty)
$ go build ./...
build_rc=0
$ go vet ./...
vet_rc=0
$ go test ./...
ok  	github.com/opencharly/sdk	0.590s
ok  	github.com/opencharly/sdk/agentkit	0.557s
ok  	github.com/opencharly/sdk/artifactkit	0.169s
ok  	github.com/opencharly/sdk/auditkit	0.051s
ok  	github.com/opencharly/sdk/buildcache	1.357s
ok  	github.com/opencharly/sdk/buildkit	0.105s
ok  	github.com/opencharly/sdk/buildkitdrive	0.154s
ok  	github.com/opencharly/sdk/candywalk	0.153s
ok  	github.com/opencharly/sdk/charlylib	0.049s
ok  	github.com/opencharly/sdk/checkkit	0.012s
ok  	github.com/opencharly/sdk/cmd/charly-lib-gen	0.034s
ok  	github.com/opencharly/sdk/deploykit	13.079s
ok  	github.com/opencharly/sdk/enginekit	0.008s
?   	github.com/opencharly/sdk/internal/spectest	[no test files]
ok  	github.com/opencharly/sdk/kit	12.862s
ok  	github.com/opencharly/sdk/llmkit	2.468s
ok  	github.com/opencharly/sdk/loaderkit	4.258s
ok  	github.com/opencharly/sdk/packagekit	0.081s
ok  	github.com/opencharly/sdk/rawbody	0.007s
ok  	github.com/opencharly/sdk/storekit	0.294s
ok  	github.com/opencharly/sdk/vmshared	0.128s
ok  	github.com/opencharly/sdk/workflowkit	0.007s
test_rc=0

No R10 bed: a prose file has no runtime path to drive, and docs-only changes carry the documentation reviewed tier, whose proof is exactly the above.

Rulebook compliance

  • R0 — loaded /charly-internals:git-workflow and /charly-build:docs before the first git command, and read the subrepo rulebook plus the umbrella's new DESIGN.md paragraph the edit mirrors.
  • R1 — the premise was measured before editing (grep -c → exit 1, i.e. 0) and the result measured after (grep -n → the ten lines pasted above); no failure or warning arose, and the Go gates are zero-warning (gofmt -l empty, vet clean).
  • R2 — one paragraph, in the one rulebook file; it points at the umbrella for the rule rather than restating Part I, matching this file's closing "do not restate its rules here".
  • R3 — nothing to work around: a docs edit with no build, no retry, no manual step.
  • R4 — no documented command changes; this is agent guidance, and no page routes around a defect.
  • R5 — nothing legacy kept: no old wording of the intro survives and no second copy of the paragraph exists in this repo.
  • R6 — git status was read first (one modified file, AGENTS.md); the branch is a fresh worktree off origin/main (f3b1756) created inside the submodule's git dir, never an in-place edit; no force-push, no bypass.
  • R7 — the coverage is the premise/result pair above: the same command answers 0 before and names ten lines after, so the check fails without the change. There is no runtime path to execute.
  • R8 — no live service is crossed and nothing is mocked; the diff is prose.
  • R9 — no binary is built or shipped by this repo; the Go module's own gates were run instead and are pasted.
  • R10 — no disposable: true target exists in sdk (its charly.yml is a concept candy whose plan is a no-op), so there is no bed to run; the wave's grade for a rulebook change is its linters plus a reviewer reading the paragraph.

Change classification

Kind: documentation (a rulebook edit) — the documentation reviewed tier. No exported surface, schema, pin or generated artifact changes, so nothing breaks for this repo's consumers and no migration is owed; rollback is reverting this one commit.

Files changed

file what changed
AGENTS.md +20 lines: the DESIGN.md paragraph (the MUST's subject, the not-a-pass rule, the disagreement-is-a-defect rule, the CUE-projection rule, and the SDK-specific renderer line)

Agent: audit-parse
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed)

None of the four rulebooks named DESIGN.md. The umbrella's copy is fixed
(opencharly/opencharly#1087); this is the sdk's, and the census measured it at 0
(`git -C sdk grep -c -F DESIGN origin/main -- AGENTS.md` → no output, exit 1).

sdk/AGENTS.md now carries the paragraph the other three are being taught:

- DESIGN.md is the MUST's SUBJECT: the rulebook says how to work, DESIGN.md says what
  must be true when the work is done.
- Conformance to the rulebook with a violation of DESIGN.md is NOT a pass — a rule in
  the rulebook and a requirement in DESIGN.md are two halves of one obligation.
- A disagreement between them is a DEFECT in one of them: fix the one that is wrong, in
  the open, and say so.
- `spec/schema/*.cue` is DESIGN.md's machine-readable projection and `DESIGN.cue` is
  that projection's schema; where the prose and the CUE differ, the CUE is what the
  tooling enforces and the difference is a defect to resolve.
- The SDK-specific line, which is the reason this repo's copy is the most concrete of
  the four: EVERY package here is a RENDERER of a shape DESIGN.md owns — `deploykit/`
  renders InstallPlan steps, `buildkit/` renders a Containerfile, `loaderkit/` parses
  the unified config, `vmshared/` carries the VM types — so a hand-written shape in the
  SDK that DESIGN.md does not define is a defect, not an implementation detail, and
  R5's cutover rule means it goes when the DESIGN shape lands, not later.

Docs only: one prose file. No Go, no schema, no pin, no generated artifact moves.

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed)
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 2b99f45be20414130f4ac0aafd989e307b6936a0 (branch: feat/agents-design-md)

Security screen: PASS (additive prose to AGENTS.md; no secrets, no guardrail weakening, no injection, no supply-chain change).
Checklist: All applicable rules PASS or NA. Change class = documentation (single AGENTS.md, +20 prose lines); documentation reviewed tier is legal for a whole-docs diff; premise/result grep, gofmt/build/vet/test output is internally consistent with the diff and module package set; no bed required for docs-only (R10 NA), placement NA (no code), comments: none 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:46
@github-actions
github-actions Bot merged commit 9a6fe07 into main Nov 17, 2026
8 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