semantics
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user