Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test: W1 v236 indexes in the PGLite upgrade-replay catalog golden; recall-question-cli drops per-test timeout pins below the bunfig default (#4659)
garrytan350fde31ad85
diff --git a/test/fixtures/goldens/pglite-upgrade-replay/catalog-after-boot.json b/test/fixtures/goldens/pglite-upgrade-replay/catalog-after-boot.jsonindex 6e997e4b0b..0484f264a8 100644--- a/test/fixtures/goldens/pglite-upgrade-replay/catalog-after-boot.json+++ b/test/fixtures/goldens/pglite-upgrade-replay/catalog-after-boot.json@@ -993,14 +993,17 @@"idx_extract_rollup_7d_day": "CREATE INDEX idx_extract_rollup_7d_day ON public.extract_rollup_7d USING btree (day)","idx_facts_dimension": "CREATE INDEX idx_facts_dimension ON public.facts USING btree (source_id, entity_slug, dimension, valid_from DESC) WHERE ((expired_at IS NULL) AND (dimension IS NOT NULL))","idx_facts_embedding_hnsw": "CREATE INDEX idx_facts_embedding_hnsw ON public.facts USING hnsw (embedding halfvec_cosine_ops) WHERE ((embedding IS NOT NULL) AND (expired_at IS NULL))",+ "idx_facts_embedding_model": "CREATE INDEX idx_facts_embedding_model ON public.facts USING btree (source_id, embedding_model) WHERE (expired_at IS NULL)","idx_facts_entity_active": "CREATE INDEX idx_facts_entity_active ON public.facts USING btree (source_id, entity_slug, valid_from DESC) WHERE (expired_at IS NULL)","idx_facts_extract_conversation_session": "CREATE INDEX idx_facts_extract_conversation_session ON public.facts USING btree (source_id, source_session) WHERE (source ~~ 'cli:extract-conversation-facts%'::text)","idx_facts_fence_key": "CREATE UNIQUE INDEX idx_facts_fence_key ON public.facts USING btree (source_id, source_markdown_slug, row_num) WHERE (row_num IS NOT NULL)",+ "idx_facts_fts": "CREATE INDEX idx_facts_fts ON public.facts USING gin (to_tsvector('english'::regconfig, ((fact || ' '::text) || replace(COALESCE(entity_slug, ''::text), '-'::text, ' '::text)))) WHERE (expired_at IS NULL)","idx_facts_ontology_stint_dedup": "CREATE UNIQUE INDEX idx_facts_ontology_stint_dedup ON public.facts USING btree (source_id, entity_slug, dimension, value_hash, source_markdown_slug, valid_from) WHERE (dimension IS NOT NULL)","idx_facts_session": "CREATE INDEX idx_facts_session ON public.facts USING btree (source_id, source_session, created_at DESC) WHERE (expired_at IS NULL)","idx_facts_since": "CREATE INDEX idx_facts_since ON public.facts USING btree (source_id, created_at DESC) WHERE (expired_at IS NULL)","idx_facts_since_event_time": "CREATE INDEX idx_facts_since_event_time ON public.facts USING btree (source_id, COALESCE(valid_from, created_at) DESC) WHERE (expired_at IS NULL)","idx_facts_unconsolidated": "CREATE INDEX idx_facts_unconsolidated ON public.facts USING btree (source_id, entity_slug) WHERE ((consolidated_at IS NULL) AND (expired_at IS NULL))",+ "idx_facts_unembedded": "CREATE INDEX idx_facts_unembedded ON public.facts USING btree (source_id) WHERE ((expired_at IS NULL) AND ((embedding IS NULL) OR (embedded_text_hash IS DISTINCT FROM md5(fact))))","idx_facts_unlinked_active": "CREATE INDEX idx_facts_unlinked_active ON public.facts USING btree (source_id, id) WHERE ((entity_slug IS NULL) AND (expired_at IS NULL))","idx_facts_withdrawal_fingerprint": "CREATE INDEX idx_facts_withdrawal_fingerprint ON public.facts USING btree (source_id, visibility, gbrain_fact_fingerprint(fact))","idx_files_hash": "CREATE INDEX idx_files_hash ON public.files USING btree (content_hash)",diff --git a/test/recall-question-cli.test.ts b/test/recall-question-cli.test.tsindex d46503da69..78908313c2 100644--- a/test/recall-question-cli.test.ts+++ b/test/recall-question-cli.test.ts@@ -125,12 +125,12 @@ describe('gbrain recall --question on a thin client', () => {expect(r.calls[0]!.arguments).toMatchObject({ question: QUESTION });expect(r.calls[0]!.arguments!.entity).toBeUndefined();expect(r.stdout).toContain('(relevance 1.25)');- }, 30_000);+ });test('an older server that answers without facts_order is reported as not ranked', async () => {const r = await thinCall(['--question', QUESTION], { protocol_version: 1, total: 1,facts: [{ fact_id: '8', fact: 'The team offsite moved to Denver', kind: 'fact', entity_slug: null, provenance: 'test' }] });expect(r.exitCode).toBe(0);expect(r.stdout).toContain('did not rank facts by the question');- }, 30_000);+ });});