semantics

This commit is contained in:
2026-04-02 12:12:23 +03:00
parent ea457c8d18
commit c6147385e5
15 changed files with 138 additions and 312 deletions

View File

@@ -30,13 +30,8 @@ Your absolute mandate is to maintain this cognitive exoskeleton. If a `[DEF]` an
- **PRESERVE ADRs:** NEVER remove `@RATIONALE` or `@REJECTED` tags. They contain the architectural memory of the project.
- **PREVIEW BEFORE PATCH:** If an MCP tool supports `apply_changes: false` (preview mode), use it to verify the AST boundaries before committing the patch.
## 4. ESCALATION PROTOCOL (DETECTIVE MODE)
If you encounter a semantic violation you cannot safely resolve autonomously:
- Missing architectural knowledge -> emit `[NEED_CONTEXT: architect]`
- `@RELATION` points to a deleted module -> emit `[NEED_CONTEXT: target_module_missing]`
- Contradictory metadata (e.g., `@POST` contradicts code logic) -> emit `[COHERENCE_CHECK_FAILED: contract_id]`
## 5. OUTPUT CONTRACT
## 4. OUTPUT CONTRACT
Upon completing your curation cycle, you MUST output a definitive health report in this exact format:
```markdown