Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

chore(trust): confirm_memory in the remote privacy sweep; BrainBench trust scenario in the writer census (isolated eval)

garrytan7d2e98abd429
diff --git a/docs/architecture/canonical-writers.tsv b/docs/architecture/canonical-writers.tsv
index 161baabb41..71bbc55fbf 100644
--- a/docs/architecture/canonical-writers.tsv
+++ b/docs/architecture/canonical-writers.tsv
@@ -230,3 +230,4 @@ src/core/trust/owner-actions.ts 1 coordinator The owner release of a held fact i
src/core/trust/page-handlers.ts 1 coordinator Owner page confirm/revert: a managed brain admits a journaled owner page mutation (submitOwnerPage); the unmanaged path runs importFromContent inside one attributed transaction that re-checks the previewed revision.
src/core/trust/supersede-handlers.ts 3 filesystem_guard Trust-guard supersession accept/undo raise or restore only trust_tier on the proposal's facts/takes row through the S9 decide_proposals checked accept/undo path (proposal-supersede.ts): source filesystem and page locks unmanaged, the decide_proposal coordinator mutation managed.
src/core/trust/timeline-projection.ts 2 engine_guard gbrain extract's timeline projection inserts gate-allowed rows stamped with the page tier inside an attributed maintenanceTransaction; on a managed brain the canonical table trigger refuses it outside the coordinator.
+src/eval/brainbench/trust-scenario.ts 2 isolated_eval BrainBench trust suites register their fixture sources in the scenario's own isolated benchmark brain (persistence disabled for the registration, re-enabled after); never opened against the active managed brain.
diff --git a/test/remote-privacy-sweep.test.ts b/test/remote-privacy-sweep.test.ts
index e08314e6f1..c5ad7e02b1 100644
--- a/test/remote-privacy-sweep.test.ts
+++ b/test/remote-privacy-sweep.test.ts
@@ -339,6 +339,8 @@ const EXPECTED_OUTCOME: Record<string, Outcome> = {
purge_fact: 'error',
list_page_purges: 'error',
unpurge_page: 'error',
+ // Owner confirmation needs a memory_confirm grant; the sweep's connection has none (refused before any read).
+ confirm_memory: 'error',
// rate_answer with no answer_id is a validation error; a real answer id only
// ever names pages that answer returned to the same client.
rate_answer: 'error',