coherra_audit
Run a full memory audit to detect contradictions, duplicates, and stale facts, returning a health score and detailed issues.
Instructions
Run a full Coherra memory audit and return the results.
Scans all entities in Sibyl Memory for three classes of drift:
contradiction two names that likely refer to the same fact but carry different values
duplicate two entities in the same category with nearly identical values
stale an entity whose body.updated_at exceeds the per-category threshold from coherra:config
Side-effects:
Seeds coherra:config with default thresholds if absent
Writes results to coherra:last_audit (memory_set_state)
Appends a coherra_scan journal event (memory_record_event)
Returns: { "ok": True, "timestamp": "", "health_score": 0-100, "entity_count": N, "issue_count": N, "issues_found": [ {severity, category, name, detail, ...} ] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||