cerebral work // product · cicatrix

Regression memory, ledgered.

cicatrix is the regression-memory and convention-drift framework for the cerebral-work estate. It treats test regressions and code-convention drift as first-class knowledge — facts reasoned over with a Datalog core and bridged back into reverie as observations a future session can retrieve.

What it does

Architecture

Component Role
datalog coreRelational fact store + rule evaluation; the janus-datalog approach, Rust-portable. Holds regression and drift facts and answers declarative queries.
regression collectorIngests CI/test failures, correlates each to a commit and (eventually) a fix, and emits a regression fact tuple with full provenance.
drift detectorWalks the working tree against the declared convention canon (AGENTS.md, skills, style guides) and emits drift findings keyed by rule.
reverie bridgeForwards each fact and finding to reverie as a regression or convention-drift observation; the daemon handles dedup, consolidation, and recall.
rule canonThe versioned set of Datalog rules that define what counts as a regression recurrence and what counts as a convention violation. The canon is code-reviewed, not learned.

Status

in development

Repo: github.com/cerebral-work/cicatrix · Language: Rust · License: Proprietary.

The Datalog core and the reverie bridge are the load-bearing pieces; the regression collector and drift detector are filling out against the estate’s convention canon as it stabilizes. cicatrix ships as a component of the reverie stack, not a standalone product — its value is the closed loop with the memory daemon.