tree: 978cfd008f4016653662a4a5727cb1b4e81428be [search]
  1. boundary-audit/
  2. change-review/
  3. proof-scaling/
  4. source-control/
  5. spec-authoring/
  6. trust-review/
  7. README.md
skills/README.md

Agent skills for Anneal

This directory holds the pure-Markdown policy skills specific to the Anneal verifier. Shared skills and vendored joshlf/skills packages live in google/zerocopy's skills/, the cargo-anneal CLI skill lives in ../trusted/cargo-anneal/skills/cargo-anneal/SKILL.md, and ../.agents/skills.json exposes both local skill directories for discovery. See ../AGENTS.md for standing rules and the task routing table below.

SkillSourcePurpose
boundary-auditRepository-ownedConditional pre-ship blind boundary audit, TCB calibration, three-bucket triage, and HITL Anneal defect reporting
change-reviewRepository-ownedLocal and hosted review workflow, risk sizing, pipelining, and receipts (maintainer contract)
proof-scalingRepository-ownedLean proof scaling, representation shifts, bundled Anneal.* libraries, Pass-1 TrustedBoundary rules, and cliff escape
source-controlRepository-ownedAdapted from google/zerocopy's Contributing Guide; commits, worker quarantine, publication, and stacks
spec-authoringRepository-ownedBody-last spec archaeology, total-logic defaults, anti-echo, [A4] pre-proof sanity, and Spec isolation
trust-reviewRepository-ownedDerived from META_PRINCIPLES.md, PRINCIPLES.md, THREAT_MODEL.md, and docs/trust-model.md

Anneal's Pass 1 containment applies across all skill roots (see ../AGENTS.md). Provenance and SHA-256 digests for vendored joshlf/skills packages are recorded in google/zerocopy's skills/README.md and google/zerocopy's skills/vendor-lock.json.

cargo anneal skill spec-authoring, cargo anneal skill proof-scaling, and cargo anneal skill boundary-audit print copies of these companion skills bundled in ../trusted/cargo-anneal/assets/skills/ so the published crate stays self-contained. When editing any of them, copy its SKILL.md over the bundled file; cargo test -p cargo-anneal fails while they differ.

Task routing

Use this table with the Required skills rules. Paths in code spans below are relative to the repository root.

ActivityRequired skills
Authoring changes for publication, reviewing code/commits/PRs, or auditing trust boundarieschange-review (delegated reviewers: Part I only), trust-review
Designing, implementing, refactoring, or reviewing code for comprehension, invariants, or safe evolutionrobust-code
Writing, revising, or reviewing technical prose (docs, comments, commits, PRs, issues)reader-oriented-explanation, clear-writing (writing skills)
Adding, revising, or reviewing explanatory inline (//, --) or doc (///, //!, /--, /-!) commentscomment-guidelines, plus writing skills
Structuring commits, commit messages, worker integration, stack locking/rebasing, or PR publicationsource-control, commit-message, authorship-disclosure, plus writing skills
Preparing or updating Git commits, PR descriptions, or externally visible proseauthorship-disclosure
Designing or redesigning a system, subsystem, semantic model, protocol, or framework end to endarchitectural-design, model-refinement, swarm-model-refinement, plus writing skills
Simplifying or generalizing conceptual models, semantic interfaces, schemas, protocols, or instructionsmodel-refinement
Coordinating multi-agent conceptual model refinement across theories, designs, schemas, or instructionsswarm-model-refinement, model-refinement
Creating, revising, evaluating, or retiring agent skills or maintainer guidanceskill-authorship, model-refinement
Verifying Rust, authoring specs, scaling Lean proofs, or auditing verified boundariescargo-anneal, spec-authoring, proof-scaling, boundary-audit
Leading ambiguous efforts, recovering requirements, evaluating architecture, or recovering contexttech-lead, plus writing skills
Multi-round research on Rust/rustc/Lean 4 or harvesting findings into the reference corpus (with user approval)reference-research (google/zerocopy reference branch; see Technical reference corpus)

Architecture and trust boundary

Anneal's design checks Trusted.CrateTheorem in Lean 4 over typed Runtime(PostCleanup) MIR and compiler facts. A result asserts that its TCB meets its trust policy and that the verified code is UB-free and meets its stated specifications if its trusted code is correct and the logged assumptions are jointly valid. See the trust model.

Keep first-party verifier code that requires trust in trusted/. Audit the pinned build inputs, ci/, and Zerocopy's root workflows as part of boundary enforcement.

  • Limit trusted/ to primitive definitions that state or gate Trusted.CrateTheorem and VerificationResult, the CI correspondence adapter and claims, and the effectful auditor, CLI, and capture code.
  • Keep theory/ and correspondence/ pure and effect-free. The auditor and Lean kernel check both.
  • The SHA-256-pinned vendor/lean-miri/ model is audited and kernel-replayed for CI correspondence only. Keep it out of the toolchain archive and the imports of trusted/lean/ and theory/.

Commenting in trusted/

Audit of trusted/ and its pinned manifests must suffice to check the project principles and threat model. All trusted/ code receives human review. Use comment-guidelines and its writing skills to give human reviewers explicit rationale, invariants, assumptions, and contracts for all trusted/ code.

Any code in trusted/ modeling Rust semantics or rustc structures must explain the correspondence in comments and both quote and cite rust-lang/reference or rust-lang/rust at a pinned commit hash.

Dependencies in trusted/

Use battle-tested crates (parsing, serialization, hashing, logging) to limit bespoke TCB code; prefer focused deps with few transitives and low soundness risk. Check provenance, pinned checksums, and transitives on additions/updates.

Documented exception: the Ring-0 standalone verification and IR crates (trusted/core-verified/, trusted/mir-ir/, and trusted/anneal-tcb-verify/) intentionally take zero external Cargo dependencies so non-Cargo build systems and independent verifiers can compile the standalone verifier and Stage-O/L IR directly with rustc without importing or auditing a third-party crates.io transitive dependency graph into the verification TCB. This exception is scoped strictly to RFC 8259 JSON parsing/canonicalization, final-component symlink-rejecting file reads, serde-free MIR IR types, and minimal argv parsing (zero hand-rolled cryptography), and is mechanically enforced in CI (ws-meta) via bare rustc compilation.

Technical reference corpus

  • Before repeating broad research, consult the orphan reference branch if accessible and follow its AGENTS.md. Filter CATALOG.json programmatically and check each report‘s REPORT.json, Applicability, and Boundaries against Anneal’s pins. In trusted/, quote and cite authoritative primary upstream sources.
  • Consider reference-research when design or soundness depends on undocumented behavior absent from the catalog, or for findings costly to recover. Present the questions or findings and ask the user to choose planning only or execution and publication. Get explicit approval before running the skill or pushing to google/zerocopy.