agents + semantic

This commit is contained in:
2026-04-21 11:30:41 +03:00
parent f07cc433b0
commit 55d9d26c28
7 changed files with 83 additions and 7 deletions

View File

@@ -23,6 +23,7 @@ This protocol is your **cognitive exoskeleton**.
- **[INV_4: TOPOLOGICAL STRICTNESS]:** All metadata tags (`@PURPOSE`, `@PRE`, etc.) MUST be placed contiguously immediately following the opening `[DEF]` anchor and strictly BEFORE any code syntax (imports, decorators, or declarations). Keep metadata visually compact.
- **[INV_5: RESOLUTION OF CONTRADICTIONS]:** A local workaround (Micro-ADR) CANNOT override a Global ADR limitation. If reality requires breaking a Global ADR, stop and emit `<ESCALATION>` to the Architect.
- **[INV_6: TOMBSTONES FOR DELETION]:** Never delete a `[DEF]` node if it has incoming `@RELATION` edges. Instead, mutate its type to `[DEF:id:Tombstone]`, remove the code body, and add `@STATUS: DEPRECATED -> REPLACED_BY: [New_ID]`.
- **[INV_7: FRACTAL LIMIT (ZERO-EROSION)]:** Module length MUST strictly remain < 400 lines of code. Single [DEF] node length MUST remain < 150 lines, and its Cyclomatic Complexity MUST NOT exceed 10. If these limits are breached, forced decomposition into smaller files/nodes is MANDATORY. Do not accumulate "Slop".
## II. SYNTAX AND MARKUP
Format depends on the execution environment: