orcho-mcp / tests
AGENTS.md4 starsChanged 5 months agoApache-2.0View on GitHub
This file applies to tests/. Also obey ../AGENTS.md and the workspace-level ../../AGENTS.md. The canonical guide is ../docs/testing.md. The layout map is README.md. Tests should make the architecture executable. When a production boundary is important, prefer a small structural test over a convention that depends on review memory. Do not add __init__.py under tests/. Use tests/fixtures/mcp_workspace.py for synthetic run state: Use tests/fixtures/stdio.py::initialized_stdio_session for L3 stdio tests. Keep stdio setup explicit in the test body. Architecture tests under unit/architecture/ are contracts. If…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 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 repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- tests/CLAUDE.mdCLAUDE.md
- orcho-mcpSkill
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Do not add __init__.py under tests/.
- Very specific: line 28
Use tests/fixtures/mcp_workspace.py for synthetic run state:
- Very specific: line 36
Use tests/fixtures/stdio.py::initialized_stdio_session for L3 stdio tests.
- Distinctive: line 37
Keep stdio setup explicit in the test body.
- Very specific: line 45
Run pytest -q tests/unit/architecture after touching adapters, resources, schemas, package imports, or test layout.
- Distinctive: line 50
Use table-driven tests for cursor, pagination, and status-transition behavior.
- Distinctive: line 51
Keep L4 tests small and operator-readable.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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
orcho-mcp tests Instructions
Scope
This file applies to tests/.
Also obey ../AGENTS.md and the workspace-level ../../AGENTS.md.
Testing Style
The canonical guide is ../docs/testing.md. The layout map is README.md.
Tests should make the architecture executable. When a production boundary is important, prefer a small structural test over a convention that depends on review memory.
Layout
unit/mirrors production domains undersrc/orcho_mcp/.integration/protocol/covers MCP protocol and stdio behavior.acceptance/mock_pipeline/covers subprocess-backed mock pipeline flows.fixtures/contains shared builders and transport helpers.
Do not add __init__.py under tests/.
Fixtures
Use tests/fixtures/mcp_workspace.py for synthetic run state:
write_run(...)meta(...)metrics(...)event(...)supervisor_state(...)
Use tests/fixtures/stdio.py::initialized_stdio_session for L3 stdio tests.
Keep stdio setup explicit in the test body.
Architecture Guards
Architecture tests under unit/architecture/ are contracts. If a change needs
to relax a guard, update the guard and the relevant architecture doc in the same
diff, with the new intended boundary stated plainly.
Run pytest -q tests/unit/architecture after touching adapters, resources,
schemas, package imports, or test layout.
Behavioral Tests
- Use table-driven tests for cursor, pagination, and status-transition behavior.
- Keep L4 tests small and operator-readable; they should cover lifecycle traces that would be costly to diagnose after release.
- Mark subprocess mock-pipeline tests with
pytest.mark.mcp_integration.
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.

