| 1 | import type { ConstitutionDict } from "../types"; |
| 2 | |
| 3 | /** |
| 4 | * English reference dictionary for `app/[locale]/constitution/page.tsx` and |
| 5 | * its `components/thinking-trace.tsx`. Copy moved verbatim from their `isZh` |
| 6 | * ternaries and `{ en, zh }` label. The three layers and the traced scenes |
| 7 | * are content and stay with the page and the component. |
| 8 | */ |
| 9 | export const constitution: ConstitutionDict = { |
| 10 | metaTitle: "Three layers of law · Codewhale", |
| 11 | metaDescription: |
| 12 | "Codewhale's nested constitution: bundled base law, your standing law (/constitution), and your repo's law (.codewhale/constitution.json). Rank is enforced in the harness and survives a model swap.", |
| 13 | kicker: "The thesis", |
| 14 | title: "Three layers of law", |
| 15 | titleAside: "三层法", |
| 16 | titleAsideLang: "zh", |
| 17 | lede: "As a project ages, instructions pile up and conflict: the original spec, a refactor that contradicts it, stale memory, a previous agent's handoff, your current request, fresh test output that doesn't match what the handoff claimed. A flat system prompt makes the model resolve that by guess. Codewhale uses a nested constitution with a defined rank. The harness enforces the order, tests assert it can't drift, and it stays intact when you swap models.", |
| 18 | since: "Since v0.9.0", |
| 19 | sinceBody: |
| 20 | "Constitution-first setup — first launch walks language, model, posture, and your constitution; /setup any time. The model can draft it. You ratify it.", |
| 21 | rankTitle: "The rank, most-static first", |
| 22 | rankScope: |
| 23 | "Below the three layers rank project instructions (AGENTS.md), then memory and handoffs. Your current request and live tool evidence still control the active turn — the model may be given many layers, but it is instructed never to report a fact the tools did not return.", |
| 24 | boundaryTitle: "The honest boundary", |
| 25 | boundaryBody: |
| 26 | "Approval, sandbox, network, and trust controls are enforced in code — constitution text never overrides them.", |
| 27 | traceTitle: "Observable in the reasoning", |
| 28 | traceScope: |
| 29 | "The rank shows up in the model's reasoning: it cites the articles as it decides. These panes are illustrations of that kind of reasoning, paraphrased for this page, not a transcript of one session.", |
| 30 | illustration: "Illustration", |
| 31 | install: "Install", |
| 32 | configuration: "Configuration", |
| 33 | }; |
| 34 |