| 1 | import type { DocsConstitutionDict } from "../types"; |
| 2 | |
| 3 | /** |
| 4 | * English reference dictionary for `app/[locale]/docs/constitution/page.tsx`. |
| 5 | * Copy moved verbatim from the page's `isZh` ternaries — any wording change |
| 6 | * belongs in its own commit, never mixed into a structural move. |
| 7 | */ |
| 8 | export const docsConstitution: DocsConstitutionDict = { |
| 9 | metaTitle: "Constitution and /constitution · Codewhale Docs", |
| 10 | metaDescription: |
| 11 | "User-global constitution, repo-local law, project instructions, and runtime boundaries.", |
| 12 | bodyClassName: "text-ink-soft leading-relaxed", |
| 13 | overviewTitle: "Constitution and /constitution", |
| 14 | overviewTitleAside: "宪章与 /constitution", |
| 15 | overviewLead: |
| 16 | "Codewhale gives the agent an accountable address, then a legal system for context conflicts. {constitutionCommand} is the primary personal constitution surface: guided setup stores structured user-global data in {homeConfig} and renders it as model-facing prose. Repos can still add local law via {repoConfig}; runtime policy separately encodes modes, approval, sandbox, cost, and tool boundaries.", |
| 17 | principles: [ |
| 18 | [ |
| 19 | "userGlobal", |
| 20 | "Use /constitution for standing personal law across projects. It is structured data rendered to prose, not a raw prompt editor.", |
| 21 | ], |
| 22 | [ |
| 23 | "repoLocal", |
| 24 | ".codewhale/constitution.json is optional project policy for protected invariants, branch rules, verification, and escalation.", |
| 25 | ], |
| 26 | [ |
| 27 | "runtime", |
| 28 | "Constitution text may express preferences, but approval, sandbox, shell, network, trust, and MCP permissions remain enforced config.", |
| 29 | ], |
| 30 | ], |
| 31 | authorityNote: |
| 32 | "Standard project instructions still live in AGENTS.md; memory and handoffs rank below constitutions and project instructions; the full base-prompt Markdown override is an expert escape hatch, not the normal setup path. See {configDocs}.", |
| 33 | configDocsLabel: "configuration docs", |
| 34 | sourceNote: "Source document: docs/ARCHITECTURE.md · Update docs-map.ts when changing.", |
| 35 | }; |
| 36 |