Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
chore(persistence): classify the pattern claim-source de-duplication writer in the canonical inventory (#6236)
time-attack58d7b26d1738
diff --git a/docs/architecture/canonical-writers.tsv b/docs/architecture/canonical-writers.tsvindex be44f7b80a..211fd11ae0 100644--- a/docs/architecture/canonical-writers.tsv+++ b/docs/architecture/canonical-writers.tsv@@ -44,6 +44,7 @@ src/core/cycle/extract-atoms-page-state.ts 1 engine_guard Atom completion updatesrc/core/cycle/extract-takes.ts 5 coordinator On a managed brain the DB-source walk publishes each fenced page's takes inside a withCoordinatedWrite transaction for the page's own source under the page lock, re-reading the page there and writing the canonical projection's superseded_by while leaving resolution columns untouched; the file walk and unmanaged brains keep direct SQL, which the trigger refuses on managed brains. Stale-row pruning deletes only takes whose rows left a cleanly parsed fence on a live page in the same source.src/core/cycle/grade-takes.ts 1 coordinator A managed brain applies auto-resolutions through the coordinated takes_resolve page mutation; the unmanaged resolveTake stays behind the canonical table trigger.src/core/cycle/patterns.ts 1 coordinator Managed local patterns use admitted page operations and validate canonical outputs; the legacy reverse-file path runs only unmanaged. Quote grounding writes verified pattern pages back through publishMaintenancePage (revision-checked) on a managed brain; the unmanaged importFromContent write-back stays behind the canonical table trigger.+src/core/cycle/pattern-claim-sources.ts 1 coordinator The pre-run claim-source de-duplication (#6236) rewrites only pattern-page frontmatter: on a managed brain through publishMaintenancePage with the snapshot's expected revision (database row and worktree file in one coordinated publication; a pending or contended publish is held and the phase submits no child), and on an unmanaged brain through importFromContent, which the canonical table trigger refuses on a managed brain.src/core/cycle/phantom-redirect.ts 3 coordinator Managed brains route the redirect to phantom-redirect-managed.ts (canonical merge and phantom delete as coordinated maintenance requests whose publication moves the rows); the legacy file-first path runs only unmanaged and its canonical SQL stays trigger-guarded.src/core/cycle/phases/consolidate.ts 5 coordinator Managed local consolidation publishes a take, semantic contributing facts and file in one guarded receipt transaction; legacy writes remain SQL-guarded.src/core/cycle/dream-provenance.ts 1 engine_guard The unmanaged dream-provenance stamp (synthesize and patterns) updates pages frontmatter directly; managed brains stamp through stampMaintenancePage or the synthesis postprocess maintenance write instead, and the canonical table trigger refuses this path there.