agentleFS
GoogleKnown publishergoogle/zerocopy/anneal/v1/AGENTS.md

zerocopy / v1

AGENTS.md2.6k starsChanged 2 months agoApache-2.0View on GitHub

Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0 <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option. This file may not be copied, modified, or distributed except according to those terms. --> Historical V1 documentation: This document describes the prototype in anneal/v1/. It remains authoritative for using and maintaining V1, but it is not current Anneal design authority. See ../PRINCIPLES.md for current project principles. Known differences are historical and need not be reconciled here.

  • Deletes or force-pushes

Trending

Less talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 4 mentionsJul 2026: 3 mentionsAug 2026: 3 mentionsSep 2026: 3 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the google/zerocopy repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about google/zerocopy

The biggest 5 of 26 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 26

Talked about on GitHub, Bluesky and Hacker News (26 times).

On GitHub · 23

18 more on GitHub

On Bluesky · 2

On Hacker News · 1

The file

We split this AGENTS.md into the rules it gives an agent

7 rules. About 0 are common, 0 are distinctive, and 7 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.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run unit tests with cargo test --bin cargo-anneal.

    line 24
  2. Very specific:

    Run all tests (including integration tests) with ./docker.sh cargo test.

    line 25
  3. Very specific:

    Run a *specific* integration test fixture with ./docker.sh cargo test --test integration fixture_name.

    line 26
  4. Very specific:

    If you encounter Lean type mismatches (e.g., Application type mismatch), it's often a mismatch between what Aeneas generated for the …

    line 72
  5. Very specific:

    If a test fails and you want to inspect the generated Lean code, use the ANNEAL_KEEP_TEST_DIR=1 environment variable.

    line 74
  6. Very specific:

    Look at Funs.lean to see the actual Aeneas parameters, and [TestName].lean to see the Anneal theorem signature.

    line 85
  7. Very specific:

    If this happens, clear the integration caches.

    line 89

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md
<!-- Copyright 2026 The Fuchsia Authors Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0 <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option. This file may not be copied, modified, or distributed except according to those terms. -->

Anneal

Historical V1 documentation: This document describes the prototype in anneal/v1/. It remains authoritative for using and maintaining V1, but it is not current Anneal design authority. See ../PRINCIPLES.md for current project principles. Known differences are historical and need not be reconciled here.

Note to AI Agents: This document is intended for agents developing the Anneal toolchain itself. If you are an agent using Anneal, please refer to the llms.txt and docs/agent/ directory instead.

Basic commands

  1. Run with cargo run verify.
  2. Run unit tests with cargo test --bin cargo-anneal.
  3. Run all tests (including integration tests) with ./docker.sh cargo test.
  4. Run a specific integration test fixture with ./docker.sh cargo test --test integration fixture_name.

Tips

  1. Integration tests are expensive. Prefer cargo test --bin cargo-anneal for quick verification and iteration, and only run ./docker.sh cargo test --test integration when you need to verify the integration tests.
  2. To see the generated Lean code for a module, use cargo run expand. This will run Aeneas and Anneal but skip verification, outputting the generated .lean definitions to the terminal.
    cargo run expand --example abs
  3. To see where intermediate artifacts are placed on disk, run with RUST_LOG=cargo_anneal=trace as a fallback:
RUST_LOG=cargo_anneal=trace cargo run verify --example abs

Integration Testing

  1. Updating Expected Output: Anneal integration tests (stored in tests/fixtures/<test_name>) assert against an expected.stderr or out.txt file. When you intentionally change the behavior or output of a test, do not edit these files manually. Instead, run the integration test with BLESS=1 to automatically overwrite the snapshot files:
    BLESS=1 ./docker.sh cargo test --test integration fixture_name
  2. Allowing sorry: While developing and ensuring Aeneas translates Rust correctly, you don't have to write the full Lean proof immediately. You can write sorry inside the proof block. However, you must pass --allow-sorry to Anneal so the verifier doesn't fail immediately on the unimplemented proof. For integration tests, this is done by adding --allow-sorry to the args array in the fixture's anneal.toml:
    args = ["verify", "--allow-sorry"]

Running Tests in Docker

Due to the complex toolchains required by Anneal (Rust, Lean 4, Aeneas, and Charon), it is recommended to run integration tests within the provided Docker container. The container handles all system dependencies and provides an isolated environment for the test runner.

The docker.sh script should be used. It handles building and caching the Docker image, mounting compilation cache volumes, mapping local user IDs (so that files are not owned by root on your host), and forwarding environment variables.

Simply prefix your normal Cargo tests with ./docker.sh:

./docker.sh cargo test --test integration

# You can pass standard environment variables. They will be forwarded!
BLESS=1 ./docker.sh cargo test --test integration

(Under the hood, this evaluates your path and places you in the same working directory inside the container's bound /workspace volume)

Debugging Tips

  1. Debugging Aeneas vs Anneal Mismatches
    • If you encounter Lean type mismatches (e.g., Application type mismatch), it's often a mismatch between what Aeneas generated for the function and what Anneal assumed Aeneas generated in the theorem signature.
    • Standard integration tests (./docker.sh cargo test --test integration) delete their temporary output directory (/cache/anneal_target/anneal-test-XXX inside Docker) upon completion.
    • If a test fails and you want to inspect the generated Lean code, use the ANNEAL_KEEP_TEST_DIR=1 environment variable.
    • The test runner will preserve the directory and print its path to stderr:
      ANNEAL_KEEP_TEST_DIR=1 ./docker.sh cargo test --test integration macro_edge_cases
    • Note: Because the test runner operates inside Docker, the printed path will reside within the container's isolated /cache volume. To explore it, you must open a shell inside the container:
      ./docker.sh bash
      # Then inside the container, navigate to the path printed to stderr:
      cd /cache/anneal_target/anneal-test-XXX
    • Look at Funs.lean to see the actual Aeneas parameters, and [TestName].lean to see the Anneal theorem signature.
  2. Caches Need Busting
    • Sometimes cargo test fails with bizarre syntax errors that persist despite fixing the code.
    • If this happens, clear the integration caches. If you are using ./docker.sh, the caches reside inside the container's /cache volume, so you must clear them from within by running:
      ./docker.sh rm -rf /cache/anneal_target/anneal_integration_cache

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.