Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test: census rows for the retire batch closure
garrytan146278a01b27
diff --git a/docs/architecture/coordinated-writes.tsv b/docs/architecture/coordinated-writes.tsvindex acafa38ae9..fc3ce37ccc 100644--- a/docs/architecture/coordinated-writes.tsv+++ b/docs/architecture/coordinated-writes.tsv@@ -21,7 +21,8 @@ src/core/persistence/connector-sync.ts stampFreshness 1 operational Stamps last_src/core/persistence/coordinator.ts publishMutation 2 door The page-mutation door itself: the prepared publication and its after-effects commit here after the file is in place.src/core/persistence/group-publish.ts publishGroup 1 door Group publication of door requests: the same prepared publications as publishMutation, committed as one group.src/core/persistence/links-maintenance.ts derive 1 projection Re-derives markdown, frontmatter and mention edges from each page's current text, bound to the revision it read; the indexer reproduces them.-src/core/persistence/source-lifecycle.ts runManagedSourceLifecycle 2 operational Source topology changes (remove, purge, archive) on the sources and binding rows, and the bounded page-deletion batches a remove or purge runs first (#7702/#8905); source administration, not memory content.+src/core/persistence/source-lifecycle.ts retireBatch 1 operational The bounded page-deletion batches a remove or purge runs before its topology transaction (#7702/#8905); source administration, not memory content.+src/core/persistence/source-lifecycle.ts runManagedSourceLifecycle 1 operational Source topology changes (remove, purge, archive) on the sources and binding rows; source administration, not memory content.src/core/persistence/sync-pass-run.ts stampIdlePass 1 operational An idle sync pass stamps last_sync_at and its pass row; sync bookkeeping, not memory content.src/core/persistence/sync-pass-run.ts stampUnchangedPass 1 operational An unchanged sync pass stamps last_sync_at and its converged watermark; sync bookkeeping, not memory content.src/core/persistence/sync-run.ts runManagedSync 1 operational A sync that found nothing stamps the freshness heartbeat and releases holds for paths that left the source; sync bookkeeping, not memory content.diff --git a/test/receipt-coverage.test.ts b/test/receipt-coverage.test.tsindex 261e95fd09..082ec12521 100644--- a/test/receipt-coverage.test.ts+++ b/test/receipt-coverage.test.ts@@ -33,7 +33,7 @@ const RECEIPT_COVERAGE: Record<string, Coverage> = {'src/core/repair/segmented-mirror.ts': { sites: 1, receipted: 'repair segmented-mirror: admitWriteInTransaction admits each page\'s repair request and completeWrite records its terminal receipt in the same transaction' },'src/core/facts/purge.ts': { sites: 1, receipted: 'purge_fact: admitWriteInTransaction admits the request and completeWrite records its terminal receipt in the same transaction' },'src/core/shared-skills/publication.ts': { sites: 1, receipted: 'shared-skill revision pruning inside an admitted skill publication' },- 'src/core/persistence/source-lifecycle.ts': { sites: 1, receipted: 'source add/claim/remove under a persistence_topology_changes receipt' },+ 'src/core/persistence/source-lifecycle.ts': { sites: 2, receipted: 'source add/claim/remove under a persistence_topology_changes receipt; the remove/purge page batches (#7702/#8905) commit ahead of it under the same request_id, which a rerun resumes and the final transaction receipts' },'src/core/persistence/topology-recovery.ts': { sites: 1, receipted: 'topology recovery under its persistence_topology_changes receipt' },'src/core/page-state/materialize.ts': { sites: 1, tables: ['pages'], todo: 'TODO(receipts): derived page materialization should publish as a maintenance intent' },'src/core/timeline-extract.ts': { sites: 1, tables: ['timeline_entries'], todo: 'TODO(receipts): timeline retraction should publish like managed_maintenance_timeline_extract' },