2.8 KiB
2.8 KiB
description
| description |
|---|
| Maintain semantic integrity — Axiom MCP when connected, otherwise grep/outline (zombie mode). |
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Goal
Ensure the repository adheres to GRACE-Poly (semantics-core). Prefer Axiom MCP search/audit when those tools exist in the session. If they do not (Grok TUI), use zombie-mode grep from semantics-core §VIII and, when present, scripts/semantic_health.py. Never invent Axiom calls or hardcoded health numbers.
Operating Constraints
- ROLE: Orchestrator — coordinate semantic maintenance at the workflow level.
- RUNTIME — Axiom when connected; grep/outline otherwise. Both are valid.
- STRICT ADHERENCE — follow:
MANDATORY USE
skill({name="semantics-core"}),skill({name="semantics-contracts"}),skill({name="semantics-python"}),skill({name="semantics-svelte"}),skill({name="molecular-cot-logging"})- relevant
docs/adr/*
- relevant
- NON-DESTRUCTIVE — do not remove business logic; only add or correct semantic markup unless the user requested implementation changes.
- NO PSEUDO-CONTRACTS / INV_9 — do not inject boilerplate. Missing
@-tags are not failures. Synthetic tags are defects — delete, do not fill. - ID NAMING — short domain-driven IDs, never file paths as the primary key.
- DECISION-MEMORY CONTINUITY — audit real
@RATIONALE/@REJECTEDand ADRs. Do not write decision tags to close an audit list. - LANGUAGE-AWARE — Python
# #region/# #endregion; Svelte HTML<!-- #region -->; Svelte script// #region.
Execution Steps
- If Axiom is connected: rebuild/reindex. Else: skip.
- Measure health (Axiom
workspace_healthor grep pair counts /scripts/semantic_health.py). - Audit top issues, in this order:
- broken
#region/#endregionpairs - dual
[C:N]on one line - unresolved
@RELATIONtargets (dead edge — delete or fix only with a verified ID) - synthetic / copy-pasted
@-tags (delete) - restored
@REJECTEDpaths
- broken
- Missing typical tags (PRE/POST/RATIONALE/…) are a thought list, not a fill list.
- If
$ARGUMENTScontainsfixorapply, route to a curator. Curator may delete garbage and fix pairs; it may not stamp templates. - Re-measure. PASS = 0 mismatched pairs in production src and no new synthetic tags. FAIL ≠ "tags missing".
- If the user asked for docs/nav:
make docs-navand walkdocs/api/nav/root.map(modules) then module maps (functions). Do not grepdocs/api/html/axiom_*.htmlas the index.
Output
Return:
- runtime used (Axiom | zombie)
- health metrics (live, never from this prompt)
- PASS/FAIL against pair/synthetic criteria
- top issues
- decision-memory notes (real tags only)
- action taken or handoff initiated