Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test: inventory the claim's config writer; regenerate the CLI literal-imports golden
garrytan84f3dc570e30
diff --git a/docs/architecture/canonical-writers.tsv b/docs/architecture/canonical-writers.tsvindex 71bbc55fbf..6bc77b28eb 100644--- a/docs/architecture/canonical-writers.tsv+++ b/docs/architecture/canonical-writers.tsv@@ -223,6 +223,7 @@ src/core/facts/purge.ts 3 coordinator purge_fact deletes the purged fact and taksrc/core/persistence/page-purge.ts 2 coordinator purgePageInTransaction deletes the page's filed facts and hard-deletes the page only from the prepared delete_page purge publication callback in page-prepare.ts, under the same source/page identity, revision and durable authority guards as receipt completion.src/core/trust/fence-append.ts 1 coordinator withPageTierKept restores the page's prior trust_tier and write_origin in the same coordinated fence-append transaction that wrote the page (fence-write, facts-prepare and memory-prepare callers); it changes no content column.src/commands/sources-trust.ts 1 engine_guard gbrain sources set-trust rewrites only the source's config jsonb (its default trust tier for future writes); the managed writer guard exempts sources rows whose id, incarnation, local_path, archived and checkpoint columns are unchanged, and no knowledge row changes.+src/core/trust/claim.ts 2 engine_guard gbrain trust claim-sources records the claim and its lift receipt in the source's config jsonb only (like sources set-trust); the managed writer guard exempts sources rows whose identity columns are unchanged. The tier lift itself runs through trust/backfill.ts inside withCoordinatedWrite on a managed brain.src/core/cycle/dream-taint.ts 1 engine_guard putDerivedPage writes the unmanaged dream summary page inside derivedMaintenanceTransaction (attributed, tier lowered to the derivation's taint); on a managed brain the canonical table trigger refuses the write outside the coordinator.src/core/persistence/derived-facts.ts 1 coordinator insertGatedFacts inserts only gate-allowed conversation fact rows; writeDerivedFacts refuses on a managed brain (writer_coordinator_required) and otherwise runs it inside the attributed maintenance transaction with taint edges.src/core/trust/fence-guard.ts 2 coordinator guardFenceRows detaches and renumbers fence rows more trusted than the writer inside the canonical fence re-projection of the page publication (canonical-projections.ts), in the same journal transaction as the receipt.diff --git a/test/fixtures/goldens/cli/literal-imports.json b/test/fixtures/goldens/cli/literal-imports.jsonindex 1d59716100..1e3b9a7fb1 100644--- a/test/fixtures/goldens/cli/literal-imports.json+++ b/test/fixtures/goldens/cli/literal-imports.json@@ -202,6 +202,7 @@"./commands/transcripts.ts"],"trust": [+ "./commands/trust-claim.ts","./core/eligibility/explain.ts","./core/eligibility/scan.ts","./core/trust/backfill.ts"