ai-world-view.github.io — Constitution¶
The rules every change to this repo must satisfy, whoever makes it — a human or an AI agent. Agents read this before AGENTS.md conventions, the PRD, or the feature catalog. Ratified by merged PR; amended only per § 8.
1. Mission¶
The organization root site and central growth engine for ai-world-view, a network of self-growing country knowledge bases (today: China, Japan, North Korea, South Korea). Unlike the reference implementation, content is written from the model's own knowledge — growth passes do no web research — so what is published is the AI's own world view of each country.
Source: PRD.md.
2. Invariants (non-negotiable)¶
These rules are lifted from the repo's own agent guide; breaking one is grounds to reject a PR.
- Backlog of record: GitHub Issues with the fleet labels. Pick up issues labelled
agent:ready; never touchagent:holdorhuman-review. (AGENTS.md) - Changelog:
CHANGELOG.mdis written by release-please from the PR titles. Never edit it, or a version number, by hand. (AGENTS.md) - Never: push to
maindirectly, commit lockfiles or secrets, suppress type errors, leave empty exception handlers, or edit generated files by hand. (AGENTS.md) - Default branch is
main— branch from it and open a PR; never push to it directly. (CLAUDE.md) - Don't suppress type errors (
as any,@ts-ignore,# type: ignore) or leave empty exception handlers; the workflows'rescue nil/rescue {}probes are deliberate fallbacks, not swallowed errors — keep them commented as such. (CLAUDE.md) - Never weaken a guardrail as a drive-by: a kill-switch,
*_ENABLEDgate, gate job, concurrency group, two-key confirm, or the no-web rule changes only with a dated note in the file that carries it. (CLAUDE.md) - Don't add theme files. (CLAUDE.md)
- The preview ladder is fleet-shared. Both files are vendored identically across the fleet repos — fix bugs in lockstep, never fork the copies. (CLAUDE.md)
- Secrets (tokens, API keys) are never printed, logged or committed. (fleet rule)
CHANGELOG.mdis generated by release-please from Conventional Commits; never hand-edit it. (fleet rule)
3. Authority and precedence¶
When two documents disagree, the higher one wins and the lower one is fixed in the same PR:
- This constitution (and its ratified amendments in docs/amendments/)
- AGENTS.md — how to work here (commands, conventions, Definition of Done)
- The PRD (
PRD.md) — what the product must do (requirement idsFRn/NFRn) - features/features.yml — what it does today (stable feature ids)
- ADRs in docs/adr/ and specs — why and how a specific change was made
- Code, tests, generated files
4. Roles: humans and AI agents¶
| Actor | May | May not |
|---|---|---|
| Maintainer (human) | Ratify amendments, PRD changes and releases by merging PRs; change settings, secrets, branch protection | — |
| AI agent | Read this file first; open PRs on a branch with Conventional Commit titles; update the feature catalog, PRD block and docs in the same PR as the change; propose amendments | Merge its own PRs; push to the default branch except through the sanctioned automated path the agent guide names (here: growth/publish ticks that push content and telemetry to main; framework changes always go through PRs); force-push; change repo settings or branch protection; print or commit secrets; invent features or requirements (unknown = TBD) |
5. How the artifacts relate¶
| Artifact | Answers | Owned by | Rule |
|---|---|---|---|
docs/constitution.md |
What must always hold | Maintainer | Changes only by amendment (§ 8) |
docs/amendments/NNNN-*.md |
How and why the rules changed | Proposer → maintainer | Append-only; ratified by merged PR |
AGENTS.md / CLAUDE.md |
How to work here | Repo | Must link this file; CLAUDE.md imports @AGENTS.md |
| PRD | What the product must do | Maintainer | Requirements carry stable ids (FRn, NFRn) |
features/features.yml |
What the product does, where, proven how | Repo | Every user-facing feature has an id, status, location and prd: refs |
| PRD "Feature catalog" block | PRD → feature trace | Generated | governance_lint.py prd-sync; never hand-edit |
docs/adr/NNNN-*.md |
Why a hard-to-reverse decision was made | Proposer | One ADR per decision; an amendment may cite one |
CHANGELOG.md |
What shipped | release-please | Generated from Conventional Commits; never hand-edit |
6. Change process¶
| Change | Required in the same PR |
|---|---|
| Typo, docs fix, refactor with no user-visible effect | Conventional Commit title |
| New or changed user-facing feature | Entry in features/features.yml (status, link/docs, prd:), regenerated PRD block |
| New or changed requirement | PRD edit with a new FRn/NFRn id (ids are never reused), feature prd: refs updated |
| Hard-to-reverse technical decision | ADR in docs/adr/ |
| Change to this constitution | Amendment record in docs/amendments/ (§ 8) |
7. Quality gates¶
Every PR passes the checks the repo's guide names:
python3 <bamr87/bamr87>/tools/governance_lint.py prd-sync . --write(AGENTS.md)bundle exec jekyll build --config '_config.yml,_config_dev.yml'(CLAUDE.md)ruby scripts/sync-hub-metadata.rb --check(CLAUDE.md)ruby scripts/sync-lineage-state.rb --check(CLAUDE.md)ruby scripts/normalize-front-matter-dates.rb --check <dir>(CLAUDE.md)scripts/sync-hub-metadata.rb --check(CLAUDE.md)python3 <bamr87/bamr87>/tools/governance_lint.py check .(feature catalog ↔ PRD, constitution, amendments)
8. Amendments¶
This constitution changes only through a numbered record in docs/amendments/ (NNNN-kebab-slug.md, copied from 0000-template.md):
- Propose — open a PR that adds the record (
Status: proposed) and the edit to this file it describes. Name what it affects: constitution sections, PRD requirement ids, feature ids. - Review — the maintainer reviews; an agent never approves or merges its own amendment.
- Ratify — merging the PR ratifies it. The record says
Status: ratifiedandRatified by:the PR. A rejected or withdrawn PR keeps its record with that status; numbers are never reused. - Supersede — a later amendment may replace an earlier one; mark the old record
superseded by NNNN.
Records are append-only history: fix a ratified rule with a new amendment, never by editing an old record. 0001 ratifies this document.