Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test: pin v296 ingest_applied_captures in the PGLite upgrade catalog golden; ingest-capture has one importFromContent call

garrytanfc5939c6c3f5
diff --git a/test/fixtures/goldens/pglite-upgrade-replay/catalog-after-boot.json b/test/fixtures/goldens/pglite-upgrade-replay/catalog-after-boot.json
index dceeaa47e7..10bacf4139 100644
--- a/test/fixtures/goldens/pglite-upgrade-replay/catalog-after-boot.json
+++ b/test/fixtures/goldens/pglite-upgrade-replay/catalog-after-boot.json
@@ -158,6 +158,7 @@
"git_canonical_brain.git_canonical_brain_pkey": "p PRIMARY KEY (singleton)",
"git_canonical_brain.git_canonical_brain_singleton_check": "c CHECK ((singleton = 1))",
"git_canonical_brain.git_canonical_brain_strict_sources_check": "c CHECK ((strict_sources >= 0))",
+ "ingest_applied_captures.ingest_applied_captures_pkey": "p PRIMARY KEY (idempotency_key)",
"ingest_log.ingest_log_pkey": "p PRIMARY KEY (id)",
"link_edge_proposals.link_edge_proposals_a_to_page_id_fkey": "f FOREIGN KEY (a_to_page_id) REFERENCES pages(id) ON DELETE CASCADE",
"link_edge_proposals.link_edge_proposals_b_to_page_id_fkey": "f FOREIGN KEY (b_to_page_id) REFERENCES pages(id) ON DELETE CASCADE",
@@ -816,6 +817,9 @@
"git_canonical_brain": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
+ "ingest_applied_captures": [
+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
+ ],
"ingest_log": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
@@ -1410,6 +1414,8 @@
"idx_timeline_event_page": "CREATE INDEX idx_timeline_event_page ON public.timeline_entries USING btree (event_page_id) WHERE (event_page_id IS NOT NULL)",
"idx_timeline_page": "CREATE INDEX idx_timeline_page ON public.timeline_entries USING btree (page_id)",
"idx_versions_page": "CREATE INDEX idx_versions_page ON public.page_versions USING btree (page_id)",
+ "ingest_applied_captures_applied_at_idx": "CREATE INDEX ingest_applied_captures_applied_at_idx ON public.ingest_applied_captures USING btree (applied_at)",
+ "ingest_applied_captures_pkey": "CREATE UNIQUE INDEX ingest_applied_captures_pkey ON public.ingest_applied_captures USING btree (idempotency_key)",
"ingest_log_marked_idx": "CREATE INDEX ingest_log_marked_idx ON public.ingest_log USING btree (created_at) WHERE (writer_segment_reader IS TRUE)",
"ingest_log_pkey": "CREATE UNIQUE INDEX ingest_log_pkey ON public.ingest_log USING btree (id)",
"ingest_log_unmarked_idx": "CREATE INDEX ingest_log_unmarked_idx ON public.ingest_log USING btree (created_at) WHERE (writer_segment_reader IS NOT TRUE)",
@@ -2719,6 +2725,16 @@
],
"flags": "relkind=r rls=true force_rls=false"
},
+ "ingest_applied_captures": {
+ "columns": [
+ "1 idempotency_key text/text NOT NULL",
+ "2 source_id text/text NOT NULL",
+ "3 slug text/text NOT NULL",
+ "4 result jsonb/jsonb NOT NULL",
+ "5 applied_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
+ ],
+ "flags": "relkind=r rls=true force_rls=false"
+ },
"ingest_log": {
"columns": [
"1 id integer/int4 NOT NULL DEFAULT nextval('ingest_log_id_seq'::regclass)",
diff --git a/test/import-private-hold-callers-7897.test.ts b/test/import-private-hold-callers-7897.test.ts
index 80741de579..e9e5152e84 100644
--- a/test/import-private-hold-callers-7897.test.ts
+++ b/test/import-private-hold-callers-7897.test.ts
@@ -26,7 +26,7 @@ const AUDITED: Record<string, Audit> = {
'src/core/enrichment-service.ts': { calls: { importFromContent: 1 }, disposition: 'derived', why: 'a stub whose frontmatter gbrain builds (serializeMarkdown)' },
'src/core/generations/adapters/page.ts': { calls: { importFromContent: 1 }, disposition: 'derived', why: 'a stored preimage or a producer page gbrain serializes' },
'src/core/import-file.ts': { calls: { importFromContent: 2 }, disposition: 'held', why: 'the identity-move retry passes the caller\'s options; importFromFile holds before it imports' },
- 'src/core/minions/handlers/ingest-capture.ts': { calls: { importFromContent: 2 }, disposition: 'held', why: 'the shared import options set holdNoncanonicalPrivate (#7880)' },
+ 'src/core/minions/handlers/ingest-capture.ts': { calls: { importFromContent: 1 }, disposition: 'held', why: 'the shared import options set holdNoncanonicalPrivate (#7880)' },
'src/core/oversized-backfill.ts': { calls: { importFromContent: 1 }, disposition: 'derived', why: 're-serializes the stored page' },
'src/core/persistence/connector-sync.ts': { calls: { importFromContent: 1 }, disposition: 'derived',
why: 'GitHub and Google renders: fixed keys, provider text only as quoted values, visibility: private only in lowercase; the rest is the stored page' },