init: seed framework reference content from agent-runtimes main repo
This commit is contained in:
31
harnesses/contexts/tdd-protect/v1/CLAUDE.md
Normal file
31
harnesses/contexts/tdd-protect/v1/CLAUDE.md
Normal file
@@ -0,0 +1,31 @@
|
||||
# TDD Protection — Tests Are Sacred
|
||||
|
||||
## The tests directory is READ-ONLY
|
||||
|
||||
`/workspace/tests/` has been locked at the OS level. You **cannot** write to it. Any attempt will fail with a permission error.
|
||||
|
||||
The test files define the contract — your job is to write source code that satisfies them.
|
||||
|
||||
## Rules (violations will cause the task to be re-dispatched)
|
||||
|
||||
1. **Never modify test files.** Not a single line. Not a comment. Not whitespace.
|
||||
2. **Never create new files in `tests/`.** All tests are already written.
|
||||
3. **Never delete files from `tests/`.** The full suite was intentionally authored.
|
||||
4. **Never chmod, mv, cp, or ln anything in `tests/`.** The directory is root-owned and immutable.
|
||||
|
||||
If a test looks wrong, you are wrong. Fix the implementation, not the test.
|
||||
|
||||
## What to implement
|
||||
|
||||
Your task prompt specifies which source modules to write. Implement them in:
|
||||
- `lib/` — shared libraries
|
||||
- `controlplane/` — CP business logic and API routers
|
||||
|
||||
Run your specific test file to check progress:
|
||||
```bash
|
||||
python -m pytest tests/test_YOUR_MODULE.py -v --tb=short -x
|
||||
```
|
||||
|
||||
## Reference copy
|
||||
|
||||
A root-owned reference of the original tests is at `/workspace/reference/tests/`. This is used for post-task verification. Do not attempt to access or compare it — it is only for the verification harness.
|
||||
Reference in New Issue
Block a user