bamr87 — 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 bamr87 hub's direction is to become the ultimate open home for the fleet: the control plane, the shared standards, and a public window onto every project.
- Provide data, tools, resources and transparency for all stakeholders, operators, contributors and the general public — the project registry, the Harness Console, the public documentation site, and the catalogs that make every repo visible and auditable.
- Be the source of fleet standards and the path they take into each repo — the constitution, amendments, the PRD, the feature catalog, the Universal Project Standard, kits and fan-out — so a rule is written once in the hub, ratified by the maintainer merging, and adopted consistently across the fleet.
- Run a reliable, agentic control plane for the work itself — the dash, the loops, JEV, the issue pipeline and the harness — so planning, execution, review and cost across the mounted projects stay governed, observable and local-first where they can be.
This § 1 format — one direction statement and exactly three numbered missions, adopted only through a numbered amendment — is the fleet-wide mission standard (see § 31). The README and AGENTS.md one-liners match this direction and link here.
Source: this section; PRD.md § 1.
2. Invariants (non-negotiable)¶
These rules are lifted from the repo's own agent guide; breaking one is grounds to reject a PR.
_data/projects.ymlis the project registry;.gitmodulesmust agree on submodule paths, URLs, and branches. (AGENTS.md)- Never commit a lockfile. (CLAUDE.md)
- Don't suppress type errors (
as any,@ts-ignore,# type: ignore) or leave empty exception handlers. (CLAUDE.md) - Add/remove/rename files in the nearest
SCHEMA.mdin the same change. New directories need their own schema and a parent Structure row; followPlacementandForbidden. (AGENTS.md) - The Pages build runs under
/bamr87/, so every in-app link goes through React Router'sbasenameand every file URL throughasset()(web/src/api/backend.ts) — never a bare/path. (AGENTS.md) - Overrides live in the hub's
.fleet/compose/, never in submodules. (AGENTS.md) - Branches: all track
main. Read the branch from.gitmodules; don't assume. (CLAUDE.md) - Don't bundle changes across multiple submodules into one PR. (CLAUDE.md)
- Secrets (tokens, API keys) are never printed, logged or committed. (fleet rule)
CHANGELOG.md, when present, is not hand-edited once release-please owns it. (fleet rule)- A pull request never assigns a sequential id. New entries carry a placeholder (
HUB-NEW,FR-NEW:<key>,NFR-NEW:<key>,FF-NEW,number: NEW) and reference each other by slug; the number is assigned on the default branch, by one serialized process, and is never reused. This includes roadmap entries (FF-NNNN, written as_data/roadmap.d/<slug>.yml); gaps in a series are never back-filled. (amendment 0002; roadmap ids: amendmentroadmap-numbering-at-merge, numbered at merge) - A generated file is never hand-merged. A file generated end to end that is marked
jev-main-onlyin.gitattributesis regenerated and committed only on the default branch, by the post-merge job, and CI fails a pull request that edits it. A generated span in a hand-written file is regenerated by the same job, and a pull request's drift check on it is advisory. Every other generated file is resolved by regenerating it, and CI fails on drift rather than trusting the resolution. (amendment 0002; amendmentgenerated-files-main-only, numbered at merge — see the amendment log) - Every scheduled or AI-calling workflow has a kill switch whose state is managed centrally in
_data/fleet.ymlswitches:; nothing pauses or resumes a loop except through that map. (amendmentcentral-loop-switches, numbered at merge — see § 17 and the amendment log) - Fleet PR automation comments through the hub's reusable
pr-review.yml: one sticky summary per PR, silent when clean, never under Amr's account. (amendmentfleet-pr-review, numbered at merge — see § 19 and the amendment log) - A production container image is built once and promoted through environments by digest, never rebuilt per environment, and never contains a secret. (amendment
container-management, numbered at merge — see § 21 and the amendment log)
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; follow § 10 (track every task on the Fleet project; epics for multi-phase work; no change to the live Mac before an approved deploy step); plan GitHub write-back under § 11 and apply it only after the user confirms; merge a PR that is mergeable under § 12 | Merge a PR that is not mergeable under § 12, or any PR the review gate holds; push to the default branch; 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.d/<slug>.yml |
What a pull request is adding | Proposer | One entry per file, id: HUB-NEW; compiled into features/features.yml at merge |
features/features.yml |
What the product does, where, proven how | Repo | Every user-facing feature has an id, status, location and prd: refs. Compiled from fragments at merge; not edited by a pull request |
changelog.d/<slug>.md |
What a pull request is announcing | Proposer | Keep a Changelog fragment; folded into CHANGELOG.md's [Unreleased] at merge |
_data/roadmap.d/<slug>.yml |
A roadmap entry awaiting its FF-NNNN |
Proposer | One entry per file, id: FF-NEW; numbered and appended to _data/roadmap.yml at merge |
docs/amendments/proposed/<slug>.md |
A proposal awaiting a number | Proposer | **Number:** NEW; numbered, moved and indexed at merge |
| 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, or changelog.d/ where it is not in use |
Generated from Conventional Commits, or compiled from fragments at merge; 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 | A features/features.d/<slug>.yml fragment (status, link/docs, prd:) — not a row in features/features.yml; the PRD block is regenerated at merge |
| New or changed requirement | The requirement declared in that fragment's prd_new: with a slug key; ids are assigned at merge and never reused |
| Hard-to-reverse technical decision | ADR in docs/adr/ |
| New or changed work item (issue / PR) in a registry repo | Item in the portfolio project with required fields (§ 9) |
| Change to this constitution | Amendment record in docs/amendments/proposed/ (§ 8) |
7. Quality gates¶
Every PR passes the checks the repo's guide names:
tools/check-drift.sh(AGENTS.md)tools/console/build-pages.sh(AGENTS.md)python3 tools/schema_lint.py check .(AGENTS.md)python3 .github/scripts/dash-gen/test_machine_api.py(AGENTS.md)python3 -m pytest .github/scripts/dash-gen/test_cv_fragment.py -q(AGENTS.md)python3 tools/console/test_pages.py(AGENTS.md)python3 <bamr87/bamr87>/tools/governance_lint.py check .(feature catalog ↔ PRD, constitution, amendments)python3 <bamr87/bamr87>/tools/projects_lint.py check(work-tracking spec; live coverage when the token can read projects — § 9)python3 tools/test_vscode_launch.py(the editor is a front door:.vscode/callstools/dash, its pickers and ports follow the registries — § 20)
8. Amendments¶
This constitution changes only through a numbered record in docs/amendments/ (NNNN-kebab-slug.md, compiled from a proposal in docs/amendments/proposed/):
- Propose — open a PR that adds the record as
docs/amendments/proposed/<kebab-slug>.mdwith**Number:** NEW(copied from 0000-template.md) and the edit to this file it describes. Name what it affects: constitution sections, PRD requirement ids, feature ids. The number is assigned when the PR is merged, bytools/jev/number.py(amendment 0002); a record that has been numbered is append-only history and is never renumbered. - 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. The post-merge job records it:jev-number.yml'sratifyjob (python3 -m tools.jev ratify) setsStatus: ratified, writesRatified by:as the PR, its merge date and who merged it, and sets the index status cell, through a ratification-record PR (§ 12.3), only for a record whose PR the maintainer merged. Recording these lines is not an edit to a ratified rule. (amendmentratification-records, numbered at merge) - 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; 0002 moves id assignment to merge.
9. Work tracking¶
GitHub Projects (v2) are the system of record for work across the fleet (amendment 0003, plan):
- One Fleet Portfolio project holds every open issue and PR of every registry repo; domain projects hold a subset. Projects, fields, options, lifecycle and the label map are defined only in templates/projects/framework.yml.
- Required fields: Status, Priority, Area, Repo; plus Feature ID (
HUB-NNN, afeatures.ymlid) and PRD req (FRn/NFRn) when the item changes a feature or a requirement. - Status lifecycle: Inbox → Triaged → Ready → In progress → In review → Done, with Blocked and Won't do. Labels mirror fields; the project wins on conflict.
- Agents read and move items only through the console MCP layer or the sync workflow.
10. DevOps methodology¶
Every human, bot and AI agent in the hub and every submodule under projects/ follows this methodology (amendment projects-devops-methodology, numbered at merge — see the amendment log; extends § 9 and 0003):
- Everything is an item — every feature, fix, audit and plan, including AI-agent and submodule work, is an issue or PR on the shared Fleet project (user project #14).
- Epics for multi-phase work — an
epicissue with one linked sub-issue per phase, in order, each with scope, acceptance criteria and guardrails. - Hub labels —
epic(purple#6E40C9, created if missing); typebug/feature/chore/docs/ci/refactor/test; priorityP0–P3; existingsize:*. - Fields set — Status and Priority on every item.
- Hands off the Mac — nothing running on Amr's Mac (checkout, containers, live jobs, monitoring stack) is modified until a final deploy step that Amr explicitly approves.
- Read-only tools — new tools are read-only by default, with allowlists, result caps, time limits and redaction.
- Honest cost — every AI cost figure is labelled "API-equivalent (estimate)"; real metered API spend is tracked separately.
- Prior art first — every new harness or loop design (a new loop, harness, agent pipeline, or console surface that drives or visualizes them) includes, before implementation begins: (a) a needs assessment, (b) a prior-art / existing-tools survey with one line each on fit, and © a recorded build-vs-adopt decision with reasons, kept in the design issue or spec as an acceptance criterion (amendment
harness-prior-art-research, numbered at merge). - Local first — AI work runs in a local Claude Code session when one can do the job: an interactive session, or
claude -pthroughtools/dash loopandtools/dash conflicts, with JEV's tiers, caps and ledger. A CI agent step is the fallback for work that must react inside GitHub or when no local host is available, not the default, and new AI work ships with a local entry point first. (amendmentlocal-first-ai, numbered at merge)
11. Harness write-back to GitHub¶
The console may write to GitHub Projects (v2), issues and pull requests across every registry owner through the Projects editing service (tools/console/gh_projects_write.py; amendment projects-write-back, numbered at merge; extends § 9 and § 10.6) only under these rules; every other write the console or the local loop runner makes goes through the OPS remote-write path (item 8; amendment ops-remote-write-path, numbered at merge), never around either:
- Allowlist — only the mutations listed in
tools/console/gh_projects_write.pyALLOWLIST: create or update a project and its fields; add, move, set or clear fields on, archive and unarchive items; edit title and body, labels, assignees, milestone, open/closed state and sub-issues of issues; edit title and body, labels and draft state of pull requests. Anything else is refused. - Never — merge, delete, transfer, repo or org settings, branch protection, rulesets, secrets, workflows, webhooks, collaborators or visibility, even with every flag and confirmation set.
- Off by default — writes need
HARNESS_PROJECTS_WRITES=1; MCP write tools also needHARNESS_MCP_ALLOW_WRITES=1. - Dry run, then confirm — every change is first a plan (before → after, deterministic
plan_id); it is applied only withconfirm=trueand the sameplan_id, after a human has seen it; a plan whose targets changed since the preview is refused. - Idempotent and capped — already-satisfied ops are no-ops; at most 50 ops per plan and 200 per hour.
- Audited — one append-only JSONL record per op (who, when, plan, before, after, result), token values redacted.
- Scoped token — a dedicated
PROJECTS_TOKEN(read:project/project,read:org, issues and pull requests read/write on registry repos), held in the console's credential store or an Actions secret, never printed or committed; only Amr provisions it. - The OPS remote-write path — a console operation that writes to GitHub, and the local loop runner's
apply(tools/dash loop run … --apply,loop publish <run_id> --apply, the console'sloop-runop withapply), is sanctioned only in this shape: the operation is markedremoteand runs only withconfirm=true(the § 13.6 yes; from a terminal,--applytyped by the maintainer is that yes), one such job at a time under the job manager's remote lock; the write is a dry run first — the exact bytes it would file, under.fleet/runs/<run_id>/or the job log — and files only bytes byte-identical to that reviewed preview; the token isFLEET_TOKENresolved as the engine does (the environment, then the hub.env, else the ambient gh login), probed withgh api userbefore any spend or write, handed to the filer asGH_TOKENin that one subprocess and never printed, logged or placed in argv; the filer is the sametools/dash/tools/dash-gencode CI runs for that loop (scout-file,doctor-file, …), carrying its § 13.6 risk tier, and it writes only what CI's job writes (labels, issues, one pushed branch and a draft PR); it never merges, force-pushes, deletes, or touches settings, protection, secrets, workflows or visibility; it is refused with--scheduled(no unattended filing until § 13.7), with a dirty engine, and when its own dedupe list cannot be read; and every write is recorded in the run record (attempts.jsonl,publish-result.json) and the job document. The existingremoteoperations —content-file,deploy-*,dispatch,secrets-push— are this path. The MCP reaches it only through the console's job API (console_runwithconfirm=true), so the gate is the console's.
13. Eval baseline and risk tiers¶
(amendment eval-baseline-risk-tiers, numbered at merge — see the amendment log; follows § 12 of agent-merge-review-gate; extends § 10 and § 12)
- Eval set — every bot or agent role and every repo harness or loop keeps about 20 real past tasks (input, expected output, pass criteria, optional LLM-judge rubric), versioned next to what it tests; existing harnesses and loops have a grace period until their spoke fan-out PR lands.
- Rerun on change, required check — rerun after any prompt, tool or model change; an eval regression is a required CI check, so a failing run makes the PR not mergeable (§ 12.1).
- Pinned models — exact versions, never aliases, from the list in
_data/fleet.ymlai_models.allowed; changing it is gated (§ 12.3). - Cheaper only if green — a step moves to a cheaper model only if its evals still pass.
- Tracing — every run records its tool calls, secrets redacted.
- Risk tiers — every tool or action is tagged reversible / external / money and tiered: low runs alone; medium runs with an audit record; high waits for Amr's yes. Irreversible, external or money actions start high.
- Earned autonomy — one tier down per action only after N consecutive clean approvals (N = 25); any rejection resets to high; money never goes below high.
- Lethal trifecta — private data + untrusted content + external send always needs a human gate on the send.
- Reconciliation — draft-before-send stays; only Amr merges amendments; no agent approves its own action or changes its own tier; tier changes are gated under § 12.3.
12. Merge authority and the review gate¶
(amendment agent-merge-review-gate, numbered at merge — see the amendment log; amends § 4)
- Mergeable PR — a pull request is mergeable only when all of these hold, rechecked against live GitHub state immediately before the merge:
- every required CI check is green;
- every required review is satisfied;
- it has no merge conflicts with its base;
- the review gate (item 3) has passed wherever human review is required.
- Agent merge — an AI agent may merge a PR only when it is mergeable; otherwise it waits. It merges with a merge commit (never squash or rebase), never with
--adminor any bypass, and never by force-push. - Review gate — a PR needs human review, and is gated, when it touches any of: amendments, this constitution or a fleet standard; an architecture decision record (
docs/adr/), whose merge accepts it; secrets, tokens, budgets or billing; repo or org settings, branch protection, rulesets or permissions; security-sensitive code or config; deploys or anything that changes the maintainer's machines; a non-trivial conflict resolution; destructive or data-deleting changes; anything labelledagent:hold,blockedorneeds-amr; and any repo-specific content gate its own constitution names (for example an editorial charter for structural changes). A ratification-record PR is not gated. It is opened by the post-merge job from this repository's ownchore/jev-ratifybranch, and it changes only status lines,Ratified by/Accepted in/Completedlines and index status cells of records whose trigger PR the maintainer merged (not from an automation branch, not opened by a bot), or whose tracking issue the maintainer closed as completed with every sub-issue closed. That job merges it with a merge commit only whenpython3 -m tools.jev ratify guardsays go: the head is one commit on the current tip ofmain, every check on that commit has passed, and the diff is exactly the plan it was built from, each of whose triggers still holds. It needs no Fleet project item (§ 10.1) unless the guard refuses it; then the job labels itneeds-amrand sets its item to Needs Amr (item 4). Anything else on that branch, and any change to that guard or job, is gated. (amendmentratification-records, numbered at merge) - Gate mechanism — a gated PR carries the
needs-amrlabel and its Fleet project item is set to status Needs Amr (§ 9). The gate passes only when the maintainer approves or merges it and the label is removed by the maintainer. A repo may also require a review in branch protection; only the maintainer turns that on. - Never — an agent never merges a gated PR, and amendments are ratified only by the maintainer merging them (§ 8).
- Fleet conformance — every repo constitution under
projects/conforms to this section or files its own amendment saying how it does. - Conflicts resolve themselves — a merge conflict on an open PR from a trusted author is resolved automatically by JEV, by script where the files allow and otherwise by a capped model in a local session (§ 10.9). It merges the base with a merge commit, validates with the repo's own checks, and never force-pushes or merges the PR. A model's resolution is a non-trivial conflict resolution, so it carries the gate of item 3. A human takes over only when JEV cannot resolve it. (amendment
local-first-ai, numbered at merge)
14. Public documentation site¶
(amendment public-docs-site, numbered at merge — see the amendment log; section number contingent on § 12 from agent-merge-review-gate (#481) and § 13 from eval-baseline-risk-tiers (#482) landing first; extends UPS-DOC)
- A public site — every fleet repo publishes a public site at
<owner>.github.io/<repo>(a custom domain on that Pages site is compliant) with all its documentation (README, AGENTS.md, CHANGELOG,docs/, plus the PRD, feature catalog, constitution and amendments where they exist). It is built only with GitHub Pages and the zer0 theme (remote_theme: bamr87/zer0-mistakes), with no MkDocs or other generators, and uses the UPS-DOC docs index as its page set. - Exclusions — secrets are never published; internal docs are excluded by front matter
site: excludeor a root.siteignoreglob list, projected into Jekyllexclude:. - Private repos — they fail the check and are flagged for Amr; an agent never makes one public, and their Actions spend stays $0.
- Conformance —
tools/conformance.py(viacheck-drift.sh) checks that the site exists, uses the zer0 theme, has a complete docs index and has links that resolve. - Rollout — the check is warn-only for a repo until its spoke fan-out PR (one repo per PR) lands, then a hard failure for that repo.
- Settings are Amr's — Pages enablement and any repo setting are changed only by Amr.
15. Evidence for major changes and frontend PRs¶
(amendment major-change-evidence, numbered at merge — see the amendment log; § 13 is eval-baseline-risk-tiers (0011), so the number § 15 is final; interim reviewer amended by qa-lead-bridge; extends § 7, § 12 and UPS-QA-50..53)
- Major change: JEV decides — JEV, the harness-level agent logic engine (docs/JEV.md), judges whether a PR is major. It weighs these heuristic inputs: public interface or user-visible behaviour, § 12.3 areas, indexed features, the size and spread of the diff, and dependencies or toolchains. There are no fixed thresholds. The
majorlabel overrides JEV. After § 13 is ratified, JEV must pass its own eval set. Interim, until JEV exists: the heuristics flag candidates, the completeness reviewer decides, and when in doubt a PR is treated as major. - Test evidence — a major PR lists the tests added or updated (or why none apply) and links the green CI run for its head commit.
- Frontend detection — a PR impacts the frontend when it touches the default frontend globs (layouts, includes, styles, assets, pages, posts, HTML/CSS/component files, the console web app,
_config.yml) or the repo's extraverify/verify.ymlfrontend_paths:. - Visual evidence, every frontend PR — before/after screenshots or a recording of each affected page at two or more viewports (
test/evidence/<slug>/or the PR body);skip-evidenceonly with a reason when nothing renders differently. - Completeness review by JEV and QA Lead — every major or frontend PR is reviewed for completeness by JEV and the QA Lead bot, and both must pass. The author is never a reviewer: if one of the bots authored the PR, Amr reviews in its place. A bot reviewer cannot waive a requirement. Interim (a short bridge): building QA Lead is the priority (#492). Until QA Lead runs, the completeness review is warn-only, with Amr as the fallback reviewer. QA Lead takes over as soon as it exists, and JEV joins later.
- Fit with § 12 — the completeness review is a required review under § 12.1.2. It adds to the review gate and does not replace it, and only Amr merges amendments.
- Enforcement — the PR template sections and a
tools/conformance.pycheck, warn-only per repo until its fan-out PR lands, then a hard failure.
16. AI-ready foundation¶
(amendment ai-ready-foundation, numbered at merge — see the amendment log; follows § 15 major-change-evidence; extends § 7, § 14 and UPS-AGENT)
- Common foundation — every active repo is AI-ready: it exposes an API layer, an MCP layer, agent docs and machine-readable metadata, sized to its type.
- By repo type — apps and services: REST with a committed OpenAPI 3.1 document, plus an MCP server. Content sites: a static JSON data API on the public site, schema.org JSON-LD and their own MCP server, shipped as a local stdio server in the repo. Tools:
--jsonoutput on every command, plus an MCP server orserver.json. Libraries, themes and kits: agent docs and metadata only. - Agent docs —
AGENTS.mdper UPS-AGENT andllms.txton the public site (§ 14). - Metadata — an
ai-ready.ymlmanifest naming the repo's type and layers; MCP manifests follow the MCP Registryserver.jsonschema; a repo that runs an agent publishes an A2A Agent Card at/.well-known/agent-card.json. - Shared kit — repos start from the hub's
templates/ai-ready/kit, fanned out and stamped like the other kits. - AIEO validates — the AIEO engine in the hub's
tools/aieo/scores AI-readiness, run bytools/conformance.pyas checkai-ready: warn-only per repo until its fan-out PR lands, then a hard failure. - Held to § 13 — until AIEO passes its own eval set, only the structural checks can fail a build and the score is advisory; after that, a score below the minimum (80/100) also fails.
- Exemptions — archived and retired repos are exempt; a layer may be marked not applicable with a reason the § 15 completeness review accepts.
- No secrets — no layer exposes secrets or private data; private repos expose their layers to the fleet only, at $0 Actions spend.
17. Centrally managed loop switches¶
(amendment central-loop-switches, numbered at merge — see the amendment log; follows § 16 ai-ready-foundation; extends § 7 and § 10; feature central-loop-switches, requirement FR-NEW:central-loop-switches, bamr87/bamr87#526)
- Every loop has a switch — every scheduled or AI-calling workflow in the hub,
templates/and the fleet checks a kill switch before doing work. - One source of truth — switch state lives in
_data/fleet.ymlswitches:(global, group, loop and repo levels, each with state, reason, who, when and optional expiry); the most restrictive level wins, and repo variables are projections of it. - Dry-run first — tools that apply switch state show the diff by default and change live variables only with explicit apply and confirm, scoped to a repo, a loop, a group or everything.
- Audit — every flip records who, what, scope, reason and old and new state in the fleet activity log.
- Drift — the drift check reports mismatches between the map and live variables, and expired entries.
- Conformance — the workflow atlas fails a scheduled or AI workflow without a switch; warn-only per repo until its fan-out PR lands, then a hard failure.
- Exemptions — workflows with no schedule and no AI call, and archived or retired repos, are exempt; any other exemption needs a reason the § 15 completeness review accepts.
- No secrets — no switch tool reads, prints or changes a secret.
18. Fleet design consistency¶
(amendment fleet-design-consistency, numbered at merge — see the amendment log; follows § 17 central-loop-switches; extends § 14 and § 15; roadmap FF-0032; plan DESIGN-HARMONIZATION.md)
- One design language — every fleet front-end (apps, consoles, dashboards and public sites) uses the fleet's shared design tokens (colour, type, spacing, radius, motion), with light and dark themes.
- One shell — app front-ends use the shared app shell from the hub (the Harness Console shell, roadmap FF-0032): collapsible, manageable, customizable regions with the same navigation model. Jekyll sites keep the zer0 theme (§ 14), which consumes the same tokens.
- Ownership — the hub owns the tokens and the shell package; Sites owns the zer0 theme family; a repo may extend but not fork them.
- Conformance —
tools/conformance.pycheckdesignverifies tokens and shell (or zer0) are used; warn-only per repo until its fan-out PR lands, then a hard failure. - Evidence — design changes follow § 15 visual evidence.
- Exemptions — CLIs, libraries without UI, and archived or retired repos are exempt; any other exemption needs a reason the § 15 completeness review accepts.
19. Fleet PR review and comments¶
(amendment fleet-pr-review, numbered at merge — see the amendment log; follows § 18 fleet-design-consistency (bamr87/bamr87#554) and becomes § 18 if that has not merged first; extends § 11, § 12, § 13, § 15 and § 17; feature fleet-pr-review, requirement FR-NEW:fleet-pr-review)
- One workflow — every fleet repo with pull requests reviews, analyzes and comments on them through the hub's reusable
.github/workflows/pr-review.yml, called from a small per-repo stub; repo-specific checks plug in as inputs, not as their own comment steps. - One sticky summary — each PR gets at most one summary comment, found by its marker and updated in place; when every check is clean it posts nothing (and deletes a stale summary), and the check status carries the pass.
- Inline only for findings — inline comments are for real findings scoped to the diff, tagged with a severity (
error,warning,note) and deduplicated across pushes; repo-wide dumps never go in a comment. - Signature — every automated comment ends with
<!-- fleet:source=<check> trigger=<event> run=<run-url> -->. - Identity — automation posts as
github-actions[bot]viaGITHUB_TOKENor as the fleet app, never with Amr's personal token; an automated review never approves a PR and never counts toward § 12.1.2. - Scope — content and docs checks skip Dependabot and release PRs; missing labels come from the shared fleet label set, not from comments.
- AI review triggers — AI review runs on
opened,ready_for_reviewand an explicit label, not on every push; it checks the central switch (§ 17) and is held to § 13. - Summaries, not comments — cost, usage and test tables go to the job summary.
- Rollout — conformance is warn-only per repo until its fan-out PR lands, then a hard failure; a repo with no pull requests is not applicable.
- CI failures — every failed CI run on a pull request is summarized in the sticky comment, so nobody has to open a log to learn why it failed: the job and step, the reason taken from its log, whether the PR probably caused it, and what to do next. This covers a run that never started. When a step printed no clear error, the comment says so and does not guess. A failed push to the default branch is reported on the PR that merged it. (amendment
ci-failure-summary, numbered at merge)
20. The editor is a front door¶
(amendment editor-front-door, numbered at merge — see the amendment log; follows § 19 fleet-pr-review; extends § 2 (SCHEMA protocol) and § 7; spec UPS-REPO-40; feature editor-front-door, requirement FR-NEW:editor-front-door)
- One front door — every development tool, loop, gate and surface of the hub is reachable from the editor:
.vscode/launch.jsonand.vscode/tasks.jsoncalltools/dash, a tool's own entry point, ordocker composeagainst the hub's own services, and never carry a second implementation of anything the CLI, the Harness Console's job API or CI runs. - Registries, not numbers — a port, project, site, scenario or loop named in an editor configuration comes from its registry (
_data/ports.yml,_data/fleet.ymlcontainers.ports,docker-compose.yml,.gitmodules,verify/scenarios/,content.sites); a picker is held equal to its registry bytools/test_vscode_launch.py, which is one of the § 7 gates. - Parity in the same PR — a new
tools/dashsubcommand, loop, gate, user scenario, content site or submodule adds its editor entry and the.vscode/README.mdline that describes it in the same pull request (README-Last applies to.vscode/); an entry that points at a retired path is removed, never left to fail. - Debuggers, not terminals — where a surface can be debugged (the console's API and page, a generator or hub test, a container that ships a debug layer) the entry is a real debugger (
debugpy, a browser with source maps, an attach) on a hub port that never collides with the running core; a terminal launcher is the fallback, not the default. - Fleet — a fleet repo with a run, test or debug command carries its own
.vscode/launch.jsonandtasks.jsonthat call the repo's own one-command entry points (UPS-REPO-40); the hub's.devcontainer/and.vscode/extensions.jsonare the reference extension set (UPS-REPO-30). Warn-only per repo until a seed kit exists and its fan-out PR lands. - Exemptions — content repos, forks and archived or retired repos are exempt; any other exemption is recorded as a standard deviation (UPS README "Deviating").
21. Container images and containers¶
(amendment container-management, numbered at merge — see the amendment log; follows § 20 editor-front-door; extends § 13, § 17 and DOCKER.md; backlog bamr87/bamr87#590)
- Reproducible from pinned bases — every image builds from an official base whose version comes from
_data/fleet.ymlimages:and whose digest is pinned in the Dockerfile; dev and production build from the same Dockerfile (multi-stage targets). - Build once, promote by digest — CI builds a production image once per release commit; the same digest moves through GitHub Environments (
dev→staging→prod) under their protection rules; deploys reference the digest, never a rebuild or a floating tag. Rollback is promoting the previous known-good digest (Design for Failure). - Immutable versioned tags — release images are tagged with the release version from release-please and the commit sha; a published version tag is never moved or overwritten. Floating tags, if allowed, are convenience pointers only.
- Verified before production — an image reaches
prodonly with an SBOM, a provenance attestation or signature, and a vulnerability scan with no unwaived critical finding. - No secrets in images — no secret in any layer, build arg or label; build-time secrets use BuildKit secret mounts and runtime secrets come from the environment.
- Base updates by automated PR — base versions and digests move only through automated pull requests (the docker fan-out, Dependabot or Renovate), never by hand-edit on a deploy path.
- Dev parity — each repo's devcontainer and compose service use the same bases and join the shared
fleetplane (§ 2 overrides rule). - Ownership and cost — each repo owns its images and their retention; registry storage and build minutes are budgeted in
_data/fleet.yml; build, scan and SBOM are deterministic tier-0 steps, and any AI step on findings is tiered and capped under § 13 and switched under § 17. - Rollout — warn-only per repo until its fan-out PR lands, then a hard failure; repos that publish no image are not applicable.
22. Repository cap and consolidation¶
(amendment repo-cap-42, numbered at merge — see the amendment log; follows § 21 container-management)
- Rule 1 — hard cap of 42 — the
bamr87GitHub user account holds no more than 42 repositories in total (public and private, archived included) at any time; a hard limit, not a target. - Rule 2 — consolidate to add — any request to add a new repository to the
bamr87account must, in that same request, merge or absorb an existing repository into another one, so the net repository count stays flat or drops. - At the cap — a new repository is created only after an existing one is merged or absorbed into another; Amr decides which.
- Scope — the
bamr87user account only; organisations are out of scope until the amendment's open question is decided. - Enforcement — detection (a sentinel check on the account's repository count) is a follow-up; agents never create a repository in the account without Amr's approval and the paired consolidation.
23. Writing section chronicles fleet activity¶
(amendment writing-chronicle, numbered at merge — see the amendment log; follows § 22 repo-cap-42 (PR #660), renumber to § 22 if that amendment does not merge first)
- Rule — daily chronicle — the monorepo's writing section,
pages/posts/(datedYYYY-MM-DD-slug.md, rendered bytools/console/site_docs.pyas the console's and public site's Writing section), chronicles, documents, journals and notes, repo-wide and fleet-wide, all fleet operations, AI prompting and any activity agents are working on, pushing, committing and deploying across all repos, in a summarized chronicle fashion, so Amr or other readers can read and recall what happened each day. - Form — one chronicle entry per day with activity (
pages/posts/YYYY-MM-DD-chronicle.md, categorychronicle), summarizing, per repo, operations, prompts given, agents run, work in progress, pushes, commits, PRs opened or merged, deployments, and outcomes; summaries, not raw transcripts. - Redaction — a chronicle never records tokens, secrets, credentials, keys, or private values; anything secret-shaped is redacted before commit.
- Drafts by default, reviewed before publishing — every chronicle entry lands as a draft (
draft: true, console-only); nothing publishes until it has been reviewed by a human and/or an agent, and only then isdraft: trueremoved. - Enforcement — generation (a daily chronicle generator,
HUB-NEW) is a follow-up; until it lands, agents add or append the day's entry by PR. - lifehacker.dev is the fleet's news agency — lifehacker.dev is part of the fleet's writing and chronicling operations: a synthesized, curated news agency built from fleet activity, written for a wider audience in the voices of its site characters. Its articles originate in the hub (the console / monorepo writing section); it synthesizes them from reviewed hub entries, and rule 4 applies there too — nothing publishes until reviewed by a human and/or an agent, and a human merges. Its own autonomous publishing stays held until hub-originated intake is in place.
- One voice model — AI voices, styles, personas and content config for lifehacker.dev and zer0-CMS use one shared model,
voices/v1: canonical in the hub at_data/voices/voices.ymlwith its schema_data/voices/voices.schema.json(fields aligned with zer0-CMS ADR 0010VoiceProfile, plus a persona layer). Admins edit that file; the console's editor reads it and writes edits back to it as a PR, never a separate database copy; both sides validate against the schema, andtools/voices.py check --againstflags drift in any consumer copy.
24. Visual evidence for guides and tutorials¶
(amendment visual-evidence, numbered at merge — see the amendment log; follows § 23 writing-chronicle on main; § 22 is proposed by repo-cap-42 (PR #660) — this section is § 24 either way; renumber only if another amendment claims 24 first; extends § 7 and § 15)
- Guides need visuals — any tutorial, how-to, setup doc, console/UI help page or article that walks a person through a system, computer, tool or technology setup ships visual front-end evidence: screenshots, a short recording, or a GIF of the relevant UI or terminal, unless a one-line
skip-visualsreason says why nothing renders for the reader. - When — required when the reader is told to click, navigate, configure, install via a UI, or compare what they see on screen; not required for pure API/contract prose with no user-visible surface (still prefer a diagram when it clarifies).
- Where and naming — store under
docs/assets/guides/<slug>/for durable guide art, or undertest/evidence/<slug>/when the same bundle also proves a feature scenario (docs/VERIFICATION.md). Names are kebab-case, viewport-tagged when size matters (<slug>--desktop.png,<slug>--mobile.png); recordings use.gif/.webm/.mp4. - Alt text — every image has meaningful alt text that describes what the reader should notice; decorative spacer images are forbidden in guides.
- Redaction — a guide image never shows tokens, secrets, credentials, keys, cookies, private URLs with embedded credentials, or unredacted PII; redact before commit (same bar as § 23.3).
- Freshness — when a change alters a UI a guide depicts, the same PR updates or re-captures the guide visuals (or adds
skip-visualswith why). Stale screenshots are a defect, not documentation debt to ignore. - Harness Console — the console gains capture/attach helpers so operators and agents can record guide evidence without leaving the control plane (phased; see feature
HUB-NEW:visual-evidence). - Enforcement — a guides visual lint (
tools/guides_visual_lint.py) flags guide-like Markdown lacking an image, an evidence-bundle reference, or askip-visualsreason; warn-only per repo until its adoption/fan-out PR lands, then a hard failure. Fleet fan-out follows the 0007 pattern (one spoke PR per repo). - Fit with § 15 — frontend PR evidence stays under § 15; this section covers published guides. A change may need both.
25. MCP server lifecycle¶
(amendment mcp-lifecycle, numbered at merge — see the amendment log; follows § 24 visual-evidence on main; renumber only if another amendment claims 25 first; extends § 16)
- Hub owns the lifecycle — every MCP server the fleet builds, runs or registers for agents is declared in a hub registry (
_data/mcp_servers.yml), documented underdocs/MCP-SERVERS.md, and configured without credentials in git. - Single registry — the registry lists each server's id, owner repo/path, role (client-config | hub-server | spoke-server | kit), transport(s), entrypoint, health probe, required secret names (never values), and status (
canonical|legacy|spoke|proposed). - Config schema — committed MCP client configs (
.mcp.json,verify/mcp.json, kit templates) use the MCPmcpServersobject shape; secret values appear only as${ENV_NAME}(or equivalent host env interpolation); literal tokens, PATs, API keys and passwords are forbidden in the tree. - Naming — server ids are kebab-case, stable, and unique in the registry; the interactive console/fleet server remains registered to agents as
fleet(HUB-031) unless a migration PR updates permissions and the registry together. - Transports — stdio for local agent hosts; streamable HTTP only on loopback by default with a dedicated bearer (
HARNESS_MCP_TOKENfor the console MCP, never the console's own token on the wire to clients); non-loopback bind requires an explicit allow-host list. - Tunnels — public or remote access is opt-in (
mcp-tunnelprofile ordash mcp --tunnel); quick-tunnel hostnames are unstable and must not be committed; prefer a named tunnel or Tailscale for standing remote access;dash mcp --tunnel-urlis the refresh path. - Writes and kill switch — MCP write tools stay off unless an explicit env flag enables them; destructive tools require
confirm=true; console allowlists and workflow kill switches remain authoritative for GitHub writes. - Health and versioning — HTTP MCP servers expose a probe the compose/healthcheck or
dash mcpcan run; package pins prefer dist-tags the registry documents (@latestonly when the UPS baseline allows); breaking tool renames need a registry note and a migration window. - Enforcement —
tools/mcp_servers_lint.pyvalidates client configs and registry rows (schema, no inline secrets, unknown ids); warn-only per repo until adoption/fan-out, then hard fail. Fleet fan-out follows the 0007 pattern. - Fit with § 16 / HUB-031 — AI-ready per-repo MCP exposure and the console MCP layer stay the implementations; this section is the lifecycle and governance umbrella.
26. Claude Code executes; Grok bots set direction¶
(amendment claude-code-executes, numbered at merge — see the amendment log; follows § 24 on main and proposed § 25 mcp-lifecycle (PR #685) — this is § 26 if that lands first, else renumber to § 25; amends § 4; extends § 8 and § 12)
- Executor — every change that modifies software, or that is sent to the Harness Console to be applied as an execution (ops, jobs, loop-run apply, write-back that carries out work rather than only recording direction), is executed by Claude Code (local CLI or console-/workflow-dispatched session).
- Director — Grok bots may open PRs only when the PR is direction-setting: constitution text, amendment records under
docs/amendments/(proposed → numbered at merge), and the matchingchangelog.d/entry. They may includefeatures/features.d/,prd_new, and_data/roadmap.ymlfragments only inside that same amendment PR when those fragments define the capability the amendment introduces. - What Grok bots may still do without a software PR — file and comment on GitHub issues; draft console plans that stop before apply; propose handoff issues labelled for Claude Code execution; read and review. They do not open implementation PRs, push product commits, or apply console write-back that executes software changes.
- Handoff — when a Grok bot determines software or console work is needed, it files a Fleet issue (and/or a console job / loop step) that states the goal, acceptance criteria, and constraints; Claude Code picks that up and opens the implementation PR.
- Maintainer override — Amr may always direct otherwise; an explicit Amr OK is required before a Grok bot executes software work when Claude Code is unavailable or out of budget (Design for Failure).
- Ratification unchanged — only Amr merges amendments (§ 8); § 12.3 ratification-record PRs remain automation, not Grok implementation work.
- Enforcement — a warn-then-fail check (
tools/claude_code_executes_lint.pyand/or a workflow) flags PRs authored by known Grok-bot identities whose diff is not direction-setting; warn-only until adoption, then hard fail. Labels such asdirection-setting/executor:claude-codemay assist humans and CI. - Fleet — spoke repos conform or file their own amendment saying how they do.
27. Expedite sprints run by agentic loops¶
(amendment expedite-sprints, numbered at merge — see the amendment log; follows § 25 mcp-lifecycle (PR #685) and § 26 claude-code-executes (PR #686), both open; renumber to the next free section if either does not merge first; extends § 9, § 10, § 12, § 13 and § 17)
- Expedite class of service — an expedite sprint is an accelerated, top-priority, time-boxed pilot on one item. At most one expedite sprint is active fleet-wide (WIP 1); it may preempt other lanes' implement slots, and every lane it preempts is recorded.
- Three gates, all Amr's — (a) declaration: Amr commits the item to
_data/work_queue.ymlorder:with its appetite (hours plus an API-equivalent USD estimate); (b) spec approval: scope, user stories, Design-for-Failure table and acceptance criteria are approved before build; © merge: through the § 12 review gate (needs-amr). An agent never declares, approves or merges its own sprint. - Fixed time, variable scope — the appetite is a ceiling, not an estimate. At the cap or the end of the time box the sprint stops (circuit breaker): it files what it has as a draft and records the stop; it is never extended automatically.
- Budgets — a sprint ceiling sits inside the existing caps (
budget.call_sites,budget.loops,budget.jev, the fleet monthly ceiling) and never raises them; JEV starts at tier 0; every figure is labelled API-equivalent (estimate) (§ 10.7). - Same gates, no shortcuts — an expedite sprint skips no required check, eval, review gate, risk tier or kill switch; speed comes from priority and swarming, not from relaxed quality.
- Kill switch — every loop a sprint drives honours its switch (§ 17); one sprint-scope switch stops all of them.
- Live record and metrics — each sprint keeps a live state record (gates, phase, items, spend vs cap, trip wires) and reports DORA's delivery metrics for the target repo as a guide, never as a target.
- Retro — every sprint ends with a retro that routes each failure to the strongest ratchet rung (
docs/HARNESS.md) and files remaining quality debt as issues before it closes. - Scope — the standard is
docs/EXPEDITE-SPRINTS.md; the budget, record and metrics tooling are follow-ups (epic #687).
28. Grok ↔ Claude Code governance¶
(amendment grok-claude-governance, numbered at merge — see the amendment log; follows proposed § 25–§ 27 (#685, #686, #693) and may be renumbered by merge order; depends on § 26 claude-code-executes)
- Handoff contract — a Grok bot starts software or console work only by opening a Fleet issue or a Harness Console job that states (a) the requirement (
FRn/NFRn, orFR-NEW:<key>in a pending amendment), (b) acceptance criteria and constraints, and © a link to the ratified amendment or PRD requirement that governs it. Work whose governing amendment is still unratified stays queued. - Execution — Claude Code executes against that spec, opens the implementation PR, and links the handoff issue/job and the governing amendment or requirement in the PR body. Ambiguity goes back to the issue as a question, not into invented scope (unknown = TBD).
- Direction review — before merge, a Grok bot reviews the result for alignment with direction (does it meet the stated requirement and stay inside the amendment's scope?) and records the verdict on the PR. It does not review or rewrite the code itself; code quality stays with § 12 / § 15 review and CI.
- Audit trail, no orphan changes — every software change traces to a ratified amendment or PRD requirement. Each PR body carries a
Governed by:line naming an amendment (docs/amendments/NNNN-*.md,AMEND-NNNN, or a pending amendment PR) and/or a requirement (FRn,NFRn,FR-NEW:<key>).tools/governance_trace_lint.pychecks this; warn-only until adoption, then a hard failure. Trivial maintenance (dependency bumps, typo fixes, generated-file refreshes) cites the standing requirement that covers it or is labelledtrace-exemptby Amr. - Role boundaries — Grok bots own direction: constitution, amendments, PRD, features, roadmap, research and assessments. Claude Code owns every software change and console job (§ 26). Neither crosses the boundary without Amr's explicit OK.
- Escalation — if Claude Code is unavailable or out of budget, the work stops. The Grok bot records the blocker on the handoff issue and asks Amr; nothing proceeds until Amr approves an alternative path (wait, a one-shot exception, or Amr executes).
- Ratification — this section and every amendment under it are ratified only when Amr merges the PR (§ 8).
29. The agentic efficacy contract¶
(amendment agentic-efficacy-contract, numbered at merge — see the amendment log; follows § 28 grok-claude-governance (PR #695) and §§ 25–26 (PRs #685, #686), all open — renumber to the next free section if any does not merge first; extends § 10.7, § 10.9, § 13 and § 17; the efficacy model is ADR 0009, the operator doc AGENT-EFFICACY.md)
"Agent" in this section means a CI agent step, a local loop step, a scheduled local job, or a JEV tier. Every agent:
- Is registered in one inventory,
_data/agents.yml, with its owner, trigger, kill switch, budget cap and model. The inventory is generated from the files that define agents (the workflows, the JEV step specs,_data/fleet.ymljev:, thetools/install-*.shinstallers), plus_data/fleet.ymlharness.agentsfor what the code cannot show; drift check (p) fails a pull request that adds an agent without registering it. - Writes one run record per model call, in one schema: its cost and the cost's source, turns, model, outcome, permission denials and tool errors. A run that leaves no record, or reads $0 when its cost is unknown, is a silent failure.
- Declares its efficacy: KPIs and their thresholds, per kind of agent, in
_data/fleet.ymlharness.efficacy(ADR 0009: accepted outcomes per dollar and per Actions minute, time to outcome, false-signal rate, silent-failure rate). Every dollar figure is API-equivalent (estimate) (§ 10.7). - Names the data it reads: each source declared in
_data/fleet.ymlharness.sourceswith its writer and a freshness SLO. A source with no writer is a defect, and so is a source older than its SLO. - Feeds the reflector: its run records land where the incident reflector (
tools/dash refine reflect) reads them, so its failures can become lessons in the experience library. - Has a local entry point (§ 10.9), unless it must react inside GitHub (an @claude mention handler); the inventory records the exemption and its reason.
- Shadow, then grace. The checks are read-only. For at least 14 days after this section is ratified, and until
harness.efficacy.shadow_until, a contract gap is a warning. Enforcement starts only when a gated pull request setsharness.efficacy.enforce: true. From then on, an agent first registered after the shadow period complies on arrival, and one registered before it keeps its gaps as warnings untilharness.efficacy.grace_until. Registration itself (item 1) gates from the start. - Gated. The contract's KPIs, thresholds, sources and exemptions change only by a gated change (§ 12.3). An agent never changes its own KPIs, thresholds or exemptions (§ 13.9).
30. On-premise compute¶
(amendment onprem-compute, numbered at merge — see the amendment log; follows § 29 agentic-efficacy-contract, renumber to the next free section if another amendment claims 30 first; extends § 10.5, § 10.7, § 10.9, § 13 and § 17; narrows, for an enrolled on-premise node only, ADR 0002's ruling against a self-hosted runner; the plan is ONPREM-COMPUTE.md)
- Enrolled nodes — an on-premise machine does fleet work only as a node declared in
_data/fleet.ymlnodes:,enabled: falseuntil its deploy step. Every step that changes it is a deploy (§ 10.5, § 13.6), planned before it is applied, and it is reached only over SSH with keys. Its services bind its loopback, and nothing it runs listens on the LAN without a token. - A local session may run on a node — a local session under § 10.9 may run on an enrolled node, from the node's own git checkout, through the same entry points, kill switches (§ 17), caps, AI ledger and sandbox as on the maintainer's workstation, and every scheduled job there is registered as an agent (§ 29). Housekeeping on a node acts only on that node's own checkouts, worktrees, clones and session state. It reaches another machine's only when the maintainer opts that machine in, and it never ends a running session. The fleet never needs a node to be up: work that prefers it falls back or waits, and says which.
- Local models are a tier under § 13 — a model served on an enrolled node may run a step, a JEV tier, a typed decision or an embedding job only when it is pinned by exact tag and digest under a
localprovider inai_models.allowed(§ 13.3) and the step's eval set passes on it (§ 13.4). It receives no secret, runs with the step's own tool allowlist, and never becomes the default model of a session. Claude Code with an allowed Anthropic model stays the executor for implementation and review (§ 26). - Honest on-premise cost — on-premise work is reported as what it is (§ 10.7): $0 metered API spend for local-model runs, and no hosted runner minutes for work that moves onto a node; a Claude Code session on a node draws on the same subscription as anywhere else and stays API-equivalent (estimate); electricity is a real cost, measured and stated as energy beside the run. Local-model runs carry their own cost source in the ledger and are never summed with API figures. Nothing is called free that is not.
- A self-hosted runner only behind fences — a self-hosted GitHub Actions runner on an enrolled node is allowed only when all of these hold: (a) only
scheduleandworkflow_dispatchworkflows on the default branch target its labels, and a drift check fails any workflow reachable frompull_request,pull_request_target,issue_comment,workflow_runor another event a fork can raise that does; (b) the repository requires approval for fork pull-request workflows from all external contributors, a setting only the maintainer changes, and approving such a run is a review of every workflow file it changes; © the runner is ephemeral, runs as its own unprivileged user in a container or VM, and cannot read the maintainer's home, keys, Claude credentials or.env; (d) it has a kill switch (§ 17), is registered as an agent (§ 29), and stays off until the maintainer registers it. A runner on the maintainer's workstation stays ruled out (ADR 0002).
31. Fleet mission statements and the repository about section¶
(amendment mission-and-about-section, numbered at merge — see the amendment log; follows § 29 agentic-efficacy-contract; bamr87/bamr87#858 proposes § 30, so this section is numbered § 31 to avoid a collision and may be renumbered if merge order changes; extends § 1 and § 14; features HUB-NEW:mission-statements and HUB-NEW:about-section-sitemap)
- Mission statements. Every governed fleet repo states its purpose in constitution § 1 as one direction statement followed by exactly three numbered missions. The text is adopted only through a numbered amendment, ratified when the maintainer merges the PR (§ 8). Ambition is written as direction, not as a claim of current capability. The first mission provides data, tools, resources and transparency for all stakeholders in that repo's domain, including professionals in the field and the general public, unless a ratified amendment records a documented reason it does not apply (for example a private research repo).
- Matching one-liners. The repo's README tagline and AGENTS.md opening one-liner match that direction and link to constitution § 1.
- About section as site map. Every non-fork, non-archived fleet repo carries a public-facing about section, primarily in
README.mdand on the public docs site (§ 14), that functions as a site map of the repo's fundamental pages. The required and optional entries, and the exemptions for forks and archived repos, are defined in docs/ABOUT-SECTION.md. The section is consistent (the same entries in the same order), reliable (links resolve to files that exist) and comprehensive (every required entry is present, and every optional entry is present when the underlying page exists). - Hub first, then fan-out. The standard is written and ratified in this hub, then fanned out to each repo in its own PR. A repo may already be ahead of the standard (for example an open mission-statement amendment); those PRs stay valid and are ratified by the maintainer merging them.
- Conformance. A
tools/conformance.pycheck verifies the § 1 shape and the about-section links; warn-only per repo until its fan-out PR lands, then a hard failure for that repo. The check itself is follow-up work and is not in this amendment's pull request. - Exemptions. Forks keep the upstream README. Archived and retired repos need a README, a license when one exists, and a retired notice. Private repos are flagged, never made public by an agent, and may omit a public about section for sensitive research. Any other exemption needs a reason the § 15 completeness review accepts.