Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Wave B fix lane L: list the segmented tag flip's writers in the writer inventories

garrytan90c46e9a6a8c
diff --git a/docs/architecture/canonical-writers.tsv b/docs/architecture/canonical-writers.tsv
index 9f22f74ca6..d9e8f47e71 100644
--- a/docs/architecture/canonical-writers.tsv
+++ b/docs/architecture/canonical-writers.tsv
@@ -102,7 +102,7 @@ src/core/page-state/revision-backfill-schema.ts 2 schema Migration-pass backfill
src/core/page-state/tags.ts 5 engine_guard Canonical table SQL trigger requires coordinator capability; legacy calls fail before canonical DB publication. The frontmatter-claim and explicit-add inserts are two branches of one guarded statement. #5984: addPageTags is the same two-branch statement for many tags of a page the import wrote in its guarded transaction.
src/core/persistence/memory-mutations.ts 1 coordinator Publication is transaction-scoped under admitted authority, source/page guards and revision checks.
src/core/persistence/memory-prepare.ts 3 coordinator Publication is transaction-scoped under admitted authority, source/page guards and revision checks.
-src/core/persistence/page-prepare.ts 10 coordinator Publication, including versioned tombstone restoration, is transaction-scoped under admitted authority, source/page guards and revision checks; the sixth SQL site reconciles trusted first-write provenance with prepared canonical frontmatter and the seventh records canonical source_path in that same guarded transaction. Identical canonical no-ops do not heal physical metadata. The added local-CLI purge deletePage call runs in the prepared publication callback after recorded-artifact removal, under the same source/page identity, revision and durable authority guards as receipt completion; permanent journal IDs and outcomes survive the hard delete. The ninth site pins an inferred slug_root_mode on sources in the same publication transaction as the first bound origin. Its importFromContent calls carry prepare and run inside the coordinator publication.
+src/core/persistence/page-prepare.ts 13 coordinator Publication, including versioned tombstone restoration, is transaction-scoped under admitted authority, source/page guards and revision checks; the sixth SQL site reconciles trusted first-write provenance with prepared canonical frontmatter and the seventh records canonical source_path in that same guarded transaction. Identical canonical no-ops do not heal physical metadata. The added local-CLI purge deletePage call runs in the prepared publication callback after recorded-artifact removal, under the same source/page identity, revision and durable authority guards as receipt completion; permanent journal IDs and outcomes survive the hard delete. The ninth site pins an inferred slug_root_mode on sources in the same publication transaction as the first bound origin. Its importFromContent calls carry prepare and run inside the coordinator publication. The segmented tag flip (prepareSegmentedTagMutation: createVersion, removeTag/addTag and the content_hash update) runs in the prepared publication callback under the same admitted authority, source/page guards and revision check as the inline tag write.
src/core/persistence/segmented-apply.ts 2 coordinator Wave B segmented apply inside the page write's publication transaction: sealSegmentedPage stamps only projection state (text_projection_revision, chunker_version, search_vector); demoteSegmentedPage turns a segmented row inline with an empty body that the same transaction's inline write fills, under the request's revision and page guards.
src/core/persistence/semantic-pages.ts 1 coordinator Publication is transaction-scoped under admitted authority, source/page guards and revision checks.
src/core/pglite-engine.ts 31 engine_guard Canonical table SQL trigger requires coordinator capability; legacy calls fail before canonical DB publication.
diff --git a/docs/architecture/system-of-record.md b/docs/architecture/system-of-record.md
index 78e5e5eccc..5ec03455c6 100644
--- a/docs/architecture/system-of-record.md
+++ b/docs/architecture/system-of-record.md
@@ -268,7 +268,7 @@ or a physical projection that leaves attribution untouched):
- `src/core/persistence/loop-fact-retirement.ts` (1): request preparer.
- `src/core/persistence/memory-mutations.ts` (1): `forget` inside its request's coordinated write.
- `src/core/persistence/memory-prepare.ts` (3): `remember` request preparer.
-- `src/core/persistence/page-prepare.ts` (8): page request preparer (including the restore of a segmented page over 24 MiB, which flips `deleted_at` without re-serializing).
+- `src/core/persistence/page-prepare.ts` (12): page request preparer (including the restore of a segmented page over 24 MiB, which flips `deleted_at` without re-serializing, and the tag flip of a segmented page, which versions it and changes its tag rows and `content_hash` without re-serializing).
- `src/core/persistence/prepared-maintenance.ts` (3): managed maintenance request preparer.
- `src/core/persistence/semantic-pages.ts` (1): `add_timeline_entry` request preparer.
- `src/core/persistence/sync-image.ts` (2): managed sync image request preparer; a Git rename retires the old page inside the same publication.