agentleFS
sipyourdrink-ltdsipyourdrink-ltd/bernstein/tests/AGENTS.md

bernstein / tests

AGENTS.md1.4k starsChanged 58 days agoApache-2.0View on GitHub

Layered pytest suite. unit/ is the big one (2400+ files, no network); integration/ needs a running server; contract/ holds the adapter capability contracts; plus property/, snapshot/, golden/, perf/, chaos/, stress/, pentest/, and benchmarks/. - NEVER run bare pytest over the whole suite: retained test objects leak into 100+ GB of RAM. The isolated per-file runner caps it (scripts/run_tests.py; CONTRIBUTING.md). - Markers are strict (--strict-markers in pyproject.toml); register a new marker there before using it. - Async tests carry an explicit…

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 1 mentionMay 2026: 2 mentionsJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 5 mentionsSep 2026: 37 mentionsOct 2026: 3 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the sipyourdrink-ltd/bernstein repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about sipyourdrink-ltd/bernstein

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

See all 49

Talked about on GitHub and Hacker News (49 times).

On GitHub · 47

42 more on GitHub

The file

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

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

  • 1

    Very specific

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

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

    NEVER run bare pytest over the whole suite: retained test objects leak into 100+ GB of RAM.

    line 18

≈ “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

Test suite

Layered pytest suite. unit/ is the big one (2400+ files, no network); integration/ needs a running server; contract/ holds the adapter capability contracts; plus property/, snapshot/, golden/, perf/, chaos/, stress/, pentest/, and benchmarks/.

How to run

uv run python scripts/run_tests.py -x         # all tests, isolated per-file
uv run python scripts/run_tests.py -k router  # filter by keyword
uv run python scripts/run_tests.py tests/unit/test_foo.py[::test_name]  # one file/test

Invariants

  • NEVER run bare pytest over the whole suite: retained test objects leak into 100+ GB of RAM. The isolated per-file runner caps it (scripts/run_tests.py; CONTRIBUTING.md).
  • Markers are strict (--strict-markers in pyproject.toml); register a new marker there before using it.
  • Async tests carry an explicit @pytest.mark.asyncio (asyncio mode is strict).
  • Runtime type-checking via beartype is opt-in per environment (BEARTYPE_USE_CLAW=enable; CI's beartype job sets it, local defaults off).
  • Docs-guard tests (unit/test_naming_policy_docs.py, unit/test_nested_agents_context.py) pin repo-level invariants; extend them when adding gated docs.
  • unit/test_token_orphans.py fails on caller-less core/tokens/ modules; KNOWN_ORPHANS only shrinks.
  • unit/test_orphan_security_modules.py is the same ratchet for core/security/; each KNOWN_ORPHAN_REASONS entry needs a machine-checkable #NNNN or remove-by:YYYY-MM-DD (#5505).
  • Tests for scripts/*.py load the script via importlib; git-derived behaviour runs on synthetic repos (unit/test_context_staleness.py).

Gotchas

  • CI shards the suite with scripts/run_tests.py --shard N/M; a test that depends on sibling-file ordering is already broken.
  • Live adapter conformance tests are opt-in via the --live flag registered in conftest.py.
<!-- Reviewed 2026-08-27 against this subtree; the notes above still hold. -->

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.