Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test: goldens and bootstrap exemption for the private_pages columns (GBRA-156)

garrytanb4534de1e1fb
diff --git a/test/fixtures/goldens/catalog/pglite-engine-init-default.json b/test/fixtures/goldens/catalog/pglite-engine-init-default.json
index f576eec51d..9e00e0f62f 100644
--- a/test/fixtures/goldens/catalog/pglite-engine-init-default.json
+++ b/test/fixtures/goldens/catalog/pglite-engine-init-default.json
@@ -3,6 +3,7 @@
"constraints": {
"access_tokens.access_tokens_min_trust_check": "c CHECK (((min_trust IS NULL) OR (min_trust = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text]))))",
"access_tokens.access_tokens_pkey": "p PRIMARY KEY (id)",
+ "access_tokens.access_tokens_private_pages_check": "c CHECK ((private_pages = ANY (ARRAY['none'::text, 'granted_sources'::text])))",
"access_tokens.access_tokens_source_grant_check": "c CHECK ((source_grant = ANY (ARRAY['default'::text, 'scalar'::text, 'federated'::text, 'none'::text])))",
"access_tokens.access_tokens_token_hash_key": "u UNIQUE (token_hash)",
"access_tokens.trust_generation_update": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
@@ -209,6 +210,7 @@
"oauth_clients.oauth_clients_complete_agent_grant": "c CHECK (((NOT (COALESCE(scope, ''::text) ~ '(^|[[:space:]])agent([[:space:]]|$)'::text)) OR ((COALESCE(cardinality(bound_tools), 0) > 0) AND (source_id IS NOT NULL) AND (bound_source_id IS NOT NULL) AND (bound_source_id = source_id) AND COALESCE((source_id = ANY (federated_read)), false) AND (((delegated_namespace = 'job'::text) AND (delegated_slug_prefixes IS NULL)) OR ((delegated_namespace = 'prefixes'::text) AND (COALESCE(cardinality(delegated_slug_prefixes), 0) > 0))) AND (bound_max_concurrent > 0))))",
"oauth_clients.oauth_clients_min_trust_check": "c CHECK (((min_trust IS NULL) OR (min_trust = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text]))))",
"oauth_clients.oauth_clients_pkey": "p PRIMARY KEY (client_id)",
+ "oauth_clients.oauth_clients_private_pages_check": "c CHECK ((private_pages = ANY (ARRAY['none'::text, 'granted_sources'::text])))",
"oauth_clients.oauth_clients_registered_via_check": "c CHECK ((registered_via = 'dcr'::text))",
"oauth_clients.oauth_clients_source_grant_check": "c CHECK ((source_grant = 'none'::text))",
"oauth_clients.oauth_clients_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE RESTRICT",
@@ -1593,7 +1595,8 @@
"12 allowed_operations ARRAY/_text NULL",
"13 takes_holders ARRAY/_text NULL",
"14 grant_revision integer/int4 NOT NULL DEFAULT 0",
- "15 min_trust text/text NULL"
+ "15 min_trust text/text NULL",
+ "16 private_pages text/text NOT NULL DEFAULT 'none'::text"
],
"flags": "relkind=r rls=false force_rls=false"
},
@@ -2817,7 +2820,8 @@
"29 source_grant text/text NULL",
"30 takes_holders ARRAY/_text NULL",
"31 min_trust text/text NULL",
- "32 registered_via text/text NULL"
+ "32 registered_via text/text NULL",
+ "33 private_pages text/text NOT NULL DEFAULT 'none'::text"
],
"flags": "relkind=r rls=true force_rls=false"
},
diff --git a/test/fixtures/goldens/catalog/pglite-engine-init-fts-portuguese.json b/test/fixtures/goldens/catalog/pglite-engine-init-fts-portuguese.json
index e9f24cdc68..336a8ea17d 100644
--- a/test/fixtures/goldens/catalog/pglite-engine-init-fts-portuguese.json
+++ b/test/fixtures/goldens/catalog/pglite-engine-init-fts-portuguese.json
@@ -3,6 +3,7 @@
"constraints": {
"access_tokens.access_tokens_min_trust_check": "c CHECK (((min_trust IS NULL) OR (min_trust = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text]))))",
"access_tokens.access_tokens_pkey": "p PRIMARY KEY (id)",
+ "access_tokens.access_tokens_private_pages_check": "c CHECK ((private_pages = ANY (ARRAY['none'::text, 'granted_sources'::text])))",
"access_tokens.access_tokens_source_grant_check": "c CHECK ((source_grant = ANY (ARRAY['default'::text, 'scalar'::text, 'federated'::text, 'none'::text])))",
"access_tokens.access_tokens_token_hash_key": "u UNIQUE (token_hash)",
"access_tokens.trust_generation_update": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
@@ -209,6 +210,7 @@
"oauth_clients.oauth_clients_complete_agent_grant": "c CHECK (((NOT (COALESCE(scope, ''::text) ~ '(^|[[:space:]])agent([[:space:]]|$)'::text)) OR ((COALESCE(cardinality(bound_tools), 0) > 0) AND (source_id IS NOT NULL) AND (bound_source_id IS NOT NULL) AND (bound_source_id = source_id) AND COALESCE((source_id = ANY (federated_read)), false) AND (((delegated_namespace = 'job'::text) AND (delegated_slug_prefixes IS NULL)) OR ((delegated_namespace = 'prefixes'::text) AND (COALESCE(cardinality(delegated_slug_prefixes), 0) > 0))) AND (bound_max_concurrent > 0))))",
"oauth_clients.oauth_clients_min_trust_check": "c CHECK (((min_trust IS NULL) OR (min_trust = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text]))))",
"oauth_clients.oauth_clients_pkey": "p PRIMARY KEY (client_id)",
+ "oauth_clients.oauth_clients_private_pages_check": "c CHECK ((private_pages = ANY (ARRAY['none'::text, 'granted_sources'::text])))",
"oauth_clients.oauth_clients_registered_via_check": "c CHECK ((registered_via = 'dcr'::text))",
"oauth_clients.oauth_clients_source_grant_check": "c CHECK ((source_grant = 'none'::text))",
"oauth_clients.oauth_clients_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE RESTRICT",
@@ -1593,7 +1595,8 @@
"12 allowed_operations ARRAY/_text NULL",
"13 takes_holders ARRAY/_text NULL",
"14 grant_revision integer/int4 NOT NULL DEFAULT 0",
- "15 min_trust text/text NULL"
+ "15 min_trust text/text NULL",
+ "16 private_pages text/text NOT NULL DEFAULT 'none'::text"
],
"flags": "relkind=r rls=false force_rls=false"
},
@@ -2817,7 +2820,8 @@
"29 source_grant text/text NULL",
"30 takes_holders ARRAY/_text NULL",
"31 min_trust text/text NULL",
- "32 registered_via text/text NULL"
+ "32 registered_via text/text NULL",
+ "33 private_pages text/text NOT NULL DEFAULT 'none'::text"
],
"flags": "relkind=r rls=true force_rls=false"
},
diff --git a/test/fixtures/goldens/catalog/pglite-engine-init-high-dims.json b/test/fixtures/goldens/catalog/pglite-engine-init-high-dims.json
index 1e8d82a921..29d1add087 100644
--- a/test/fixtures/goldens/catalog/pglite-engine-init-high-dims.json
+++ b/test/fixtures/goldens/catalog/pglite-engine-init-high-dims.json
@@ -3,6 +3,7 @@
"constraints": {
"access_tokens.access_tokens_min_trust_check": "c CHECK (((min_trust IS NULL) OR (min_trust = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text]))))",
"access_tokens.access_tokens_pkey": "p PRIMARY KEY (id)",
+ "access_tokens.access_tokens_private_pages_check": "c CHECK ((private_pages = ANY (ARRAY['none'::text, 'granted_sources'::text])))",
"access_tokens.access_tokens_source_grant_check": "c CHECK ((source_grant = ANY (ARRAY['default'::text, 'scalar'::text, 'federated'::text, 'none'::text])))",
"access_tokens.access_tokens_token_hash_key": "u UNIQUE (token_hash)",
"access_tokens.trust_generation_update": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
@@ -209,6 +210,7 @@
"oauth_clients.oauth_clients_complete_agent_grant": "c CHECK (((NOT (COALESCE(scope, ''::text) ~ '(^|[[:space:]])agent([[:space:]]|$)'::text)) OR ((COALESCE(cardinality(bound_tools), 0) > 0) AND (source_id IS NOT NULL) AND (bound_source_id IS NOT NULL) AND (bound_source_id = source_id) AND COALESCE((source_id = ANY (federated_read)), false) AND (((delegated_namespace = 'job'::text) AND (delegated_slug_prefixes IS NULL)) OR ((delegated_namespace = 'prefixes'::text) AND (COALESCE(cardinality(delegated_slug_prefixes), 0) > 0))) AND (bound_max_concurrent > 0))))",
"oauth_clients.oauth_clients_min_trust_check": "c CHECK (((min_trust IS NULL) OR (min_trust = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text]))))",
"oauth_clients.oauth_clients_pkey": "p PRIMARY KEY (client_id)",
+ "oauth_clients.oauth_clients_private_pages_check": "c CHECK ((private_pages = ANY (ARRAY['none'::text, 'granted_sources'::text])))",
"oauth_clients.oauth_clients_registered_via_check": "c CHECK ((registered_via = 'dcr'::text))",
"oauth_clients.oauth_clients_source_grant_check": "c CHECK ((source_grant = 'none'::text))",
"oauth_clients.oauth_clients_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE RESTRICT",
@@ -1589,7 +1591,8 @@
"12 allowed_operations ARRAY/_text NULL",
"13 takes_holders ARRAY/_text NULL",
"14 grant_revision integer/int4 NOT NULL DEFAULT 0",
- "15 min_trust text/text NULL"
+ "15 min_trust text/text NULL",
+ "16 private_pages text/text NOT NULL DEFAULT 'none'::text"
],
"flags": "relkind=r rls=false force_rls=false"
},
@@ -2813,7 +2816,8 @@
"29 source_grant text/text NULL",
"30 takes_holders ARRAY/_text NULL",
"31 min_trust text/text NULL",
- "32 registered_via text/text NULL"
+ "32 registered_via text/text NULL",
+ "33 private_pages text/text NOT NULL DEFAULT 'none'::text"
],
"flags": "relkind=r rls=true force_rls=false"
},
diff --git a/test/fixtures/goldens/catalog/postgres-engine-init-default.json b/test/fixtures/goldens/catalog/postgres-engine-init-default.json
index 409b37624a..aa46bb060a 100644
--- a/test/fixtures/goldens/catalog/postgres-engine-init-default.json
+++ b/test/fixtures/goldens/catalog/postgres-engine-init-default.json
@@ -3,6 +3,7 @@
"constraints": {
"access_tokens.access_tokens_min_trust_check": "c CHECK (((min_trust IS NULL) OR (min_trust = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text]))))",
"access_tokens.access_tokens_pkey": "p PRIMARY KEY (id)",
+ "access_tokens.access_tokens_private_pages_check": "c CHECK ((private_pages = ANY (ARRAY['none'::text, 'granted_sources'::text])))",
"access_tokens.access_tokens_source_grant_check": "c CHECK ((source_grant = ANY (ARRAY['default'::text, 'scalar'::text, 'federated'::text, 'none'::text])))",
"access_tokens.access_tokens_token_hash_key": "u UNIQUE (token_hash)",
"access_tokens.trust_generation_update": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
@@ -213,6 +214,7 @@
"oauth_clients.oauth_clients_complete_agent_grant": "c CHECK (((NOT (COALESCE(scope, ''::text) ~ '(^|[[:space:]])agent([[:space:]]|$)'::text)) OR ((COALESCE(cardinality(bound_tools), 0) > 0) AND (source_id IS NOT NULL) AND (bound_source_id IS NOT NULL) AND (bound_source_id = source_id) AND COALESCE((source_id = ANY (federated_read)), false) AND (((delegated_namespace = 'job'::text) AND (delegated_slug_prefixes IS NULL)) OR ((delegated_namespace = 'prefixes'::text) AND (COALESCE(cardinality(delegated_slug_prefixes), 0) > 0))) AND (bound_max_concurrent > 0))))",
"oauth_clients.oauth_clients_min_trust_check": "c CHECK (((min_trust IS NULL) OR (min_trust = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text]))))",
"oauth_clients.oauth_clients_pkey": "p PRIMARY KEY (client_id)",
+ "oauth_clients.oauth_clients_private_pages_check": "c CHECK ((private_pages = ANY (ARRAY['none'::text, 'granted_sources'::text])))",
"oauth_clients.oauth_clients_registered_via_check": "c CHECK ((registered_via = 'dcr'::text))",
"oauth_clients.oauth_clients_source_grant_check": "c CHECK ((source_grant = 'none'::text))",
"oauth_clients.oauth_clients_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE RESTRICT",
@@ -1594,7 +1596,8 @@
"12 allowed_operations ARRAY/_text NULL",
"13 takes_holders ARRAY/_text NULL",
"14 grant_revision integer/int4 NOT NULL DEFAULT 0",
- "15 min_trust text/text NULL"
+ "15 min_trust text/text NULL",
+ "16 private_pages text/text NOT NULL DEFAULT 'none'::text"
],
"flags": "relkind=r rls=true force_rls=false"
},
@@ -2829,7 +2832,8 @@
"29 source_grant text/text NULL",
"30 takes_holders ARRAY/_text NULL",
"31 min_trust text/text NULL",
- "32 registered_via text/text NULL"
+ "32 registered_via text/text NULL",
+ "33 private_pages text/text NOT NULL DEFAULT 'none'::text"
],
"flags": "relkind=r rls=true force_rls=false"
},
diff --git a/test/fixtures/goldens/catalog/postgres-engine-init-fts-portuguese.json b/test/fixtures/goldens/catalog/postgres-engine-init-fts-portuguese.json
index ad91a90bcb..a77c8210d6 100644
--- a/test/fixtures/goldens/catalog/postgres-engine-init-fts-portuguese.json
+++ b/test/fixtures/goldens/catalog/postgres-engine-init-fts-portuguese.json
@@ -3,6 +3,7 @@
"constraints": {
"access_tokens.access_tokens_min_trust_check": "c CHECK (((min_trust IS NULL) OR (min_trust = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text]))))",
"access_tokens.access_tokens_pkey": "p PRIMARY KEY (id)",
+ "access_tokens.access_tokens_private_pages_check": "c CHECK ((private_pages = ANY (ARRAY['none'::text, 'granted_sources'::text])))",
"access_tokens.access_tokens_source_grant_check": "c CHECK ((source_grant = ANY (ARRAY['default'::text, 'scalar'::text, 'federated'::text, 'none'::text])))",
"access_tokens.access_tokens_token_hash_key": "u UNIQUE (token_hash)",
"access_tokens.trust_generation_update": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
@@ -213,6 +214,7 @@
"oauth_clients.oauth_clients_complete_agent_grant": "c CHECK (((NOT (COALESCE(scope, ''::text) ~ '(^|[[:space:]])agent([[:space:]]|$)'::text)) OR ((COALESCE(cardinality(bound_tools), 0) > 0) AND (source_id IS NOT NULL) AND (bound_source_id IS NOT NULL) AND (bound_source_id = source_id) AND COALESCE((source_id = ANY (federated_read)), false) AND (((delegated_namespace = 'job'::text) AND (delegated_slug_prefixes IS NULL)) OR ((delegated_namespace = 'prefixes'::text) AND (COALESCE(cardinality(delegated_slug_prefixes), 0) > 0))) AND (bound_max_concurrent > 0))))",
"oauth_clients.oauth_clients_min_trust_check": "c CHECK (((min_trust IS NULL) OR (min_trust = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text]))))",
"oauth_clients.oauth_clients_pkey": "p PRIMARY KEY (client_id)",
+ "oauth_clients.oauth_clients_private_pages_check": "c CHECK ((private_pages = ANY (ARRAY['none'::text, 'granted_sources'::text])))",
"oauth_clients.oauth_clients_registered_via_check": "c CHECK ((registered_via = 'dcr'::text))",
"oauth_clients.oauth_clients_source_grant_check": "c CHECK ((source_grant = 'none'::text))",
"oauth_clients.oauth_clients_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE RESTRICT",
@@ -1594,7 +1596,8 @@
"12 allowed_operations ARRAY/_text NULL",
"13 takes_holders ARRAY/_text NULL",
"14 grant_revision integer/int4 NOT NULL DEFAULT 0",
- "15 min_trust text/text NULL"
+ "15 min_trust text/text NULL",
+ "16 private_pages text/text NOT NULL DEFAULT 'none'::text"
],
"flags": "relkind=r rls=true force_rls=false"
},
@@ -2829,7 +2832,8 @@
"29 source_grant text/text NULL",
"30 takes_holders ARRAY/_text NULL",
"31 min_trust text/text NULL",
- "32 registered_via text/text NULL"
+ "32 registered_via text/text NULL",
+ "33 private_pages text/text NOT NULL DEFAULT 'none'::text"
],
"flags": "relkind=r rls=true force_rls=false"
},
diff --git a/test/fixtures/goldens/catalog/postgres-engine-init-high-dims.json b/test/fixtures/goldens/catalog/postgres-engine-init-high-dims.json
index 92cf585744..4769a0574a 100644
--- a/test/fixtures/goldens/catalog/postgres-engine-init-high-dims.json
+++ b/test/fixtures/goldens/catalog/postgres-engine-init-high-dims.json
@@ -3,6 +3,7 @@
"constraints": {
"access_tokens.access_tokens_min_trust_check": "c CHECK (((min_trust IS NULL) OR (min_trust = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text]))))",
"access_tokens.access_tokens_pkey": "p PRIMARY KEY (id)",
+ "access_tokens.access_tokens_private_pages_check": "c CHECK ((private_pages = ANY (ARRAY['none'::text, 'granted_sources'::text])))",
"access_tokens.access_tokens_source_grant_check": "c CHECK ((source_grant = ANY (ARRAY['default'::text, 'scalar'::text, 'federated'::text, 'none'::text])))",
"access_tokens.access_tokens_token_hash_key": "u UNIQUE (token_hash)",
"access_tokens.trust_generation_update": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
@@ -213,6 +214,7 @@
"oauth_clients.oauth_clients_complete_agent_grant": "c CHECK (((NOT (COALESCE(scope, ''::text) ~ '(^|[[:space:]])agent([[:space:]]|$)'::text)) OR ((COALESCE(cardinality(bound_tools), 0) > 0) AND (source_id IS NOT NULL) AND (bound_source_id IS NOT NULL) AND (bound_source_id = source_id) AND COALESCE((source_id = ANY (federated_read)), false) AND (((delegated_namespace = 'job'::text) AND (delegated_slug_prefixes IS NULL)) OR ((delegated_namespace = 'prefixes'::text) AND (COALESCE(cardinality(delegated_slug_prefixes), 0) > 0))) AND (bound_max_concurrent > 0))))",
"oauth_clients.oauth_clients_min_trust_check": "c CHECK (((min_trust IS NULL) OR (min_trust = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text]))))",
"oauth_clients.oauth_clients_pkey": "p PRIMARY KEY (client_id)",
+ "oauth_clients.oauth_clients_private_pages_check": "c CHECK ((private_pages = ANY (ARRAY['none'::text, 'granted_sources'::text])))",
"oauth_clients.oauth_clients_registered_via_check": "c CHECK ((registered_via = 'dcr'::text))",
"oauth_clients.oauth_clients_source_grant_check": "c CHECK ((source_grant = 'none'::text))",
"oauth_clients.oauth_clients_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE RESTRICT",
@@ -1590,7 +1592,8 @@
"12 allowed_operations ARRAY/_text NULL",
"13 takes_holders ARRAY/_text NULL",
"14 grant_revision integer/int4 NOT NULL DEFAULT 0",
- "15 min_trust text/text NULL"
+ "15 min_trust text/text NULL",
+ "16 private_pages text/text NOT NULL DEFAULT 'none'::text"
],
"flags": "relkind=r rls=true force_rls=false"
},
@@ -2825,7 +2828,8 @@
"29 source_grant text/text NULL",
"30 takes_holders ARRAY/_text NULL",
"31 min_trust text/text NULL",
- "32 registered_via text/text NULL"
+ "32 registered_via text/text NULL",
+ "33 private_pages text/text NOT NULL DEFAULT 'none'::text"
],
"flags": "relkind=r rls=true force_rls=false"
},
diff --git a/test/fixtures/goldens/exports/types.json b/test/fixtures/goldens/exports/types.json
index be6172718a..3faee912bd 100644
--- a/test/fixtures/goldens/exports/types.json
+++ b/test/fixtures/goldens/exports/types.json
@@ -6355,6 +6355,7 @@
"issuedScopes?: string[] | undefined",
"minTrust?: \"user_confirmed\" | \"operator_curated\" | \"tool_observed\" | \"agent_written\" | \"unknown\" | \"external_untrusted\" | undefined",
"principal?: { kind: \"oauth_client\" | \"legacy_token\"; id: string; } | undefined",
+ "privatePages?: { mode: \"granted_sources\"; sources: string[]; } | undefined",
"scopes: string[]",
"sourceActive?: boolean | undefined",
"sourceId?: string | undefined",
diff --git a/test/fixtures/goldens/migrations/records.json b/test/fixtures/goldens/migrations/records.json
index d2239b450b..edd52fa92a 100644
--- a/test/fixtures/goldens/migrations/records.json
+++ b/test/fixtures/goldens/migrations/records.json
@@ -1,6 +1,6 @@
{
"golden": {
- "count": 267,
+ "count": 268,
"gaps": [
17,
18,
@@ -57,7 +57,7 @@
"dropInvalidConcurrentIndex": "6864d844b7dfb2fbecdd0fb9c73e06248473376feb794b3fe58f036c70d2d44c",
"ensureFactsFtsIndex": "95e723314ac30cea2db48e0e167c554ef1fa06df80cae765faa2a080a3a655c2",
"getFtsLanguage": "0d790b4c4af1f67a2a1bbd59470beb13f434917b381931baf8404a41c5d903db",
- "grantFromRow": "2d0603bb0f964d7e45e04aa76bac54cd4f6f63c91a8d9f028b60b4792bc1695e",
+ "grantFromRow": "e31bd308b413c11f2879ac4393fbc0362a1a974f937196f11029481e4dc64f69",
"hnswMaxDimsForType": "a187cdcc520f813b7c39da97ce53da58509232ed9f851627ef41abfe1b68bd26",
"lockTableForAnalyze": "b6e4f173cffd877d2cfd85af813aa694a6d2c32907eaea613c6879800d3a7b44",
"migrateAutoThinkToPins": "34267fe3b1cc4ab2850ddcf9ba18ce73d959678233a53de238c85231e6b71470",
@@ -76,7 +76,7 @@
"tableRows": "906d2413b13d76a06d5910885e47ed5c544be4ff3a2266e83146715721b24270",
"verifyProjectionStatistics": "0d231b04ecfbc5a4109d6fca9567bf4e8c9e9db6c3fbbb35212e026579ed6f67"
},
- "latest": 272,
+ "latest": 273,
"records": [
{
"handler": {
@@ -4373,6 +4373,19 @@
"transaction": "absent",
"verify": "absent",
"version": 272
+ },
+ {
+ "handler": "absent",
+ "idempotent": true,
+ "name": "principal_private_pages",
+ "sql": {
+ "length": 301,
+ "sha256": "c6fa4543ca075ca6b40c8bd8cba619b266d4ecf388f6d50cd349f4819dd312e4"
+ },
+ "sqlFor": "absent",
+ "transaction": "absent",
+ "verify": "absent",
+ "version": 273
}
],
"versions": [
@@ -4642,7 +4655,8 @@
269,
270,
271,
- 272
+ 272,
+ 273
]
},
"normalizer": "migrations-record-v1"
diff --git a/test/schema-bootstrap-coverage.test.ts b/test/schema-bootstrap-coverage.test.ts
index 9022abfe7a..465caf451d 100644
--- a/test/schema-bootstrap-coverage.test.ts
+++ b/test/schema-bootstrap-coverage.test.ts
@@ -931,6 +931,12 @@ const COLUMN_EXEMPTIONS = new Set<string>([
// column order; no blob statement or index reads it, and the DCR insert falls
// back to the unmarked insert while the column is missing.
'oauth_clients.registered_via',
+ // GBRA-156 access_tokens/oauth_clients.private_pages (migration
+ // principal_private_pages): migration-only like min_trust, so fresh and
+ // upgraded catalogs keep the same column order; no blob statement or index
+ // reads them, and grant reads treat a missing column as 'none'.
+ 'access_tokens.private_pages',
+ 'oauth_clients.private_pages',
// T7 — search_telemetry rank-1 drift columns (migration v111). search_telemetry
// is created entirely by migration v57 (not in the schema blob), so the v57+v111
// chain handles fresh + upgrade; no CREATE INDEX references these columns, so