amplifier-bundle-routing-matrix
AGENTS.md3 starsChanged 3 months agoMITView on GitHub
Read README.md, docs/HANDOFF.md, docs/VISION.md, and the documents relevant to your change: - Catalog, identity, scope or host integration: contracts/routing-catalog.v1.md, docs/CATALOG-SPEC.md, docs/PROVIDER_AVAILABILITY.md. - Model preferences, evaluation or evidence: docs/EVALUATION-PROGRAM.md, docs/MATRIX_CURATOR_GUIDE.md. - Offline routing evaluation tooling: evals/AGENTS.md and evals/README.md. - Tests and release gates: .github/workflows/ci.yml, ruff.toml, module pyproject.toml and module tests. The new vision/catalog contract are DRAFT. They describe proposed direction, not delivered behavior, frozen promises or permission to implement. Handoff distinguishes current source facts, proposed changes and decisions still needed. Re-read…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- evals/AGENTS.mdAGENTS.md
- role-definitionsSkill
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Read README.md, docs/HANDOFF.md, docs/VISION.md, and the documents relevant to your change:
- Very specific: line 31
No inference or recurring paid benchmarks in ordinary offline CI.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Routing bundle: agent handoff
Read before work
Read README.md, docs/HANDOFF.md, docs/VISION.md, and the documents relevant to your change:
- Catalog, identity, scope or host integration:
contracts/routing-catalog.v1.md,docs/CATALOG-SPEC.md,docs/PROVIDER_AVAILABILITY.md. - Model preferences, evaluation or evidence:
docs/EVALUATION-PROGRAM.md,docs/MATRIX_CURATOR_GUIDE.md. - Offline routing evaluation tooling:
evals/AGENTS.mdandevals/README.md. - Tests and release gates:
.github/workflows/ci.yml,ruff.toml, modulepyproject.tomland module tests.
The new vision/catalog contract are DRAFT. They describe proposed direction, not delivered behavior, frozen promises or permission to implement. Handoff distinguishes current source facts, proposed changes and decisions still needed. Re-read local conventions at design/code/verification/publication transitions.
Ownership and invariants
This bundle owns matrix identities, aliases, role definitions, preference policy and resolver semantics. Consumers own presentation, configuration persistence and credential authority. Do not import a consumer application or evaluation runner into the runtime hook. Portable dispatch enforcement is a separately qualified integration dependency, not a capability this routing hook already supplies.
Routing-specific evaluation configurations, scenarios, graders, reuse rules and promotion policy are maintained in evals/ and docs/EVALUATION-PROGRAM.md. Evaluation assets/library bricks are optional development dependencies, never runtime hook imports or production dependencies. The offline tools require an explicit local benchmark root; the separate CI job acquires pinned public assets without executing upstream scripts. Keep that dependency isolated from routing policy and ordinary root/module tests.
Preserve custom-file precedence, explicit intent, caller inheritance, exact mounted-instance provenance and failure behavior. The current openai matrix is API-first across API and ChatGPT; it is not API-only. Do not silently change saved IDs, widen account scope, invent fallback IDs, or label wildcard/template discovery verified. Catalog membership and entitlement are different evidence.
The bounded catalog library is documented in docs/catalog-api.md. It reuses effective resolver semantics with snapshots and independent initial state; never pass live escalation state, reporting sinks or mutable caches to assessment. Catalog calls must not reach runtime logger handlers: preserve runtime diagnostics by explicit reporting injection, not global logger disabling. Explicit-preference assessment and next-dispatch prediction remain unsupported; broader specification examples are not executable interfaces.
Verification
The root and routing-module suites both matter. Use the commands and supported Python matrix from .github/workflows/ci.yml; run python -m pytest, not an accidentally isolated pytest entry point. Module checks must actually import Foundation/Core where required; a dependency-induced skip is not a pass. CI pins Ruff at 0.15.11; do not add unrelated whole-repo formatting. Run .github/scripts/check_bundle_structure.py for YAML/frontmatter changes.
Runtime/provider/spawn changes also need an isolated full-stack smoke with real installed dependencies. Record environment readiness before the check, exact revisions, selected test counts, actual results and skips. Unit or catalog checks do not establish live model quality, account containment or deployed adoption. Keep regressions present when reverting production to prove a real red/green pair.
Root CI now needs actual Core/Foundation because catalog tests exercise lifecycle and capability paths. Pre-import them in the same pytest process before module fixtures can install a stub; a separate import command is insufficient. Canonical/alias collapse also needs the entire winning-source group to match: a custom canonical profile must not suppress a still-valid bundled alias strategy.
No inference or recurring paid benchmarks in ordinary offline CI. Live runs need an approved token/time/spend envelope, private ignored output storage, lifecycle accounting and safe credentials; parsed-but-inert preset knobs are not budget controls.
Run the independent evals/ suite with ROUTING_EVAL_BENCHMARK_ROOT explicitly set as documented there. Missing assets fail, never skip or fall back to ambient sibling checkouts. Preserve historical sample source/task/grader locks during relocation; they do not attest the current routing revision. /.eval-deps/ is an ignored asset cache and /evals/results/ is only an accidental-output safeguard, not an approved raw-result location.
Publication and privacy
Commit only newly authored synthetic fixtures, approved public-source metadata and schema-allowlisted summaries. Never commit raw captures, secret/config-derived hashes, personal identities/paths/endpoints, account bindings, private session maps, holdout answers or private project links. Being visible in a local session is not publication permission. Public attribution must cite an already-public source and disclose no associated private identity.
New content classes require a fresh-context stranger/leak review before push; scan staged content and any uploaded artifacts. Do not copy a private governance document into this public bundle. Keep raw acquisition, subject execution and grading isolated from personal home/browser/credential stores. Do not delete source records merely to produce sanitized artifacts.
Changes to direction
Drafts may be revised as drafts. A steward-locked document changes through an evidence-backed candidate proposal, never silent edits. Do not mark a document frozen or create a passing ledger from prose. The lock bar needs a discriminating good/bad kit, a passing real implementation, an end-to-end example and the steward's decision. Review approval is not ratification.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

