Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

docs(census): classify the patterns timeline-row delete on the unmanaged grounding path (#6302)

garrytan72bc5f652797
diff --git a/.wave18b/lane3-manifest.md b/.wave18b/lane3-manifest.md
index 34ba707619..adb4a887fd 100644
--- a/.wave18b/lane3-manifest.md
+++ b/.wave18b/lane3-manifest.md
@@ -20,6 +20,7 @@ Branch `capy/w18b-lane3`. These are the edits to files other lanes may also touc
- `scripts/serial-files.tsv`: three R2 rows (mock.module): `test/cycle-patterns-timeline-appends.serial.test.ts`, `test/cycle-patterns-cadence.serial.test.ts`, `test/cycle-patterns-read-budget.serial.test.ts`.
- `src/core/config.ts`: known config keys gain `dream.patterns.min_interval_hours` and `dream.patterns.child_read_budget_kb` (one line).
- `scripts/module-size-limits.tsv`: ceiling bumps for `src/core/config.ts` (+1) and `src/core/cycle.ts` (+2).
+- `docs/architecture/canonical-writers.tsv`: `src/core/cycle/patterns.ts` ceiling 1 -> 2 (3.1 unmanaged-path timeline row delete for a quarantined append), rationale extended.
- `TODOS.md`: the #6113 P2 free-relabel line now says the doctor check ships and the relabel stays parked.
## Docs edits that may collide
diff --git a/docs/architecture/canonical-writers.tsv b/docs/architecture/canonical-writers.tsv
index c0eb15ad43..9895e1dffc 100644
--- a/docs/architecture/canonical-writers.tsv
+++ b/docs/architecture/canonical-writers.tsv
@@ -46,7 +46,7 @@ src/core/cycle/extract-facts.ts 7 coordinator Managed and unmanaged reconciliati
src/core/cycle/extract-atoms-page-state.ts 1 engine_guard Atom completion updates and cardinality checks share one transaction; managed canonical SQL remains fenced and scan/failure bookkeeping is stored separately.
src/core/cycle/extract-takes.ts 4 coordinator On a managed brain the DB-source walk publishes each fenced page that needs a change as a managed_maintenance_takes_reextract request whose preparer re-reads the page under its key and writes 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/patterns.ts 2 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. #6302: on that unmanaged path only, the timeline row of a quarantined appended entry is deleted in the same transaction as the import (an import does not reconcile timeline rows; a managed publish projects them from the Markdown).
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.