Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test: regenerate Postgres catalog goldens for persistence_worktree_refreshes
garrytan5456bf10bcb9
diff --git a/test/fixtures/goldens/catalog/postgres-db-initschema.json b/test/fixtures/goldens/catalog/postgres-db-initschema.jsonindex 410f69483d..131a4a9f86 100644--- a/test/fixtures/goldens/catalog/postgres-db-initschema.json+++ b/test/fixtures/goldens/catalog/postgres-db-initschema.json@@ -156,6 +156,9 @@"persistence_topology_changes.persistence_topology_changes_recovery_bytes_check": "c CHECK ((recovery_bytes >= 0))","persistence_topology_changes.persistence_topology_changes_state_check": "c CHECK ((state = ANY (ARRAY['recovering'::text, 'committed'::text, 'failed'::text])))","persistence_topology_changes.persistence_topology_changes_terminal_bytes_check": "c CHECK ((terminal_bytes >= 0))",+ "persistence_worktree_refreshes.persistence_worktree_refreshes_pkey": "p PRIMARY KEY (id)",+ "persistence_worktree_refreshes.persistence_worktree_refreshes_state_check": "c CHECK ((state = ANY (ARRAY['draining'::text, 'fenced'::text, 'merged'::text, 'syncing'::text, 'completed'::text, 'aborted'::text, 'recovery_required'::text])))",+ "persistence_worktree_refreshes.persistence_worktree_refreshes_worktree_id_fkey": "f FOREIGN KEY (worktree_id) REFERENCES persistence_worktrees(id)","persistence_worktrees.persistence_worktrees_pkey": "p PRIMARY KEY (id)","persistence_worktrees.persistence_worktrees_state_check": "c CHECK ((state = ANY (ARRAY['active'::text, 'draining'::text, 'recovering'::text])))","persistence_writer_protocols.persistence_writer_protocols_pkey": "p PRIMARY KEY (worktree_id, host_id)",@@ -423,6 +426,9 @@"persistence_topology_changes": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],+ "persistence_worktree_refreshes": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],"persistence_worktrees": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],@@ -673,6 +679,8 @@"persistence_topology_changes_pkey": "CREATE UNIQUE INDEX persistence_topology_changes_pkey ON public.persistence_topology_changes USING btree (id)","persistence_topology_changes_principal_id_request_id_key": "CREATE UNIQUE INDEX persistence_topology_changes_principal_id_request_id_key ON public.persistence_topology_changes USING btree (principal_id, request_id)","persistence_topology_recovering": "CREATE INDEX persistence_topology_recovering ON public.persistence_topology_changes USING btree (created_at) WHERE (state = 'recovering'::text)",+ "persistence_worktree_refreshes_active": "CREATE UNIQUE INDEX persistence_worktree_refreshes_active ON public.persistence_worktree_refreshes USING btree (worktree_id) WHERE (state = ANY (ARRAY['draining'::text, 'fenced'::text, 'merged'::text, 'syncing'::text, 'recovery_required'::text]))",+ "persistence_worktree_refreshes_pkey": "CREATE UNIQUE INDEX persistence_worktree_refreshes_pkey ON public.persistence_worktree_refreshes USING btree (id)","persistence_worktrees_pkey": "CREATE UNIQUE INDEX persistence_worktrees_pkey ON public.persistence_worktrees USING btree (id)","persistence_writer_protocols_pkey": "CREATE UNIQUE INDEX persistence_writer_protocols_pkey ON public.persistence_writer_protocols USING btree (worktree_id, host_id)","raw_data_page_id_source_key": "CREATE UNIQUE INDEX raw_data_page_id_source_key ON public.raw_data USING btree (page_id, source)",@@ -1679,6 +1687,26 @@],"flags": "relkind=r rls=false force_rls=false"},+ "persistence_worktree_refreshes": {+ "columns": [+ "1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",+ "2 worktree_id uuid/uuid NOT NULL",+ "3 source_ids ARRAY/_text NOT NULL",+ "4 principal_id uuid/uuid NOT NULL",+ "5 owner_epoch bigint/int8 NOT NULL",+ "6 topology_generation bigint/int8 NOT NULL",+ "7 state text/text NOT NULL",+ "8 old_head text/text NOT NULL",+ "9 target_head text/text NOT NULL",+ "10 upstream_ref text/text NOT NULL",+ "11 preserved_uncommitted ARRAY/_text NOT NULL DEFAULT '{}'::text[]",+ "12 outcome jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",+ "13 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",+ "14 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",+ "15 completed_at timestamp with time zone/timestamptz NULL"+ ],+ "flags": "relkind=r rls=false force_rls=false"+ },"persistence_worktrees": {"columns": ["1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",diff --git a/test/fixtures/goldens/catalog/postgres-engine-init-default.json b/test/fixtures/goldens/catalog/postgres-engine-init-default.jsonindex 0b77769c01..b181655e4f 100644--- a/test/fixtures/goldens/catalog/postgres-engine-init-default.json+++ b/test/fixtures/goldens/catalog/postgres-engine-init-default.json@@ -194,6 +194,9 @@"persistence_topology_changes.persistence_topology_changes_recovery_bytes_check": "c CHECK ((recovery_bytes >= 0))","persistence_topology_changes.persistence_topology_changes_state_check": "c CHECK ((state = ANY (ARRAY['recovering'::text, 'committed'::text, 'failed'::text])))","persistence_topology_changes.persistence_topology_changes_terminal_bytes_check": "c CHECK ((terminal_bytes >= 0))",+ "persistence_worktree_refreshes.persistence_worktree_refreshes_pkey": "p PRIMARY KEY (id)",+ "persistence_worktree_refreshes.persistence_worktree_refreshes_state_check": "c CHECK ((state = ANY (ARRAY['draining'::text, 'fenced'::text, 'merged'::text, 'syncing'::text, 'completed'::text, 'aborted'::text, 'recovery_required'::text])))",+ "persistence_worktree_refreshes.persistence_worktree_refreshes_worktree_id_fkey": "f FOREIGN KEY (worktree_id) REFERENCES persistence_worktrees(id)","persistence_worktrees.persistence_worktrees_pkey": "p PRIMARY KEY (id)","persistence_worktrees.persistence_worktrees_state_check": "c CHECK ((state = ANY (ARRAY['active'::text, 'draining'::text, 'recovering'::text, 'retired'::text])))","persistence_writer_protocols.persistence_writer_protocols_pkey": "p PRIMARY KEY (worktree_id, host_id)",@@ -530,6 +533,9 @@"persistence_topology_changes": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],+ "persistence_worktree_refreshes": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],"persistence_worktrees": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],@@ -882,6 +888,8 @@"persistence_topology_changes_pkey": "CREATE UNIQUE INDEX persistence_topology_changes_pkey ON public.persistence_topology_changes USING btree (id)","persistence_topology_changes_principal_id_request_id_key": "CREATE UNIQUE INDEX persistence_topology_changes_principal_id_request_id_key ON public.persistence_topology_changes USING btree (principal_id, request_id)","persistence_topology_recovering": "CREATE INDEX persistence_topology_recovering ON public.persistence_topology_changes USING btree (created_at) WHERE (state = 'recovering'::text)",+ "persistence_worktree_refreshes_active": "CREATE UNIQUE INDEX persistence_worktree_refreshes_active ON public.persistence_worktree_refreshes USING btree (worktree_id) WHERE (state = ANY (ARRAY['draining'::text, 'fenced'::text, 'merged'::text, 'syncing'::text, 'recovery_required'::text]))",+ "persistence_worktree_refreshes_pkey": "CREATE UNIQUE INDEX persistence_worktree_refreshes_pkey ON public.persistence_worktree_refreshes USING btree (id)","persistence_worktrees_pkey": "CREATE UNIQUE INDEX persistence_worktrees_pkey ON public.persistence_worktrees USING btree (id)","persistence_writer_protocols_pkey": "CREATE UNIQUE INDEX persistence_writer_protocols_pkey ON public.persistence_writer_protocols USING btree (worktree_id, host_id)","query_cache_pkey": "CREATE UNIQUE INDEX query_cache_pkey ON public.query_cache USING btree (id)",@@ -2158,6 +2166,26 @@],"flags": "relkind=r rls=true force_rls=false"},+ "persistence_worktree_refreshes": {+ "columns": [+ "1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",+ "2 worktree_id uuid/uuid NOT NULL",+ "3 source_ids ARRAY/_text NOT NULL",+ "4 principal_id uuid/uuid NOT NULL",+ "5 owner_epoch bigint/int8 NOT NULL",+ "6 topology_generation bigint/int8 NOT NULL",+ "7 state text/text NOT NULL",+ "8 old_head text/text NOT NULL",+ "9 target_head text/text NOT NULL",+ "10 upstream_ref text/text NOT NULL",+ "11 preserved_uncommitted ARRAY/_text NOT NULL DEFAULT '{}'::text[]",+ "12 outcome jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",+ "13 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",+ "14 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",+ "15 completed_at timestamp with time zone/timestamptz NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },"persistence_worktrees": {"columns": ["1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",diff --git a/test/fixtures/goldens/catalog/postgres-engine-init-fts-portuguese.json b/test/fixtures/goldens/catalog/postgres-engine-init-fts-portuguese.jsonindex 0dce91a16e..f7a1642287 100644--- a/test/fixtures/goldens/catalog/postgres-engine-init-fts-portuguese.json+++ b/test/fixtures/goldens/catalog/postgres-engine-init-fts-portuguese.json@@ -194,6 +194,9 @@"persistence_topology_changes.persistence_topology_changes_recovery_bytes_check": "c CHECK ((recovery_bytes >= 0))","persistence_topology_changes.persistence_topology_changes_state_check": "c CHECK ((state = ANY (ARRAY['recovering'::text, 'committed'::text, 'failed'::text])))","persistence_topology_changes.persistence_topology_changes_terminal_bytes_check": "c CHECK ((terminal_bytes >= 0))",+ "persistence_worktree_refreshes.persistence_worktree_refreshes_pkey": "p PRIMARY KEY (id)",+ "persistence_worktree_refreshes.persistence_worktree_refreshes_state_check": "c CHECK ((state = ANY (ARRAY['draining'::text, 'fenced'::text, 'merged'::text, 'syncing'::text, 'completed'::text, 'aborted'::text, 'recovery_required'::text])))",+ "persistence_worktree_refreshes.persistence_worktree_refreshes_worktree_id_fkey": "f FOREIGN KEY (worktree_id) REFERENCES persistence_worktrees(id)","persistence_worktrees.persistence_worktrees_pkey": "p PRIMARY KEY (id)","persistence_worktrees.persistence_worktrees_state_check": "c CHECK ((state = ANY (ARRAY['active'::text, 'draining'::text, 'recovering'::text, 'retired'::text])))","persistence_writer_protocols.persistence_writer_protocols_pkey": "p PRIMARY KEY (worktree_id, host_id)",@@ -530,6 +533,9 @@"persistence_topology_changes": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],+ "persistence_worktree_refreshes": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],"persistence_worktrees": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],@@ -882,6 +888,8 @@"persistence_topology_changes_pkey": "CREATE UNIQUE INDEX persistence_topology_changes_pkey ON public.persistence_topology_changes USING btree (id)","persistence_topology_changes_principal_id_request_id_key": "CREATE UNIQUE INDEX persistence_topology_changes_principal_id_request_id_key ON public.persistence_topology_changes USING btree (principal_id, request_id)","persistence_topology_recovering": "CREATE INDEX persistence_topology_recovering ON public.persistence_topology_changes USING btree (created_at) WHERE (state = 'recovering'::text)",+ "persistence_worktree_refreshes_active": "CREATE UNIQUE INDEX persistence_worktree_refreshes_active ON public.persistence_worktree_refreshes USING btree (worktree_id) WHERE (state = ANY (ARRAY['draining'::text, 'fenced'::text, 'merged'::text, 'syncing'::text, 'recovery_required'::text]))",+ "persistence_worktree_refreshes_pkey": "CREATE UNIQUE INDEX persistence_worktree_refreshes_pkey ON public.persistence_worktree_refreshes USING btree (id)","persistence_worktrees_pkey": "CREATE UNIQUE INDEX persistence_worktrees_pkey ON public.persistence_worktrees USING btree (id)","persistence_writer_protocols_pkey": "CREATE UNIQUE INDEX persistence_writer_protocols_pkey ON public.persistence_writer_protocols USING btree (worktree_id, host_id)","query_cache_pkey": "CREATE UNIQUE INDEX query_cache_pkey ON public.query_cache USING btree (id)",@@ -2158,6 +2166,26 @@],"flags": "relkind=r rls=true force_rls=false"},+ "persistence_worktree_refreshes": {+ "columns": [+ "1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",+ "2 worktree_id uuid/uuid NOT NULL",+ "3 source_ids ARRAY/_text NOT NULL",+ "4 principal_id uuid/uuid NOT NULL",+ "5 owner_epoch bigint/int8 NOT NULL",+ "6 topology_generation bigint/int8 NOT NULL",+ "7 state text/text NOT NULL",+ "8 old_head text/text NOT NULL",+ "9 target_head text/text NOT NULL",+ "10 upstream_ref text/text NOT NULL",+ "11 preserved_uncommitted ARRAY/_text NOT NULL DEFAULT '{}'::text[]",+ "12 outcome jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",+ "13 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",+ "14 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",+ "15 completed_at timestamp with time zone/timestamptz NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },"persistence_worktrees": {"columns": ["1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",diff --git a/test/fixtures/goldens/catalog/postgres-engine-init-high-dims.json b/test/fixtures/goldens/catalog/postgres-engine-init-high-dims.jsonindex 118e639ee7..967bb50739 100644--- a/test/fixtures/goldens/catalog/postgres-engine-init-high-dims.json+++ b/test/fixtures/goldens/catalog/postgres-engine-init-high-dims.json@@ -194,6 +194,9 @@"persistence_topology_changes.persistence_topology_changes_recovery_bytes_check": "c CHECK ((recovery_bytes >= 0))","persistence_topology_changes.persistence_topology_changes_state_check": "c CHECK ((state = ANY (ARRAY['recovering'::text, 'committed'::text, 'failed'::text])))","persistence_topology_changes.persistence_topology_changes_terminal_bytes_check": "c CHECK ((terminal_bytes >= 0))",+ "persistence_worktree_refreshes.persistence_worktree_refreshes_pkey": "p PRIMARY KEY (id)",+ "persistence_worktree_refreshes.persistence_worktree_refreshes_state_check": "c CHECK ((state = ANY (ARRAY['draining'::text, 'fenced'::text, 'merged'::text, 'syncing'::text, 'completed'::text, 'aborted'::text, 'recovery_required'::text])))",+ "persistence_worktree_refreshes.persistence_worktree_refreshes_worktree_id_fkey": "f FOREIGN KEY (worktree_id) REFERENCES persistence_worktrees(id)","persistence_worktrees.persistence_worktrees_pkey": "p PRIMARY KEY (id)","persistence_worktrees.persistence_worktrees_state_check": "c CHECK ((state = ANY (ARRAY['active'::text, 'draining'::text, 'recovering'::text, 'retired'::text])))","persistence_writer_protocols.persistence_writer_protocols_pkey": "p PRIMARY KEY (worktree_id, host_id)",@@ -530,6 +533,9 @@"persistence_topology_changes": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],+ "persistence_worktree_refreshes": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],"persistence_worktrees": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],@@ -878,6 +884,8 @@"persistence_topology_changes_pkey": "CREATE UNIQUE INDEX persistence_topology_changes_pkey ON public.persistence_topology_changes USING btree (id)","persistence_topology_changes_principal_id_request_id_key": "CREATE UNIQUE INDEX persistence_topology_changes_principal_id_request_id_key ON public.persistence_topology_changes USING btree (principal_id, request_id)","persistence_topology_recovering": "CREATE INDEX persistence_topology_recovering ON public.persistence_topology_changes USING btree (created_at) WHERE (state = 'recovering'::text)",+ "persistence_worktree_refreshes_active": "CREATE UNIQUE INDEX persistence_worktree_refreshes_active ON public.persistence_worktree_refreshes USING btree (worktree_id) WHERE (state = ANY (ARRAY['draining'::text, 'fenced'::text, 'merged'::text, 'syncing'::text, 'recovery_required'::text]))",+ "persistence_worktree_refreshes_pkey": "CREATE UNIQUE INDEX persistence_worktree_refreshes_pkey ON public.persistence_worktree_refreshes USING btree (id)","persistence_worktrees_pkey": "CREATE UNIQUE INDEX persistence_worktrees_pkey ON public.persistence_worktrees USING btree (id)","persistence_writer_protocols_pkey": "CREATE UNIQUE INDEX persistence_writer_protocols_pkey ON public.persistence_writer_protocols USING btree (worktree_id, host_id)","query_cache_pkey": "CREATE UNIQUE INDEX query_cache_pkey ON public.query_cache USING btree (id)",@@ -2154,6 +2162,26 @@],"flags": "relkind=r rls=true force_rls=false"},+ "persistence_worktree_refreshes": {+ "columns": [+ "1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",+ "2 worktree_id uuid/uuid NOT NULL",+ "3 source_ids ARRAY/_text NOT NULL",+ "4 principal_id uuid/uuid NOT NULL",+ "5 owner_epoch bigint/int8 NOT NULL",+ "6 topology_generation bigint/int8 NOT NULL",+ "7 state text/text NOT NULL",+ "8 old_head text/text NOT NULL",+ "9 target_head text/text NOT NULL",+ "10 upstream_ref text/text NOT NULL",+ "11 preserved_uncommitted ARRAY/_text NOT NULL DEFAULT '{}'::text[]",+ "12 outcome jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",+ "13 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",+ "14 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",+ "15 completed_at timestamp with time zone/timestamptz NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },"persistence_worktrees": {"columns": ["1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",