agentleFS
AURORA-NEUROAURORA-NEURO/aurora-agent/.agents/skills/verify-crate/SKILL.md

verify-crate

Skill1 starsChanged 2 months agoApache-2.0View on GitHub

Verify a bioprism crate is genuinely green — tests passing and clippy at zero warnings — and recognise the environment failures that masquerade as test failures. Use before claiming a crate is done, after landing an agent's work, when a test count looks wrong or lower than expected, or when `cargo test` reports a failure with no failing test named.

The file

We split this skill into the rules it gives an agent

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

  • 3

    Very specific

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

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

    If a per-crate count looks lower than expected, check for never executed and rustdoc's inline Application Control diagnostic before …

    line 53
  2. Very specific:

    Do not trust the sum alone: Check the per-binary Running ...

    line 91
  3. Very specific:

    Do not run the workspace suite while agents are concurrently writing crates — a crate mid-edit will not compile and will fail the whole …

    line 96

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
SKILL.md

Verify a crate

Green means both of these, per crate:

cargo test -p bioprism-<crate> --offline
cargo clippy -p bioprism-<crate> --all-targets --offline

Zero failures, zero warnings. --offline is not optional — this workspace builds against pinned versions with no network, and omitting it produces a confusing registry error rather than a build.

Do not trust a reported test count without running it

Agents and humans both miscount. Run the suite yourself and sum the test result lines:

cargo test -p bioprism-<crate> --offline 2>&1 | grep -E "^test result: ok" | awk '{s+=$4} END {print s}'

The failure that is not a failure

Windows Application Control sometimes blocks a freshly linked test binary:

error: test failed, to rerun pass `-p bioprism-<crate> --test <suite>`
Caused by:
  could not execute process ... (never executed)
Caused by:
  An Application Control policy has blocked this file. (os error 4551)

Rustdoc doctests can report the same block inline as Couldn't run the test: An Application Control policy has blocked this file. (os error 4551) without Cargo's never executed wording. Count both forms; tools/status.sh --tests includes both in its blocked-process count.

A suite that never ran looks exactly like a suite that failed. Worse, cargo test continues to the next binary, so a naive sum silently under-reports — this has already produced a wrong count once (27 reported where the true figure was 75).

Force a relink to get a new binary hash the policy allows:

touch crates/<crate>/tests/*.rs
cargo test -p bioprism-<crate> --offline

If a per-crate count looks lower than expected, check for never executed and rustdoc's inline Application Control diagnostic before concluding anything about the code.

It bites the workspace sum harder than any single crate

This is the part that keeps costing time. A blocked binary makes cargo test --workspace lose every test after it, silently — the run reports error: test failed, cargo moves on, and the sum you take at the end is short by an amount nothing on screen tells you.

It has now hit five recorded times in this repository:

WhereReportedTrue
workspace, Batch I (3a5bae2)3444,327
workspace, fiber batch (0f5b53b) — three binaries blockedshort by 666,171
crates/fabric (18c5475)130176
crates/bioevalx (9a04c8b) — one blocked, three later never ran—113
the original per-crate case in this skill2775

The 344-against-4,327 run is the one to keep in mind: the shortfall is not a rounding error, and the number looked plausible enough to be written down.

Relink and recount

Touch every test source first, then run with --no-fail-fast, then count the blocked binaries as well as the tests:

find crates -name '*.rs' -path '*/tests/*' -exec touch {} +
cargo test --workspace --offline --no-fail-fast 2>&1 | grep -c 'never executed'
cargo test --workspace --offline --no-fail-fast 2>&1 \
  | grep -E '^test result: ok' | awk '{s+=$4} END {print s}'

A non-zero first number invalidates the second. tools/status.sh --tests does exactly this and prints a warning naming the shortfall, which is why the README's test count is generated rather than typed.

Do not trust the sum alone. Check the per-binary Running ... lines against the crate list — ls crates | wc -l is 88 — rather than accepting a total that has no way to tell you what is missing from it. A crate whose binaries are all absent from the output looks identical to a crate with no tests.

Do not run the workspace suite while agents are concurrently writing crates — a crate mid-edit will not compile and will fail the whole invocation for reasons that have nothing to do with your change. Use -p per crate in that situation.

What a real test looks like here

A passing count is not evidence on its own. Before accepting a crate, read a few test names. They should state the claim being made:

  • good: a_budget_smaller_than_the_closure_fails_rather_than_truncating
  • good: an_unmeasured_capability_is_never_reported_as_a_low_score
  • bad: test_budget_2, it_works

A test that exercises a path without asserting an invariant inflates the count and protects nothing. Prefer deleting it to keeping it.

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.