Skip to content

README — 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. Missions

README's direction is to become the ultimate open home for all things fleet knowledge and project context — data, tools, resources and transparency, gathered in one place that anyone can inspect and reuse.

  1. Provide data, tools, resources and transparency for all stakeholders, maintainers, documentation practitioners, agent builders and the general public. Humans who cannot hold the whole fleet in their head, AI agents working in any one repo, and the general public are first-class audiences. The aim is a shared, open commons: the same sources, the same tools, and the same trail of evidence for everyone.
  2. Make knowledge about every project in the fleet cheap, current and queryable, so humans and AI agents can look it up instead of relying on stale or scattered READMEs. Crawlers and distillers build that context; an MCP interface is one way to serve it. Hand-maintaining a master README does not scale past a handful of projects — the engine exists so it does not have to.
  3. Put that context in every human's and agent's hands, and make reviewing a repository's documentation against the fleet framework effortless and repeatable. Serve it as a context pyramid and a review path for every repository — an open toolkit for working with all things fleet knowledge and project context.

These missions set the course; they do not claim the work is finished. They serve the existing constitution and PRD problem statement: fleet knowledge is scattered and goes stale; agents lack cheap, current context. The earlier §1 paragraph is absorbed into these three. Every feature must trace to them.

Source: ../PRD.md §1.1.

2. Invariants (non-negotiable)

These rules are lifted from the repo's own agent guide; breaking one is grounds to reject a PR.

  • Registry first: adding/removing a fleet project = edit _data/projects.yml, run sync, rebuild. Never edit repos.txt by hand. (AGENTS.md)
  • Don't flatten or re-bucket the corpus. (AGENTS.md)
  • Every page must be safe to put in the nav: Material resolves page.meta.icon as a bundled SVG for each nav entry, so an upstream icon: bi-gear fails the whole site build. (AGENTS.md)
  • One paragraph per line: .github/workflows/markdown-oneline.yml enforces the fleet's prose rule with tools/unwrap-prose.py (vendored verbatim from the hub — never edit it here). (AGENTS.md)
  • New utility scripts belong under scripts/, must fit a pipeline stage, and get a row in scripts/SCHEMA.md + a section in scripts/README.md (README-First/README-Last house rule from the parent repo). (AGENTS.md)
  • Secrets (tokens, API keys) are never printed, logged or committed. (fleet rule)
  • CHANGELOG.md is 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:

  1. This constitution (and its ratified amendments in docs/amendments/)
  2. AGENTS.md — how to work here (commands, conventions, Definition of Done)
  3. The PRD (PRD.md) — what the product must do (requirement ids FRn / NFRn)
  4. features/features.yml — what it does today (stable feature ids)
  5. ADRs in docs/adr/ and specs — why and how a specific change was made
  6. 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:

  • bash scripts/run_doc_checks.sh [--apply] (AGENTS.md)
  • python3 -m scripts.context_engine build (AGENTS.md)
  • python3 scripts/schema_lint.py check . (AGENTS.md)
  • python3 -m scripts.context_engine navcheck (AGENTS.md)
  • python3 scripts/check_tracked_surfaces.py (AGENTS.md)
  • python tests/test_runner.py (AGENTS.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):

  1. 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.
  2. Review — the maintainer reviews; an agent never approves or merges its own amendment.
  3. Ratify — merging the PR ratifies it. The record says Status: ratified and Ratified by: the PR. A rejected or withdrawn PR keeps its record with that status; numbers are never reused.
  4. 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.