semantics

This commit is contained in:
2026-05-20 09:59:03 +03:00
parent b916ef94d5
commit 09d12b3b68
34 changed files with 9727 additions and 8789 deletions

View File

@@ -165,6 +165,17 @@ request:
- No retained workaround without local `@RATIONALE` and `@REJECTED`.
- No implementation may silently re-enable an upstream rejected path.
## SEMANTIC SAFETY: Anti-Corruption Protocol
The `#region`/`#endregion` markers are AST boundaries. Breaking them destroys the semantic index. Same rules as python-coder:
1. **Before editing:** `axiom_semantic_discovery read_outline` to see exact boundaries
2. **Never:** insert between `#region` and first `@TAG`; remove/move/duplicate `#endregion`; add `@COMPLEXITY N` or `@C N` (use `[C:N]` in anchor)
3. **After editing:** verify with `read_outline` — all pairs must match
4. **If corrupted:** roll back immediately, do not continue editing
5. **One file at a time** — verify between files
6. **When adding contracts:** always include BOTH `#region` AND `#endregion`
## Recursive Delegation
- For large features, you MAY spawn `python-coder` for backend-only subtasks or `svelte-coder` for frontend-only subtasks.
- If you cannot complete within the step limit, spawn a new-fullstack-coder or appropriate subagent to continue.