Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

Wave B PR 2 integration: review segment-takes fence parse, purge opens a transaction in the RLS inventory, search probe role reads page_body_manifest

garrytan93c52deaa4cd
diff --git a/test/e2e/search-query-contract-postgres.test.ts b/test/e2e/search-query-contract-postgres.test.ts
index b0f092dc59..69f2eb8884 100644
--- a/test/e2e/search-query-contract-postgres.test.ts
+++ b/test/e2e/search-query-contract-postgres.test.ts
@@ -66,7 +66,7 @@ import { withEnv } from '../helpers/with-env.ts';
/** Runs `check` as a reader that sees pages only from a statement where `predicate` holds. */
async function asSettingProbeReader(predicate: string, check: (reader: PostgresEngine) => Promise<void>) {
await engine.executeRaw('CREATE ROLE query_contract_probe NOLOGIN');
- const tables = ['pages', 'content_chunks', 'sources', 'timeline_entries', 'config'];
+ const tables = ['pages', 'content_chunks', 'page_body_manifest', 'sources', 'timeline_entries', 'config'];
const original = await engine.executeRaw<{ relname: string; relrowsecurity: boolean }>(`SELECT relname, relrowsecurity FROM pg_class WHERE relname = ANY($1::text[])`, [tables]);
const reader = new PostgresEngine();
try {
diff --git a/test/fixtures/goldens/rls-scope-inventory.json b/test/fixtures/goldens/rls-scope-inventory.json
index 546fcc9dee..6227ed938d 100644
--- a/test/fixtures/goldens/rls-scope-inventory.json
+++ b/test/fixtures/goldens/rls-scope-inventory.json
@@ -2484,12 +2484,12 @@
},
"purgeDeletedPages#default": {
"flagOffLanes": [
- "pool"
+ "tx"
],
- "flagOffOpensTransaction": false,
+ "flagOffOpensTransaction": true,
"flagOn": "unscoped",
"flagOnLanes": [
- "pool"
+ "tx"
],
"flagOnScopes": []
},
diff --git a/test/takes-reservation-callers.test.ts b/test/takes-reservation-callers.test.ts
index d5f0167b10..e214d8f112 100644
--- a/test/takes-reservation-callers.test.ts
+++ b/test/takes-reservation-callers.test.ts
@@ -19,6 +19,7 @@ const REVIEWED: Record<string, string> = {
'src/core/fence-repair/import-step.ts': 'hidden rows feed allocation, which nextFreeRowNum already bases on every raw fence row',
'src/core/fence-repair/page-checks.ts': 'a reserved number used twice in one fence is a parser collision warning',
'src/core/fence-repair/refusal.ts': 'same warning and collision checks as page-checks',
+ 'src/core/page-body/segment-takes.ts': 'parses a segmented body\'s fence for extract-takes and the canonical projection, which project takes only; it never re-renders, so a reservation stays a reservation',
'src/core/persistence/canonical-projections.ts': 'projects takes only, so a reservation projects no row and its old row is deleted',
'src/core/persistence/takes-prepare.ts': 'allocates with nextFreeRowNum, re-renders through upsertTakeRow/supersedeRow/replaceFence, and remove adds the reservation',
'src/core/repair/connector-fences.ts': 'moves fence blocks verbatim, reservations included',