Atlas
guestPublic

The 13 Agentile rules

🔗 linked · docs/AGENTILE_RULES.mdsource: docs/AGENTILE_RULES.md

The federation-wide rules that govern every repository under CitrateNetwork. People and agents follow them equally. This page is a one-line-each index; the full statement with rationale lives in docs/AGENTILE_RULES.md, with the federation-active copy in citrate-federation/agentile/rules/CORE_RULES.md. Per Rule 9, where this index and those files differ, the files win.

What it is

The rules constrain what can ship; the workflow constrains when and how. They carry over from the pre-split monorepo and are enforced by CI and review together. If the methodology is new to you, start with the Agentile primer.

Reference

#RuleIn one line
0Read before writing codeRead AGENT_ENTRY.md and the repo's owners.md before starting.
1No mocks, no stubs, no TODOsProduction paths contain real code; mocks live behind #[cfg(test)] or a dev flag.
2Test count only goes upThe cargo test --workspace count is monotone within a sprint; removing a test needs an ADR.
3Audits are immutableReports in audits/ are dated and never edited; corrections go in a dated follow-up.
4Sprint file is authoritativeStatus lives in sprints/active/, not in chat, memory, or a PR description.
5Rule-12 frontmatterEvery document carries created, branch, author, and status.
6Daily benchmark on chain cratesSessions touching core citrate-chain crates end with a benchmark run.
7Data-source tracingEvery endpoint declares its data source before it is implemented.
8Zero .unwrap() in productiongrep .unwrap() src/ returns zero in production crates; CI enforces it. Use ? and typed errors.
9One source of truth per topicDo not duplicate docs. Link, do not copy.
10Authorization before destructionForce-push, delete, or rotation needs explicit human sign-off, not just green CI.
11Federation manifest is canonicalcitrate-federation/manifest.toml wins over any per-repo divergence.
12Cross-repo deps follow the drift mapAdd a [[drift]] manifest entry first, then the Cargo.toml or package.json dependency.
13Visibility flips need sign-offPrivate to public on a Tier-1 repo needs federation-lead sign-off (and customer sign-off where the work is customer-specific).

A note on numbering: the frontmatter constraint is called Rule 5 in the federation renumbering and Rule 12 in the archive numbering. It is the same rule.

Access and canon

Public. The rules are public-good methodology and contain no secrets. The internal procedures that apply these rules to sensitive operations are gated; see SOPs.

Source and verification

The canonical sources are docs/AGENTILE_RULES.md (with rationale) and citrate-federation/agentile/rules/CORE_RULES.md (federation-active), at SHA cd729ed. Status: Implemented.