You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8e01fdb
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: repos/constitution/AGENTS.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ Before making changes:
27
27
28
28
-**`CONSTITUTION.md` (Resident):** the entire maker corpus — the Application section plus Articles I–V — loaded in every session. There is no retrieved half and no on-demand trigger: law that is not in the window is not law. Residency delivers obligation, not enforcement; the machinery of judgment lives outside the maker's reach.
29
29
-**`ENFORCEMENT.md` (Non-resident):** the instrument owner's doctrine — gate design, instrument-change discipline, enrollment law. Read by whoever builds or changes a gate, never `@`-imported into a maker's context. Consumer repos route to it from the leaves that own enforcement surfaces (lint plugins, guard scripts, CI workflows, rules directories, advisor rosters): one line — "You are editing an enforcement instrument. Read the vendored `ENFORCEMENT.md` before this lands." A routing line added anywhere else is the defect: the maker must not meet instrument doctrine while doing graded work.
30
+
-**`docs/solutions/`:** past problems and their fixes, organized by category with YAML frontmatter (`module`, `tags`, `problem_type`); `CONCEPTS.md` at repo root holds shared domain vocabulary.
Copy file name to clipboardExpand all lines: repos/constitution/CONCEPTS.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,14 @@ Shared domain vocabulary for this project — entities, named processes, and sta
8
8
The complete set of law documents the repository ships, treated as one unit. The corpus is what the gate certifies and what agents are bound by — not any single file's contents. Shrinking the measured portion of the corpus is a defect, not an optimization.
9
9
10
10
### Rule
11
-
One fenced YAML block inside the constitution carrying an id of the form `CONST-<family><number>` — the family letter is one of G, E, P, D, B, T, N, W, S (governance, enforcement, purity, domain modelling, boundary, testing, naming & structure, work discipline, subtraction). A rule is the atomic unit of law: it is minted with a fresh number, amended in place, or vacated. Minting takes the next free number in the family — a minting law enforced by review, not by the gate. A vacated number is never reused for new law.
11
+
One fenced YAML block inside the constitution carrying an id of the form `CONST-<family><number>` — the family letter is one of G, E, P, D, B, T, N, W, S (governance, enforcement, purity, domain modelling, boundary, testing, naming & structure, work discipline, subtraction). A rule is the atomic unit of law: it is minted with a fresh number, amended in place, or vacated. Amending in place keeps the obligation and the title; a changed obligation or title vacates the number and, if the law survives, mints a new one. Minting takes the next free number in the family — a minting law enforced by review, not by the gate. A vacated number is never reused for new law.
12
12
13
13
14
14
### Vacuous pass
15
15
A gate exiting green because it measured less than it claims — a missing input, an input that contributes nothing, a comparison arm that reads only part of the history. The output shape is identical to a healthy run, so the green actively certifies the absence of defects it did not look for. The doctrine this repo's gate is built on: assert the corpus, not only the contents; a gate that cannot fail is a certificate, not enforcement.
16
16
17
17
### Residency
18
-
The delivery contract for the maker's law: whatever must bind the agent's choices is always present in its context window, with no retrieval step. The counter-design — a thin resident pointer plus retrieved full text — forces presence at fetch time but never conformance at use time. Residency delivers obligation, not enforcement: the window tells the maker what is required, and whether the requirement held is decided afterward by instruments the maker cannot edit (ENFORCEMENT.md). What cannot fit residency is reference material and instrument doctrine, not law.
18
+
The delivery contract for the maker's law: whatever must bind the agent's choices is always present in its context window, with no retrieval step. The counter-design — a thin resident pointer plus retrieved full text — forces presence at fetch time but never conformance at use time. Residency delivers obligation, not enforcement: the window tells the maker what is required, and whether the requirement held is decided afterward by instruments the maker cannot edit. What cannot fit residency is reference material and instrument doctrine, not law.
19
19
20
20
### Corpus gate
21
21
The single check that certifies the constitution corpus — schema of every rule block, id and family registry, citation integrity across the corpus, and cross-revision comparison on demand. It runs as the repository's test command and again at every commit through the pre-commit hook, which makes any corpus-shape change also a gate change: the gate certifies the very input set a restructure edits.
Copy file name to clipboardExpand all lines: repos/constitution/CONSTITUTION.md
+2-11Lines changed: 2 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -267,26 +267,17 @@ rules:
267
267
- treat a mutation or property score as proof a deleted published capability still exists — those are blind to absence
268
268
- leave a persisted gold after the old path is gone unless the gold is externally authored, independently gated, and cheap to re-bless
269
269
harm: a rebuild silently drops a capability; same-session gold blesses the bug; a clean score after a delete is a silent regression
270
-
check: review — pins call only published names; each expected value names an independent source (spec clause, prior published major, second implementation, or a hand-written oracle next to the constructor)
270
+
check: review — pins call only published names; each expected value names an independent source (spec clause, second implementation, or a hand-written oracle next to the constructor), never the subject's own output or a second build of it
271
271
- id: CONST-T10
272
272
title: The Oracle Is Not the System Under Test
273
273
gate: review
274
274
do: every assertion has an oracle the SUT did not produce — a spec literal, a fixture not generated by importing the module, a law relating two views of the same value, or a second implementation; generated round-trip laws on a type cover what the type accepts and nothing it should reject, so a hand-written refusal survives beside them at any specifiable refusal boundary
275
275
dont:
276
-
- compute expected by calling the SUT
276
+
- compute or record the expected value by running the code under test, or any build or version of it
277
277
- assert collaborator call graphs
278
278
- treat generated accept-laws as full coverage of a refinement
279
279
harm: a green suite that cannot fail when the behavior is wrong; widening a refinement leaves generated laws green
280
280
check: review — plus sabotage (after green, break one core law and one published field; at least one test must go red)
281
-
- id: CONST-T11
282
-
title: Snapshots and Differentials Are Published-Surface Oracles
283
-
gate: lint
284
-
do: snapshot only canonicalized published output; compare two implementations only of the same published operation (or a prior published major against current)
285
-
dont:
286
-
- snapshot or compare private helpers, mappers, or unexported modules
287
-
- snapshot a value small enough to be a property or a named example
288
-
harm: tests that fail on refactors callers cannot see and pass on contract breaks they can
289
-
check: lint — snapshot and differential fixtures are produced only through the package's published export map
290
281
- id: CONST-T12
291
282
title: What a Test Does Comes from What It Calls, Not Its Filename
[](https://systemfsoftware.com/constitution)
Include `@CONSTITUTION.md` in your agent harness (`AGENTS.md` or `CLAUDE.md`) so all 38 rules remain always-on in the context window. Never include `ENFORCEMENT.md` there — it is doctrine for whoever builds the gates, not for the agent the gates grade. Instead, wire it at the surfaces that own instruments: in every `AGENTS.md` leaf governing a lint plugin, guard script, CI workflow, rules directory, or advisor roster, add one routing line — "You are editing an enforcement instrument. Read the vendored `ENFORCEMENT.md` before this lands."
39
+
Include `@CONSTITUTION.md` in your agent harness (`AGENTS.md` or `CLAUDE.md`) so all 37 rules remain always-on in the context window. Never include `ENFORCEMENT.md` there — it is doctrine for whoever builds the gates, not for the agent the gates grade. Instead, wire it at the surfaces that own instruments: in every `AGENTS.md` leaf governing a lint plugin, guard script, CI workflow, rules directory, or advisor roster, add one routing line — "You are editing an enforcement instrument. Read the vendored `ENFORCEMENT.md` before this lands."
40
40
41
41
---
42
42
43
43
## The Articles
44
44
45
-
The 38 rules are structured across six sections in [`CONSTITUTION.md`](CONSTITUTION.md):
45
+
The 37 rules are structured across six sections in [`CONSTITUTION.md`](CONSTITUTION.md):
Copy file name to clipboardExpand all lines: repos/constitution/docs/solutions/architecture-patterns/ttsr-regex-rules-flag-translation-backreferences.md
0 commit comments