fix(agents): agents run the project's own fast test command, and Braid's AGENTS.md block stays current (#65) #66
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/agents-test-command-65"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #65.
On run
run_01M3FS9FFXEHTY5WTHX36V4Z5Y, thetestsubagent ranuv run pytest tests/ -q: one process, every slow test and the integration suite, still at 52% after 15 minutes. This repository's fast lane (#39) takes about a minute, but it's documented only inCLAUDE.md, which opencode doesn't read when anAGENTS.mdexists. Braid's test prompts also offereduv run pytest -q tests/unitas their example.What changes
AGENTS.mdblock tells every agent to find and use the project's own test command (AGENTS.md,CLAUDE.md, README, CONTRIBUTING, a test script, a Makefile orpackage.jsontarget), to give that command to atestsubagent, to run in parallel where it can, and to leave slow, integration and end-to-end suites to their own steps.script.agents-mdkeeps its block current. It used to append once and never touch it again, so repositories that merged an earlier run'sAGENTS.mdkept those rules forever. It now replaces the text between its markers when it differs, leaves everything outside them byte for byte, and leaves no scratch file..osf/test/<lane>.commandand drop the misleading example. Thetestsubagent guidance says the same.AGENTS.mdgains "Running the tests": the fast unit, UI and browser commands, and whytools/test.shisn't for agents (its browser fixture is on a fixed port shared across runs). I brought the block up to date by running the step itself.Verification
AGENTS.mdran 1,772 backend and 410 UI tests in 36 s../tools/test.sh: fast lane passed, including 4 new tests: the block is replaced and the house rules are kept, the rule is present, both test prompts carry the rules, and the subagent guidance.openspec validate --specs --strict: all 27 specs pass. The change is archived in this PR, adding requirements totest-lanesandpipeline-steps.A run already in flight keeps the
AGENTS.mdit was scaffolded with; runs started after the deploy get the new one.🤖 Generated with Claude Code