8 Cross-cutting Concepts¶
Each concept has a page of its own in concepts/; this chapter numbers them and says in a few
sentences what each one covers. The rules and their reasons are on the pages, which link the
how-tos in setup/, sdlc/ and ci/
rather than repeat them. The chapter adds no rule: each page names where its rules are stated—the
root CLAUDE.md (CLAUDE.md), SPEC.md (SPEC.md) §7, a page under
docs/ or a plugin's README.
8.1 Secrets and tokens¶
No token in a file, on a command line, in the chat or in a synced folder (Q-4). A token is read with hidden input, validated and tested before it is staged; each machine has one store that every reader reads itself, and no token enters a sandbox.
8.2 Identities¶
No login or email address of a real person in the repository: the docs use placeholders, the
tests neutral logins, and a value a tool needs comes from the machine. Two accounts act, the
owner's and the bot account, and dev-env:dev-doctor checks on every machine that git and GitHub
act as the expected one.
8.3 Permissions and sandboxing¶
No session raises its own rights (Q-5); the bot sessions of a repository run in one Docker Sandbox with an allowlisted network; standing consent is written down and the rest is the owner's; a worker cannot merge; and committed deny rules and dcg refuse what cannot be taken back.
8.4 The quality gate¶
A machine half—the build, from the pre-push hook and again in CI—and a model half—simplify, reviews, the Aikido scan—before the pull request, then a review loop with round limits after it. The deterministic checks decide; the AI reviews are advice (Q-9).
8.5 The merge kinds¶
One merge label per pull request says who merges it: the coordinator on the standing consent, the coordinator after the owner's Approve review, or the owner alone. Owner paths, ADRs and breaking changes need the owner; every merge is a squash merge.
8.6 Idempotent scripts¶
Running a script or skill twice is harmless (Q-6): a step acts only on the difference between the state it wants and the state it finds, says what it did, and reports drift it does not own rather than overwriting it.
8.7 Staged versus active¶
A value written to a store is staged until the process that reads it reads it again, and the scripts report the two states separately (Q-7); a token is revoked only once nothing uses it.
8.8 The docs site's privacy gate¶
The private repository publishes only the folders it lists, with no link into its private files and
the owner's login masked; every build passes a gate for secrets and private details that proves
it ran, on a pull request that changes the site's inputs as on main.
→ The docs site's privacy gate
8.9 Cost¶
Every metered service has a budget, a limit and a default chosen on purpose: CI runs only what a change can have broken, the AI reviewers run once, a level of the plan's quota stops new work, and each role has its model.
→ Cost