Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
W1: register the ledger schema in guards and goldens
garrytan45e821fe8e37
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.ymlindex 7acb037f52..14917399fc 100644--- a/.github/workflows/e2e.yml+++ b/.github/workflows/e2e.yml@@ -85,7 +85,7 @@ jobs:path: |test/fixtures/pglite-snapshot.tartest/fixtures/pglite-snapshot.version- key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts') }}+ key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts', 'src/core/belief/schema.ts') }}- name: Install dependencies (bounded, retried once)timeout-minutes: 8run: bun scripts/ci-bun-install.ts --frozen-lockfile@@ -232,7 +232,7 @@ jobs:path: |test/fixtures/pglite-snapshot.tartest/fixtures/pglite-snapshot.version- key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts') }}+ key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts', 'src/core/belief/schema.ts') }}- name: Install dependencies (bounded, retried once)timeout-minutes: 8run: bun scripts/ci-bun-install.ts --frozen-lockfile@@ -326,7 +326,7 @@ jobs:path: |test/fixtures/pglite-snapshot.tartest/fixtures/pglite-snapshot.version- key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts') }}+ key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts', 'src/core/belief/schema.ts') }}- name: Install dependencies (bounded, retried once)timeout-minutes: 8run: bun scripts/ci-bun-install.ts --frozen-lockfile@@ -512,7 +512,7 @@ jobs:path: |test/fixtures/pglite-snapshot.tartest/fixtures/pglite-snapshot.version- key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts') }}+ key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts', 'src/core/belief/schema.ts') }}- name: Install dependencies (bounded, retried once)timeout-minutes: 8run: bun scripts/ci-bun-install.ts --frozen-lockfile@@ -600,7 +600,7 @@ jobs:path: |test/fixtures/pglite-snapshot.tartest/fixtures/pglite-snapshot.version- key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts') }}+ key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts', 'src/core/belief/schema.ts') }}- name: Install dependencies (bounded, retried once)timeout-minutes: 8run: bun scripts/ci-bun-install.ts --frozen-lockfile@@ -897,7 +897,7 @@ jobs:path: |test/fixtures/pglite-snapshot.tartest/fixtures/pglite-snapshot.version- key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts') }}+ key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts', 'src/core/belief/schema.ts') }}- name: Install dependencies (bounded, retried once)timeout-minutes: 8run: bun scripts/ci-bun-install.ts --frozen-lockfilediff --git a/.github/workflows/stress.yml b/.github/workflows/stress.ymlindex a40b9d67f9..bed4a71622 100644--- a/.github/workflows/stress.yml+++ b/.github/workflows/stress.yml@@ -119,7 +119,7 @@ jobs:path: |test/fixtures/pglite-snapshot.tartest/fixtures/pglite-snapshot.version- key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts') }}+ key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts', 'src/core/belief/schema.ts') }}- name: Install dependencies (bounded, retried once)timeout-minutes: 8run: bun scripts/ci-bun-install.ts --frozen-lockfilediff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlindex b03daf4c8e..c85d0253b9 100644--- a/.github/workflows/test.yml+++ b/.github/workflows/test.yml@@ -358,7 +358,7 @@ jobs:path: |test/fixtures/pglite-snapshot.tartest/fixtures/pglite-snapshot.version- key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts') }}+ key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts', 'src/core/belief/schema.ts') }}- name: Install dependencies (bounded, retried once)timeout-minutes: 8run: bun scripts/ci-bun-install.ts --frozen-lockfile@@ -468,7 +468,7 @@ jobs:path: |test/fixtures/pglite-snapshot.tartest/fixtures/pglite-snapshot.version- key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts') }}+ key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts', 'src/core/belief/schema.ts') }}- name: Install dependencies (bounded, retried once)timeout-minutes: 8run: bun scripts/ci-bun-install.ts --frozen-lockfile@@ -539,13 +539,13 @@ jobs:path: |test/fixtures/pglite-snapshot.tartest/fixtures/pglite-snapshot.version- key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts') }}+ key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts', 'src/core/belief/schema.ts') }}- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3with:path: |test/fixtures/pglite-snapshot-default.tartest/fixtures/pglite-snapshot-default.version- key: pglite-snapshot-default-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts') }}+ key: pglite-snapshot-default-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts', 'src/core/belief/schema.ts') }}- name: Install dependencies (bounded, retried once)timeout-minutes: 8run: bun scripts/ci-bun-install.ts --frozen-lockfile@@ -622,7 +622,7 @@ jobs:path: |test/fixtures/pglite-snapshot-default.tartest/fixtures/pglite-snapshot-default.version- key: pglite-snapshot-default-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts') }}+ key: pglite-snapshot-default-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts', 'src/core/belief/schema.ts') }}- name: Install dependencies (bounded, retried once)timeout-minutes: 8run: bun scripts/ci-bun-install.ts --frozen-lockfile@@ -661,7 +661,7 @@ jobs:path: |test/fixtures/pglite-snapshot.tartest/fixtures/pglite-snapshot.version- key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts') }}+ key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts', 'src/core/belief/schema.ts') }}- name: Install dependencies (bounded, retried once)timeout-minutes: 8run: bun scripts/ci-bun-install.ts --frozen-lockfile@@ -762,7 +762,7 @@ jobs:path: |test/fixtures/pglite-snapshot.tartest/fixtures/pglite-snapshot.version- key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts') }}+ key: pglite-snapshot-${{ runner.os }}-${{ hashFiles('src/core/*.ts', 'src/core/audit/redact-connection-info.ts', 'src/core/engine-sql/bootstrap.ts', 'src/core/schema-migrations/**', 'src/core/ai/defaults.ts', 'src/core/company-brain/receipt-schema.ts', 'src/core/entities/resolve.ts', 'src/core/facts/withdrawal-schema.ts', 'src/core/facts/relink-schema.ts', 'src/core/google/*.ts', 'src/core/grants/*.ts', 'src/core/minions/tools/brain-allowlist.ts', 'src/core/ops/contract.ts', 'src/core/ops/execution-prerequisites.ts', 'src/core/page-body/page-shape.ts', 'src/core/page-body/schema.ts', 'src/core/page-state/*schema.ts', 'src/core/persistence/*.ts', 'src/core/schema-pack/link-inference.ts', 'src/core/schema-pack/redos-guard.ts', 'src/core/search/alias-normalize.ts', 'src/core/search/private-visibility.ts', 'src/core/search/projection-statistics.ts', 'src/core/search/relational-intent.ts', 'src/core/shared-skills/*schema*.ts', 'src/core/ai/decide/schema.ts', 'test/helpers/legacy-embedding-config.ts', 'scripts/build-pglite-snapshot.ts', 'src/core/facts/purge-schema.ts', 'src/core/facts/fts-index.ts', 'src/core/eligibility/generation-schema.ts', 'src/core/trust/schema.ts', 'src/core/trust/tier.ts', 'src/core/trust/allow-rules.ts', 'src/core/write-gate-schema.ts', 'src/core/questions/schema.ts', 'src/core/questions/identity.ts', 'src/core/questions/auto-think-migration.ts', 'src/core/loops/loops-schema.ts', 'src/core/postgres-engine/schema-lock-timeout.ts', 'src/core/belief/schema.ts') }}- name: Install dependencies (bounded, retried once)timeout-minutes: 8run: bun scripts/ci-bun-install.ts --frozen-lockfilediff --git a/scripts/check-orphan-modules.mjs b/scripts/check-orphan-modules.mjsindex 4fd946fb5b..f0f1485253 100644--- a/scripts/check-orphan-modules.mjs+++ b/scripts/check-orphan-modules.mjs@@ -53,6 +53,8 @@ const ALLOWLIST = new Map([// string in a reviewer-visible edit. Modules reached from `scripts/**` carry// reason 'script-reachable', which the guard verifies.const PERMITTED_TEST_ONLY = [+ { path: 'src/core/belief/coverage.ts', reason: 'held: W1 belief ledger (#6806) lane C wires it into `gbrain beliefs enable|disable`; remove this entry in that commit' },+ { path: 'src/core/belief/history.ts', reason: 'held: the belief ledger history reader ships in W1 with its remote privacy probe (docs/designs/BELIEF_LEDGER.md probe 14); W2 history reads are its product caller' },{ path: 'src/core/bootstrap/template-repo.ts', reason: 'script-reachable' },{ path: 'src/eval/longmemeval/diagnostics.ts', reason: 'script-reachable' },{ path: 'src/eval/longmemeval/evidence-brief.ts', reason: 'held: eval-only wave 1 brief builder (10x memory advantage plan A3), loaded by path from gbrain-evals eval/runner/pilot; product wiring is plan item A8, conditional on the A5 pilot' },diff --git a/src/commands/doctor/checks/managed-guard.ts b/src/commands/doctor/checks/managed-guard.tsindex 5a6732c0e3..9309cc2249 100644--- a/src/commands/doctor/checks/managed-guard.ts+++ b/src/commands/doctor/checks/managed-guard.ts@@ -32,7 +32,7 @@ export const GUARDED_TABLE_COLUMNS: Readonly<Record<string, readonly string[]>>timeline_entries: ['created_at', 'date', 'detail', 'event_page_id', 'id', 'last_write_principal_id', 'last_write_principal_kind', 'last_write_request_id','last_written_at', 'page_id', 'source', 'summary', 'trust_tier', 'write_origin', 'write_principal_id', 'write_principal_kind', 'write_request_id'],sources: ['archive_expires_at', 'archived', 'archived_at', 'chunker_version', 'config', 'contextual_retrieval_mode', 'created_at', 'id', 'incarnation',- 'last_commit', 'last_sync_at', 'local_path', 'name', 'newest_content_at', 'trust_frontmatter_overrides', 'upstream_behind', 'upstream_checked_at',+ 'last_commit', 'last_sync_at', 'local_path', 'name', 'newest_content_at', 'purge_epoch', 'trust_frontmatter_overrides', 'upstream_behind', 'upstream_checked_at','upstream_commit'],page_segment_texts: ['body', 'byte_len', 'created_at', 'line_count', 'sha256', 'source_id'],page_body_manifest: ['byte_len', 'byte_start', 'cut_kind', 'date_max', 'date_min', 'entry_state', 'facts_slots', 'gen_from', 'gen_to', 'hash_state',diff --git a/src/core/belief/coverage.ts b/src/core/belief/coverage.tsindex 1204cbeda7..d486b5804d 100644--- a/src/core/belief/coverage.ts+++ b/src/core/belief/coverage.ts@@ -14,6 +14,7 @@ import { COVERAGE_KEY, pageKey } from './keys.ts';import { appendBeliefEvents, markBeliefCommits, type BeliefEventDraft } from './append.ts';import { coverageActive, currentStateHash, readLedgerSource } from './ledger.ts';import { keyedSubjects, type Subject } from './subjects.ts';+import { readManagedMode } from '../persistence/managed-mode.ts';export interface CoverageRun { runId: string; resumed: boolean; pages: number; dbOnlySubjects: number; complete: boolean; certified: boolean }const BASELINE_BATCH = 200;@@ -88,8 +89,7 @@ export async function enableBeliefLedger(engine: BrainEngine, sourceId: string):const resumed = latest?.type === 'coverage.started' && !!latest.run;const runId = resumed ? latest!.run! : randomUUID();if (latest?.type === 'coverage.complete' || latest?.type === 'coverage.restored') {- const source = await readLedgerSource(engine, sourceId);- return { runId: latest.run ?? '', resumed: true, pages: 0, dbOnlySubjects: 0, complete: true, certified: !!source?.managed };+ return { runId: latest.run ?? '', resumed: true, pages: 0, dbOnlySubjects: 0, complete: true, certified: await readManagedMode(engine) };}if (!resumed) await appendCoverage(engine, sourceId, 'coverage.started', { run: runId });let pages = 0;@@ -100,9 +100,9 @@ export async function enableBeliefLedger(engine: BrainEngine, sourceId: string):for (const slug of slugs) if (await baselinePage(engine, sourceId, slug, runId)) pages++;after = slugs[slugs.length - 1]!;}- const source = await readLedgerSource(engine, sourceId);- await appendCoverage(engine, sourceId, 'coverage.complete', { run: runId, certified: !!source?.managed });- return { runId, resumed, pages, dbOnlySubjects: 0, complete: true, certified: !!source?.managed };+ const certified = await readManagedMode(engine);+ await appendCoverage(engine, sourceId, 'coverage.complete', { run: runId, certified });+ return { runId, resumed, pages, dbOnlySubjects: 0, complete: true, certified };}export async function disableBeliefLedger(engine: BrainEngine, sourceId: string): Promise<boolean> {diff --git a/src/core/belief/ledger.ts b/src/core/belief/ledger.tsindex c68a131c8b..c3b7cfe33f 100644--- a/src/core/belief/ledger.ts+++ b/src/core/belief/ledger.ts@@ -15,6 +15,7 @@ import { AsyncLocalStorage } from 'node:async_hooks';import { randomUUID } from 'node:crypto';import type { BrainEngine } from '../engine.ts';import { assertHeldPageKeys } from '../page-state/guards.ts';+import { readManagedMode } from '../persistence/managed-mode.ts';import { COVERAGE_KEY, heldKey, pageKey, sha256Hex, canonicalJson, factKeySubject, slugRef } from './keys.ts';import { readBeliefState, readFactsById, type RawPage, type RawState } from './state.ts';import { keyedSubjects, keyFact, pageNeeds, type KeyContext, type Subject } from './subjects.ts';@@ -62,17 +63,16 @@ export function noteBelief(note: BeliefNote): void {}/** Coverage and purge probes for one source, in one read. */-export async function readLedgerSource(tx: Pick<BrainEngine, 'executeRaw'>, sourceId: string): Promise<{ incarnation: string; purgeEpoch: number; coverage: string | null; managed: boolean; purgesPossible: boolean } | null> {+export async function readLedgerSource(tx: Pick<BrainEngine, 'executeRaw'>, sourceId: string): Promise<{ incarnation: string; purgeEpoch: number; coverage: string | null; purgesPossible: boolean } | null> {const [row] = await tx.executeRaw<Record<string, unknown>>(`SELECT s.incarnation::text AS incarnation, s.purge_epoch,(SELECT e.event_type FROM belief_events e WHERE e.source_id = s.id AND e.subject_kind = 'coverage' AND e.subject_key = $2AND e.source_incarnation = s.incarnation ORDER BY e.id DESC LIMIT 1) AS coverage,- COALESCE((SELECT b.enabled FROM persistence_brain b WHERE b.singleton = 1), false) AS managed,(s.purge_epoch > 0 OR EXISTS (SELECT 1 FROM fact_purges WHERE source_id = s.id) OR EXISTS (SELECT 1 FROM take_purges WHERE source_id = s.id)OR EXISTS (SELECT 1 FROM page_purges WHERE source_id = s.id)) AS purgesFROM sources s WHERE s.id = $1`, [sourceId, COVERAGE_KEY]);if (!row) return null;return { incarnation: String(row.incarnation), purgeEpoch: Number(row.purge_epoch), coverage: (row.coverage as string | null) ?? null,- managed: row.managed === true, purgesPossible: row.purges === true };+ purgesPossible: row.purges === true };}export const coverageActive = (coverage: string | null) => coverage != null && coverage !== 'coverage.stopped';@@ -82,7 +82,7 @@ async function beginBeliefBatch(tx: BrainEngine, opts: BeliefBatchOptions): Promif (!source || !coverageActive(source.coverage)) return null;assertHeldPageKeys(tx, opts.slugs.map(slug => ({ sourceId: opts.sourceId, slug })));const pre = await readBeliefState(tx, opts.sourceId, opts.slugs);- return { opts, publicationId: opts.publicationId ?? randomUUID(), incarnation: source.incarnation, managed: source.managed,+ return { opts, publicationId: opts.publicationId ?? randomUUID(), incarnation: source.incarnation, managed: await readManagedMode(tx),purgesPossible: source.purgesPossible, pre, notes: [] };}diff --git a/test/fixtures/goldens/catalog/pglite-engine-init-default.json b/test/fixtures/goldens/catalog/pglite-engine-init-default.jsonindex 82f1cbcc57..59755cd43d 100644--- a/test/fixtures/goldens/catalog/pglite-engine-init-default.json+++ b/test/fixtures/goldens/catalog/pglite-engine-init-default.json@@ -6,6 +6,15 @@"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",+ "belief_commit_marks.belief_commit_marks_pkey": "p PRIMARY KEY (publication_id)",+ "belief_events.belief_events_event_key_key": "u UNIQUE (event_key)",+ "belief_events.belief_events_origin_check": "c CHECK ((origin = ANY (ARRAY['live'::text, 'unmanaged'::text, 'baseline'::text, 'backfill'::text, 'reconcile'::text])))",+ "belief_events.belief_events_pkey": "p PRIMARY KEY (id)",+ "belief_events.belief_events_subject_kind_check": "c CHECK ((subject_kind = ANY (ARRAY['page'::text, 'fact'::text, 'take'::text, 'link'::text, 'link_transition'::text, 'coverage'::text])))",+ "belief_events.belief_events_tier_basis_check": "c CHECK ((tier_basis = ANY (ARRAY['row'::text, 'writer'::text, 'unknown'::text])))",+ "belief_page_lifetimes.belief_page_lifetimes_pkey": "p PRIMARY KEY (page_lifetime)",+ "belief_redactions.belief_redactions_pkey": "p PRIMARY KEY (id)",+ "belief_retier_manifest.belief_retier_manifest_pkey": "p PRIMARY KEY (summary_event, subject_kind, subject_key)","budget_ledger.budget_ledger_pkey": "p PRIMARY KEY (scope, resolver_id, local_date)","budget_reservations.budget_reservations_pkey": "p PRIMARY KEY (reservation_id)","calibration_profiles.calibration_profiles_pkey": "p PRIMARY KEY (id)",@@ -507,6 +516,21 @@"access_tokens": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],+ "belief_commit_marks": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_events": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_page_lifetimes": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_redactions": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_retier_manifest": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],"budget_ledger": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],@@ -934,6 +958,22 @@"indexes": {"access_tokens_pkey": "CREATE UNIQUE INDEX access_tokens_pkey ON public.access_tokens USING btree (id)","access_tokens_token_hash_key": "CREATE UNIQUE INDEX access_tokens_token_hash_key ON public.access_tokens USING btree (token_hash)",+ "belief_commit_marks_pkey": "CREATE UNIQUE INDEX belief_commit_marks_pkey ON public.belief_commit_marks USING btree (publication_id)",+ "belief_events_claim_fp": "CREATE INDEX belief_events_claim_fp ON public.belief_events USING btree (source_id, claim_fp) WHERE (claim_fp IS NOT NULL)",+ "belief_events_event_key_key": "CREATE UNIQUE INDEX belief_events_event_key_key ON public.belief_events USING btree (event_key)",+ "belief_events_lifetime": "CREATE INDEX belief_events_lifetime ON public.belief_events USING btree (page_lifetime, id) WHERE (page_lifetime IS NOT NULL)",+ "belief_events_page": "CREATE INDEX belief_events_page ON public.belief_events USING btree (source_id, slug, id)",+ "belief_events_pkey": "CREATE UNIQUE INDEX belief_events_pkey ON public.belief_events USING btree (id)",+ "belief_events_publication": "CREATE INDEX belief_events_publication ON public.belief_events USING btree (publication_id)",+ "belief_events_recorded": "CREATE INDEX belief_events_recorded ON public.belief_events USING btree (recorded_at)",+ "belief_events_subject": "CREATE INDEX belief_events_subject ON public.belief_events USING btree (source_id, subject_kind, subject_key, id)",+ "belief_page_lifetimes_open": "CREATE UNIQUE INDEX belief_page_lifetimes_open ON public.belief_page_lifetimes USING btree (source_incarnation, slug) WHERE (ended_at IS NULL)",+ "belief_page_lifetimes_pkey": "CREATE UNIQUE INDEX belief_page_lifetimes_pkey ON public.belief_page_lifetimes USING btree (page_lifetime)",+ "belief_page_lifetimes_slug": "CREATE INDEX belief_page_lifetimes_slug ON public.belief_page_lifetimes USING btree (source_id, slug)",+ "belief_redactions_field_hash": "CREATE INDEX belief_redactions_field_hash ON public.belief_redactions USING btree (source_id, field_hash)",+ "belief_redactions_pkey": "CREATE UNIQUE INDEX belief_redactions_pkey ON public.belief_redactions USING btree (id)",+ "belief_redactions_subject": "CREATE INDEX belief_redactions_subject ON public.belief_redactions USING btree (source_id, subject_key, field)",+ "belief_retier_manifest_pkey": "CREATE UNIQUE INDEX belief_retier_manifest_pkey ON public.belief_retier_manifest USING btree (summary_event, subject_kind, subject_key)","budget_ledger_pkey": "CREATE UNIQUE INDEX budget_ledger_pkey ON public.budget_ledger USING btree (scope, resolver_id, local_date)","budget_reservations_pkey": "CREATE UNIQUE INDEX budget_reservations_pkey ON public.budget_reservations USING btree (reservation_id)","calibration_profiles_bias_tags_gin": "CREATE INDEX calibration_profiles_bias_tags_gin ON public.calibration_profiles USING gin (active_bias_tags)",@@ -1359,6 +1399,8 @@},"policies": {},"sequences": {+ "belief_events_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_events.id",+ "belief_redactions_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_redactions.id","calibration_profiles_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=calibration_profiles.id","chat_usage_log_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chat_usage_log.id","chronicle_judge_reservations_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chronicle_judge_reservations.id",@@ -1444,6 +1486,83 @@],"flags": "relkind=r rls=false force_rls=false"},+ "belief_commit_marks": {+ "columns": [+ "1 publication_id uuid/uuid NOT NULL",+ "2 observed_at timestamp with time zone/timestamptz NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_events": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_events_id_seq'::regclass)",+ "2 event_key bytea/bytea NOT NULL",+ "3 source_id text/text NOT NULL",+ "4 source_incarnation uuid/uuid NOT NULL",+ "5 page_lifetime uuid/uuid NULL",+ "6 slug text/text NOT NULL",+ "7 subject_kind text/text NOT NULL",+ "8 subject_key text/text NOT NULL",+ "9 event_type text/text NOT NULL",+ "10 origin text/text NOT NULL DEFAULT 'live'::text",+ "11 trust_tier text/text NOT NULL",+ "12 writer_tier text/text NULL",+ "13 tier_basis text/text NOT NULL DEFAULT 'row'::text",+ "14 visibility text/text NOT NULL",+ "15 publication_id uuid/uuid NOT NULL",+ "16 ord integer/int4 NOT NULL",+ "17 recorded_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "18 source_time timestamp with time zone/timestamptz NULL",+ "19 valid_from timestamp with time zone/timestamptz NULL",+ "20 valid_until timestamp with time zone/timestamptz NULL",+ "21 value jsonb/jsonb NULL",+ "22 value_hash text/text NULL",+ "23 prior_hash text/text NULL",+ "24 state_hash text/text NOT NULL",+ "25 cause jsonb/jsonb NOT NULL",+ "26 claim_fp text/text NULL",+ "27 purged boolean/bool NOT NULL DEFAULT false",+ "28 redacted_fields ARRAY/_text NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_page_lifetimes": {+ "columns": [+ "1 page_lifetime uuid/uuid NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 source_incarnation uuid/uuid NOT NULL",+ "4 slug text/text NOT NULL",+ "5 page_id integer/int4 NULL",+ "6 started_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "7 ended_at timestamp with time zone/timestamptz NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_redactions": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_redactions_id_seq'::regclass)",+ "2 source_id text/text NOT NULL",+ "3 subject_key text/text NOT NULL",+ "4 field text/text NOT NULL",+ "5 purge_request uuid/uuid NOT NULL",+ "6 field_hash text/text NOT NULL",+ "7 released_by uuid/uuid NULL",+ "8 released_hash text/text NULL",+ "9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_retier_manifest": {+ "columns": [+ "1 summary_event bigint/int8 NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 subject_kind text/text NOT NULL",+ "4 subject_key text/text NOT NULL",+ "5 from_tier text/text NULL",+ "6 to_tier text/text NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },"budget_ledger": {"columns": ["1 scope text/text NOT NULL",@@ -3460,7 +3579,8 @@"15 chunker_version text/text NULL","16 upstream_checked_at timestamp with time zone/timestamptz NULL","17 upstream_commit text/text NULL",- "18 upstream_behind integer/int4 NULL"+ "18 upstream_behind integer/int4 NULL",+ "19 purge_epoch bigint/int8 NOT NULL DEFAULT 0"],"flags": "relkind=r rls=false 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.jsonindex 7c88a44e13..7f496943fb 100644--- a/test/fixtures/goldens/catalog/pglite-engine-init-fts-portuguese.json+++ b/test/fixtures/goldens/catalog/pglite-engine-init-fts-portuguese.json@@ -6,6 +6,15 @@"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",+ "belief_commit_marks.belief_commit_marks_pkey": "p PRIMARY KEY (publication_id)",+ "belief_events.belief_events_event_key_key": "u UNIQUE (event_key)",+ "belief_events.belief_events_origin_check": "c CHECK ((origin = ANY (ARRAY['live'::text, 'unmanaged'::text, 'baseline'::text, 'backfill'::text, 'reconcile'::text])))",+ "belief_events.belief_events_pkey": "p PRIMARY KEY (id)",+ "belief_events.belief_events_subject_kind_check": "c CHECK ((subject_kind = ANY (ARRAY['page'::text, 'fact'::text, 'take'::text, 'link'::text, 'link_transition'::text, 'coverage'::text])))",+ "belief_events.belief_events_tier_basis_check": "c CHECK ((tier_basis = ANY (ARRAY['row'::text, 'writer'::text, 'unknown'::text])))",+ "belief_page_lifetimes.belief_page_lifetimes_pkey": "p PRIMARY KEY (page_lifetime)",+ "belief_redactions.belief_redactions_pkey": "p PRIMARY KEY (id)",+ "belief_retier_manifest.belief_retier_manifest_pkey": "p PRIMARY KEY (summary_event, subject_kind, subject_key)","budget_ledger.budget_ledger_pkey": "p PRIMARY KEY (scope, resolver_id, local_date)","budget_reservations.budget_reservations_pkey": "p PRIMARY KEY (reservation_id)","calibration_profiles.calibration_profiles_pkey": "p PRIMARY KEY (id)",@@ -507,6 +516,21 @@"access_tokens": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],+ "belief_commit_marks": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_events": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_page_lifetimes": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_redactions": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_retier_manifest": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],"budget_ledger": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],@@ -934,6 +958,22 @@"indexes": {"access_tokens_pkey": "CREATE UNIQUE INDEX access_tokens_pkey ON public.access_tokens USING btree (id)","access_tokens_token_hash_key": "CREATE UNIQUE INDEX access_tokens_token_hash_key ON public.access_tokens USING btree (token_hash)",+ "belief_commit_marks_pkey": "CREATE UNIQUE INDEX belief_commit_marks_pkey ON public.belief_commit_marks USING btree (publication_id)",+ "belief_events_claim_fp": "CREATE INDEX belief_events_claim_fp ON public.belief_events USING btree (source_id, claim_fp) WHERE (claim_fp IS NOT NULL)",+ "belief_events_event_key_key": "CREATE UNIQUE INDEX belief_events_event_key_key ON public.belief_events USING btree (event_key)",+ "belief_events_lifetime": "CREATE INDEX belief_events_lifetime ON public.belief_events USING btree (page_lifetime, id) WHERE (page_lifetime IS NOT NULL)",+ "belief_events_page": "CREATE INDEX belief_events_page ON public.belief_events USING btree (source_id, slug, id)",+ "belief_events_pkey": "CREATE UNIQUE INDEX belief_events_pkey ON public.belief_events USING btree (id)",+ "belief_events_publication": "CREATE INDEX belief_events_publication ON public.belief_events USING btree (publication_id)",+ "belief_events_recorded": "CREATE INDEX belief_events_recorded ON public.belief_events USING btree (recorded_at)",+ "belief_events_subject": "CREATE INDEX belief_events_subject ON public.belief_events USING btree (source_id, subject_kind, subject_key, id)",+ "belief_page_lifetimes_open": "CREATE UNIQUE INDEX belief_page_lifetimes_open ON public.belief_page_lifetimes USING btree (source_incarnation, slug) WHERE (ended_at IS NULL)",+ "belief_page_lifetimes_pkey": "CREATE UNIQUE INDEX belief_page_lifetimes_pkey ON public.belief_page_lifetimes USING btree (page_lifetime)",+ "belief_page_lifetimes_slug": "CREATE INDEX belief_page_lifetimes_slug ON public.belief_page_lifetimes USING btree (source_id, slug)",+ "belief_redactions_field_hash": "CREATE INDEX belief_redactions_field_hash ON public.belief_redactions USING btree (source_id, field_hash)",+ "belief_redactions_pkey": "CREATE UNIQUE INDEX belief_redactions_pkey ON public.belief_redactions USING btree (id)",+ "belief_redactions_subject": "CREATE INDEX belief_redactions_subject ON public.belief_redactions USING btree (source_id, subject_key, field)",+ "belief_retier_manifest_pkey": "CREATE UNIQUE INDEX belief_retier_manifest_pkey ON public.belief_retier_manifest USING btree (summary_event, subject_kind, subject_key)","budget_ledger_pkey": "CREATE UNIQUE INDEX budget_ledger_pkey ON public.budget_ledger USING btree (scope, resolver_id, local_date)","budget_reservations_pkey": "CREATE UNIQUE INDEX budget_reservations_pkey ON public.budget_reservations USING btree (reservation_id)","calibration_profiles_bias_tags_gin": "CREATE INDEX calibration_profiles_bias_tags_gin ON public.calibration_profiles USING gin (active_bias_tags)",@@ -1359,6 +1399,8 @@},"policies": {},"sequences": {+ "belief_events_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_events.id",+ "belief_redactions_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_redactions.id","calibration_profiles_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=calibration_profiles.id","chat_usage_log_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chat_usage_log.id","chronicle_judge_reservations_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chronicle_judge_reservations.id",@@ -1444,6 +1486,83 @@],"flags": "relkind=r rls=false force_rls=false"},+ "belief_commit_marks": {+ "columns": [+ "1 publication_id uuid/uuid NOT NULL",+ "2 observed_at timestamp with time zone/timestamptz NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_events": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_events_id_seq'::regclass)",+ "2 event_key bytea/bytea NOT NULL",+ "3 source_id text/text NOT NULL",+ "4 source_incarnation uuid/uuid NOT NULL",+ "5 page_lifetime uuid/uuid NULL",+ "6 slug text/text NOT NULL",+ "7 subject_kind text/text NOT NULL",+ "8 subject_key text/text NOT NULL",+ "9 event_type text/text NOT NULL",+ "10 origin text/text NOT NULL DEFAULT 'live'::text",+ "11 trust_tier text/text NOT NULL",+ "12 writer_tier text/text NULL",+ "13 tier_basis text/text NOT NULL DEFAULT 'row'::text",+ "14 visibility text/text NOT NULL",+ "15 publication_id uuid/uuid NOT NULL",+ "16 ord integer/int4 NOT NULL",+ "17 recorded_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "18 source_time timestamp with time zone/timestamptz NULL",+ "19 valid_from timestamp with time zone/timestamptz NULL",+ "20 valid_until timestamp with time zone/timestamptz NULL",+ "21 value jsonb/jsonb NULL",+ "22 value_hash text/text NULL",+ "23 prior_hash text/text NULL",+ "24 state_hash text/text NOT NULL",+ "25 cause jsonb/jsonb NOT NULL",+ "26 claim_fp text/text NULL",+ "27 purged boolean/bool NOT NULL DEFAULT false",+ "28 redacted_fields ARRAY/_text NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_page_lifetimes": {+ "columns": [+ "1 page_lifetime uuid/uuid NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 source_incarnation uuid/uuid NOT NULL",+ "4 slug text/text NOT NULL",+ "5 page_id integer/int4 NULL",+ "6 started_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "7 ended_at timestamp with time zone/timestamptz NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_redactions": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_redactions_id_seq'::regclass)",+ "2 source_id text/text NOT NULL",+ "3 subject_key text/text NOT NULL",+ "4 field text/text NOT NULL",+ "5 purge_request uuid/uuid NOT NULL",+ "6 field_hash text/text NOT NULL",+ "7 released_by uuid/uuid NULL",+ "8 released_hash text/text NULL",+ "9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_retier_manifest": {+ "columns": [+ "1 summary_event bigint/int8 NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 subject_kind text/text NOT NULL",+ "4 subject_key text/text NOT NULL",+ "5 from_tier text/text NULL",+ "6 to_tier text/text NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },"budget_ledger": {"columns": ["1 scope text/text NOT NULL",@@ -3460,7 +3579,8 @@"15 chunker_version text/text NULL","16 upstream_checked_at timestamp with time zone/timestamptz NULL","17 upstream_commit text/text NULL",- "18 upstream_behind integer/int4 NULL"+ "18 upstream_behind integer/int4 NULL",+ "19 purge_epoch bigint/int8 NOT NULL DEFAULT 0"],"flags": "relkind=r rls=false 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.jsonindex 603bf7eecf..eccc7d1d1e 100644--- a/test/fixtures/goldens/catalog/pglite-engine-init-high-dims.json+++ b/test/fixtures/goldens/catalog/pglite-engine-init-high-dims.json@@ -6,6 +6,15 @@"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",+ "belief_commit_marks.belief_commit_marks_pkey": "p PRIMARY KEY (publication_id)",+ "belief_events.belief_events_event_key_key": "u UNIQUE (event_key)",+ "belief_events.belief_events_origin_check": "c CHECK ((origin = ANY (ARRAY['live'::text, 'unmanaged'::text, 'baseline'::text, 'backfill'::text, 'reconcile'::text])))",+ "belief_events.belief_events_pkey": "p PRIMARY KEY (id)",+ "belief_events.belief_events_subject_kind_check": "c CHECK ((subject_kind = ANY (ARRAY['page'::text, 'fact'::text, 'take'::text, 'link'::text, 'link_transition'::text, 'coverage'::text])))",+ "belief_events.belief_events_tier_basis_check": "c CHECK ((tier_basis = ANY (ARRAY['row'::text, 'writer'::text, 'unknown'::text])))",+ "belief_page_lifetimes.belief_page_lifetimes_pkey": "p PRIMARY KEY (page_lifetime)",+ "belief_redactions.belief_redactions_pkey": "p PRIMARY KEY (id)",+ "belief_retier_manifest.belief_retier_manifest_pkey": "p PRIMARY KEY (summary_event, subject_kind, subject_key)","budget_ledger.budget_ledger_pkey": "p PRIMARY KEY (scope, resolver_id, local_date)","budget_reservations.budget_reservations_pkey": "p PRIMARY KEY (reservation_id)","calibration_profiles.calibration_profiles_pkey": "p PRIMARY KEY (id)",@@ -507,6 +516,21 @@"access_tokens": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],+ "belief_commit_marks": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_events": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_page_lifetimes": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_redactions": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_retier_manifest": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],"budget_ledger": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],@@ -934,6 +958,22 @@"indexes": {"access_tokens_pkey": "CREATE UNIQUE INDEX access_tokens_pkey ON public.access_tokens USING btree (id)","access_tokens_token_hash_key": "CREATE UNIQUE INDEX access_tokens_token_hash_key ON public.access_tokens USING btree (token_hash)",+ "belief_commit_marks_pkey": "CREATE UNIQUE INDEX belief_commit_marks_pkey ON public.belief_commit_marks USING btree (publication_id)",+ "belief_events_claim_fp": "CREATE INDEX belief_events_claim_fp ON public.belief_events USING btree (source_id, claim_fp) WHERE (claim_fp IS NOT NULL)",+ "belief_events_event_key_key": "CREATE UNIQUE INDEX belief_events_event_key_key ON public.belief_events USING btree (event_key)",+ "belief_events_lifetime": "CREATE INDEX belief_events_lifetime ON public.belief_events USING btree (page_lifetime, id) WHERE (page_lifetime IS NOT NULL)",+ "belief_events_page": "CREATE INDEX belief_events_page ON public.belief_events USING btree (source_id, slug, id)",+ "belief_events_pkey": "CREATE UNIQUE INDEX belief_events_pkey ON public.belief_events USING btree (id)",+ "belief_events_publication": "CREATE INDEX belief_events_publication ON public.belief_events USING btree (publication_id)",+ "belief_events_recorded": "CREATE INDEX belief_events_recorded ON public.belief_events USING btree (recorded_at)",+ "belief_events_subject": "CREATE INDEX belief_events_subject ON public.belief_events USING btree (source_id, subject_kind, subject_key, id)",+ "belief_page_lifetimes_open": "CREATE UNIQUE INDEX belief_page_lifetimes_open ON public.belief_page_lifetimes USING btree (source_incarnation, slug) WHERE (ended_at IS NULL)",+ "belief_page_lifetimes_pkey": "CREATE UNIQUE INDEX belief_page_lifetimes_pkey ON public.belief_page_lifetimes USING btree (page_lifetime)",+ "belief_page_lifetimes_slug": "CREATE INDEX belief_page_lifetimes_slug ON public.belief_page_lifetimes USING btree (source_id, slug)",+ "belief_redactions_field_hash": "CREATE INDEX belief_redactions_field_hash ON public.belief_redactions USING btree (source_id, field_hash)",+ "belief_redactions_pkey": "CREATE UNIQUE INDEX belief_redactions_pkey ON public.belief_redactions USING btree (id)",+ "belief_redactions_subject": "CREATE INDEX belief_redactions_subject ON public.belief_redactions USING btree (source_id, subject_key, field)",+ "belief_retier_manifest_pkey": "CREATE UNIQUE INDEX belief_retier_manifest_pkey ON public.belief_retier_manifest USING btree (summary_event, subject_kind, subject_key)","budget_ledger_pkey": "CREATE UNIQUE INDEX budget_ledger_pkey ON public.budget_ledger USING btree (scope, resolver_id, local_date)","budget_reservations_pkey": "CREATE UNIQUE INDEX budget_reservations_pkey ON public.budget_reservations USING btree (reservation_id)","calibration_profiles_bias_tags_gin": "CREATE INDEX calibration_profiles_bias_tags_gin ON public.calibration_profiles USING gin (active_bias_tags)",@@ -1355,6 +1395,8 @@},"policies": {},"sequences": {+ "belief_events_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_events.id",+ "belief_redactions_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_redactions.id","calibration_profiles_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=calibration_profiles.id","chat_usage_log_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chat_usage_log.id","chronicle_judge_reservations_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chronicle_judge_reservations.id",@@ -1440,6 +1482,83 @@],"flags": "relkind=r rls=false force_rls=false"},+ "belief_commit_marks": {+ "columns": [+ "1 publication_id uuid/uuid NOT NULL",+ "2 observed_at timestamp with time zone/timestamptz NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_events": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_events_id_seq'::regclass)",+ "2 event_key bytea/bytea NOT NULL",+ "3 source_id text/text NOT NULL",+ "4 source_incarnation uuid/uuid NOT NULL",+ "5 page_lifetime uuid/uuid NULL",+ "6 slug text/text NOT NULL",+ "7 subject_kind text/text NOT NULL",+ "8 subject_key text/text NOT NULL",+ "9 event_type text/text NOT NULL",+ "10 origin text/text NOT NULL DEFAULT 'live'::text",+ "11 trust_tier text/text NOT NULL",+ "12 writer_tier text/text NULL",+ "13 tier_basis text/text NOT NULL DEFAULT 'row'::text",+ "14 visibility text/text NOT NULL",+ "15 publication_id uuid/uuid NOT NULL",+ "16 ord integer/int4 NOT NULL",+ "17 recorded_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "18 source_time timestamp with time zone/timestamptz NULL",+ "19 valid_from timestamp with time zone/timestamptz NULL",+ "20 valid_until timestamp with time zone/timestamptz NULL",+ "21 value jsonb/jsonb NULL",+ "22 value_hash text/text NULL",+ "23 prior_hash text/text NULL",+ "24 state_hash text/text NOT NULL",+ "25 cause jsonb/jsonb NOT NULL",+ "26 claim_fp text/text NULL",+ "27 purged boolean/bool NOT NULL DEFAULT false",+ "28 redacted_fields ARRAY/_text NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_page_lifetimes": {+ "columns": [+ "1 page_lifetime uuid/uuid NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 source_incarnation uuid/uuid NOT NULL",+ "4 slug text/text NOT NULL",+ "5 page_id integer/int4 NULL",+ "6 started_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "7 ended_at timestamp with time zone/timestamptz NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_redactions": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_redactions_id_seq'::regclass)",+ "2 source_id text/text NOT NULL",+ "3 subject_key text/text NOT NULL",+ "4 field text/text NOT NULL",+ "5 purge_request uuid/uuid NOT NULL",+ "6 field_hash text/text NOT NULL",+ "7 released_by uuid/uuid NULL",+ "8 released_hash text/text NULL",+ "9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_retier_manifest": {+ "columns": [+ "1 summary_event bigint/int8 NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 subject_kind text/text NOT NULL",+ "4 subject_key text/text NOT NULL",+ "5 from_tier text/text NULL",+ "6 to_tier text/text NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },"budget_ledger": {"columns": ["1 scope text/text NOT NULL",@@ -3456,7 +3575,8 @@"15 chunker_version text/text NULL","16 upstream_checked_at timestamp with time zone/timestamptz NULL","17 upstream_commit text/text NULL",- "18 upstream_behind integer/int4 NULL"+ "18 upstream_behind integer/int4 NULL",+ "19 purge_epoch bigint/int8 NOT NULL DEFAULT 0"],"flags": "relkind=r rls=false force_rls=false"},diff --git a/test/fixtures/goldens/catalog/pglite-schema-blob-default.json b/test/fixtures/goldens/catalog/pglite-schema-blob-default.jsonindex 8d2632c7ad..197b1ab721 100644--- a/test/fixtures/goldens/catalog/pglite-schema-blob-default.json+++ b/test/fixtures/goldens/catalog/pglite-schema-blob-default.json@@ -3,6 +3,15 @@"constraints": {"access_tokens.access_tokens_pkey": "p PRIMARY KEY (id)","access_tokens.access_tokens_token_hash_key": "u UNIQUE (token_hash)",+ "belief_commit_marks.belief_commit_marks_pkey": "p PRIMARY KEY (publication_id)",+ "belief_events.belief_events_event_key_key": "u UNIQUE (event_key)",+ "belief_events.belief_events_origin_check": "c CHECK ((origin = ANY (ARRAY['live'::text, 'unmanaged'::text, 'baseline'::text, 'backfill'::text, 'reconcile'::text])))",+ "belief_events.belief_events_pkey": "p PRIMARY KEY (id)",+ "belief_events.belief_events_subject_kind_check": "c CHECK ((subject_kind = ANY (ARRAY['page'::text, 'fact'::text, 'take'::text, 'link'::text, 'link_transition'::text, 'coverage'::text])))",+ "belief_events.belief_events_tier_basis_check": "c CHECK ((tier_basis = ANY (ARRAY['row'::text, 'writer'::text, 'unknown'::text])))",+ "belief_page_lifetimes.belief_page_lifetimes_pkey": "p PRIMARY KEY (page_lifetime)",+ "belief_redactions.belief_redactions_pkey": "p PRIMARY KEY (id)",+ "belief_retier_manifest.belief_retier_manifest_pkey": "p PRIMARY KEY (summary_event, subject_kind, subject_key)","calibration_profiles.calibration_profiles_pkey": "p PRIMARY KEY (id)","calibration_profiles.calibration_profiles_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE","chat_usage_log.chat_usage_log_pkey": "p PRIMARY KEY (id)",@@ -364,6 +373,21 @@"access_tokens": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],+ "belief_commit_marks": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_events": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_page_lifetimes": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_redactions": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_retier_manifest": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],"calibration_profiles": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],@@ -698,6 +722,22 @@"indexes": {"access_tokens_pkey": "CREATE UNIQUE INDEX access_tokens_pkey ON public.access_tokens USING btree (id)","access_tokens_token_hash_key": "CREATE UNIQUE INDEX access_tokens_token_hash_key ON public.access_tokens USING btree (token_hash)",+ "belief_commit_marks_pkey": "CREATE UNIQUE INDEX belief_commit_marks_pkey ON public.belief_commit_marks USING btree (publication_id)",+ "belief_events_claim_fp": "CREATE INDEX belief_events_claim_fp ON public.belief_events USING btree (source_id, claim_fp) WHERE (claim_fp IS NOT NULL)",+ "belief_events_event_key_key": "CREATE UNIQUE INDEX belief_events_event_key_key ON public.belief_events USING btree (event_key)",+ "belief_events_lifetime": "CREATE INDEX belief_events_lifetime ON public.belief_events USING btree (page_lifetime, id) WHERE (page_lifetime IS NOT NULL)",+ "belief_events_page": "CREATE INDEX belief_events_page ON public.belief_events USING btree (source_id, slug, id)",+ "belief_events_pkey": "CREATE UNIQUE INDEX belief_events_pkey ON public.belief_events USING btree (id)",+ "belief_events_publication": "CREATE INDEX belief_events_publication ON public.belief_events USING btree (publication_id)",+ "belief_events_recorded": "CREATE INDEX belief_events_recorded ON public.belief_events USING btree (recorded_at)",+ "belief_events_subject": "CREATE INDEX belief_events_subject ON public.belief_events USING btree (source_id, subject_kind, subject_key, id)",+ "belief_page_lifetimes_open": "CREATE UNIQUE INDEX belief_page_lifetimes_open ON public.belief_page_lifetimes USING btree (source_incarnation, slug) WHERE (ended_at IS NULL)",+ "belief_page_lifetimes_pkey": "CREATE UNIQUE INDEX belief_page_lifetimes_pkey ON public.belief_page_lifetimes USING btree (page_lifetime)",+ "belief_page_lifetimes_slug": "CREATE INDEX belief_page_lifetimes_slug ON public.belief_page_lifetimes USING btree (source_id, slug)",+ "belief_redactions_field_hash": "CREATE INDEX belief_redactions_field_hash ON public.belief_redactions USING btree (source_id, field_hash)",+ "belief_redactions_pkey": "CREATE UNIQUE INDEX belief_redactions_pkey ON public.belief_redactions USING btree (id)",+ "belief_redactions_subject": "CREATE INDEX belief_redactions_subject ON public.belief_redactions USING btree (source_id, subject_key, field)",+ "belief_retier_manifest_pkey": "CREATE UNIQUE INDEX belief_retier_manifest_pkey ON public.belief_retier_manifest USING btree (summary_event, subject_kind, subject_key)","calibration_profiles_bias_tags_gin": "CREATE INDEX calibration_profiles_bias_tags_gin ON public.calibration_profiles USING gin (active_bias_tags)","calibration_profiles_holder_recent_idx": "CREATE INDEX calibration_profiles_holder_recent_idx ON public.calibration_profiles USING btree (source_id, holder, generated_at DESC)","calibration_profiles_pkey": "CREATE UNIQUE INDEX calibration_profiles_pkey ON public.calibration_profiles USING btree (id)",@@ -998,6 +1038,8 @@},"policies": {},"sequences": {+ "belief_events_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_events.id",+ "belief_redactions_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_redactions.id","calibration_profiles_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=calibration_profiles.id","chat_usage_log_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chat_usage_log.id","chronicle_judge_reservations_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chronicle_judge_reservations.id",@@ -1061,6 +1103,83 @@],"flags": "relkind=r rls=false force_rls=false"},+ "belief_commit_marks": {+ "columns": [+ "1 publication_id uuid/uuid NOT NULL",+ "2 observed_at timestamp with time zone/timestamptz NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_events": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_events_id_seq'::regclass)",+ "2 event_key bytea/bytea NOT NULL",+ "3 source_id text/text NOT NULL",+ "4 source_incarnation uuid/uuid NOT NULL",+ "5 page_lifetime uuid/uuid NULL",+ "6 slug text/text NOT NULL",+ "7 subject_kind text/text NOT NULL",+ "8 subject_key text/text NOT NULL",+ "9 event_type text/text NOT NULL",+ "10 origin text/text NOT NULL DEFAULT 'live'::text",+ "11 trust_tier text/text NOT NULL",+ "12 writer_tier text/text NULL",+ "13 tier_basis text/text NOT NULL DEFAULT 'row'::text",+ "14 visibility text/text NOT NULL",+ "15 publication_id uuid/uuid NOT NULL",+ "16 ord integer/int4 NOT NULL",+ "17 recorded_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "18 source_time timestamp with time zone/timestamptz NULL",+ "19 valid_from timestamp with time zone/timestamptz NULL",+ "20 valid_until timestamp with time zone/timestamptz NULL",+ "21 value jsonb/jsonb NULL",+ "22 value_hash text/text NULL",+ "23 prior_hash text/text NULL",+ "24 state_hash text/text NOT NULL",+ "25 cause jsonb/jsonb NOT NULL",+ "26 claim_fp text/text NULL",+ "27 purged boolean/bool NOT NULL DEFAULT false",+ "28 redacted_fields ARRAY/_text NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_page_lifetimes": {+ "columns": [+ "1 page_lifetime uuid/uuid NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 source_incarnation uuid/uuid NOT NULL",+ "4 slug text/text NOT NULL",+ "5 page_id integer/int4 NULL",+ "6 started_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "7 ended_at timestamp with time zone/timestamptz NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_redactions": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_redactions_id_seq'::regclass)",+ "2 source_id text/text NOT NULL",+ "3 subject_key text/text NOT NULL",+ "4 field text/text NOT NULL",+ "5 purge_request uuid/uuid NOT NULL",+ "6 field_hash text/text NOT NULL",+ "7 released_by uuid/uuid NULL",+ "8 released_hash text/text NULL",+ "9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_retier_manifest": {+ "columns": [+ "1 summary_event bigint/int8 NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 subject_kind text/text NOT NULL",+ "4 subject_key text/text NOT NULL",+ "5 from_tier text/text NULL",+ "6 to_tier text/text NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },"calibration_profiles": {"columns": ["1 id bigint/int8 NOT NULL DEFAULT nextval('calibration_profiles_id_seq'::regclass)",diff --git a/test/fixtures/goldens/catalog/pglite-schema-blob-fts-portuguese.json b/test/fixtures/goldens/catalog/pglite-schema-blob-fts-portuguese.jsonindex 72e67ec6f9..25e432dfa4 100644--- a/test/fixtures/goldens/catalog/pglite-schema-blob-fts-portuguese.json+++ b/test/fixtures/goldens/catalog/pglite-schema-blob-fts-portuguese.json@@ -3,6 +3,15 @@"constraints": {"access_tokens.access_tokens_pkey": "p PRIMARY KEY (id)","access_tokens.access_tokens_token_hash_key": "u UNIQUE (token_hash)",+ "belief_commit_marks.belief_commit_marks_pkey": "p PRIMARY KEY (publication_id)",+ "belief_events.belief_events_event_key_key": "u UNIQUE (event_key)",+ "belief_events.belief_events_origin_check": "c CHECK ((origin = ANY (ARRAY['live'::text, 'unmanaged'::text, 'baseline'::text, 'backfill'::text, 'reconcile'::text])))",+ "belief_events.belief_events_pkey": "p PRIMARY KEY (id)",+ "belief_events.belief_events_subject_kind_check": "c CHECK ((subject_kind = ANY (ARRAY['page'::text, 'fact'::text, 'take'::text, 'link'::text, 'link_transition'::text, 'coverage'::text])))",+ "belief_events.belief_events_tier_basis_check": "c CHECK ((tier_basis = ANY (ARRAY['row'::text, 'writer'::text, 'unknown'::text])))",+ "belief_page_lifetimes.belief_page_lifetimes_pkey": "p PRIMARY KEY (page_lifetime)",+ "belief_redactions.belief_redactions_pkey": "p PRIMARY KEY (id)",+ "belief_retier_manifest.belief_retier_manifest_pkey": "p PRIMARY KEY (summary_event, subject_kind, subject_key)","calibration_profiles.calibration_profiles_pkey": "p PRIMARY KEY (id)","calibration_profiles.calibration_profiles_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE","chat_usage_log.chat_usage_log_pkey": "p PRIMARY KEY (id)",@@ -364,6 +373,21 @@"access_tokens": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],+ "belief_commit_marks": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_events": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_page_lifetimes": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_redactions": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_retier_manifest": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],"calibration_profiles": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],@@ -698,6 +722,22 @@"indexes": {"access_tokens_pkey": "CREATE UNIQUE INDEX access_tokens_pkey ON public.access_tokens USING btree (id)","access_tokens_token_hash_key": "CREATE UNIQUE INDEX access_tokens_token_hash_key ON public.access_tokens USING btree (token_hash)",+ "belief_commit_marks_pkey": "CREATE UNIQUE INDEX belief_commit_marks_pkey ON public.belief_commit_marks USING btree (publication_id)",+ "belief_events_claim_fp": "CREATE INDEX belief_events_claim_fp ON public.belief_events USING btree (source_id, claim_fp) WHERE (claim_fp IS NOT NULL)",+ "belief_events_event_key_key": "CREATE UNIQUE INDEX belief_events_event_key_key ON public.belief_events USING btree (event_key)",+ "belief_events_lifetime": "CREATE INDEX belief_events_lifetime ON public.belief_events USING btree (page_lifetime, id) WHERE (page_lifetime IS NOT NULL)",+ "belief_events_page": "CREATE INDEX belief_events_page ON public.belief_events USING btree (source_id, slug, id)",+ "belief_events_pkey": "CREATE UNIQUE INDEX belief_events_pkey ON public.belief_events USING btree (id)",+ "belief_events_publication": "CREATE INDEX belief_events_publication ON public.belief_events USING btree (publication_id)",+ "belief_events_recorded": "CREATE INDEX belief_events_recorded ON public.belief_events USING btree (recorded_at)",+ "belief_events_subject": "CREATE INDEX belief_events_subject ON public.belief_events USING btree (source_id, subject_kind, subject_key, id)",+ "belief_page_lifetimes_open": "CREATE UNIQUE INDEX belief_page_lifetimes_open ON public.belief_page_lifetimes USING btree (source_incarnation, slug) WHERE (ended_at IS NULL)",+ "belief_page_lifetimes_pkey": "CREATE UNIQUE INDEX belief_page_lifetimes_pkey ON public.belief_page_lifetimes USING btree (page_lifetime)",+ "belief_page_lifetimes_slug": "CREATE INDEX belief_page_lifetimes_slug ON public.belief_page_lifetimes USING btree (source_id, slug)",+ "belief_redactions_field_hash": "CREATE INDEX belief_redactions_field_hash ON public.belief_redactions USING btree (source_id, field_hash)",+ "belief_redactions_pkey": "CREATE UNIQUE INDEX belief_redactions_pkey ON public.belief_redactions USING btree (id)",+ "belief_redactions_subject": "CREATE INDEX belief_redactions_subject ON public.belief_redactions USING btree (source_id, subject_key, field)",+ "belief_retier_manifest_pkey": "CREATE UNIQUE INDEX belief_retier_manifest_pkey ON public.belief_retier_manifest USING btree (summary_event, subject_kind, subject_key)","calibration_profiles_bias_tags_gin": "CREATE INDEX calibration_profiles_bias_tags_gin ON public.calibration_profiles USING gin (active_bias_tags)","calibration_profiles_holder_recent_idx": "CREATE INDEX calibration_profiles_holder_recent_idx ON public.calibration_profiles USING btree (source_id, holder, generated_at DESC)","calibration_profiles_pkey": "CREATE UNIQUE INDEX calibration_profiles_pkey ON public.calibration_profiles USING btree (id)",@@ -998,6 +1038,8 @@},"policies": {},"sequences": {+ "belief_events_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_events.id",+ "belief_redactions_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_redactions.id","calibration_profiles_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=calibration_profiles.id","chat_usage_log_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chat_usage_log.id","chronicle_judge_reservations_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chronicle_judge_reservations.id",@@ -1061,6 +1103,83 @@],"flags": "relkind=r rls=false force_rls=false"},+ "belief_commit_marks": {+ "columns": [+ "1 publication_id uuid/uuid NOT NULL",+ "2 observed_at timestamp with time zone/timestamptz NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_events": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_events_id_seq'::regclass)",+ "2 event_key bytea/bytea NOT NULL",+ "3 source_id text/text NOT NULL",+ "4 source_incarnation uuid/uuid NOT NULL",+ "5 page_lifetime uuid/uuid NULL",+ "6 slug text/text NOT NULL",+ "7 subject_kind text/text NOT NULL",+ "8 subject_key text/text NOT NULL",+ "9 event_type text/text NOT NULL",+ "10 origin text/text NOT NULL DEFAULT 'live'::text",+ "11 trust_tier text/text NOT NULL",+ "12 writer_tier text/text NULL",+ "13 tier_basis text/text NOT NULL DEFAULT 'row'::text",+ "14 visibility text/text NOT NULL",+ "15 publication_id uuid/uuid NOT NULL",+ "16 ord integer/int4 NOT NULL",+ "17 recorded_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "18 source_time timestamp with time zone/timestamptz NULL",+ "19 valid_from timestamp with time zone/timestamptz NULL",+ "20 valid_until timestamp with time zone/timestamptz NULL",+ "21 value jsonb/jsonb NULL",+ "22 value_hash text/text NULL",+ "23 prior_hash text/text NULL",+ "24 state_hash text/text NOT NULL",+ "25 cause jsonb/jsonb NOT NULL",+ "26 claim_fp text/text NULL",+ "27 purged boolean/bool NOT NULL DEFAULT false",+ "28 redacted_fields ARRAY/_text NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_page_lifetimes": {+ "columns": [+ "1 page_lifetime uuid/uuid NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 source_incarnation uuid/uuid NOT NULL",+ "4 slug text/text NOT NULL",+ "5 page_id integer/int4 NULL",+ "6 started_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "7 ended_at timestamp with time zone/timestamptz NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_redactions": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_redactions_id_seq'::regclass)",+ "2 source_id text/text NOT NULL",+ "3 subject_key text/text NOT NULL",+ "4 field text/text NOT NULL",+ "5 purge_request uuid/uuid NOT NULL",+ "6 field_hash text/text NOT NULL",+ "7 released_by uuid/uuid NULL",+ "8 released_hash text/text NULL",+ "9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_retier_manifest": {+ "columns": [+ "1 summary_event bigint/int8 NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 subject_kind text/text NOT NULL",+ "4 subject_key text/text NOT NULL",+ "5 from_tier text/text NULL",+ "6 to_tier text/text NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },"calibration_profiles": {"columns": ["1 id bigint/int8 NOT NULL DEFAULT nextval('calibration_profiles_id_seq'::regclass)",diff --git a/test/fixtures/goldens/catalog/pglite-schema-blob-high-dims.json b/test/fixtures/goldens/catalog/pglite-schema-blob-high-dims.jsonindex 2b6cef901e..593dbdb7be 100644--- a/test/fixtures/goldens/catalog/pglite-schema-blob-high-dims.json+++ b/test/fixtures/goldens/catalog/pglite-schema-blob-high-dims.json@@ -3,6 +3,15 @@"constraints": {"access_tokens.access_tokens_pkey": "p PRIMARY KEY (id)","access_tokens.access_tokens_token_hash_key": "u UNIQUE (token_hash)",+ "belief_commit_marks.belief_commit_marks_pkey": "p PRIMARY KEY (publication_id)",+ "belief_events.belief_events_event_key_key": "u UNIQUE (event_key)",+ "belief_events.belief_events_origin_check": "c CHECK ((origin = ANY (ARRAY['live'::text, 'unmanaged'::text, 'baseline'::text, 'backfill'::text, 'reconcile'::text])))",+ "belief_events.belief_events_pkey": "p PRIMARY KEY (id)",+ "belief_events.belief_events_subject_kind_check": "c CHECK ((subject_kind = ANY (ARRAY['page'::text, 'fact'::text, 'take'::text, 'link'::text, 'link_transition'::text, 'coverage'::text])))",+ "belief_events.belief_events_tier_basis_check": "c CHECK ((tier_basis = ANY (ARRAY['row'::text, 'writer'::text, 'unknown'::text])))",+ "belief_page_lifetimes.belief_page_lifetimes_pkey": "p PRIMARY KEY (page_lifetime)",+ "belief_redactions.belief_redactions_pkey": "p PRIMARY KEY (id)",+ "belief_retier_manifest.belief_retier_manifest_pkey": "p PRIMARY KEY (summary_event, subject_kind, subject_key)","calibration_profiles.calibration_profiles_pkey": "p PRIMARY KEY (id)","calibration_profiles.calibration_profiles_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE","chat_usage_log.chat_usage_log_pkey": "p PRIMARY KEY (id)",@@ -364,6 +373,21 @@"access_tokens": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],+ "belief_commit_marks": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_events": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_page_lifetimes": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_redactions": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_retier_manifest": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],"calibration_profiles": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],@@ -698,6 +722,22 @@"indexes": {"access_tokens_pkey": "CREATE UNIQUE INDEX access_tokens_pkey ON public.access_tokens USING btree (id)","access_tokens_token_hash_key": "CREATE UNIQUE INDEX access_tokens_token_hash_key ON public.access_tokens USING btree (token_hash)",+ "belief_commit_marks_pkey": "CREATE UNIQUE INDEX belief_commit_marks_pkey ON public.belief_commit_marks USING btree (publication_id)",+ "belief_events_claim_fp": "CREATE INDEX belief_events_claim_fp ON public.belief_events USING btree (source_id, claim_fp) WHERE (claim_fp IS NOT NULL)",+ "belief_events_event_key_key": "CREATE UNIQUE INDEX belief_events_event_key_key ON public.belief_events USING btree (event_key)",+ "belief_events_lifetime": "CREATE INDEX belief_events_lifetime ON public.belief_events USING btree (page_lifetime, id) WHERE (page_lifetime IS NOT NULL)",+ "belief_events_page": "CREATE INDEX belief_events_page ON public.belief_events USING btree (source_id, slug, id)",+ "belief_events_pkey": "CREATE UNIQUE INDEX belief_events_pkey ON public.belief_events USING btree (id)",+ "belief_events_publication": "CREATE INDEX belief_events_publication ON public.belief_events USING btree (publication_id)",+ "belief_events_recorded": "CREATE INDEX belief_events_recorded ON public.belief_events USING btree (recorded_at)",+ "belief_events_subject": "CREATE INDEX belief_events_subject ON public.belief_events USING btree (source_id, subject_kind, subject_key, id)",+ "belief_page_lifetimes_open": "CREATE UNIQUE INDEX belief_page_lifetimes_open ON public.belief_page_lifetimes USING btree (source_incarnation, slug) WHERE (ended_at IS NULL)",+ "belief_page_lifetimes_pkey": "CREATE UNIQUE INDEX belief_page_lifetimes_pkey ON public.belief_page_lifetimes USING btree (page_lifetime)",+ "belief_page_lifetimes_slug": "CREATE INDEX belief_page_lifetimes_slug ON public.belief_page_lifetimes USING btree (source_id, slug)",+ "belief_redactions_field_hash": "CREATE INDEX belief_redactions_field_hash ON public.belief_redactions USING btree (source_id, field_hash)",+ "belief_redactions_pkey": "CREATE UNIQUE INDEX belief_redactions_pkey ON public.belief_redactions USING btree (id)",+ "belief_redactions_subject": "CREATE INDEX belief_redactions_subject ON public.belief_redactions USING btree (source_id, subject_key, field)",+ "belief_retier_manifest_pkey": "CREATE UNIQUE INDEX belief_retier_manifest_pkey ON public.belief_retier_manifest USING btree (summary_event, subject_kind, subject_key)","calibration_profiles_bias_tags_gin": "CREATE INDEX calibration_profiles_bias_tags_gin ON public.calibration_profiles USING gin (active_bias_tags)","calibration_profiles_holder_recent_idx": "CREATE INDEX calibration_profiles_holder_recent_idx ON public.calibration_profiles USING btree (source_id, holder, generated_at DESC)","calibration_profiles_pkey": "CREATE UNIQUE INDEX calibration_profiles_pkey ON public.calibration_profiles USING btree (id)",@@ -997,6 +1037,8 @@},"policies": {},"sequences": {+ "belief_events_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_events.id",+ "belief_redactions_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_redactions.id","calibration_profiles_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=calibration_profiles.id","chat_usage_log_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chat_usage_log.id","chronicle_judge_reservations_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chronicle_judge_reservations.id",@@ -1060,6 +1102,83 @@],"flags": "relkind=r rls=false force_rls=false"},+ "belief_commit_marks": {+ "columns": [+ "1 publication_id uuid/uuid NOT NULL",+ "2 observed_at timestamp with time zone/timestamptz NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_events": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_events_id_seq'::regclass)",+ "2 event_key bytea/bytea NOT NULL",+ "3 source_id text/text NOT NULL",+ "4 source_incarnation uuid/uuid NOT NULL",+ "5 page_lifetime uuid/uuid NULL",+ "6 slug text/text NOT NULL",+ "7 subject_kind text/text NOT NULL",+ "8 subject_key text/text NOT NULL",+ "9 event_type text/text NOT NULL",+ "10 origin text/text NOT NULL DEFAULT 'live'::text",+ "11 trust_tier text/text NOT NULL",+ "12 writer_tier text/text NULL",+ "13 tier_basis text/text NOT NULL DEFAULT 'row'::text",+ "14 visibility text/text NOT NULL",+ "15 publication_id uuid/uuid NOT NULL",+ "16 ord integer/int4 NOT NULL",+ "17 recorded_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "18 source_time timestamp with time zone/timestamptz NULL",+ "19 valid_from timestamp with time zone/timestamptz NULL",+ "20 valid_until timestamp with time zone/timestamptz NULL",+ "21 value jsonb/jsonb NULL",+ "22 value_hash text/text NULL",+ "23 prior_hash text/text NULL",+ "24 state_hash text/text NOT NULL",+ "25 cause jsonb/jsonb NOT NULL",+ "26 claim_fp text/text NULL",+ "27 purged boolean/bool NOT NULL DEFAULT false",+ "28 redacted_fields ARRAY/_text NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_page_lifetimes": {+ "columns": [+ "1 page_lifetime uuid/uuid NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 source_incarnation uuid/uuid NOT NULL",+ "4 slug text/text NOT NULL",+ "5 page_id integer/int4 NULL",+ "6 started_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "7 ended_at timestamp with time zone/timestamptz NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_redactions": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_redactions_id_seq'::regclass)",+ "2 source_id text/text NOT NULL",+ "3 subject_key text/text NOT NULL",+ "4 field text/text NOT NULL",+ "5 purge_request uuid/uuid NOT NULL",+ "6 field_hash text/text NOT NULL",+ "7 released_by uuid/uuid NULL",+ "8 released_hash text/text NULL",+ "9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_retier_manifest": {+ "columns": [+ "1 summary_event bigint/int8 NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 subject_kind text/text NOT NULL",+ "4 subject_key text/text NOT NULL",+ "5 from_tier text/text NULL",+ "6 to_tier text/text NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },"calibration_profiles": {"columns": ["1 id bigint/int8 NOT NULL DEFAULT nextval('calibration_profiles_id_seq'::regclass)",diff --git a/test/fixtures/goldens/catalog/postgres-db-initschema.json b/test/fixtures/goldens/catalog/postgres-db-initschema.jsonindex f01ff56d91..72564e83d8 100644--- a/test/fixtures/goldens/catalog/postgres-db-initschema.json+++ b/test/fixtures/goldens/catalog/postgres-db-initschema.json@@ -3,6 +3,15 @@"constraints": {"access_tokens.access_tokens_pkey": "p PRIMARY KEY (id)","access_tokens.access_tokens_token_hash_key": "u UNIQUE (token_hash)",+ "belief_commit_marks.belief_commit_marks_pkey": "p PRIMARY KEY (publication_id)",+ "belief_events.belief_events_event_key_key": "u UNIQUE (event_key)",+ "belief_events.belief_events_origin_check": "c CHECK ((origin = ANY (ARRAY['live'::text, 'unmanaged'::text, 'baseline'::text, 'backfill'::text, 'reconcile'::text])))",+ "belief_events.belief_events_pkey": "p PRIMARY KEY (id)",+ "belief_events.belief_events_subject_kind_check": "c CHECK ((subject_kind = ANY (ARRAY['page'::text, 'fact'::text, 'take'::text, 'link'::text, 'link_transition'::text, 'coverage'::text])))",+ "belief_events.belief_events_tier_basis_check": "c CHECK ((tier_basis = ANY (ARRAY['row'::text, 'writer'::text, 'unknown'::text])))",+ "belief_page_lifetimes.belief_page_lifetimes_pkey": "p PRIMARY KEY (page_lifetime)",+ "belief_redactions.belief_redactions_pkey": "p PRIMARY KEY (id)",+ "belief_retier_manifest.belief_retier_manifest_pkey": "p PRIMARY KEY (summary_event, subject_kind, subject_key)","calibration_profiles.calibration_profiles_pkey": "p PRIMARY KEY (id)","calibration_profiles.calibration_profiles_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE","chat_usage_log.chat_usage_log_pkey": "p PRIMARY KEY (id)",@@ -375,6 +384,21 @@"access_tokens": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],+ "belief_commit_marks": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_events": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_page_lifetimes": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_redactions": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_retier_manifest": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],"calibration_profiles": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],@@ -712,6 +736,22 @@"indexes": {"access_tokens_pkey": "CREATE UNIQUE INDEX access_tokens_pkey ON public.access_tokens USING btree (id)","access_tokens_token_hash_key": "CREATE UNIQUE INDEX access_tokens_token_hash_key ON public.access_tokens USING btree (token_hash)",+ "belief_commit_marks_pkey": "CREATE UNIQUE INDEX belief_commit_marks_pkey ON public.belief_commit_marks USING btree (publication_id)",+ "belief_events_claim_fp": "CREATE INDEX belief_events_claim_fp ON public.belief_events USING btree (source_id, claim_fp) WHERE (claim_fp IS NOT NULL)",+ "belief_events_event_key_key": "CREATE UNIQUE INDEX belief_events_event_key_key ON public.belief_events USING btree (event_key)",+ "belief_events_lifetime": "CREATE INDEX belief_events_lifetime ON public.belief_events USING btree (page_lifetime, id) WHERE (page_lifetime IS NOT NULL)",+ "belief_events_page": "CREATE INDEX belief_events_page ON public.belief_events USING btree (source_id, slug, id)",+ "belief_events_pkey": "CREATE UNIQUE INDEX belief_events_pkey ON public.belief_events USING btree (id)",+ "belief_events_publication": "CREATE INDEX belief_events_publication ON public.belief_events USING btree (publication_id)",+ "belief_events_recorded": "CREATE INDEX belief_events_recorded ON public.belief_events USING btree (recorded_at)",+ "belief_events_subject": "CREATE INDEX belief_events_subject ON public.belief_events USING btree (source_id, subject_kind, subject_key, id)",+ "belief_page_lifetimes_open": "CREATE UNIQUE INDEX belief_page_lifetimes_open ON public.belief_page_lifetimes USING btree (source_incarnation, slug) WHERE (ended_at IS NULL)",+ "belief_page_lifetimes_pkey": "CREATE UNIQUE INDEX belief_page_lifetimes_pkey ON public.belief_page_lifetimes USING btree (page_lifetime)",+ "belief_page_lifetimes_slug": "CREATE INDEX belief_page_lifetimes_slug ON public.belief_page_lifetimes USING btree (source_id, slug)",+ "belief_redactions_field_hash": "CREATE INDEX belief_redactions_field_hash ON public.belief_redactions USING btree (source_id, field_hash)",+ "belief_redactions_pkey": "CREATE UNIQUE INDEX belief_redactions_pkey ON public.belief_redactions USING btree (id)",+ "belief_redactions_subject": "CREATE INDEX belief_redactions_subject ON public.belief_redactions USING btree (source_id, subject_key, field)",+ "belief_retier_manifest_pkey": "CREATE UNIQUE INDEX belief_retier_manifest_pkey ON public.belief_retier_manifest USING btree (summary_event, subject_kind, subject_key)","calibration_profiles_bias_tags_gin": "CREATE INDEX calibration_profiles_bias_tags_gin ON public.calibration_profiles USING gin (active_bias_tags)","calibration_profiles_holder_recent_idx": "CREATE INDEX calibration_profiles_holder_recent_idx ON public.calibration_profiles USING btree (source_id, holder, generated_at DESC)","calibration_profiles_pkey": "CREATE UNIQUE INDEX calibration_profiles_pkey ON public.calibration_profiles USING btree (id)",@@ -1018,6 +1058,8 @@},"policies": {},"sequences": {+ "belief_events_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_events.id",+ "belief_redactions_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_redactions.id","calibration_profiles_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=calibration_profiles.id","chat_usage_log_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chat_usage_log.id","chronicle_judge_reservations_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chronicle_judge_reservations.id",@@ -1081,6 +1123,83 @@],"flags": "relkind=r rls=true force_rls=false"},+ "belief_commit_marks": {+ "columns": [+ "1 publication_id uuid/uuid NOT NULL",+ "2 observed_at timestamp with time zone/timestamptz NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_events": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_events_id_seq'::regclass)",+ "2 event_key bytea/bytea NOT NULL",+ "3 source_id text/text NOT NULL",+ "4 source_incarnation uuid/uuid NOT NULL",+ "5 page_lifetime uuid/uuid NULL",+ "6 slug text/text NOT NULL",+ "7 subject_kind text/text NOT NULL",+ "8 subject_key text/text NOT NULL",+ "9 event_type text/text NOT NULL",+ "10 origin text/text NOT NULL DEFAULT 'live'::text",+ "11 trust_tier text/text NOT NULL",+ "12 writer_tier text/text NULL",+ "13 tier_basis text/text NOT NULL DEFAULT 'row'::text",+ "14 visibility text/text NOT NULL",+ "15 publication_id uuid/uuid NOT NULL",+ "16 ord integer/int4 NOT NULL",+ "17 recorded_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "18 source_time timestamp with time zone/timestamptz NULL",+ "19 valid_from timestamp with time zone/timestamptz NULL",+ "20 valid_until timestamp with time zone/timestamptz NULL",+ "21 value jsonb/jsonb NULL",+ "22 value_hash text/text NULL",+ "23 prior_hash text/text NULL",+ "24 state_hash text/text NOT NULL",+ "25 cause jsonb/jsonb NOT NULL",+ "26 claim_fp text/text NULL",+ "27 purged boolean/bool NOT NULL DEFAULT false",+ "28 redacted_fields ARRAY/_text NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_page_lifetimes": {+ "columns": [+ "1 page_lifetime uuid/uuid NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 source_incarnation uuid/uuid NOT NULL",+ "4 slug text/text NOT NULL",+ "5 page_id integer/int4 NULL",+ "6 started_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "7 ended_at timestamp with time zone/timestamptz NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_redactions": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_redactions_id_seq'::regclass)",+ "2 source_id text/text NOT NULL",+ "3 subject_key text/text NOT NULL",+ "4 field text/text NOT NULL",+ "5 purge_request uuid/uuid NOT NULL",+ "6 field_hash text/text NOT NULL",+ "7 released_by uuid/uuid NULL",+ "8 released_hash text/text NULL",+ "9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_retier_manifest": {+ "columns": [+ "1 summary_event bigint/int8 NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 subject_kind text/text NOT NULL",+ "4 subject_key text/text NOT NULL",+ "5 from_tier text/text NULL",+ "6 to_tier text/text NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },"calibration_profiles": {"columns": ["1 id bigint/int8 NOT NULL DEFAULT nextval('calibration_profiles_id_seq'::regclass)",diff --git a/test/fixtures/goldens/catalog/postgres-engine-init-default.json b/test/fixtures/goldens/catalog/postgres-engine-init-default.jsonindex 71cee22581..9c03feb845 100644--- a/test/fixtures/goldens/catalog/postgres-engine-init-default.json+++ b/test/fixtures/goldens/catalog/postgres-engine-init-default.json@@ -6,6 +6,15 @@"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",+ "belief_commit_marks.belief_commit_marks_pkey": "p PRIMARY KEY (publication_id)",+ "belief_events.belief_events_event_key_key": "u UNIQUE (event_key)",+ "belief_events.belief_events_origin_check": "c CHECK ((origin = ANY (ARRAY['live'::text, 'unmanaged'::text, 'baseline'::text, 'backfill'::text, 'reconcile'::text])))",+ "belief_events.belief_events_pkey": "p PRIMARY KEY (id)",+ "belief_events.belief_events_subject_kind_check": "c CHECK ((subject_kind = ANY (ARRAY['page'::text, 'fact'::text, 'take'::text, 'link'::text, 'link_transition'::text, 'coverage'::text])))",+ "belief_events.belief_events_tier_basis_check": "c CHECK ((tier_basis = ANY (ARRAY['row'::text, 'writer'::text, 'unknown'::text])))",+ "belief_page_lifetimes.belief_page_lifetimes_pkey": "p PRIMARY KEY (page_lifetime)",+ "belief_redactions.belief_redactions_pkey": "p PRIMARY KEY (id)",+ "belief_retier_manifest.belief_retier_manifest_pkey": "p PRIMARY KEY (summary_event, subject_kind, subject_key)","budget_ledger.budget_ledger_pkey": "p PRIMARY KEY (scope, resolver_id, local_date)","budget_reservations.budget_reservations_pkey": "p PRIMARY KEY (reservation_id)","calibration_profiles.calibration_profiles_pkey": "p PRIMARY KEY (id)",@@ -511,6 +520,21 @@"access_tokens": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],+ "belief_commit_marks": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_events": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_page_lifetimes": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_redactions": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_retier_manifest": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],"budget_ledger": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],@@ -935,6 +959,22 @@"indexes": {"access_tokens_pkey": "CREATE UNIQUE INDEX access_tokens_pkey ON public.access_tokens USING btree (id)","access_tokens_token_hash_key": "CREATE UNIQUE INDEX access_tokens_token_hash_key ON public.access_tokens USING btree (token_hash)",+ "belief_commit_marks_pkey": "CREATE UNIQUE INDEX belief_commit_marks_pkey ON public.belief_commit_marks USING btree (publication_id)",+ "belief_events_claim_fp": "CREATE INDEX belief_events_claim_fp ON public.belief_events USING btree (source_id, claim_fp) WHERE (claim_fp IS NOT NULL)",+ "belief_events_event_key_key": "CREATE UNIQUE INDEX belief_events_event_key_key ON public.belief_events USING btree (event_key)",+ "belief_events_lifetime": "CREATE INDEX belief_events_lifetime ON public.belief_events USING btree (page_lifetime, id) WHERE (page_lifetime IS NOT NULL)",+ "belief_events_page": "CREATE INDEX belief_events_page ON public.belief_events USING btree (source_id, slug, id)",+ "belief_events_pkey": "CREATE UNIQUE INDEX belief_events_pkey ON public.belief_events USING btree (id)",+ "belief_events_publication": "CREATE INDEX belief_events_publication ON public.belief_events USING btree (publication_id)",+ "belief_events_recorded": "CREATE INDEX belief_events_recorded ON public.belief_events USING btree (recorded_at)",+ "belief_events_subject": "CREATE INDEX belief_events_subject ON public.belief_events USING btree (source_id, subject_kind, subject_key, id)",+ "belief_page_lifetimes_open": "CREATE UNIQUE INDEX belief_page_lifetimes_open ON public.belief_page_lifetimes USING btree (source_incarnation, slug) WHERE (ended_at IS NULL)",+ "belief_page_lifetimes_pkey": "CREATE UNIQUE INDEX belief_page_lifetimes_pkey ON public.belief_page_lifetimes USING btree (page_lifetime)",+ "belief_page_lifetimes_slug": "CREATE INDEX belief_page_lifetimes_slug ON public.belief_page_lifetimes USING btree (source_id, slug)",+ "belief_redactions_field_hash": "CREATE INDEX belief_redactions_field_hash ON public.belief_redactions USING btree (source_id, field_hash)",+ "belief_redactions_pkey": "CREATE UNIQUE INDEX belief_redactions_pkey ON public.belief_redactions USING btree (id)",+ "belief_redactions_subject": "CREATE INDEX belief_redactions_subject ON public.belief_redactions USING btree (source_id, subject_key, field)",+ "belief_retier_manifest_pkey": "CREATE UNIQUE INDEX belief_retier_manifest_pkey ON public.belief_retier_manifest USING btree (summary_event, subject_kind, subject_key)","budget_ledger_pkey": "CREATE UNIQUE INDEX budget_ledger_pkey ON public.budget_ledger USING btree (scope, resolver_id, local_date)","budget_reservations_pkey": "CREATE UNIQUE INDEX budget_reservations_pkey ON public.budget_reservations USING btree (reservation_id)","calibration_profiles_bias_tags_gin": "CREATE INDEX calibration_profiles_bias_tags_gin ON public.calibration_profiles USING gin (active_bias_tags)",@@ -1361,6 +1401,8 @@},"policies": {},"sequences": {+ "belief_events_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_events.id",+ "belief_redactions_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_redactions.id","calibration_profiles_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=calibration_profiles.id","chat_usage_log_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chat_usage_log.id","chronicle_judge_reservations_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chronicle_judge_reservations.id",@@ -1445,6 +1487,83 @@],"flags": "relkind=r rls=true force_rls=false"},+ "belief_commit_marks": {+ "columns": [+ "1 publication_id uuid/uuid NOT NULL",+ "2 observed_at timestamp with time zone/timestamptz NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_events": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_events_id_seq'::regclass)",+ "2 event_key bytea/bytea NOT NULL",+ "3 source_id text/text NOT NULL",+ "4 source_incarnation uuid/uuid NOT NULL",+ "5 page_lifetime uuid/uuid NULL",+ "6 slug text/text NOT NULL",+ "7 subject_kind text/text NOT NULL",+ "8 subject_key text/text NOT NULL",+ "9 event_type text/text NOT NULL",+ "10 origin text/text NOT NULL DEFAULT 'live'::text",+ "11 trust_tier text/text NOT NULL",+ "12 writer_tier text/text NULL",+ "13 tier_basis text/text NOT NULL DEFAULT 'row'::text",+ "14 visibility text/text NOT NULL",+ "15 publication_id uuid/uuid NOT NULL",+ "16 ord integer/int4 NOT NULL",+ "17 recorded_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "18 source_time timestamp with time zone/timestamptz NULL",+ "19 valid_from timestamp with time zone/timestamptz NULL",+ "20 valid_until timestamp with time zone/timestamptz NULL",+ "21 value jsonb/jsonb NULL",+ "22 value_hash text/text NULL",+ "23 prior_hash text/text NULL",+ "24 state_hash text/text NOT NULL",+ "25 cause jsonb/jsonb NOT NULL",+ "26 claim_fp text/text NULL",+ "27 purged boolean/bool NOT NULL DEFAULT false",+ "28 redacted_fields ARRAY/_text NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_page_lifetimes": {+ "columns": [+ "1 page_lifetime uuid/uuid NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 source_incarnation uuid/uuid NOT NULL",+ "4 slug text/text NOT NULL",+ "5 page_id integer/int4 NULL",+ "6 started_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "7 ended_at timestamp with time zone/timestamptz NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_redactions": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_redactions_id_seq'::regclass)",+ "2 source_id text/text NOT NULL",+ "3 subject_key text/text NOT NULL",+ "4 field text/text NOT NULL",+ "5 purge_request uuid/uuid NOT NULL",+ "6 field_hash text/text NOT NULL",+ "7 released_by uuid/uuid NULL",+ "8 released_hash text/text NULL",+ "9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_retier_manifest": {+ "columns": [+ "1 summary_event bigint/int8 NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 subject_kind text/text NOT NULL",+ "4 subject_key text/text NOT NULL",+ "5 from_tier text/text NULL",+ "6 to_tier text/text NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },"budget_ledger": {"columns": ["1 scope text/text NOT NULL",@@ -3455,7 +3574,8 @@"15 incarnation uuid/uuid NOT NULL DEFAULT gen_random_uuid()","16 upstream_checked_at timestamp with time zone/timestamptz NULL","17 upstream_commit text/text NULL",- "18 upstream_behind integer/int4 NULL"+ "18 upstream_behind integer/int4 NULL",+ "19 purge_epoch bigint/int8 NOT NULL DEFAULT 0"],"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.jsonindex 8a70a15c5f..6897e215b2 100644--- a/test/fixtures/goldens/catalog/postgres-engine-init-fts-portuguese.json+++ b/test/fixtures/goldens/catalog/postgres-engine-init-fts-portuguese.json@@ -6,6 +6,15 @@"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",+ "belief_commit_marks.belief_commit_marks_pkey": "p PRIMARY KEY (publication_id)",+ "belief_events.belief_events_event_key_key": "u UNIQUE (event_key)",+ "belief_events.belief_events_origin_check": "c CHECK ((origin = ANY (ARRAY['live'::text, 'unmanaged'::text, 'baseline'::text, 'backfill'::text, 'reconcile'::text])))",+ "belief_events.belief_events_pkey": "p PRIMARY KEY (id)",+ "belief_events.belief_events_subject_kind_check": "c CHECK ((subject_kind = ANY (ARRAY['page'::text, 'fact'::text, 'take'::text, 'link'::text, 'link_transition'::text, 'coverage'::text])))",+ "belief_events.belief_events_tier_basis_check": "c CHECK ((tier_basis = ANY (ARRAY['row'::text, 'writer'::text, 'unknown'::text])))",+ "belief_page_lifetimes.belief_page_lifetimes_pkey": "p PRIMARY KEY (page_lifetime)",+ "belief_redactions.belief_redactions_pkey": "p PRIMARY KEY (id)",+ "belief_retier_manifest.belief_retier_manifest_pkey": "p PRIMARY KEY (summary_event, subject_kind, subject_key)","budget_ledger.budget_ledger_pkey": "p PRIMARY KEY (scope, resolver_id, local_date)","budget_reservations.budget_reservations_pkey": "p PRIMARY KEY (reservation_id)","calibration_profiles.calibration_profiles_pkey": "p PRIMARY KEY (id)",@@ -511,6 +520,21 @@"access_tokens": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],+ "belief_commit_marks": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_events": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_page_lifetimes": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_redactions": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_retier_manifest": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],"budget_ledger": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],@@ -935,6 +959,22 @@"indexes": {"access_tokens_pkey": "CREATE UNIQUE INDEX access_tokens_pkey ON public.access_tokens USING btree (id)","access_tokens_token_hash_key": "CREATE UNIQUE INDEX access_tokens_token_hash_key ON public.access_tokens USING btree (token_hash)",+ "belief_commit_marks_pkey": "CREATE UNIQUE INDEX belief_commit_marks_pkey ON public.belief_commit_marks USING btree (publication_id)",+ "belief_events_claim_fp": "CREATE INDEX belief_events_claim_fp ON public.belief_events USING btree (source_id, claim_fp) WHERE (claim_fp IS NOT NULL)",+ "belief_events_event_key_key": "CREATE UNIQUE INDEX belief_events_event_key_key ON public.belief_events USING btree (event_key)",+ "belief_events_lifetime": "CREATE INDEX belief_events_lifetime ON public.belief_events USING btree (page_lifetime, id) WHERE (page_lifetime IS NOT NULL)",+ "belief_events_page": "CREATE INDEX belief_events_page ON public.belief_events USING btree (source_id, slug, id)",+ "belief_events_pkey": "CREATE UNIQUE INDEX belief_events_pkey ON public.belief_events USING btree (id)",+ "belief_events_publication": "CREATE INDEX belief_events_publication ON public.belief_events USING btree (publication_id)",+ "belief_events_recorded": "CREATE INDEX belief_events_recorded ON public.belief_events USING btree (recorded_at)",+ "belief_events_subject": "CREATE INDEX belief_events_subject ON public.belief_events USING btree (source_id, subject_kind, subject_key, id)",+ "belief_page_lifetimes_open": "CREATE UNIQUE INDEX belief_page_lifetimes_open ON public.belief_page_lifetimes USING btree (source_incarnation, slug) WHERE (ended_at IS NULL)",+ "belief_page_lifetimes_pkey": "CREATE UNIQUE INDEX belief_page_lifetimes_pkey ON public.belief_page_lifetimes USING btree (page_lifetime)",+ "belief_page_lifetimes_slug": "CREATE INDEX belief_page_lifetimes_slug ON public.belief_page_lifetimes USING btree (source_id, slug)",+ "belief_redactions_field_hash": "CREATE INDEX belief_redactions_field_hash ON public.belief_redactions USING btree (source_id, field_hash)",+ "belief_redactions_pkey": "CREATE UNIQUE INDEX belief_redactions_pkey ON public.belief_redactions USING btree (id)",+ "belief_redactions_subject": "CREATE INDEX belief_redactions_subject ON public.belief_redactions USING btree (source_id, subject_key, field)",+ "belief_retier_manifest_pkey": "CREATE UNIQUE INDEX belief_retier_manifest_pkey ON public.belief_retier_manifest USING btree (summary_event, subject_kind, subject_key)","budget_ledger_pkey": "CREATE UNIQUE INDEX budget_ledger_pkey ON public.budget_ledger USING btree (scope, resolver_id, local_date)","budget_reservations_pkey": "CREATE UNIQUE INDEX budget_reservations_pkey ON public.budget_reservations USING btree (reservation_id)","calibration_profiles_bias_tags_gin": "CREATE INDEX calibration_profiles_bias_tags_gin ON public.calibration_profiles USING gin (active_bias_tags)",@@ -1361,6 +1401,8 @@},"policies": {},"sequences": {+ "belief_events_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_events.id",+ "belief_redactions_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_redactions.id","calibration_profiles_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=calibration_profiles.id","chat_usage_log_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chat_usage_log.id","chronicle_judge_reservations_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chronicle_judge_reservations.id",@@ -1445,6 +1487,83 @@],"flags": "relkind=r rls=true force_rls=false"},+ "belief_commit_marks": {+ "columns": [+ "1 publication_id uuid/uuid NOT NULL",+ "2 observed_at timestamp with time zone/timestamptz NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_events": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_events_id_seq'::regclass)",+ "2 event_key bytea/bytea NOT NULL",+ "3 source_id text/text NOT NULL",+ "4 source_incarnation uuid/uuid NOT NULL",+ "5 page_lifetime uuid/uuid NULL",+ "6 slug text/text NOT NULL",+ "7 subject_kind text/text NOT NULL",+ "8 subject_key text/text NOT NULL",+ "9 event_type text/text NOT NULL",+ "10 origin text/text NOT NULL DEFAULT 'live'::text",+ "11 trust_tier text/text NOT NULL",+ "12 writer_tier text/text NULL",+ "13 tier_basis text/text NOT NULL DEFAULT 'row'::text",+ "14 visibility text/text NOT NULL",+ "15 publication_id uuid/uuid NOT NULL",+ "16 ord integer/int4 NOT NULL",+ "17 recorded_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "18 source_time timestamp with time zone/timestamptz NULL",+ "19 valid_from timestamp with time zone/timestamptz NULL",+ "20 valid_until timestamp with time zone/timestamptz NULL",+ "21 value jsonb/jsonb NULL",+ "22 value_hash text/text NULL",+ "23 prior_hash text/text NULL",+ "24 state_hash text/text NOT NULL",+ "25 cause jsonb/jsonb NOT NULL",+ "26 claim_fp text/text NULL",+ "27 purged boolean/bool NOT NULL DEFAULT false",+ "28 redacted_fields ARRAY/_text NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_page_lifetimes": {+ "columns": [+ "1 page_lifetime uuid/uuid NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 source_incarnation uuid/uuid NOT NULL",+ "4 slug text/text NOT NULL",+ "5 page_id integer/int4 NULL",+ "6 started_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "7 ended_at timestamp with time zone/timestamptz NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_redactions": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_redactions_id_seq'::regclass)",+ "2 source_id text/text NOT NULL",+ "3 subject_key text/text NOT NULL",+ "4 field text/text NOT NULL",+ "5 purge_request uuid/uuid NOT NULL",+ "6 field_hash text/text NOT NULL",+ "7 released_by uuid/uuid NULL",+ "8 released_hash text/text NULL",+ "9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_retier_manifest": {+ "columns": [+ "1 summary_event bigint/int8 NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 subject_kind text/text NOT NULL",+ "4 subject_key text/text NOT NULL",+ "5 from_tier text/text NULL",+ "6 to_tier text/text NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },"budget_ledger": {"columns": ["1 scope text/text NOT NULL",@@ -3455,7 +3574,8 @@"15 incarnation uuid/uuid NOT NULL DEFAULT gen_random_uuid()","16 upstream_checked_at timestamp with time zone/timestamptz NULL","17 upstream_commit text/text NULL",- "18 upstream_behind integer/int4 NULL"+ "18 upstream_behind integer/int4 NULL",+ "19 purge_epoch bigint/int8 NOT NULL DEFAULT 0"],"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.jsonindex ad3d22f791..42b6b12d50 100644--- a/test/fixtures/goldens/catalog/postgres-engine-init-high-dims.json+++ b/test/fixtures/goldens/catalog/postgres-engine-init-high-dims.json@@ -6,6 +6,15 @@"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",+ "belief_commit_marks.belief_commit_marks_pkey": "p PRIMARY KEY (publication_id)",+ "belief_events.belief_events_event_key_key": "u UNIQUE (event_key)",+ "belief_events.belief_events_origin_check": "c CHECK ((origin = ANY (ARRAY['live'::text, 'unmanaged'::text, 'baseline'::text, 'backfill'::text, 'reconcile'::text])))",+ "belief_events.belief_events_pkey": "p PRIMARY KEY (id)",+ "belief_events.belief_events_subject_kind_check": "c CHECK ((subject_kind = ANY (ARRAY['page'::text, 'fact'::text, 'take'::text, 'link'::text, 'link_transition'::text, 'coverage'::text])))",+ "belief_events.belief_events_tier_basis_check": "c CHECK ((tier_basis = ANY (ARRAY['row'::text, 'writer'::text, 'unknown'::text])))",+ "belief_page_lifetimes.belief_page_lifetimes_pkey": "p PRIMARY KEY (page_lifetime)",+ "belief_redactions.belief_redactions_pkey": "p PRIMARY KEY (id)",+ "belief_retier_manifest.belief_retier_manifest_pkey": "p PRIMARY KEY (summary_event, subject_kind, subject_key)","budget_ledger.budget_ledger_pkey": "p PRIMARY KEY (scope, resolver_id, local_date)","budget_reservations.budget_reservations_pkey": "p PRIMARY KEY (reservation_id)","calibration_profiles.calibration_profiles_pkey": "p PRIMARY KEY (id)",@@ -511,6 +520,21 @@"access_tokens": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],+ "belief_commit_marks": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_events": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_page_lifetimes": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_redactions": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_retier_manifest": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],"budget_ledger": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],@@ -935,6 +959,22 @@"indexes": {"access_tokens_pkey": "CREATE UNIQUE INDEX access_tokens_pkey ON public.access_tokens USING btree (id)","access_tokens_token_hash_key": "CREATE UNIQUE INDEX access_tokens_token_hash_key ON public.access_tokens USING btree (token_hash)",+ "belief_commit_marks_pkey": "CREATE UNIQUE INDEX belief_commit_marks_pkey ON public.belief_commit_marks USING btree (publication_id)",+ "belief_events_claim_fp": "CREATE INDEX belief_events_claim_fp ON public.belief_events USING btree (source_id, claim_fp) WHERE (claim_fp IS NOT NULL)",+ "belief_events_event_key_key": "CREATE UNIQUE INDEX belief_events_event_key_key ON public.belief_events USING btree (event_key)",+ "belief_events_lifetime": "CREATE INDEX belief_events_lifetime ON public.belief_events USING btree (page_lifetime, id) WHERE (page_lifetime IS NOT NULL)",+ "belief_events_page": "CREATE INDEX belief_events_page ON public.belief_events USING btree (source_id, slug, id)",+ "belief_events_pkey": "CREATE UNIQUE INDEX belief_events_pkey ON public.belief_events USING btree (id)",+ "belief_events_publication": "CREATE INDEX belief_events_publication ON public.belief_events USING btree (publication_id)",+ "belief_events_recorded": "CREATE INDEX belief_events_recorded ON public.belief_events USING btree (recorded_at)",+ "belief_events_subject": "CREATE INDEX belief_events_subject ON public.belief_events USING btree (source_id, subject_kind, subject_key, id)",+ "belief_page_lifetimes_open": "CREATE UNIQUE INDEX belief_page_lifetimes_open ON public.belief_page_lifetimes USING btree (source_incarnation, slug) WHERE (ended_at IS NULL)",+ "belief_page_lifetimes_pkey": "CREATE UNIQUE INDEX belief_page_lifetimes_pkey ON public.belief_page_lifetimes USING btree (page_lifetime)",+ "belief_page_lifetimes_slug": "CREATE INDEX belief_page_lifetimes_slug ON public.belief_page_lifetimes USING btree (source_id, slug)",+ "belief_redactions_field_hash": "CREATE INDEX belief_redactions_field_hash ON public.belief_redactions USING btree (source_id, field_hash)",+ "belief_redactions_pkey": "CREATE UNIQUE INDEX belief_redactions_pkey ON public.belief_redactions USING btree (id)",+ "belief_redactions_subject": "CREATE INDEX belief_redactions_subject ON public.belief_redactions USING btree (source_id, subject_key, field)",+ "belief_retier_manifest_pkey": "CREATE UNIQUE INDEX belief_retier_manifest_pkey ON public.belief_retier_manifest USING btree (summary_event, subject_kind, subject_key)","budget_ledger_pkey": "CREATE UNIQUE INDEX budget_ledger_pkey ON public.budget_ledger USING btree (scope, resolver_id, local_date)","budget_reservations_pkey": "CREATE UNIQUE INDEX budget_reservations_pkey ON public.budget_reservations USING btree (reservation_id)","calibration_profiles_bias_tags_gin": "CREATE INDEX calibration_profiles_bias_tags_gin ON public.calibration_profiles USING gin (active_bias_tags)",@@ -1357,6 +1397,8 @@},"policies": {},"sequences": {+ "belief_events_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_events.id",+ "belief_redactions_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_redactions.id","calibration_profiles_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=calibration_profiles.id","chat_usage_log_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chat_usage_log.id","chronicle_judge_reservations_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chronicle_judge_reservations.id",@@ -1441,6 +1483,83 @@],"flags": "relkind=r rls=true force_rls=false"},+ "belief_commit_marks": {+ "columns": [+ "1 publication_id uuid/uuid NOT NULL",+ "2 observed_at timestamp with time zone/timestamptz NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_events": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_events_id_seq'::regclass)",+ "2 event_key bytea/bytea NOT NULL",+ "3 source_id text/text NOT NULL",+ "4 source_incarnation uuid/uuid NOT NULL",+ "5 page_lifetime uuid/uuid NULL",+ "6 slug text/text NOT NULL",+ "7 subject_kind text/text NOT NULL",+ "8 subject_key text/text NOT NULL",+ "9 event_type text/text NOT NULL",+ "10 origin text/text NOT NULL DEFAULT 'live'::text",+ "11 trust_tier text/text NOT NULL",+ "12 writer_tier text/text NULL",+ "13 tier_basis text/text NOT NULL DEFAULT 'row'::text",+ "14 visibility text/text NOT NULL",+ "15 publication_id uuid/uuid NOT NULL",+ "16 ord integer/int4 NOT NULL",+ "17 recorded_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "18 source_time timestamp with time zone/timestamptz NULL",+ "19 valid_from timestamp with time zone/timestamptz NULL",+ "20 valid_until timestamp with time zone/timestamptz NULL",+ "21 value jsonb/jsonb NULL",+ "22 value_hash text/text NULL",+ "23 prior_hash text/text NULL",+ "24 state_hash text/text NOT NULL",+ "25 cause jsonb/jsonb NOT NULL",+ "26 claim_fp text/text NULL",+ "27 purged boolean/bool NOT NULL DEFAULT false",+ "28 redacted_fields ARRAY/_text NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_page_lifetimes": {+ "columns": [+ "1 page_lifetime uuid/uuid NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 source_incarnation uuid/uuid NOT NULL",+ "4 slug text/text NOT NULL",+ "5 page_id integer/int4 NULL",+ "6 started_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "7 ended_at timestamp with time zone/timestamptz NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_redactions": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_redactions_id_seq'::regclass)",+ "2 source_id text/text NOT NULL",+ "3 subject_key text/text NOT NULL",+ "4 field text/text NOT NULL",+ "5 purge_request uuid/uuid NOT NULL",+ "6 field_hash text/text NOT NULL",+ "7 released_by uuid/uuid NULL",+ "8 released_hash text/text NULL",+ "9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_retier_manifest": {+ "columns": [+ "1 summary_event bigint/int8 NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 subject_kind text/text NOT NULL",+ "4 subject_key text/text NOT NULL",+ "5 from_tier text/text NULL",+ "6 to_tier text/text NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },"budget_ledger": {"columns": ["1 scope text/text NOT NULL",@@ -3451,7 +3570,8 @@"15 incarnation uuid/uuid NOT NULL DEFAULT gen_random_uuid()","16 upstream_checked_at timestamp with time zone/timestamptz NULL","17 upstream_commit text/text NULL",- "18 upstream_behind integer/int4 NULL"+ "18 upstream_behind integer/int4 NULL",+ "19 purge_epoch bigint/int8 NOT NULL DEFAULT 0"],"flags": "relkind=r rls=true force_rls=false"},diff --git a/test/fixtures/goldens/doctor/content-pglite-human.json b/test/fixtures/goldens/doctor/content-pglite-human.jsonindex d61bff1845..94280e86a7 100644--- a/test/fixtures/goldens/doctor/content-pglite-human.json+++ b/test/fixtures/goldens/doctor/content-pglite-human.json@@ -72,7 +72,7 @@" [OK] pglite_scale: PGLite at 5 pages — comfortable below the 1000-page threshold"," [OK] rls: Skipped (PGLite — no PostgREST exposure, RLS not applicable)"," [OK] schema_version: Version <latest> (latest: <latest>)",- " [OK] schema_columns: 1191 column(s) verified against live schema",+ " [OK] schema_columns: 1243 column(s) verified against live schema"," [OK] rls_event_trigger: Skipped (PGLite — no event trigger support)"," [INFO] embeddings: Not applicable: embeddings are disabled on this brain (keyword search keeps working)."," [INFO] embedding_provider: Not probed: embeddings are disabled on this brain by choice (keyword search keeps working).",diff --git a/test/fixtures/goldens/doctor/content-pglite-json.json b/test/fixtures/goldens/doctor/content-pglite-json.jsonindex 0cdb9a4448..7ed7eb1c2f 100644--- a/test/fixtures/goldens/doctor/content-pglite-json.json+++ b/test/fixtures/goldens/doctor/content-pglite-json.json@@ -914,7 +914,7 @@{"category": "meta","elapsed_ms": "<volatile>",- "message": "1191 column(s) verified against live schema",+ "message": "1243 column(s) verified against live schema","name": "schema_columns","status": "ok"},diff --git a/test/fixtures/goldens/doctor/hot-checks-pglite-json.json b/test/fixtures/goldens/doctor/hot-checks-pglite-json.jsonindex d5176bd7dd..5b0d511dc2 100644--- a/test/fixtures/goldens/doctor/hot-checks-pglite-json.json+++ b/test/fixtures/goldens/doctor/hot-checks-pglite-json.json@@ -931,7 +931,7 @@{"category": "meta","elapsed_ms": "<volatile>",- "message": "1191 column(s) verified against live schema",+ "message": "1243 column(s) verified against live schema","name": "schema_columns","status": "ok"},@@ -4638,7 +4638,7 @@{"category": "meta","elapsed_ms": "<volatile>",- "message": "1191 column(s) verified against live schema",+ "message": "1243 column(s) verified against live schema","name": "schema_columns","status": "ok"},diff --git a/test/fixtures/goldens/doctor/hot-checks-postgres-json.json b/test/fixtures/goldens/doctor/hot-checks-postgres-json.jsonindex 8863d5a053..85fa6c3bbb 100644--- a/test/fixtures/goldens/doctor/hot-checks-postgres-json.json+++ b/test/fixtures/goldens/doctor/hot-checks-postgres-json.json@@ -913,7 +913,7 @@{"category": "ops","elapsed_ms": "<volatile>",- "message": "RLS enabled on 140/140 public tables",+ "message": "RLS enabled on 145/145 public tables","name": "rls","status": "ok"},@@ -927,7 +927,7 @@{"category": "meta","elapsed_ms": "<volatile>",- "message": "1197 column(s) verified against live schema",+ "message": "1249 column(s) verified against live schema","name": "schema_columns","status": "ok"},@@ -4615,7 +4615,7 @@{"category": "ops","elapsed_ms": "<volatile>",- "message": "RLS enabled on 140/140 public tables",+ "message": "RLS enabled on 145/145 public tables","name": "rls","status": "ok"},@@ -4629,7 +4629,7 @@{"category": "meta","elapsed_ms": "<volatile>",- "message": "1197 column(s) verified against live schema",+ "message": "1249 column(s) verified against live schema","name": "schema_columns","status": "ok"},diff --git a/test/fixtures/goldens/doctor/json-pglite-degraded.json b/test/fixtures/goldens/doctor/json-pglite-degraded.jsonindex 86996c12c2..e3e6519fed 100644--- a/test/fixtures/goldens/doctor/json-pglite-degraded.json+++ b/test/fixtures/goldens/doctor/json-pglite-degraded.json@@ -838,7 +838,7 @@{"category": "meta","elapsed_ms": "<volatile>",- "message": "1191 column(s) verified against live schema",+ "message": "1243 column(s) verified against live schema","name": "schema_columns","status": "ok"},diff --git a/test/fixtures/goldens/doctor/json-pglite-fresh.json b/test/fixtures/goldens/doctor/json-pglite-fresh.jsonindex d3c1e9055b..b75bdc84c9 100644--- a/test/fixtures/goldens/doctor/json-pglite-fresh.json+++ b/test/fixtures/goldens/doctor/json-pglite-fresh.json@@ -885,7 +885,7 @@{"category": "meta","elapsed_ms": "<volatile>",- "message": "1191 column(s) verified against live schema",+ "message": "1243 column(s) verified against live schema","name": "schema_columns","status": "ok"},diff --git a/test/fixtures/goldens/doctor/json-postgres-fresh.json b/test/fixtures/goldens/doctor/json-postgres-fresh.jsonindex daf18eb2f1..b21bd79830 100644--- a/test/fixtures/goldens/doctor/json-postgres-fresh.json+++ b/test/fixtures/goldens/doctor/json-postgres-fresh.json@@ -867,7 +867,7 @@{"category": "ops","elapsed_ms": "<volatile>",- "message": "RLS enabled on 140/140 public tables",+ "message": "RLS enabled on 145/145 public tables","name": "rls","status": "ok"},@@ -881,7 +881,7 @@{"category": "meta","elapsed_ms": "<volatile>",- "message": "1197 column(s) verified against live schema",+ "message": "1249 column(s) verified against live schema","name": "schema_columns","status": "ok"},diff --git a/test/fixtures/goldens/migrations/records.json b/test/fixtures/goldens/migrations/records.jsonindex f2d10a1b02..4bd9d907f9 100644--- a/test/fixtures/goldens/migrations/records.json+++ b/test/fixtures/goldens/migrations/records.json@@ -1,6 +1,6 @@{"golden": {- "count": 243,+ "count": 244,"gaps": [17,18,@@ -57,7 +57,7 @@"sqlQueryForEngine": "71fb1ccec1b22cdc1662876dbd8c17ed81e9ab83485c6965cdf5caa4fc4a4ab5","verifyProjectionStatistics": "0d231b04ecfbc5a4109d6fca9567bf4e8c9e9db6c3fbbb35212e026579ed6f67"},- "latest": 248,+ "latest": 249,"records": [{"handler": {@@ -3797,6 +3797,19 @@"transaction": false,"verify": "absent","version": 248+ },+ {+ "handler": "absent",+ "idempotent": true,+ "name": "belief_ledger",+ "sql": {+ "length": 4645,+ "sha256": "8a5992e82eebda6cc28a91dd588d2b0e9d58fd2d5207ddb1b83e771e50519048"+ },+ "sqlFor": "absent",+ "transaction": "absent",+ "verify": "absent",+ "version": 249}],"versions": [@@ -4042,7 +4055,8 @@245,246,247,- 248+ 248,+ 249]},"normalizer": "migrations-record-v1"diff --git a/test/fixtures/goldens/pglite-upgrade-replay/catalog-after-boot.json b/test/fixtures/goldens/pglite-upgrade-replay/catalog-after-boot.jsonindex 9e979ffa19..49a87dffab 100644--- a/test/fixtures/goldens/pglite-upgrade-replay/catalog-after-boot.json+++ b/test/fixtures/goldens/pglite-upgrade-replay/catalog-after-boot.json@@ -6,6 +6,15 @@"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",+ "belief_commit_marks.belief_commit_marks_pkey": "p PRIMARY KEY (publication_id)",+ "belief_events.belief_events_event_key_key": "u UNIQUE (event_key)",+ "belief_events.belief_events_origin_check": "c CHECK ((origin = ANY (ARRAY['live'::text, 'unmanaged'::text, 'baseline'::text, 'backfill'::text, 'reconcile'::text])))",+ "belief_events.belief_events_pkey": "p PRIMARY KEY (id)",+ "belief_events.belief_events_subject_kind_check": "c CHECK ((subject_kind = ANY (ARRAY['page'::text, 'fact'::text, 'take'::text, 'link'::text, 'link_transition'::text, 'coverage'::text])))",+ "belief_events.belief_events_tier_basis_check": "c CHECK ((tier_basis = ANY (ARRAY['row'::text, 'writer'::text, 'unknown'::text])))",+ "belief_page_lifetimes.belief_page_lifetimes_pkey": "p PRIMARY KEY (page_lifetime)",+ "belief_redactions.belief_redactions_pkey": "p PRIMARY KEY (id)",+ "belief_retier_manifest.belief_retier_manifest_pkey": "p PRIMARY KEY (summary_event, subject_kind, subject_key)","budget_ledger.budget_ledger_pkey": "p PRIMARY KEY (scope, resolver_id, local_date)","budget_reservations.budget_reservations_pkey": "p PRIMARY KEY (reservation_id)","calibration_profiles.calibration_profiles_pkey": "p PRIMARY KEY (id)",@@ -507,6 +516,21 @@"access_tokens": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],+ "belief_commit_marks": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_events": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_page_lifetimes": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_redactions": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],+ "belief_retier_manifest": [+ "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"+ ],"budget_ledger": ["<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"],@@ -934,6 +958,22 @@"indexes": {"access_tokens_pkey": "CREATE UNIQUE INDEX access_tokens_pkey ON public.access_tokens USING btree (id)","access_tokens_token_hash_key": "CREATE UNIQUE INDEX access_tokens_token_hash_key ON public.access_tokens USING btree (token_hash)",+ "belief_commit_marks_pkey": "CREATE UNIQUE INDEX belief_commit_marks_pkey ON public.belief_commit_marks USING btree (publication_id)",+ "belief_events_claim_fp": "CREATE INDEX belief_events_claim_fp ON public.belief_events USING btree (source_id, claim_fp) WHERE (claim_fp IS NOT NULL)",+ "belief_events_event_key_key": "CREATE UNIQUE INDEX belief_events_event_key_key ON public.belief_events USING btree (event_key)",+ "belief_events_lifetime": "CREATE INDEX belief_events_lifetime ON public.belief_events USING btree (page_lifetime, id) WHERE (page_lifetime IS NOT NULL)",+ "belief_events_page": "CREATE INDEX belief_events_page ON public.belief_events USING btree (source_id, slug, id)",+ "belief_events_pkey": "CREATE UNIQUE INDEX belief_events_pkey ON public.belief_events USING btree (id)",+ "belief_events_publication": "CREATE INDEX belief_events_publication ON public.belief_events USING btree (publication_id)",+ "belief_events_recorded": "CREATE INDEX belief_events_recorded ON public.belief_events USING btree (recorded_at)",+ "belief_events_subject": "CREATE INDEX belief_events_subject ON public.belief_events USING btree (source_id, subject_kind, subject_key, id)",+ "belief_page_lifetimes_open": "CREATE UNIQUE INDEX belief_page_lifetimes_open ON public.belief_page_lifetimes USING btree (source_incarnation, slug) WHERE (ended_at IS NULL)",+ "belief_page_lifetimes_pkey": "CREATE UNIQUE INDEX belief_page_lifetimes_pkey ON public.belief_page_lifetimes USING btree (page_lifetime)",+ "belief_page_lifetimes_slug": "CREATE INDEX belief_page_lifetimes_slug ON public.belief_page_lifetimes USING btree (source_id, slug)",+ "belief_redactions_field_hash": "CREATE INDEX belief_redactions_field_hash ON public.belief_redactions USING btree (source_id, field_hash)",+ "belief_redactions_pkey": "CREATE UNIQUE INDEX belief_redactions_pkey ON public.belief_redactions USING btree (id)",+ "belief_redactions_subject": "CREATE INDEX belief_redactions_subject ON public.belief_redactions USING btree (source_id, subject_key, field)",+ "belief_retier_manifest_pkey": "CREATE UNIQUE INDEX belief_retier_manifest_pkey ON public.belief_retier_manifest USING btree (summary_event, subject_kind, subject_key)","budget_ledger_pkey": "CREATE UNIQUE INDEX budget_ledger_pkey ON public.budget_ledger USING btree (scope, resolver_id, local_date)","budget_reservations_pkey": "CREATE UNIQUE INDEX budget_reservations_pkey ON public.budget_reservations USING btree (reservation_id)","calibration_profiles_bias_tags_gin": "CREATE INDEX calibration_profiles_bias_tags_gin ON public.calibration_profiles USING gin (active_bias_tags)",@@ -1359,6 +1399,8 @@},"policies": {},"sequences": {+ "belief_events_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_events.id",+ "belief_redactions_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_redactions.id","calibration_profiles_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=calibration_profiles.id","chat_usage_log_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chat_usage_log.id","chronicle_judge_reservations_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chronicle_judge_reservations.id",@@ -1444,6 +1486,83 @@],"flags": "relkind=r rls=false force_rls=false"},+ "belief_commit_marks": {+ "columns": [+ "1 publication_id uuid/uuid NOT NULL",+ "2 observed_at timestamp with time zone/timestamptz NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_events": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_events_id_seq'::regclass)",+ "2 event_key bytea/bytea NOT NULL",+ "3 source_id text/text NOT NULL",+ "4 source_incarnation uuid/uuid NOT NULL",+ "5 page_lifetime uuid/uuid NULL",+ "6 slug text/text NOT NULL",+ "7 subject_kind text/text NOT NULL",+ "8 subject_key text/text NOT NULL",+ "9 event_type text/text NOT NULL",+ "10 origin text/text NOT NULL DEFAULT 'live'::text",+ "11 trust_tier text/text NOT NULL",+ "12 writer_tier text/text NULL",+ "13 tier_basis text/text NOT NULL DEFAULT 'row'::text",+ "14 visibility text/text NOT NULL",+ "15 publication_id uuid/uuid NOT NULL",+ "16 ord integer/int4 NOT NULL",+ "17 recorded_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "18 source_time timestamp with time zone/timestamptz NULL",+ "19 valid_from timestamp with time zone/timestamptz NULL",+ "20 valid_until timestamp with time zone/timestamptz NULL",+ "21 value jsonb/jsonb NULL",+ "22 value_hash text/text NULL",+ "23 prior_hash text/text NULL",+ "24 state_hash text/text NOT NULL",+ "25 cause jsonb/jsonb NOT NULL",+ "26 claim_fp text/text NULL",+ "27 purged boolean/bool NOT NULL DEFAULT false",+ "28 redacted_fields ARRAY/_text NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_page_lifetimes": {+ "columns": [+ "1 page_lifetime uuid/uuid NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 source_incarnation uuid/uuid NOT NULL",+ "4 slug text/text NOT NULL",+ "5 page_id integer/int4 NULL",+ "6 started_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",+ "7 ended_at timestamp with time zone/timestamptz NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_redactions": {+ "columns": [+ "1 id bigint/int8 NOT NULL DEFAULT nextval('belief_redactions_id_seq'::regclass)",+ "2 source_id text/text NOT NULL",+ "3 subject_key text/text NOT NULL",+ "4 field text/text NOT NULL",+ "5 purge_request uuid/uuid NOT NULL",+ "6 field_hash text/text NOT NULL",+ "7 released_by uuid/uuid NULL",+ "8 released_hash text/text NULL",+ "9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },+ "belief_retier_manifest": {+ "columns": [+ "1 summary_event bigint/int8 NOT NULL",+ "2 source_id text/text NOT NULL",+ "3 subject_kind text/text NOT NULL",+ "4 subject_key text/text NOT NULL",+ "5 from_tier text/text NULL",+ "6 to_tier text/text NOT NULL"+ ],+ "flags": "relkind=r rls=true force_rls=false"+ },"budget_ledger": {"columns": ["1 scope text/text NOT NULL",@@ -3460,7 +3579,8 @@"15 chunker_version text/text NULL","16 upstream_checked_at timestamp with time zone/timestamptz NULL","17 upstream_commit text/text NULL",- "18 upstream_behind integer/int4 NULL"+ "18 upstream_behind integer/int4 NULL",+ "19 purge_epoch bigint/int8 NOT NULL DEFAULT 0"],"flags": "relkind=r rls=false force_rls=false"},