Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript
173 KB
Raw Blame
{
  "golden": {
    "constraints": {
      "access_tokens.access_tokens_pkey": "p PRIMARY KEY (id)",
      "access_tokens.access_tokens_token_hash_key": "u UNIQUE (token_hash)",
      "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)",
      "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)",
      "code_edges_chunk.code_edges_chunk_from_chunk_id_fkey": "f FOREIGN KEY (from_chunk_id) REFERENCES content_chunks(id) ON DELETE CASCADE",
      "code_edges_chunk.code_edges_chunk_pkey": "p PRIMARY KEY (id)",
      "code_edges_chunk.code_edges_chunk_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
      "code_edges_chunk.code_edges_chunk_to_chunk_id_fkey": "f FOREIGN KEY (to_chunk_id) REFERENCES content_chunks(id) ON DELETE CASCADE",
      "code_edges_chunk.code_edges_chunk_unique": "u UNIQUE (from_chunk_id, to_chunk_id, edge_type)",
      "code_edges_symbol.code_edges_symbol_from_chunk_id_fkey": "f FOREIGN KEY (from_chunk_id) REFERENCES content_chunks(id) ON DELETE CASCADE",
      "code_edges_symbol.code_edges_symbol_pkey": "p PRIMARY KEY (id)",
      "code_edges_symbol.code_edges_symbol_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
      "code_edges_symbol.code_edges_symbol_unique": "u UNIQUE (from_chunk_id, to_symbol_qualified, edge_type)",
      "code_traversal_cache.code_traversal_cache_pkey": "p PRIMARY KEY (id)",
      "config.config_pkey": "p PRIMARY KEY (key)",
      "content_chunks.content_chunks_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
      "content_chunks.content_chunks_pkey": "p PRIMARY KEY (id)",
      "context_volunteer_events.context_volunteer_events_pkey": "p PRIMARY KEY (id)",
      "conversation_parser_llm_cache.conversation_parser_llm_cache_call_shape_check": "c CHECK ((call_shape = ANY (ARRAY['polish'::text, 'fallback'::text])))",
      "conversation_parser_llm_cache.conversation_parser_llm_cache_pkey": "p PRIMARY KEY (content_sha256, model_id, call_shape)",
      "dream_synthesis_completions.dream_synthesis_completions_pkey": "p PRIMARY KEY (source_id, idempotency_key)",
      "dream_verdicts.dream_verdicts_pkey": "p PRIMARY KEY (file_path, content_hash)",
      "drift_decisions.drift_decisions_pkey": "p PRIMARY KEY (id)",
      "drift_decisions.drift_decisions_recommended_weight_check": "c CHECK (((recommended_weight >= (0)::double precision) AND (recommended_weight <= (1)::double precision)))",
      "drift_decisions.drift_decisions_take_id_fkey": "f FOREIGN KEY (take_id) REFERENCES takes(id) ON DELETE CASCADE",
      "entity_identities.entity_identities_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
      "entity_identities.entity_identities_page_uniq": "u UNIQUE (source_id, page_id)",
      "entity_identities.entity_identities_pkey": "p PRIMARY KEY (id)",
      "eval_candidates.eval_candidates_detail_check": "c CHECK (((detail IS NULL) OR (detail = ANY (ARRAY['low'::text, 'medium'::text, 'high'::text]))))",
      "eval_candidates.eval_candidates_detail_resolved_check": "c CHECK (((detail_resolved IS NULL) OR (detail_resolved = ANY (ARRAY['low'::text, 'medium'::text, 'high'::text]))))",
      "eval_candidates.eval_candidates_pkey": "p PRIMARY KEY (id)",
      "eval_candidates.eval_candidates_query_check": "c CHECK ((length(query) <= 51200))",
      "eval_candidates.eval_candidates_tool_name_check": "c CHECK ((tool_name = ANY (ARRAY['query'::text, 'search'::text])))",
      "eval_capture_failures.eval_capture_failures_pkey": "p PRIMARY KEY (id)",
      "eval_capture_failures.eval_capture_failures_reason_check": "c CHECK ((reason = ANY (ARRAY['db_down'::text, 'rls_reject'::text, 'check_violation'::text, 'scrubber_exception'::text, 'other'::text])))",
      "eval_contradictions_cache.eval_contradictions_cache_pkey": "p PRIMARY KEY (chunk_a_hash, chunk_b_hash, model_id, prompt_version, truncation_policy)",
      "eval_contradictions_runs.eval_contradictions_runs_pkey": "p PRIMARY KEY (run_id)",
      "eval_takes_quality_runs.eval_takes_quality_runs_pkey": "p PRIMARY KEY (id)",
      "eval_takes_quality_runs.eval_takes_quality_runs_receipt_sha8_corpus_receipt_sha8_pr_key": "u UNIQUE (receipt_sha8_corpus, receipt_sha8_prompt, receipt_sha8_models, receipt_sha8_rubric)",
      "eval_takes_quality_runs.eval_takes_quality_runs_verdict_check": "c CHECK ((verdict = ANY (ARRAY['pass'::text, 'fail'::text, 'inconclusive'::text])))",
      "extract_atoms_page_state.extract_atoms_page_state_fail_count_check": "c CHECK ((fail_count >= 0))",
      "extract_atoms_page_state.extract_atoms_page_state_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
      "extract_atoms_page_state.extract_atoms_page_state_pkey": "p PRIMARY KEY (source_incarnation, page_id, content_hash)",
      "extract_atoms_page_state.extract_atoms_page_state_source_incarnation_fkey": "f FOREIGN KEY (source_incarnation) REFERENCES sources(incarnation) ON DELETE CASCADE",
      "extract_atoms_transcript_state.extract_atoms_transcript_state_pkey": "p PRIMARY KEY (source_id, file_path, content_hash)",
      "extract_rollup_7d.extract_rollup_7d_pkey": "p PRIMARY KEY (kind, source_id, day)",
      "fact_withdrawals.fact_withdrawals_pkey": "p PRIMARY KEY (source_id, visibility, subject, fact_hash)",
      "fact_withdrawals.fact_withdrawals_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
      "fact_withdrawals.fact_withdrawals_visibility_check": "c CHECK ((visibility = ANY (ARRAY['private'::text, 'world'::text])))",
      "facts.facts_confidence_check": "c CHECK (((confidence >= (0)::double precision) AND (confidence <= (1)::double precision)))",
      "facts.facts_kind_check": "c CHECK ((kind = ANY (ARRAY['event'::text, 'preference'::text, 'commitment'::text, 'belief'::text, 'fact'::text, 'idea'::text])))",
      "facts.facts_notability_check": "c CHECK ((notability = ANY (ARRAY['high'::text, 'medium'::text, 'low'::text])))",
      "facts.facts_pkey": "p PRIMARY KEY (id)",
      "facts.facts_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
      "facts.facts_superseded_by_fkey": "f FOREIGN KEY (superseded_by) REFERENCES facts(id) ON DELETE SET NULL",
      "facts.facts_visibility_check": "c CHECK ((visibility = ANY (ARRAY['private'::text, 'world'::text])))",
      "files.files_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE SET NULL",
      "files.files_pkey": "p PRIMARY KEY (id)",
      "files.files_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
      "files.files_storage_path_key": "u UNIQUE (storage_path)",
      "gbrain_cycle_locks.gbrain_cycle_locks_pkey": "p PRIMARY KEY (id)",
      "ingest_log.ingest_log_pkey": "p PRIMARY KEY (id)",
      "links.links_from_page_id_fkey": "f FOREIGN KEY (from_page_id) REFERENCES pages(id) ON DELETE CASCADE",
      "links.links_from_to_type_source_origin_unique": "u UNIQUE NULLS NOT DISTINCT (from_page_id, to_page_id, link_type, link_source, origin_page_id)",
      "links.links_link_kind_check": "c CHECK (((link_kind IS NULL) OR (link_kind = ANY (ARRAY['plain'::text, 'typed_ner'::text]))))",
      "links.links_link_source_check": "c CHECK (((link_source IS NULL) OR ((link_source ~ '^[a-z][a-z0-9]*(-[a-z0-9]+)*$'::text) AND (char_length(link_source) <= 64))))",
      "links.links_origin_page_id_fkey": "f FOREIGN KEY (origin_page_id) REFERENCES pages(id) ON DELETE SET NULL",
      "links.links_pkey": "p PRIMARY KEY (id)",
      "links.links_resolution_type_check": "c CHECK (((resolution_type IS NULL) OR (resolution_type = ANY (ARRAY['qualified'::text, 'unqualified'::text]))))",
      "links.links_to_page_id_fkey": "f FOREIGN KEY (to_page_id) REFERENCES pages(id) ON DELETE CASCADE",
      "loop_suppressions.loop_suppressions_kind_check": "c CHECK ((kind = ANY (ARRAY['sender'::text, 'thread'::text])))",
      "loop_suppressions.loop_suppressions_pkey": "p PRIMARY KEY (id)",
      "loop_suppressions.loop_suppressions_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
      "loop_suppressions.loop_suppressions_uniq": "u UNIQUE (source_id, kind, value)",
      "mcp_request_log.mcp_request_log_pkey": "p PRIMARY KEY (id)",
      "mcp_spend_log.mcp_spend_log_pkey": "p PRIMARY KEY (id)",
      "mcp_spend_reservations.mcp_spend_reservations_job_id_fkey": "f FOREIGN KEY (job_id) REFERENCES minion_jobs(id) ON DELETE SET NULL",
      "mcp_spend_reservations.mcp_spend_reservations_pkey": "p PRIMARY KEY (reservation_id)",
      "mcp_spend_reservations.mcp_spend_reservations_status_check": "c CHECK ((status = ANY (ARRAY['pending'::text, 'settled'::text, 'expired'::text])))",
      "migration_impact_log.migration_impact_log_job_id_fkey": "f FOREIGN KEY (job_id) REFERENCES minion_jobs(id) ON DELETE SET NULL",
      "migration_impact_log.migration_impact_log_pkey": "p PRIMARY KEY (id)",
      "minion_attachments.chk_attachment_size": "c CHECK ((size_bytes >= 0))",
      "minion_attachments.chk_attachment_storage": "c CHECK (((content IS NOT NULL) OR (storage_uri IS NOT NULL)))",
      "minion_attachments.minion_attachments_job_id_fkey": "f FOREIGN KEY (job_id) REFERENCES minion_jobs(id) ON DELETE CASCADE",
      "minion_attachments.minion_attachments_pkey": "p PRIMARY KEY (id)",
      "minion_attachments.uniq_minion_attachments_job_filename": "u UNIQUE (job_id, filename)",
      "minion_budget_log.minion_budget_log_job_id_fkey": "f FOREIGN KEY (job_id) REFERENCES minion_jobs(id) ON DELETE SET NULL",
      "minion_budget_log.minion_budget_log_pkey": "p PRIMARY KEY (id)",
      "minion_inbox.minion_inbox_job_id_fkey": "f FOREIGN KEY (job_id) REFERENCES minion_jobs(id) ON DELETE CASCADE",
      "minion_inbox.minion_inbox_pkey": "p PRIMARY KEY (id)",
      "minion_jobs.chk_attempts_order": "c CHECK ((attempts_made <= attempts_started))",
      "minion_jobs.chk_backoff_type": "c CHECK ((backoff_type = ANY (ARRAY['fixed'::text, 'exponential'::text])))",
      "minion_jobs.chk_depth_nonnegative": "c CHECK ((depth >= 0))",
      "minion_jobs.chk_jitter_range": "c CHECK (((backoff_jitter >= (0.0)::double precision) AND (backoff_jitter <= (1.0)::double precision)))",
      "minion_jobs.chk_lock_duration_positive": "c CHECK (((lock_duration_ms IS NULL) OR ((lock_duration_ms >= 5000) AND (lock_duration_ms <= 3600000))))",
      "minion_jobs.chk_max_children_positive": "c CHECK (((max_children IS NULL) OR (max_children > 0)))",
      "minion_jobs.chk_nonnegative": "c CHECK (((attempts_made >= 0) AND (attempts_started >= 0) AND (stalled_counter >= 0) AND (max_attempts >= 1) AND (max_stalled >= 0)))",
      "minion_jobs.chk_on_child_fail": "c CHECK ((on_child_fail = ANY (ARRAY['fail_parent'::text, 'remove_dep'::text, 'ignore'::text, 'continue'::text])))",
      "minion_jobs.chk_status": "c CHECK ((status = ANY (ARRAY['waiting'::text, 'active'::text, 'completed'::text, 'failed'::text, 'delayed'::text, 'dead'::text, 'cancelled'::text, 'waiting-children'::text, 'paused'::text])))",
      "minion_jobs.chk_timeout_positive": "c CHECK (((timeout_ms IS NULL) OR (timeout_ms > 0)))",
      "minion_jobs.minion_jobs_budget_owner_job_id_fkey": "f FOREIGN KEY (budget_owner_job_id) REFERENCES minion_jobs(id) ON DELETE SET NULL",
      "minion_jobs.minion_jobs_parent_job_id_fkey": "f FOREIGN KEY (parent_job_id) REFERENCES minion_jobs(id) ON DELETE SET NULL",
      "minion_jobs.minion_jobs_pkey": "p PRIMARY KEY (id)",
      "minion_jobs.minion_jobs_private_queue_owner_job_id_fkey": "f FOREIGN KEY (private_queue_owner_job_id) REFERENCES minion_jobs(id) ON DELETE SET NULL",
      "minion_lease_pressure_log.minion_lease_pressure_log_job_id_fkey": "f FOREIGN KEY (job_id) REFERENCES minion_jobs(id) ON DELETE SET NULL",
      "minion_lease_pressure_log.minion_lease_pressure_log_pkey": "p PRIMARY KEY (id)",
      "minion_self_fix_log.minion_self_fix_log_child_id_fkey": "f FOREIGN KEY (child_id) REFERENCES minion_jobs(id) ON DELETE SET NULL",
      "minion_self_fix_log.minion_self_fix_log_parent_id_fkey": "f FOREIGN KEY (parent_id) REFERENCES minion_jobs(id) ON DELETE SET NULL",
      "minion_self_fix_log.minion_self_fix_log_pkey": "p PRIMARY KEY (id)",
      "oauth_clients.oauth_clients_complete_agent_grant": "c CHECK (((NOT (COALESCE(scope, ''::text) ~ '(^|[[:space:]])agent([[:space:]]|$)'::text)) OR ((COALESCE(cardinality(bound_tools), 0) > 0) AND (source_id IS NOT NULL) AND (bound_source_id IS NOT NULL) AND (bound_source_id = source_id) AND COALESCE((source_id = ANY (federated_read)), false) AND (((delegated_namespace = 'job'::text) AND (delegated_slug_prefixes IS NULL)) OR ((delegated_namespace = 'prefixes'::text) AND (COALESCE(cardinality(delegated_slug_prefixes), 0) > 0))) AND (bound_max_concurrent > 0))))",
      "oauth_clients.oauth_clients_pkey": "p PRIMARY KEY (client_id)",
      "oauth_clients.oauth_clients_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE RESTRICT",
      "oauth_codes.oauth_codes_client_id_fkey": "f FOREIGN KEY (client_id) REFERENCES oauth_clients(client_id) ON DELETE CASCADE",
      "oauth_codes.oauth_codes_pkey": "p PRIMARY KEY (code_hash)",
      "oauth_grant_audit.oauth_grant_audit_pkey": "p PRIMARY KEY (id)",
      "oauth_tokens.oauth_tokens_client_id_fkey": "f FOREIGN KEY (client_id) REFERENCES oauth_clients(client_id) ON DELETE CASCADE",
      "oauth_tokens.oauth_tokens_pkey": "p PRIMARY KEY (token_hash)",
      "op_checkpoint_paths.op_checkpoint_paths_parent_fk": "f FOREIGN KEY (op, fingerprint) REFERENCES op_checkpoints(op, fingerprint) ON DELETE CASCADE",
      "op_checkpoint_paths.op_checkpoint_paths_pkey": "p PRIMARY KEY (op, fingerprint, path)",
      "op_checkpoints.op_checkpoints_completed_keys_array": "c CHECK ((jsonb_typeof(completed_keys) = 'array'::text))",
      "op_checkpoints.op_checkpoints_pkey": "p PRIMARY KEY (op, fingerprint)",
      "open_loops.open_loops_dedup": "u UNIQUE (source_id, dedup_key)",
      "open_loops.open_loops_detector_check": "c CHECK ((detector = ANY (ARRAY['deterministic_thread'::text, 'llm_extract'::text, 'manual'::text])))",
      "open_loops.open_loops_loop_type_check": "c CHECK ((loop_type = ANY (ARRAY['commitment_owed_by_me'::text, 'commitment_owed_to_me'::text, 'unanswered_inbound'::text, 'unanswered_outbound'::text, 'decision_pending'::text])))",
      "open_loops.open_loops_pkey": "p PRIMARY KEY (id)",
      "open_loops.open_loops_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
      "open_loops.open_loops_status_check": "c CHECK ((status = ANY (ARRAY['open'::text, 'done'::text, 'dropped'::text, 'stale'::text])))",
      "page_aliases.page_aliases_pkey": "p PRIMARY KEY (id)",
      "page_aliases.page_aliases_uniq": "u UNIQUE (source_id, alias_norm, slug)",
      "page_generation_clock.page_generation_clock_id_check": "c CHECK ((id = 1))",
      "page_generation_clock.page_generation_clock_pkey": "p PRIMARY KEY (id)",
      "page_projection_jobs.page_projection_jobs_pkey": "p PRIMARY KEY (source_incarnation, slug)",
      "page_projection_jobs.page_projection_jobs_source_incarnation_fkey": "f FOREIGN KEY (source_incarnation) REFERENCES sources(incarnation) ON DELETE CASCADE",
      "page_versions.page_versions_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
      "page_versions.page_versions_pkey": "p PRIMARY KEY (id)",
      "page_write_guards.page_write_guards_pkey": "p PRIMARY KEY (source_incarnation, slug)",
      "page_write_guards.page_write_guards_source_incarnation_fkey": "f FOREIGN KEY (source_incarnation) REFERENCES sources(incarnation) ON DELETE CASCADE",
      "pages.pages_page_kind_check": "c CHECK ((page_kind = ANY (ARRAY['markdown'::text, 'code'::text, 'image'::text])))",
      "pages.pages_pkey": "p PRIMARY KEY (id)",
      "pages.pages_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
      "pages.pages_source_slug_key": "u UNIQUE (source_id, slug)",
      "persistence_brain.persistence_brain_pkey": "p PRIMARY KEY (singleton)",
      "persistence_brain.persistence_brain_singleton_check": "c CHECK ((singleton = 1))",
      "persistence_brain.persistence_brain_writer_protocol_floor_check": "c CHECK ((writer_protocol_floor = ANY (ARRAY[1, 2])))",
      "persistence_counters.persistence_counters_intent_bytes_check": "c CHECK ((intent_bytes >= 0))",
      "persistence_counters.persistence_counters_lifetime_ids_check": "c CHECK ((lifetime_ids >= 0))",
      "persistence_counters.persistence_counters_outstanding_count_check": "c CHECK ((outstanding_count >= 0))",
      "persistence_counters.persistence_counters_pkey": "p PRIMARY KEY (key)",
      "persistence_counters.persistence_counters_recovery_bytes_check": "c CHECK ((recovery_bytes >= 0))",
      "persistence_counters.persistence_counters_terminal_bytes_check": "c CHECK ((terminal_bytes >= 0))",
      "persistence_effects.persistence_effects_pkey": "p PRIMARY KEY (id)",
      "persistence_effects.persistence_effects_recovery_bytes_check": "c CHECK ((recovery_bytes >= 0))",
      "persistence_effects.persistence_effects_request_id_fkey": "f FOREIGN KEY (request_id) REFERENCES persistence_requests(id)",
      "persistence_effects.persistence_effects_request_id_kind_key": "u UNIQUE (request_id, kind)",
      "persistence_effects.persistence_effects_state_check": "c CHECK ((state = ANY (ARRAY['queued'::text, 'running'::text, 'committed'::text, 'failed'::text])))",
      "persistence_effects.persistence_effects_worktree_id_fkey": "f FOREIGN KEY (worktree_id) REFERENCES persistence_worktrees(id)",
      "persistence_host_bindings.persistence_host_bindings_pkey": "p PRIMARY KEY (worktree_id, host_id)",
      "persistence_host_bindings.persistence_host_bindings_worktree_id_fkey": "f FOREIGN KEY (worktree_id) REFERENCES persistence_worktrees(id)",
      "persistence_local_writers.persistence_local_writers_credential_hash_key": "u UNIQUE (credential_hash)",
      "persistence_local_writers.persistence_local_writers_lane_check": "c CHECK ((lane = ANY (ARRAY['cli'::text, 'stdio'::text])))",
      "persistence_local_writers.persistence_local_writers_pkey": "p PRIMARY KEY (id)",
      "persistence_requests.persistence_requests_pkey": "p PRIMARY KEY (id)",
      "persistence_requests.persistence_requests_principal_kind_check": "c CHECK ((principal_kind = ANY (ARRAY['oauth_client'::text, 'legacy_token'::text, 'local_cli'::text, 'local_stdio'::text, 'application'::text])))",
      "persistence_requests.persistence_requests_principal_kind_principal_id_request_id_key": "u UNIQUE (principal_kind, principal_id, request_id)",
      "persistence_requests.persistence_requests_protocol_version_check": "c CHECK ((protocol_version = ANY (ARRAY[1, 2])))",
      "persistence_requests.persistence_requests_sequence_key": "u UNIQUE (sequence)",
      "persistence_requests.persistence_requests_state_check": "c CHECK ((state = ANY (ARRAY['queued'::text, 'running'::text, 'recovering'::text, 'committed'::text, 'conflict'::text, 'failed'::text, 'cancelled'::text])))",
      "persistence_requests.persistence_requests_target_kind_check": "c CHECK ((target_kind = ANY (ARRAY['page'::text, 'skill_bundle'::text])))",
      "persistence_requests.persistence_requests_worktree_id_fkey": "f FOREIGN KEY (worktree_id) REFERENCES persistence_worktrees(id)",
      "persistence_source_bindings.persistence_source_bindings_pkey": "p PRIMARY KEY (source_id)",
      "persistence_source_bindings.persistence_source_bindings_worktree_id_fkey": "f FOREIGN KEY (worktree_id) REFERENCES persistence_worktrees(id)",
      "persistence_topology_changes.persistence_topology_changes_intent_bytes_check": "c CHECK ((intent_bytes >= 0))",
      "persistence_topology_changes.persistence_topology_changes_pkey": "p PRIMARY KEY (id)",
      "persistence_topology_changes.persistence_topology_changes_principal_id_request_id_key": "u UNIQUE (principal_id, request_id)",
      "persistence_topology_changes.persistence_topology_changes_recovery_bytes_check": "c CHECK ((recovery_bytes >= 0))",
      "persistence_topology_changes.persistence_topology_changes_state_check": "c CHECK ((state = ANY (ARRAY['recovering'::text, 'committed'::text, 'failed'::text])))",
      "persistence_topology_changes.persistence_topology_changes_terminal_bytes_check": "c CHECK ((terminal_bytes >= 0))",
      "persistence_worktrees.persistence_worktrees_pkey": "p PRIMARY KEY (id)",
      "persistence_worktrees.persistence_worktrees_state_check": "c CHECK ((state = ANY (ARRAY['active'::text, 'draining'::text, 'recovering'::text])))",
      "persistence_writer_protocols.persistence_writer_protocols_pkey": "p PRIMARY KEY (worktree_id, host_id)",
      "persistence_writer_protocols.persistence_writer_protocols_protocol_version_check": "c CHECK ((protocol_version = 2))",
      "persistence_writer_protocols.persistence_writer_protocols_worktree_id_fkey": "f FOREIGN KEY (worktree_id) REFERENCES persistence_worktrees(id)",
      "query_cache.query_cache_pkey": "p PRIMARY KEY (id)",
      "raw_data.raw_data_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
      "raw_data.raw_data_page_id_source_key": "u UNIQUE (page_id, source)",
      "raw_data.raw_data_pkey": "p PRIMARY KEY (id)",
      "search_telemetry.search_telemetry_pkey": "p PRIMARY KEY (date, mode, intent)",
      "session_context_state.session_context_state_pkey": "p PRIMARY KEY (source_id, client_id, session_id)",
      "shared_skill_delivery_batches.shared_skill_delivery_batches_installation_id_epoch_sequenc_key": "u UNIQUE (installation_id, epoch, sequence)",
      "shared_skill_delivery_batches.shared_skill_delivery_batches_installation_id_fkey": "f FOREIGN KEY (installation_id) REFERENCES shared_skill_members(installation_id) ON DELETE CASCADE",
      "shared_skill_delivery_batches.shared_skill_delivery_batches_pkey": "p PRIMARY KEY (token)",
      "shared_skill_heads.shared_skill_heads_pkey": "p PRIMARY KEY (source_id, source_incarnation, pack_id, name)",
      "shared_skill_members.shared_skill_members_pkey": "p PRIMARY KEY (installation_id)",
      "shared_skill_members.shared_skill_members_principal_kind_principal_id_adapter_key": "u UNIQUE (principal_kind, principal_id, adapter)",
      "shared_skill_packs.shared_skill_packs_pkey": "p PRIMARY KEY (source_id, source_incarnation)",
      "shared_skill_packs.shared_skill_packs_source_id_source_incarnation_pack_id_key": "u UNIQUE (source_id, source_incarnation, pack_id)",
      "shared_skill_policies.shared_skill_policies_pkey": "p PRIMARY KEY (source_id, source_incarnation)",
      "shared_skill_policy_audit.shared_skill_policy_audit_pkey": "p PRIMARY KEY (id)",
      "shared_skill_revision_leases.shared_skill_revision_leases_lease_kind_check": "c CHECK ((lease_kind = ANY (ARRAY['delivery'::text, 'pin'::text])))",
      "shared_skill_revision_leases.shared_skill_revision_leases_pkey": "p PRIMARY KEY (lease_kind, lease_id, source_id, source_incarnation, pack_id, name, revision)",
      "shared_skill_revision_leases.shared_skill_revision_leases_source_id_source_incarnation__fkey": "f FOREIGN KEY (source_id, source_incarnation, pack_id, name, revision) REFERENCES shared_skill_revisions(source_id, source_incarnation, pack_id, name, revision) ON DELETE RESTRICT",
      "shared_skill_revisions.shared_skill_revisions_pkey": "p PRIMARY KEY (source_id, source_incarnation, pack_id, name, revision)",
      "shared_skill_state.shared_skill_state_pkey": "p PRIMARY KEY (singleton)",
      "shared_skill_state.shared_skill_state_singleton_check": "c CHECK ((singleton = 1))",
      "slug_aliases.slug_aliases_no_self": "c CHECK ((alias_slug <> canonical_slug))",
      "slug_aliases.slug_aliases_pkey": "p PRIMARY KEY (id)",
      "slug_aliases.slug_aliases_uniq": "u UNIQUE (source_id, alias_slug)",
      "source_ingestion_receipts.source_ingestion_receipts_approved_revision_check": "c CHECK ((approved_revision ~ '^([a-f0-9]{40}|[a-f0-9]{64})$'::text))",
      "source_ingestion_receipts.source_ingestion_receipts_check": "c CHECK (((phase = 'COMPLETE'::text) = (outcome = 'complete'::text)))",
      "source_ingestion_receipts.source_ingestion_receipts_check1": "c CHECK (((completed_at IS NOT NULL) = (outcome = 'complete'::text)))",
      "source_ingestion_receipts.source_ingestion_receipts_check2": "c CHECK (((discarded_at IS NOT NULL) = (outcome = 'discarded'::text)))",
      "source_ingestion_receipts.source_ingestion_receipts_checkpoint_refs_check": "c CHECK (((jsonb_typeof(checkpoint_refs) = 'array'::text) AND (jsonb_array_length(checkpoint_refs) <= 32) AND (octet_length((checkpoint_refs)::text) <= 16384)))",
      "source_ingestion_receipts.source_ingestion_receipts_counts_check": "c CHECK (((jsonb_typeof(counts) = 'object'::text) AND (octet_length((counts)::text) <= 4096)))",
      "source_ingestion_receipts.source_ingestion_receipts_diagnostic_check": "c CHECK ((diagnostic = ANY (ARRAY['interrupted'::text, 'content_incomplete'::text, 'graph_incomplete'::text, 'verification_failed'::text, 'pending_writes'::text, 'source_changed'::text, 'checkpoint_missing'::text, 'operation_failed'::text])))",
      "source_ingestion_receipts.source_ingestion_receipts_extractor_version_check": "c CHECK (((length(extractor_version) >= 1) AND (length(extractor_version) <= 128)))",
      "source_ingestion_receipts.source_ingestion_receipts_lifecycle_request_ids_check": "c CHECK ((cardinality(lifecycle_request_ids) <= 128))",
      "source_ingestion_receipts.source_ingestion_receipts_outcome_check": "c CHECK ((outcome = ANY (ARRAY['incomplete'::text, 'complete'::text, 'discarded'::text])))",
      "source_ingestion_receipts.source_ingestion_receipts_phase_check": "c CHECK ((phase = ANY (ARRAY['ADMITTED'::text, 'CONTENT'::text, 'GRAPH'::text, 'VERIFY'::text, 'COMPLETE'::text])))",
      "source_ingestion_receipts.source_ingestion_receipts_pkey": "p PRIMARY KEY (id)",
      "source_ingestion_receipts.source_ingestion_receipts_policy_fingerprint_check": "c CHECK ((policy_fingerprint ~ '^[a-f0-9]{64}$'::text))",
      "source_ingestion_receipts.source_ingestion_receipts_profile_check": "c CHECK (((length(profile) >= 1) AND (length(profile) <= 128)))",
      "source_ingestion_receipts.source_ingestion_receipts_revision_check": "c CHECK ((revision > 0))",
      "source_ingestion_receipts.source_ingestion_receipts_schema_fingerprint_check": "c CHECK ((schema_fingerprint ~ '^[a-f0-9]{64}$'::text))",
      "source_ingestion_receipts.source_ingestion_receipts_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
      "source_ingestion_receipts.source_ingestion_receipts_source_incarnation_fkey": "f FOREIGN KEY (source_incarnation) REFERENCES sources(incarnation) ON DELETE CASCADE",
      "sources.sources_name_key": "u UNIQUE (name)",
      "sources.sources_pkey": "p PRIMARY KEY (id)",
      "subagent_messages.chk_subagent_messages_role": "c CHECK ((role = ANY (ARRAY['user'::text, 'assistant'::text])))",
      "subagent_messages.subagent_messages_job_id_fkey": "f FOREIGN KEY (job_id) REFERENCES minion_jobs(id) ON DELETE CASCADE",
      "subagent_messages.subagent_messages_pkey": "p PRIMARY KEY (id)",
      "subagent_messages.uniq_subagent_messages_idx": "u UNIQUE (job_id, message_idx)",
      "subagent_rate_leases.subagent_rate_leases_owner_job_id_fkey": "f FOREIGN KEY (owner_job_id) REFERENCES minion_jobs(id) ON DELETE CASCADE",
      "subagent_rate_leases.subagent_rate_leases_pkey": "p PRIMARY KEY (id)",
      "subagent_tool_executions.chk_subagent_tools_status": "c CHECK ((status = ANY (ARRAY['pending'::text, 'complete'::text, 'failed'::text])))",
      "subagent_tool_executions.subagent_tool_executions_job_id_fkey": "f FOREIGN KEY (job_id) REFERENCES minion_jobs(id) ON DELETE CASCADE",
      "subagent_tool_executions.subagent_tool_executions_pkey": "p PRIMARY KEY (id)",
      "subagent_tool_executions.subagent_tool_executions_stable_id": "u UNIQUE (job_id, message_idx, ordinal)",
      "synthesis_evidence.synthesis_evidence_pkey": "p PRIMARY KEY (synthesis_page_id, take_page_id, take_row_num)",
      "synthesis_evidence.synthesis_evidence_synthesis_page_id_fkey": "f FOREIGN KEY (synthesis_page_id) REFERENCES pages(id) ON DELETE CASCADE",
      "synthesis_evidence.synthesis_evidence_take_page_id_take_row_num_fkey": "f FOREIGN KEY (take_page_id, take_row_num) REFERENCES takes(page_id, row_num) ON DELETE CASCADE",
      "tags.tags_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
      "tags.tags_page_id_tag_key": "u UNIQUE (page_id, tag)",
      "tags.tags_pkey": "p PRIMARY KEY (id)",
      "take_domain_assignments.take_domain_assignments_confidence_check": "c CHECK (((confidence >= (0)::double precision) AND (confidence <= (1)::double precision)))",
      "take_domain_assignments.take_domain_assignments_pkey": "p PRIMARY KEY (take_id, domain)",
      "take_domain_assignments.take_domain_assignments_take_id_fkey": "f FOREIGN KEY (take_id) REFERENCES takes(id) ON DELETE CASCADE",
      "take_grade_cache.take_grade_cache_pkey": "p PRIMARY KEY (take_id, prompt_version, judge_model_id, evidence_signature)",
      "take_grade_cache.take_grade_cache_verdict_check": "c CHECK ((verdict = ANY (ARRAY['correct'::text, 'incorrect'::text, 'partial'::text, 'unresolvable'::text])))",
      "take_nudge_log.take_nudge_log_pkey": "p PRIMARY KEY (id)",
      "take_nudge_log.take_nudge_log_proposal_id_fkey": "f FOREIGN KEY (proposal_id) REFERENCES take_proposals(id) ON DELETE CASCADE",
      "take_nudge_log.take_nudge_log_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
      "take_nudge_log.take_nudge_log_target_xor": "c CHECK (((take_id IS NOT NULL) <> (proposal_id IS NOT NULL)))",
      "take_proposals.take_proposals_pkey": "p PRIMARY KEY (id)",
      "take_proposals.take_proposals_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
      "take_proposals.take_proposals_status_check": "c CHECK ((status = ANY (ARRAY['pending'::text, 'accepted'::text, 'rejected'::text, 'superseded'::text])))",
      "takes.takes_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
      "takes.takes_page_row_key": "u UNIQUE (page_id, row_num)",
      "takes.takes_pkey": "p PRIMARY KEY (id)",
      "takes.takes_resolution_consistency": "c CHECK ((((resolved_quality IS NULL) AND (resolved_outcome IS NULL)) OR ((resolved_quality = 'correct'::text) AND (resolved_outcome = true)) OR ((resolved_quality = 'incorrect'::text) AND (resolved_outcome = false)) OR ((resolved_quality = 'partial'::text) AND (resolved_outcome IS NULL)) OR ((resolved_quality = 'unresolvable'::text) AND (resolved_outcome IS NULL))))",
      "takes.takes_resolved_quality_values": "c CHECK (((resolved_quality IS NULL) OR (resolved_quality = ANY (ARRAY['correct'::text, 'incorrect'::text, 'partial'::text, 'unresolvable'::text]))))",
      "takes.takes_weight_check": "c CHECK (((weight >= (0)::double precision) AND (weight <= (1)::double precision)))",
      "think_ab_results.think_ab_results_pkey": "p PRIMARY KEY (id)",
      "think_ab_results.think_ab_results_preferred_check": "c CHECK ((preferred = ANY (ARRAY['baseline'::text, 'with_calibration'::text, 'neither'::text, 'tie'::text])))",
      "think_ab_results.think_ab_results_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
      "timeline_entries.timeline_entries_event_page_id_fkey": "f FOREIGN KEY (event_page_id) REFERENCES pages(id) ON DELETE CASCADE",
      "timeline_entries.timeline_entries_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
      "timeline_entries.timeline_entries_pkey": "p PRIMARY KEY (id)"
    },
    "extensions": [
      "pg_trgm",
      "plpgsql",
      "vector"
    ],
    "functions": {
      "bump_page_generation_clock_fn()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=d3359bcd09cccd881585abd9eee81c3dcf4161d935164f7953f2e9fdef73ed3e",
      "bump_page_generation_fn()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=78059745996cfbb72586a2e0e161635b96a62a5db9d0be5c710f4d437d994431",
      "enforce_minion_queue_protocol()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=e0b3db944d3b4281b9483ce77aa734e0c9aa5b0d46bb5dcb5284b6469441a1b8",
      "gbrain_advance_page_revision()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[] body_sha256=227a4224dc8cfbe73fec58fdee0c3054a96f3dce748598e5491f50627c7f3513",
      "gbrain_advance_tag_revision()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[] body_sha256=7807b26b4933148aa63c67fca824a60d3492396728205d04e16c48c81174cbd5",
      "gbrain_clear_atom_page_state()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[] body_sha256=7db0ef05d1220a579e64428b2dd7cf5183191da186fbe64b6496433a7a713d11",
      "gbrain_fact_fingerprint(claim text)": "RETURNS text kind=f lang=sql volatility=i secdef=false config=[] body_sha256=666cc212d15431ede62a3d1e8932676a950705717852262f86df6d836d526ab4",
      "gbrain_fact_fingerprint_v1(claim text)": "RETURNS text kind=f lang=sql volatility=i secdef=false config=[] body_sha256=38f7cfc0016f2b34d6f54652f4910cf1dd5240fbec5fd636c782e46fb70a6c7d",
      "gbrain_fact_normalize(claim text)": "RETURNS text kind=f lang=sql volatility=i secdef=false config=[] body_sha256=5fff22c689f79bb28b4cc66254ca3a42c2fc809be193c6ceaf75c3200a353035",
      "gbrain_guard_effect_protocol()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[] body_sha256=e8b5589dafd4a355106104daffdf57c7776d34fe18c5b5f5336a27de188688a1",
      "gbrain_guard_protocol_activation()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[] body_sha256=f27354966c25d961fcecbffebba0e45747ad3de23575351319f6aee4f9aefd47",
      "gbrain_guard_request_protocol()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[] body_sha256=12baf1d365a8aa3009ac0fe6605497e6433304e8d5915a3fc0b0b39ad748f6c2",
      "gbrain_guard_skill_publication()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[] body_sha256=e854c0d058e75a65c3a90127c5c417380975100e83fc34288f6085e786df10a9",
      "gbrain_lease_shared_skill_delivery()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[] body_sha256=5e493c1ac8dce8cb025a736629e563437c4b214744137c302c532c20bf7e7acf",
      "gbrain_preserve_fact_withdrawal()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[] body_sha256=9beb118551a08451a228146373f50f2aa2ce0cfe89937e937d361b33224aa0aa",
      "gbrain_queue_page_projection()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[] body_sha256=6c544b9c129b6a17dcabeb5ee8d44a2b0e0af9d02ca3fe47c7d7f22ec313042c",
      "gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[] body_sha256=9f7ebd3894599fd125d255f78ada3d945b14b15a114e340a43da0414a3de4208",
      "gbrain_require_persistence_protocol(required integer)": "RETURNS void kind=f lang=plpgsql volatility=v secdef=false config=[] body_sha256=af07b7fac60dec0a4fe568217931ac449d32f73b3a53a047b3b02a5f59cb5058",
      "update_chunk_search_vector()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=e12c37d5489202aaf708560db42e6c0c7c8886d198d412e1c5d915c3ae782559",
      "update_page_search_vector()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public] body_sha256=1ff2515e6d6626907c0a6b660e31bd13bf51fe38fc585f7380d57ed746dc3357"
    },
    "grants": {
      "access_tokens": [
        "<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"
      ],
      "budget_reservations": [
        "<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"
      ],
      "chat_usage_log": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "code_edges_chunk": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "code_edges_symbol": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "code_traversal_cache": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "config": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "content_chunks": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "context_volunteer_events": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "conversation_parser_llm_cache": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "dream_synthesis_completions": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "dream_verdicts": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "drift_decisions": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "entity_identities": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "eval_candidates": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "eval_capture_failures": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "eval_contradictions_cache": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "eval_contradictions_runs": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "eval_takes_quality_runs": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "extract_atoms_page_state": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "extract_atoms_transcript_state": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "extract_rollup_7d": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "fact_withdrawals": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "facts": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "files": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "gbrain_cycle_locks": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "ingest_log": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "links": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "loop_suppressions": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "mcp_request_log": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "mcp_spend_log": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "mcp_spend_reservations": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "migration_impact_log": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "minion_attachments": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "minion_budget_log": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "minion_inbox": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "minion_jobs": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "minion_lease_pressure_log": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "minion_self_fix_log": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "oauth_clients": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "oauth_codes": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "oauth_grant_audit": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "oauth_tokens": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "op_checkpoint_paths": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "op_checkpoints": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "open_loops": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "page_aliases": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "page_generation_clock": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "page_links": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "page_projection_jobs": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "page_versions": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "page_write_guards": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "pages": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "persistence_brain": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "persistence_counters": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "persistence_effects": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "persistence_host_bindings": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "persistence_local_writers": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "persistence_requests": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "persistence_source_bindings": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "persistence_topology_changes": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "persistence_worktrees": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "persistence_writer_protocols": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "query_cache": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "raw_data": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "search_telemetry": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "session_context_state": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "shared_skill_delivery_batches": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "shared_skill_heads": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "shared_skill_members": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "shared_skill_packs": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "shared_skill_policies": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "shared_skill_policy_audit": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "shared_skill_revision_leases": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "shared_skill_revisions": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "shared_skill_state": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "slug_aliases": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "source_ingestion_receipts": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "sources": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "subagent_messages": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "subagent_rate_leases": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "subagent_tool_executions": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "synthesis_evidence": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "tags": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "take_domain_assignments": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "take_grade_cache": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "take_nudge_log": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "take_proposals": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "takes": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "think_ab_results": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ],
      "timeline_entries": [
        "<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
      ]
    },
    "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)",
      "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)",
      "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)",
      "calibration_profiles_published_idx": "CREATE INDEX calibration_profiles_published_idx ON public.calibration_profiles USING btree (source_id, published, holder) WHERE (published = true)",
      "chat_usage_log_pkey": "CREATE UNIQUE INDEX chat_usage_log_pkey ON public.chat_usage_log USING btree (id)",
      "code_edges_chunk_pkey": "CREATE UNIQUE INDEX code_edges_chunk_pkey ON public.code_edges_chunk USING btree (id)",
      "code_edges_chunk_unique": "CREATE UNIQUE INDEX code_edges_chunk_unique ON public.code_edges_chunk USING btree (from_chunk_id, to_chunk_id, edge_type)",
      "code_edges_symbol_pkey": "CREATE UNIQUE INDEX code_edges_symbol_pkey ON public.code_edges_symbol USING btree (id)",
      "code_edges_symbol_unique": "CREATE UNIQUE INDEX code_edges_symbol_unique ON public.code_edges_symbol USING btree (from_chunk_id, to_symbol_qualified, edge_type)",
      "code_traversal_cache_key_idx": "CREATE UNIQUE INDEX code_traversal_cache_key_idx ON public.code_traversal_cache USING btree (symbol_qualified, depth, source_id)",
      "code_traversal_cache_pkey": "CREATE UNIQUE INDEX code_traversal_cache_pkey ON public.code_traversal_cache USING btree (id)",
      "code_traversal_cache_source_idx": "CREATE INDEX code_traversal_cache_source_idx ON public.code_traversal_cache USING btree (source_id)",
      "config_pkey": "CREATE UNIQUE INDEX config_pkey ON public.config USING btree (key)",
      "content_chunks_pkey": "CREATE UNIQUE INDEX content_chunks_pkey ON public.content_chunks USING btree (id)",
      "content_chunks_stale_idx": "CREATE INDEX content_chunks_stale_idx ON public.content_chunks USING btree (page_id, chunk_index) WHERE (embedding IS NULL)",
      "context_volunteer_events_pkey": "CREATE UNIQUE INDEX context_volunteer_events_pkey ON public.context_volunteer_events USING btree (id)",
      "context_volunteer_events_src_slug_idx": "CREATE INDEX context_volunteer_events_src_slug_idx ON public.context_volunteer_events USING btree (source_id, slug)",
      "context_volunteer_events_src_time_idx": "CREATE INDEX context_volunteer_events_src_time_idx ON public.context_volunteer_events USING btree (source_id, volunteered_at DESC)",
      "conversation_parser_llm_cache_pkey": "CREATE UNIQUE INDEX conversation_parser_llm_cache_pkey ON public.conversation_parser_llm_cache USING btree (content_sha256, model_id, call_shape)",
      "dream_synthesis_completions_pkey": "CREATE UNIQUE INDEX dream_synthesis_completions_pkey ON public.dream_synthesis_completions USING btree (source_id, idempotency_key)",
      "dream_verdicts_expires_idx": "CREATE INDEX dream_verdicts_expires_idx ON public.dream_verdicts USING btree (expires_at)",
      "dream_verdicts_pkey": "CREATE UNIQUE INDEX dream_verdicts_pkey ON public.dream_verdicts USING btree (file_path, content_hash)",
      "drift_decisions_pkey": "CREATE UNIQUE INDEX drift_decisions_pkey ON public.drift_decisions USING btree (id)",
      "entity_identities_canonical_uniq": "CREATE UNIQUE INDEX entity_identities_canonical_uniq ON public.entity_identities USING btree (entity_id) WHERE canonical",
      "entity_identities_entity_idx": "CREATE INDEX entity_identities_entity_idx ON public.entity_identities USING btree (entity_id)",
      "entity_identities_page_uniq": "CREATE UNIQUE INDEX entity_identities_page_uniq ON public.entity_identities USING btree (source_id, page_id)",
      "entity_identities_pkey": "CREATE UNIQUE INDEX entity_identities_pkey ON public.entity_identities USING btree (id)",
      "eval_candidates_pkey": "CREATE UNIQUE INDEX eval_candidates_pkey ON public.eval_candidates USING btree (id)",
      "eval_capture_failures_pkey": "CREATE UNIQUE INDEX eval_capture_failures_pkey ON public.eval_capture_failures USING btree (id)",
      "eval_contradictions_cache_expires_idx": "CREATE INDEX eval_contradictions_cache_expires_idx ON public.eval_contradictions_cache USING btree (expires_at)",
      "eval_contradictions_cache_pkey": "CREATE UNIQUE INDEX eval_contradictions_cache_pkey ON public.eval_contradictions_cache USING btree (chunk_a_hash, chunk_b_hash, model_id, prompt_version, truncation_policy)",
      "eval_contradictions_runs_pkey": "CREATE UNIQUE INDEX eval_contradictions_runs_pkey ON public.eval_contradictions_runs USING btree (run_id)",
      "eval_contradictions_runs_ran_at_idx": "CREATE INDEX eval_contradictions_runs_ran_at_idx ON public.eval_contradictions_runs USING btree (ran_at DESC)",
      "eval_takes_quality_runs_pkey": "CREATE UNIQUE INDEX eval_takes_quality_runs_pkey ON public.eval_takes_quality_runs USING btree (id)",
      "eval_takes_quality_runs_receipt_sha8_corpus_receipt_sha8_pr_key": "CREATE UNIQUE INDEX eval_takes_quality_runs_receipt_sha8_corpus_receipt_sha8_pr_key ON public.eval_takes_quality_runs USING btree (receipt_sha8_corpus, receipt_sha8_prompt, receipt_sha8_models, receipt_sha8_rubric)",
      "eval_takes_quality_runs_trend_idx": "CREATE INDEX eval_takes_quality_runs_trend_idx ON public.eval_takes_quality_runs USING btree (rubric_version, created_at DESC)",
      "extract_atoms_page_state_page_idx": "CREATE INDEX extract_atoms_page_state_page_idx ON public.extract_atoms_page_state USING btree (page_id)",
      "extract_atoms_page_state_pkey": "CREATE UNIQUE INDEX extract_atoms_page_state_pkey ON public.extract_atoms_page_state USING btree (source_incarnation, page_id, content_hash)",
      "extract_atoms_page_state_tombstoned_idx": "CREATE INDEX extract_atoms_page_state_tombstoned_idx ON public.extract_atoms_page_state USING btree (source_incarnation, content_hash, page_id) WHERE tombstoned",
      "extract_atoms_transcript_state_pkey": "CREATE UNIQUE INDEX extract_atoms_transcript_state_pkey ON public.extract_atoms_transcript_state USING btree (source_id, file_path, content_hash)",
      "extract_atoms_transcript_state_tombstoned_idx": "CREATE INDEX extract_atoms_transcript_state_tombstoned_idx ON public.extract_atoms_transcript_state USING btree (source_id, content_hash) WHERE tombstoned",
      "extract_rollup_7d_pkey": "CREATE UNIQUE INDEX extract_rollup_7d_pkey ON public.extract_rollup_7d USING btree (kind, source_id, day)",
      "fact_withdrawals_pkey": "CREATE UNIQUE INDEX fact_withdrawals_pkey ON public.fact_withdrawals USING btree (source_id, visibility, subject, fact_hash)",
      "facts_pkey": "CREATE UNIQUE INDEX facts_pkey ON public.facts USING btree (id)",
      "facts_typed_claim_idx": "CREATE INDEX facts_typed_claim_idx ON public.facts USING btree (entity_slug, claim_metric, valid_from) WHERE (claim_metric IS NOT NULL)",
      "files_pkey": "CREATE UNIQUE INDEX files_pkey ON public.files USING btree (id)",
      "files_storage_path_key": "CREATE UNIQUE INDEX files_storage_path_key ON public.files USING btree (storage_path)",
      "gbrain_cycle_locks_pkey": "CREATE UNIQUE INDEX gbrain_cycle_locks_pkey ON public.gbrain_cycle_locks USING btree (id)",
      "idx_access_tokens_hash": "CREATE INDEX idx_access_tokens_hash ON public.access_tokens USING btree (token_hash) WHERE (revoked_at IS NULL)",
      "idx_budget_reservations_expires": "CREATE INDEX idx_budget_reservations_expires ON public.budget_reservations USING btree (expires_at) WHERE (status = 'held'::text)",
      "idx_chat_usage_log_created": "CREATE INDEX idx_chat_usage_log_created ON public.chat_usage_log USING btree (created_at)",
      "idx_chat_usage_log_model": "CREATE INDEX idx_chat_usage_log_model ON public.chat_usage_log USING btree (model, created_at)",
      "idx_chunks_embedding": "CREATE INDEX idx_chunks_embedding ON public.content_chunks USING hnsw (embedding vector_cosine_ops)",
      "idx_chunks_embedding_image": "CREATE INDEX idx_chunks_embedding_image ON public.content_chunks USING hnsw (embedding_image vector_cosine_ops) WHERE (embedding_image IS NOT NULL)",
      "idx_chunks_embedding_null": "CREATE INDEX idx_chunks_embedding_null ON public.content_chunks USING btree (page_id, chunk_index) WHERE (embedding IS NULL)",
      "idx_chunks_language": "CREATE INDEX idx_chunks_language ON public.content_chunks USING btree (language) WHERE (language IS NOT NULL)",
      "idx_chunks_page": "CREATE INDEX idx_chunks_page ON public.content_chunks USING btree (page_id)",
      "idx_chunks_page_index": "CREATE UNIQUE INDEX idx_chunks_page_index ON public.content_chunks USING btree (page_id, chunk_index)",
      "idx_chunks_search_vector": "CREATE INDEX idx_chunks_search_vector ON public.content_chunks USING gin (search_vector)",
      "idx_chunks_symbol_name": "CREATE INDEX idx_chunks_symbol_name ON public.content_chunks USING btree (symbol_name) WHERE (symbol_name IS NOT NULL)",
      "idx_chunks_symbol_qualified": "CREATE INDEX idx_chunks_symbol_qualified ON public.content_chunks USING btree (symbol_name_qualified) WHERE (symbol_name_qualified IS NOT NULL)",
      "idx_code_edges_chunk_from": "CREATE INDEX idx_code_edges_chunk_from ON public.code_edges_chunk USING btree (from_chunk_id, edge_type)",
      "idx_code_edges_chunk_from_symbol": "CREATE INDEX idx_code_edges_chunk_from_symbol ON public.code_edges_chunk USING btree (from_symbol_qualified)",
      "idx_code_edges_chunk_to": "CREATE INDEX idx_code_edges_chunk_to ON public.code_edges_chunk USING btree (to_chunk_id, edge_type)",
      "idx_code_edges_chunk_to_symbol": "CREATE INDEX idx_code_edges_chunk_to_symbol ON public.code_edges_chunk USING btree (to_symbol_qualified, edge_type)",
      "idx_code_edges_symbol_from": "CREATE INDEX idx_code_edges_symbol_from ON public.code_edges_symbol USING btree (from_chunk_id, edge_type)",
      "idx_code_edges_symbol_from_symbol": "CREATE INDEX idx_code_edges_symbol_from_symbol ON public.code_edges_symbol USING btree (from_symbol_qualified)",
      "idx_code_edges_symbol_resolver": "CREATE INDEX idx_code_edges_symbol_resolver ON public.code_edges_symbol USING btree (source_id, to_symbol_qualified)",
      "idx_code_edges_symbol_to": "CREATE INDEX idx_code_edges_symbol_to ON public.code_edges_symbol USING btree (to_symbol_qualified, edge_type)",
      "idx_content_chunks_edges_backfill": "CREATE INDEX idx_content_chunks_edges_backfill ON public.content_chunks USING btree (edges_backfilled_at) WHERE (edges_backfilled_at IS NULL)",
      "idx_content_chunks_symbol_lookup": "CREATE INDEX idx_content_chunks_symbol_lookup ON public.content_chunks USING btree (page_id, symbol_name_qualified) WHERE (symbol_name_qualified IS NOT NULL)",
      "idx_conversation_parser_llm_cache_created": "CREATE INDEX idx_conversation_parser_llm_cache_created ON public.conversation_parser_llm_cache USING btree (created_at)",
      "idx_cycle_locks_ttl": "CREATE INDEX idx_cycle_locks_ttl ON public.gbrain_cycle_locks USING btree (ttl_expires_at)",
      "idx_drift_decisions_decided_at": "CREATE INDEX idx_drift_decisions_decided_at ON public.drift_decisions USING btree (decided_at DESC)",
      "idx_drift_decisions_take": "CREATE INDEX idx_drift_decisions_take ON public.drift_decisions USING btree (take_id)",
      "idx_eval_candidates_created_at": "CREATE INDEX idx_eval_candidates_created_at ON public.eval_candidates USING btree (created_at DESC)",
      "idx_eval_capture_failures_ts": "CREATE INDEX idx_eval_capture_failures_ts ON public.eval_capture_failures USING btree (ts DESC)",
      "idx_extract_rollup_7d_day": "CREATE INDEX idx_extract_rollup_7d_day ON public.extract_rollup_7d USING btree (day)",
      "idx_facts_dimension": "CREATE INDEX idx_facts_dimension ON public.facts USING btree (source_id, entity_slug, dimension, valid_from DESC) WHERE ((expired_at IS NULL) AND (dimension IS NOT NULL))",
      "idx_facts_embedding_hnsw": "CREATE INDEX idx_facts_embedding_hnsw ON public.facts USING hnsw (embedding halfvec_cosine_ops) WHERE ((embedding IS NOT NULL) AND (expired_at IS NULL))",
      "idx_facts_entity_active": "CREATE INDEX idx_facts_entity_active ON public.facts USING btree (source_id, entity_slug, valid_from DESC) WHERE (expired_at IS NULL)",
      "idx_facts_extract_conversation_session": "CREATE INDEX idx_facts_extract_conversation_session ON public.facts USING btree (source_id, source_session) WHERE (source ~~ 'cli:extract-conversation-facts%'::text)",
      "idx_facts_fence_key": "CREATE UNIQUE INDEX idx_facts_fence_key ON public.facts USING btree (source_id, source_markdown_slug, row_num) WHERE (row_num IS NOT NULL)",
      "idx_facts_ontology_dedup": "CREATE UNIQUE INDEX idx_facts_ontology_dedup ON public.facts USING btree (source_id, entity_slug, dimension, value_hash, source_markdown_slug) WHERE (dimension IS NOT NULL)",
      "idx_facts_session": "CREATE INDEX idx_facts_session ON public.facts USING btree (source_id, source_session, created_at DESC) WHERE (expired_at IS NULL)",
      "idx_facts_since": "CREATE INDEX idx_facts_since ON public.facts USING btree (source_id, created_at DESC) WHERE (expired_at IS NULL)",
      "idx_facts_since_event_time": "CREATE INDEX idx_facts_since_event_time ON public.facts USING btree (source_id, COALESCE(valid_from, created_at) DESC) WHERE (expired_at IS NULL)",
      "idx_facts_unconsolidated": "CREATE INDEX idx_facts_unconsolidated ON public.facts USING btree (source_id, entity_slug) WHERE ((consolidated_at IS NULL) AND (expired_at IS NULL))",
      "idx_facts_withdrawal_fingerprint": "CREATE INDEX idx_facts_withdrawal_fingerprint ON public.facts USING btree (source_id, visibility, gbrain_fact_fingerprint(fact))",
      "idx_files_hash": "CREATE INDEX idx_files_hash ON public.files USING btree (content_hash)",
      "idx_files_page": "CREATE INDEX idx_files_page ON public.files USING btree (page_slug)",
      "idx_files_page_id": "CREATE INDEX idx_files_page_id ON public.files USING btree (page_id)",
      "idx_files_source_id": "CREATE INDEX idx_files_source_id ON public.files USING btree (source_id)",
      "idx_ingest_log_source_type_created": "CREATE INDEX idx_ingest_log_source_type_created ON public.ingest_log USING btree (source_id, source_type, created_at DESC)",
      "idx_links_from": "CREATE INDEX idx_links_from ON public.links USING btree (from_page_id)",
      "idx_links_origin": "CREATE INDEX idx_links_origin ON public.links USING btree (origin_page_id)",
      "idx_links_source": "CREATE INDEX idx_links_source ON public.links USING btree (link_source)",
      "idx_links_to": "CREATE INDEX idx_links_to ON public.links USING btree (to_page_id)",
      "idx_mcp_log_agent_time": "CREATE INDEX idx_mcp_log_agent_time ON public.mcp_request_log USING btree (agent_name, created_at DESC)",
      "idx_mcp_log_time_agent": "CREATE INDEX idx_mcp_log_time_agent ON public.mcp_request_log USING btree (created_at, token_name)",
      "idx_mcp_spend_log_client_time": "CREATE INDEX idx_mcp_spend_log_client_time ON public.mcp_spend_log USING btree (client_id, created_at)",
      "idx_mcp_spend_log_token_time": "CREATE INDEX idx_mcp_spend_log_token_time ON public.mcp_spend_log USING btree (token_name, created_at)",
      "idx_mcp_spend_reservations_client_time": "CREATE INDEX idx_mcp_spend_reservations_client_time ON public.mcp_spend_reservations USING btree (client_id, created_at)",
      "idx_mcp_spend_reservations_pending_expires": "CREATE INDEX idx_mcp_spend_reservations_pending_expires ON public.mcp_spend_reservations USING btree (status, expires_at) WHERE (status = 'pending'::text)",
      "idx_minion_attachments_job": "CREATE INDEX idx_minion_attachments_job ON public.minion_attachments USING btree (job_id)",
      "idx_minion_inbox_child_done": "CREATE INDEX idx_minion_inbox_child_done ON public.minion_inbox USING btree (job_id, sent_at) WHERE ((payload ->> 'type'::text) = 'child_done'::text)",
      "idx_minion_inbox_unread": "CREATE INDEX idx_minion_inbox_unread ON public.minion_inbox USING btree (job_id) WHERE (read_at IS NULL)",
      "idx_minion_jobs_claim": "CREATE INDEX idx_minion_jobs_claim ON public.minion_jobs USING btree (queue, priority, created_at) WHERE (status = 'waiting'::text)",
      "idx_minion_jobs_dead_subagent_finished": "CREATE INDEX idx_minion_jobs_dead_subagent_finished ON public.minion_jobs USING btree (finished_at) WHERE ((name = 'subagent'::text) AND (status = 'dead'::text))",
      "idx_minion_jobs_delayed": "CREATE INDEX idx_minion_jobs_delayed ON public.minion_jobs USING btree (delay_until) WHERE (status = 'delayed'::text)",
      "idx_minion_jobs_parent": "CREATE INDEX idx_minion_jobs_parent ON public.minion_jobs USING btree (parent_job_id)",
      "idx_minion_jobs_parent_status": "CREATE INDEX idx_minion_jobs_parent_status ON public.minion_jobs USING btree (parent_job_id, status) WHERE (parent_job_id IS NOT NULL)",
      "idx_minion_jobs_private_queue_owner": "CREATE INDEX idx_minion_jobs_private_queue_owner ON public.minion_jobs USING btree (private_queue_owner_job_id) WHERE (private_queue_owner_job_id IS NOT NULL)",
      "idx_minion_jobs_private_queue_recovery": "CREATE INDEX idx_minion_jobs_private_queue_recovery ON public.minion_jobs USING btree (queue, private_queue_lease_until) WHERE ((queue ~~ 'dream-inline-%'::text) AND (status = ANY (ARRAY['waiting'::text, 'active'::text, 'delayed'::text, 'waiting-children'::text, 'paused'::text])))",
      "idx_minion_jobs_queue_status_updated": "CREATE INDEX idx_minion_jobs_queue_status_updated ON public.minion_jobs USING btree (queue, status, updated_at)",
      "idx_minion_jobs_stagger_key": "CREATE INDEX idx_minion_jobs_stagger_key ON public.minion_jobs USING btree (stagger_key) WHERE (stagger_key IS NOT NULL)",
      "idx_minion_jobs_stalled": "CREATE INDEX idx_minion_jobs_stalled ON public.minion_jobs USING btree (lock_until) WHERE (status = 'active'::text)",
      "idx_minion_jobs_status": "CREATE INDEX idx_minion_jobs_status ON public.minion_jobs USING btree (status)",
      "idx_minion_jobs_timeout": "CREATE INDEX idx_minion_jobs_timeout ON public.minion_jobs USING btree (timeout_at) WHERE ((status = 'active'::text) AND (timeout_at IS NOT NULL))",
      "idx_oauth_clients_federated_read": "CREATE INDEX idx_oauth_clients_federated_read ON public.oauth_clients USING gin (federated_read)",
      "idx_oauth_clients_source_id": "CREATE INDEX idx_oauth_clients_source_id ON public.oauth_clients USING btree (source_id) WHERE (source_id IS NOT NULL)",
      "idx_oauth_grant_audit_client": "CREATE INDEX idx_oauth_grant_audit_client ON public.oauth_grant_audit USING btree (client_id, created_at)",
      "idx_oauth_tokens_client": "CREATE INDEX idx_oauth_tokens_client ON public.oauth_tokens USING btree (client_id)",
      "idx_oauth_tokens_expiry": "CREATE INDEX idx_oauth_tokens_expiry ON public.oauth_tokens USING btree (expires_at)",
      "idx_pages_frontmatter": "CREATE INDEX idx_pages_frontmatter ON public.pages USING gin (frontmatter)",
      "idx_pages_projection_pending": "CREATE INDEX idx_pages_projection_pending ON public.pages USING btree (source_id, page_kind, slug) WHERE ((deleted_at IS NULL) AND (text_projection_revision IS DISTINCT FROM knowledge_revision))",
      "idx_pages_search": "CREATE INDEX idx_pages_search ON public.pages USING gin (search_vector)",
      "idx_pages_source_id": "CREATE INDEX idx_pages_source_id ON public.pages USING btree (source_id)",
      "idx_pages_trgm": "CREATE INDEX idx_pages_trgm ON public.pages USING gin (title gin_trgm_ops)",
      "idx_pages_type": "CREATE INDEX idx_pages_type ON public.pages USING btree (type)",
      "idx_pages_updated_at_desc": "CREATE INDEX idx_pages_updated_at_desc ON public.pages USING btree (updated_at DESC)",
      "idx_query_cache_embedding_hnsw": "CREATE INDEX idx_query_cache_embedding_hnsw ON public.query_cache USING hnsw (embedding halfvec_cosine_ops) WHERE (embedding IS NOT NULL)",
      "idx_query_cache_source_created": "CREATE INDEX idx_query_cache_source_created ON public.query_cache USING btree (source_id, created_at DESC)",
      "idx_query_cache_source_knobs_created": "CREATE INDEX idx_query_cache_source_knobs_created ON public.query_cache USING btree (source_id, knobs_hash, created_at DESC)",
      "idx_rate_leases_key_expires": "CREATE INDEX idx_rate_leases_key_expires ON public.subagent_rate_leases USING btree (key, expires_at)",
      "idx_raw_data_page": "CREATE INDEX idx_raw_data_page ON public.raw_data USING btree (page_id)",
      "idx_search_telemetry_date": "CREATE INDEX idx_search_telemetry_date ON public.search_telemetry USING btree (date DESC)",
      "idx_subagent_messages_job": "CREATE INDEX idx_subagent_messages_job ON public.subagent_messages USING btree (job_id, message_idx)",
      "idx_subagent_messages_provider": "CREATE INDEX idx_subagent_messages_provider ON public.subagent_messages USING btree (job_id, provider_id)",
      "idx_subagent_tools_job": "CREATE INDEX idx_subagent_tools_job ON public.subagent_tool_executions USING btree (job_id, status)",
      "idx_synthesis_evidence_take": "CREATE INDEX idx_synthesis_evidence_take ON public.synthesis_evidence USING btree (take_page_id, take_row_num)",
      "idx_tags_page_id": "CREATE INDEX idx_tags_page_id ON public.tags USING btree (page_id)",
      "idx_tags_tag": "CREATE INDEX idx_tags_tag ON public.tags USING btree (tag)",
      "idx_take_domain_assignments_domain": "CREATE INDEX idx_take_domain_assignments_domain ON public.take_domain_assignments USING btree (domain, take_id)",
      "idx_takes_embedding_hnsw": "CREATE INDEX idx_takes_embedding_hnsw ON public.takes USING hnsw (embedding vector_cosine_ops) WHERE (active AND (embedding IS NOT NULL))",
      "idx_takes_holder_active": "CREATE INDEX idx_takes_holder_active ON public.takes USING btree (holder) WHERE active",
      "idx_takes_kind_active": "CREATE INDEX idx_takes_kind_active ON public.takes USING btree (kind) WHERE active",
      "idx_takes_page": "CREATE INDEX idx_takes_page ON public.takes USING btree (page_id)",
      "idx_takes_resolved_at": "CREATE INDEX idx_takes_resolved_at ON public.takes USING btree (resolved_at) WHERE (resolved_at IS NOT NULL)",
      "idx_takes_scorecard": "CREATE INDEX idx_takes_scorecard ON public.takes USING btree (holder, kind, resolved_quality) WHERE (resolved_quality IS NOT NULL)",
      "idx_takes_weight_active": "CREATE INDEX idx_takes_weight_active ON public.takes USING btree (weight DESC) WHERE active",
      "idx_timeline_date": "CREATE INDEX idx_timeline_date ON public.timeline_entries USING btree (date)",
      "idx_timeline_dedup": "CREATE UNIQUE INDEX idx_timeline_dedup ON public.timeline_entries USING btree (page_id, date, md5(summary), source)",
      "idx_timeline_event_dedup": "CREATE UNIQUE INDEX idx_timeline_event_dedup ON public.timeline_entries USING btree (event_page_id, date) WHERE (event_page_id IS NOT NULL)",
      "idx_timeline_event_page": "CREATE INDEX idx_timeline_event_page ON public.timeline_entries USING btree (event_page_id) WHERE (event_page_id IS NOT NULL)",
      "idx_timeline_page": "CREATE INDEX idx_timeline_page ON public.timeline_entries USING btree (page_id)",
      "idx_versions_page": "CREATE INDEX idx_versions_page ON public.page_versions USING btree (page_id)",
      "ingest_log_pkey": "CREATE UNIQUE INDEX ingest_log_pkey ON public.ingest_log USING btree (id)",
      "links_from_to_type_source_origin_unique": "CREATE UNIQUE INDEX links_from_to_type_source_origin_unique ON public.links USING btree (from_page_id, to_page_id, link_type, link_source, origin_page_id) NULLS NOT DISTINCT",
      "links_pkey": "CREATE UNIQUE INDEX links_pkey ON public.links USING btree (id)",
      "loop_suppressions_pkey": "CREATE UNIQUE INDEX loop_suppressions_pkey ON public.loop_suppressions USING btree (id)",
      "loop_suppressions_uniq": "CREATE UNIQUE INDEX loop_suppressions_uniq ON public.loop_suppressions USING btree (source_id, kind, value)",
      "mcp_request_log_pkey": "CREATE UNIQUE INDEX mcp_request_log_pkey ON public.mcp_request_log USING btree (id)",
      "mcp_spend_log_pkey": "CREATE UNIQUE INDEX mcp_spend_log_pkey ON public.mcp_spend_log USING btree (id)",
      "mcp_spend_reservations_pkey": "CREATE UNIQUE INDEX mcp_spend_reservations_pkey ON public.mcp_spend_reservations USING btree (reservation_id)",
      "migration_impact_log_attribution_idx": "CREATE INDEX migration_impact_log_attribution_idx ON public.migration_impact_log USING btree (job_id, source_id) WHERE (job_id IS NOT NULL)",
      "migration_impact_log_pkey": "CREATE UNIQUE INDEX migration_impact_log_pkey ON public.migration_impact_log USING btree (id)",
      "migration_impact_log_remediation_idx": "CREATE INDEX migration_impact_log_remediation_idx ON public.migration_impact_log USING btree (remediation_id, applied_at DESC)",
      "minion_attachments_pkey": "CREATE UNIQUE INDEX minion_attachments_pkey ON public.minion_attachments USING btree (id)",
      "minion_budget_log_owner_idx": "CREATE INDEX minion_budget_log_owner_idx ON public.minion_budget_log USING btree (owner_id)",
      "minion_budget_log_pkey": "CREATE UNIQUE INDEX minion_budget_log_pkey ON public.minion_budget_log USING btree (id)",
      "minion_budget_log_recent_idx": "CREATE INDEX minion_budget_log_recent_idx ON public.minion_budget_log USING btree (occurred_at DESC)",
      "minion_inbox_pkey": "CREATE UNIQUE INDEX minion_inbox_pkey ON public.minion_inbox USING btree (id)",
      "minion_jobs_budget_owner_idx": "CREATE INDEX minion_jobs_budget_owner_idx ON public.minion_jobs USING btree (budget_owner_job_id) WHERE (budget_owner_job_id IS NOT NULL)",
      "minion_jobs_budget_root_owner_idx": "CREATE INDEX minion_jobs_budget_root_owner_idx ON public.minion_jobs USING btree (budget_root_owner_id) WHERE (budget_root_owner_id IS NOT NULL)",
      "minion_jobs_pkey": "CREATE UNIQUE INDEX minion_jobs_pkey ON public.minion_jobs USING btree (id)",
      "minion_lease_pressure_log_job_idx": "CREATE INDEX minion_lease_pressure_log_job_idx ON public.minion_lease_pressure_log USING btree (job_id)",
      "minion_lease_pressure_log_pkey": "CREATE UNIQUE INDEX minion_lease_pressure_log_pkey ON public.minion_lease_pressure_log USING btree (id)",
      "minion_lease_pressure_log_recent_idx": "CREATE INDEX minion_lease_pressure_log_recent_idx ON public.minion_lease_pressure_log USING btree (bounced_at DESC)",
      "minion_self_fix_log_parent_idx": "CREATE INDEX minion_self_fix_log_parent_idx ON public.minion_self_fix_log USING btree (parent_id)",
      "minion_self_fix_log_pkey": "CREATE UNIQUE INDEX minion_self_fix_log_pkey ON public.minion_self_fix_log USING btree (id)",
      "minion_self_fix_log_recent_idx": "CREATE INDEX minion_self_fix_log_recent_idx ON public.minion_self_fix_log USING btree (occurred_at DESC)",
      "oauth_clients_pkey": "CREATE UNIQUE INDEX oauth_clients_pkey ON public.oauth_clients USING btree (client_id)",
      "oauth_codes_pkey": "CREATE UNIQUE INDEX oauth_codes_pkey ON public.oauth_codes USING btree (code_hash)",
      "oauth_grant_audit_pkey": "CREATE UNIQUE INDEX oauth_grant_audit_pkey ON public.oauth_grant_audit USING btree (id)",
      "oauth_tokens_pkey": "CREATE UNIQUE INDEX oauth_tokens_pkey ON public.oauth_tokens USING btree (token_hash)",
      "op_checkpoint_paths_pkey": "CREATE UNIQUE INDEX op_checkpoint_paths_pkey ON public.op_checkpoint_paths USING btree (op, fingerprint, path)",
      "op_checkpoints_pkey": "CREATE UNIQUE INDEX op_checkpoints_pkey ON public.op_checkpoints USING btree (op, fingerprint)",
      "op_checkpoints_updated_at_idx": "CREATE INDEX op_checkpoints_updated_at_idx ON public.op_checkpoints USING btree (updated_at)",
      "open_loops_counterparty_idx": "CREATE INDEX open_loops_counterparty_idx ON public.open_loops USING btree (source_id, counterparty_slug) WHERE (status = 'open'::text)",
      "open_loops_dedup": "CREATE UNIQUE INDEX open_loops_dedup ON public.open_loops USING btree (source_id, dedup_key)",
      "open_loops_pkey": "CREATE UNIQUE INDEX open_loops_pkey ON public.open_loops USING btree (id)",
      "open_loops_status_idx": "CREATE INDEX open_loops_status_idx ON public.open_loops USING btree (source_id, status, last_activity_at DESC)",
      "open_loops_thread_idx": "CREATE INDEX open_loops_thread_idx ON public.open_loops USING btree (source_id, thread_id) WHERE (status = 'open'::text)",
      "page_aliases_lookup_idx": "CREATE INDEX page_aliases_lookup_idx ON public.page_aliases USING btree (source_id, alias_norm)",
      "page_aliases_pkey": "CREATE UNIQUE INDEX page_aliases_pkey ON public.page_aliases USING btree (id)",
      "page_aliases_slug_idx": "CREATE INDEX page_aliases_slug_idx ON public.page_aliases USING btree (source_id, slug)",
      "page_aliases_uniq": "CREATE UNIQUE INDEX page_aliases_uniq ON public.page_aliases USING btree (source_id, alias_norm, slug)",
      "page_generation_clock_pkey": "CREATE UNIQUE INDEX page_generation_clock_pkey ON public.page_generation_clock USING btree (id)",
      "page_projection_jobs_pkey": "CREATE UNIQUE INDEX page_projection_jobs_pkey ON public.page_projection_jobs USING btree (source_incarnation, slug)",
      "page_versions_pkey": "CREATE UNIQUE INDEX page_versions_pkey ON public.page_versions USING btree (id)",
      "page_write_guards_pkey": "CREATE UNIQUE INDEX page_write_guards_pkey ON public.page_write_guards USING btree (source_incarnation, slug)",
      "pages_atom_source_hash_idx": "CREATE INDEX pages_atom_source_hash_idx ON public.pages USING btree (((frontmatter ->> 'source_hash'::text))) WHERE ((type = 'atom'::text) AND (deleted_at IS NULL))",
      "pages_chunker_version_idx": "CREATE INDEX pages_chunker_version_idx ON public.pages USING btree (chunker_version) WHERE (page_kind = 'markdown'::text)",
      "pages_coalesce_date_idx": "CREATE INDEX pages_coalesce_date_idx ON public.pages USING btree (COALESCE(effective_date, updated_at))",
      "pages_dedup_idx": "CREATE INDEX pages_dedup_idx ON public.pages USING btree (source_id, content_hash) WHERE (deleted_at IS NULL)",
      "pages_deleted_at_purge_idx": "CREATE INDEX pages_deleted_at_purge_idx ON public.pages USING btree (deleted_at) WHERE (deleted_at IS NOT NULL)",
      "pages_generation_idx": "CREATE INDEX pages_generation_idx ON public.pages USING btree (generation)",
      "pages_last_retrieved_at_idx": "CREATE INDEX pages_last_retrieved_at_idx ON public.pages USING btree (last_retrieved_at)",
      "pages_links_extracted_at_idx": "CREATE INDEX pages_links_extracted_at_idx ON public.pages USING btree (source_id, links_extracted_at)",
      "pages_pkey": "CREATE UNIQUE INDEX pages_pkey ON public.pages USING btree (id)",
      "pages_safe_chunk_pending_idx": "CREATE INDEX pages_safe_chunk_pending_idx ON public.pages USING btree (source_id) WHERE (chunker_version < 4)",
      "pages_source_path_idx": "CREATE INDEX pages_source_path_idx ON public.pages USING btree (source_path) WHERE (source_path IS NOT NULL)",
      "pages_source_slug_key": "CREATE UNIQUE INDEX pages_source_slug_key ON public.pages USING btree (source_id, slug)",
      "persistence_brain_pkey": "CREATE UNIQUE INDEX persistence_brain_pkey ON public.persistence_brain USING btree (singleton)",
      "persistence_counters_pkey": "CREATE UNIQUE INDEX persistence_counters_pkey ON public.persistence_counters USING btree (key)",
      "persistence_effects_parked": "CREATE INDEX persistence_effects_parked ON public.persistence_effects USING btree (id) WHERE (data ? 'parked'::text)",
      "persistence_effects_pending": "CREATE INDEX persistence_effects_pending ON public.persistence_effects USING btree (next_attempt_at, id) WHERE (state = ANY (ARRAY['queued'::text, 'running'::text]))",
      "persistence_effects_pkey": "CREATE UNIQUE INDEX persistence_effects_pkey ON public.persistence_effects USING btree (id)",
      "persistence_effects_recovery": "CREATE INDEX persistence_effects_recovery ON public.persistence_effects USING btree (worktree_id) WHERE (recovery IS NOT NULL)",
      "persistence_effects_request_id_kind_key": "CREATE UNIQUE INDEX persistence_effects_request_id_kind_key ON public.persistence_effects USING btree (request_id, kind)",
      "persistence_host_bindings_pkey": "CREATE UNIQUE INDEX persistence_host_bindings_pkey ON public.persistence_host_bindings USING btree (worktree_id, host_id)",
      "persistence_local_writers_credential_hash_key": "CREATE UNIQUE INDEX persistence_local_writers_credential_hash_key ON public.persistence_local_writers USING btree (credential_hash)",
      "persistence_local_writers_pkey": "CREATE UNIQUE INDEX persistence_local_writers_pkey ON public.persistence_local_writers USING btree (id)",
      "persistence_requests_database_pending": "CREATE INDEX persistence_requests_database_pending ON public.persistence_requests USING btree (source_incarnation, sequence) WHERE ((worktree_id IS NULL) AND (state = ANY (ARRAY['queued'::text, 'running'::text, 'recovering'::text])))",
      "persistence_requests_pending": "CREATE INDEX persistence_requests_pending ON public.persistence_requests USING btree (worktree_id, sequence) WHERE (state = ANY (ARRAY['queued'::text, 'running'::text, 'recovering'::text]))",
      "persistence_requests_pkey": "CREATE UNIQUE INDEX persistence_requests_pkey ON public.persistence_requests USING btree (id)",
      "persistence_requests_principal": "CREATE INDEX persistence_requests_principal ON public.persistence_requests USING btree (principal_kind, principal_id, sequence DESC)",
      "persistence_requests_principal_kind_principal_id_request_id_key": "CREATE UNIQUE INDEX persistence_requests_principal_kind_principal_id_request_id_key ON public.persistence_requests USING btree (principal_kind, principal_id, request_id)",
      "persistence_requests_recovery": "CREATE INDEX persistence_requests_recovery ON public.persistence_requests USING btree (worktree_id, sequence) WHERE (recovery IS NOT NULL)",
      "persistence_requests_sequence_key": "CREATE UNIQUE INDEX persistence_requests_sequence_key ON public.persistence_requests USING btree (sequence)",
      "persistence_source_bindings_pkey": "CREATE UNIQUE INDEX persistence_source_bindings_pkey ON public.persistence_source_bindings USING btree (source_id)",
      "persistence_topology_changes_pkey": "CREATE UNIQUE INDEX persistence_topology_changes_pkey ON public.persistence_topology_changes USING btree (id)",
      "persistence_topology_changes_principal_id_request_id_key": "CREATE UNIQUE INDEX persistence_topology_changes_principal_id_request_id_key ON public.persistence_topology_changes USING btree (principal_id, request_id)",
      "persistence_topology_recovering": "CREATE INDEX persistence_topology_recovering ON public.persistence_topology_changes USING btree (created_at) WHERE (state = 'recovering'::text)",
      "persistence_worktrees_pkey": "CREATE UNIQUE INDEX persistence_worktrees_pkey ON public.persistence_worktrees USING btree (id)",
      "persistence_writer_protocols_pkey": "CREATE UNIQUE INDEX persistence_writer_protocols_pkey ON public.persistence_writer_protocols USING btree (worktree_id, host_id)",
      "query_cache_pkey": "CREATE UNIQUE INDEX query_cache_pkey ON public.query_cache USING btree (id)",
      "raw_data_page_id_source_key": "CREATE UNIQUE INDEX raw_data_page_id_source_key ON public.raw_data USING btree (page_id, source)",
      "raw_data_pkey": "CREATE UNIQUE INDEX raw_data_pkey ON public.raw_data USING btree (id)",
      "search_telemetry_pkey": "CREATE UNIQUE INDEX search_telemetry_pkey ON public.search_telemetry USING btree (date, mode, intent)",
      "session_context_state_pkey": "CREATE UNIQUE INDEX session_context_state_pkey ON public.session_context_state USING btree (source_id, client_id, session_id)",
      "session_context_state_updated_idx": "CREATE INDEX session_context_state_updated_idx ON public.session_context_state USING btree (updated_at)",
      "shared_skill_delivery_batches_installation_id_epoch_sequenc_key": "CREATE UNIQUE INDEX shared_skill_delivery_batches_installation_id_epoch_sequenc_key ON public.shared_skill_delivery_batches USING btree (installation_id, epoch, sequence)",
      "shared_skill_delivery_batches_pkey": "CREATE UNIQUE INDEX shared_skill_delivery_batches_pkey ON public.shared_skill_delivery_batches USING btree (token)",
      "shared_skill_delivery_member_idx": "CREATE INDEX shared_skill_delivery_member_idx ON public.shared_skill_delivery_batches USING btree (installation_id, epoch, issued_at)",
      "shared_skill_heads_active_idx": "CREATE INDEX shared_skill_heads_active_idx ON public.shared_skill_heads USING btree (source_id, source_incarnation, pack_id, name) WHERE (NOT deleted)",
      "shared_skill_heads_pkey": "CREATE UNIQUE INDEX shared_skill_heads_pkey ON public.shared_skill_heads USING btree (source_id, source_incarnation, pack_id, name)",
      "shared_skill_members_pkey": "CREATE UNIQUE INDEX shared_skill_members_pkey ON public.shared_skill_members USING btree (installation_id)",
      "shared_skill_members_principal_kind_principal_id_adapter_key": "CREATE UNIQUE INDEX shared_skill_members_principal_kind_principal_id_adapter_key ON public.shared_skill_members USING btree (principal_kind, principal_id, adapter)",
      "shared_skill_packs_pkey": "CREATE UNIQUE INDEX shared_skill_packs_pkey ON public.shared_skill_packs USING btree (source_id, source_incarnation)",
      "shared_skill_packs_source_id_source_incarnation_pack_id_key": "CREATE UNIQUE INDEX shared_skill_packs_source_id_source_incarnation_pack_id_key ON public.shared_skill_packs USING btree (source_id, source_incarnation, pack_id)",
      "shared_skill_policies_pkey": "CREATE UNIQUE INDEX shared_skill_policies_pkey ON public.shared_skill_policies USING btree (source_id, source_incarnation)",
      "shared_skill_policy_audit_pkey": "CREATE UNIQUE INDEX shared_skill_policy_audit_pkey ON public.shared_skill_policy_audit USING btree (id)",
      "shared_skill_policy_audit_source_idx": "CREATE INDEX shared_skill_policy_audit_source_idx ON public.shared_skill_policy_audit USING btree (source_id, source_incarnation, created_at)",
      "shared_skill_revision_lease_expiry_idx": "CREATE INDEX shared_skill_revision_lease_expiry_idx ON public.shared_skill_revision_leases USING btree (source_id, source_incarnation, expires_at)",
      "shared_skill_revision_lease_target_idx": "CREATE INDEX shared_skill_revision_lease_target_idx ON public.shared_skill_revision_leases USING btree (source_id, source_incarnation, pack_id, name, revision, expires_at)",
      "shared_skill_revision_leases_pkey": "CREATE UNIQUE INDEX shared_skill_revision_leases_pkey ON public.shared_skill_revision_leases USING btree (lease_kind, lease_id, source_id, source_incarnation, pack_id, name, revision)",
      "shared_skill_revision_request_idx": "CREATE INDEX shared_skill_revision_request_idx ON public.shared_skill_revisions USING btree (request_id)",
      "shared_skill_revision_retention_idx": "CREATE INDEX shared_skill_revision_retention_idx ON public.shared_skill_revisions USING btree (source_id, source_incarnation, name, created_at DESC)",
      "shared_skill_revision_uuid_idx": "CREATE INDEX shared_skill_revision_uuid_idx ON public.shared_skill_revisions USING btree (revision)",
      "shared_skill_revisions_pkey": "CREATE UNIQUE INDEX shared_skill_revisions_pkey ON public.shared_skill_revisions USING btree (source_id, source_incarnation, pack_id, name, revision)",
      "shared_skill_state_pkey": "CREATE UNIQUE INDEX shared_skill_state_pkey ON public.shared_skill_state USING btree (singleton)",
      "slug_aliases_canonical_idx": "CREATE INDEX slug_aliases_canonical_idx ON public.slug_aliases USING btree (source_id, canonical_slug)",
      "slug_aliases_pkey": "CREATE UNIQUE INDEX slug_aliases_pkey ON public.slug_aliases USING btree (id)",
      "slug_aliases_uniq": "CREATE UNIQUE INDEX slug_aliases_uniq ON public.slug_aliases USING btree (source_id, alias_slug)",
      "source_ingestion_receipts_active": "CREATE INDEX source_ingestion_receipts_active ON public.source_ingestion_receipts USING btree (id) WHERE (outcome = 'incomplete'::text)",
      "source_ingestion_receipts_pkey": "CREATE UNIQUE INDEX source_ingestion_receipts_pkey ON public.source_ingestion_receipts USING btree (id)",
      "source_ingestion_receipts_retention": "CREATE INDEX source_ingestion_receipts_retention ON public.source_ingestion_receipts USING btree (source_id, source_incarnation, completed_at DESC, id DESC) WHERE (outcome = 'complete'::text)",
      "source_ingestion_receipts_source": "CREATE INDEX source_ingestion_receipts_source ON public.source_ingestion_receipts USING btree (source_id, source_incarnation, created_at DESC)",
      "sources_github_repo_idx": "CREATE INDEX sources_github_repo_idx ON public.sources USING btree (((config ->> 'github_repo'::text))) WHERE (config ? 'github_repo'::text)",
      "sources_incarnation_key": "CREATE UNIQUE INDEX sources_incarnation_key ON public.sources USING btree (incarnation)",
      "sources_name_key": "CREATE UNIQUE INDEX sources_name_key ON public.sources USING btree (name)",
      "sources_pkey": "CREATE UNIQUE INDEX sources_pkey ON public.sources USING btree (id)",
      "subagent_messages_pkey": "CREATE UNIQUE INDEX subagent_messages_pkey ON public.subagent_messages USING btree (id)",
      "subagent_rate_leases_pkey": "CREATE UNIQUE INDEX subagent_rate_leases_pkey ON public.subagent_rate_leases USING btree (id)",
      "subagent_tool_executions_pkey": "CREATE UNIQUE INDEX subagent_tool_executions_pkey ON public.subagent_tool_executions USING btree (id)",
      "subagent_tool_executions_stable_id": "CREATE UNIQUE INDEX subagent_tool_executions_stable_id ON public.subagent_tool_executions USING btree (job_id, message_idx, ordinal)",
      "synthesis_evidence_pkey": "CREATE UNIQUE INDEX synthesis_evidence_pkey ON public.synthesis_evidence USING btree (synthesis_page_id, take_page_id, take_row_num)",
      "tags_page_id_tag_key": "CREATE UNIQUE INDEX tags_page_id_tag_key ON public.tags USING btree (page_id, tag)",
      "tags_pkey": "CREATE UNIQUE INDEX tags_pkey ON public.tags USING btree (id)",
      "take_domain_assignments_pkey": "CREATE UNIQUE INDEX take_domain_assignments_pkey ON public.take_domain_assignments USING btree (take_id, domain)",
      "take_grade_cache_applied_idx": "CREATE INDEX take_grade_cache_applied_idx ON public.take_grade_cache USING btree (take_id, applied)",
      "take_grade_cache_pkey": "CREATE UNIQUE INDEX take_grade_cache_pkey ON public.take_grade_cache USING btree (take_id, prompt_version, judge_model_id, evidence_signature)",
      "take_grade_cache_wave_idx": "CREATE INDEX take_grade_cache_wave_idx ON public.take_grade_cache USING btree (wave_version, graded_at DESC)",
      "take_nudge_log_pkey": "CREATE UNIQUE INDEX take_nudge_log_pkey ON public.take_nudge_log USING btree (id)",
      "take_nudge_log_proposal_cooldown_idx": "CREATE INDEX take_nudge_log_proposal_cooldown_idx ON public.take_nudge_log USING btree (proposal_id, nudge_pattern, fired_at DESC) WHERE (proposal_id IS NOT NULL)",
      "take_nudge_log_take_cooldown_idx": "CREATE INDEX take_nudge_log_take_cooldown_idx ON public.take_nudge_log USING btree (take_id, nudge_pattern, fired_at DESC) WHERE (take_id IS NOT NULL)",
      "take_nudge_log_wave_idx": "CREATE INDEX take_nudge_log_wave_idx ON public.take_nudge_log USING btree (wave_version, fired_at DESC)",
      "take_proposals_idempotency_idx": "CREATE UNIQUE INDEX take_proposals_idempotency_idx ON public.take_proposals USING btree (source_id, page_slug, content_hash, prompt_version, md5(claim_text))",
      "take_proposals_pending_idx": "CREATE INDEX take_proposals_pending_idx ON public.take_proposals USING btree (source_id, status, proposed_at DESC) WHERE (status = 'pending'::text)",
      "take_proposals_pkey": "CREATE UNIQUE INDEX take_proposals_pkey ON public.take_proposals USING btree (id)",
      "take_proposals_run_id_idx": "CREATE INDEX take_proposals_run_id_idx ON public.take_proposals USING btree (proposal_run_id)",
      "takes_page_row_key": "CREATE UNIQUE INDEX takes_page_row_key ON public.takes USING btree (page_id, row_num)",
      "takes_pkey": "CREATE UNIQUE INDEX takes_pkey ON public.takes USING btree (id)",
      "takes_resolved_at_idx": "CREATE INDEX takes_resolved_at_idx ON public.takes USING btree (resolved_at DESC) WHERE (resolved_at IS NOT NULL)",
      "think_ab_results_pkey": "CREATE UNIQUE INDEX think_ab_results_pkey ON public.think_ab_results USING btree (id)",
      "think_ab_results_recent_idx": "CREATE INDEX think_ab_results_recent_idx ON public.think_ab_results USING btree (source_id, ran_at DESC)",
      "timeline_entries_pkey": "CREATE UNIQUE INDEX timeline_entries_pkey ON public.timeline_entries USING btree (id)",
      "uniq_minion_attachments_job_filename": "CREATE UNIQUE INDEX uniq_minion_attachments_job_filename ON public.minion_attachments USING btree (job_id, filename)",
      "uniq_minion_jobs_idempotency": "CREATE UNIQUE INDEX uniq_minion_jobs_idempotency ON public.minion_jobs USING btree (idempotency_key) WHERE (idempotency_key IS NOT NULL)",
      "uniq_subagent_messages_idx": "CREATE UNIQUE INDEX uniq_subagent_messages_idx ON public.subagent_messages USING btree (job_id, message_idx)"
    },
    "policies": {},
    "sequences": {
      "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",
      "code_edges_chunk_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=code_edges_chunk.id",
      "code_edges_symbol_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=code_edges_symbol.id",
      "code_traversal_cache_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=code_traversal_cache.id",
      "content_chunks_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=content_chunks.id",
      "context_volunteer_events_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=context_volunteer_events.id",
      "drift_decisions_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=drift_decisions.id",
      "entity_identities_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=entity_identities.id",
      "eval_candidates_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=eval_candidates.id",
      "eval_capture_failures_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=eval_capture_failures.id",
      "eval_takes_quality_runs_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=eval_takes_quality_runs.id",
      "facts_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=facts.id",
      "files_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=files.id",
      "ingest_log_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=ingest_log.id",
      "links_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=links.id",
      "loop_suppressions_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=loop_suppressions.id",
      "mcp_request_log_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=mcp_request_log.id",
      "mcp_spend_log_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=mcp_spend_log.id",
      "migration_impact_log_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=migration_impact_log.id",
      "minion_attachments_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=minion_attachments.id",
      "minion_budget_log_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=minion_budget_log.id",
      "minion_inbox_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=minion_inbox.id",
      "minion_jobs_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=minion_jobs.id",
      "minion_lease_pressure_log_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=minion_lease_pressure_log.id",
      "minion_self_fix_log_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=minion_self_fix_log.id",
      "oauth_grant_audit_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=oauth_grant_audit.id",
      "open_loops_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=open_loops.id",
      "page_aliases_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=page_aliases.id",
      "page_generation_clock_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=-",
      "page_versions_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=page_versions.id",
      "pages_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=pages.id",
      "persistence_effects_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=persistence_effects.id",
      "persistence_requests_sequence_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=persistence_requests.sequence",
      "raw_data_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=raw_data.id",
      "slug_aliases_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=slug_aliases.id",
      "subagent_messages_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=subagent_messages.id",
      "subagent_rate_leases_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=subagent_rate_leases.id",
      "subagent_tool_executions_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=subagent_tool_executions.id",
      "tags_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=tags.id",
      "take_nudge_log_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=take_nudge_log.id",
      "take_proposals_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=take_proposals.id",
      "takes_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=takes.id",
      "think_ab_results_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=think_ab_results.id",
      "timeline_entries_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=timeline_entries.id"
    },
    "tables": {
      "access_tokens": {
        "columns": [
          "1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
          "2 name text/text NOT NULL",
          "3 token_hash text/text NOT NULL",
          "4 scopes ARRAY/_text NULL",
          "5 created_at timestamp with time zone/timestamptz NULL DEFAULT now()",
          "6 last_used_at timestamp with time zone/timestamptz NULL",
          "7 revoked_at timestamp with time zone/timestamptz NULL",
          "8 permissions jsonb/jsonb NOT NULL DEFAULT '{\"takes_holders\": [\"world\"]}'::jsonb"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "budget_ledger": {
        "columns": [
          "1 scope text/text NOT NULL",
          "2 resolver_id text/text NOT NULL",
          "3 local_date date/date NOT NULL",
          "4 reserved_usd numeric/numeric NOT NULL DEFAULT 0",
          "5 committed_usd numeric/numeric NOT NULL DEFAULT 0",
          "6 cap_usd numeric/numeric NULL",
          "7 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "8 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "budget_reservations": {
        "columns": [
          "1 reservation_id text/text NOT NULL",
          "2 scope text/text NOT NULL",
          "3 resolver_id text/text NOT NULL",
          "4 local_date date/date NOT NULL",
          "5 estimate_usd numeric/numeric NOT NULL",
          "6 reserved_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "7 expires_at timestamp with time zone/timestamptz NOT NULL",
          "8 status text/text NOT NULL DEFAULT 'held'::text"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "calibration_profiles": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('calibration_profiles_id_seq'::regclass)",
          "2 source_id text/text NOT NULL",
          "3 holder text/text NOT NULL",
          "4 wave_version text/text NOT NULL DEFAULT 'v0.36.1.0'::text",
          "5 generated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "6 published boolean/bool NOT NULL DEFAULT false",
          "7 total_resolved integer/int4 NOT NULL",
          "8 brier real/float4 NULL",
          "9 accuracy real/float4 NULL",
          "10 partial_rate real/float4 NULL",
          "11 grade_completion real/float4 NOT NULL DEFAULT 1.0",
          "12 domain_scorecards jsonb/jsonb NOT NULL",
          "13 pattern_statements ARRAY/_text NOT NULL",
          "14 voice_gate_passed boolean/bool NOT NULL",
          "15 voice_gate_attempts smallint/int2 NOT NULL",
          "16 active_bias_tags ARRAY/_text NOT NULL",
          "17 model_id text/text NOT NULL",
          "18 cost_usd numeric/numeric NULL",
          "19 judge_model_agreement real/float4 NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "chat_usage_log": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('chat_usage_log_id_seq'::regclass)",
          "2 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "3 model text/text NOT NULL",
          "4 provider text/text NULL",
          "5 phase text/text NULL",
          "6 input_tokens integer/int4 NOT NULL DEFAULT 0",
          "7 output_tokens integer/int4 NOT NULL DEFAULT 0",
          "8 cache_read_tokens integer/int4 NOT NULL DEFAULT 0",
          "9 cache_write_tokens integer/int4 NOT NULL DEFAULT 0",
          "10 cost_usd double precision/float8 NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "code_edges_chunk": {
        "columns": [
          "1 id integer/int4 NOT NULL DEFAULT nextval('code_edges_chunk_id_seq'::regclass)",
          "2 from_chunk_id integer/int4 NOT NULL",
          "3 to_chunk_id integer/int4 NOT NULL",
          "4 from_symbol_qualified text/text NOT NULL",
          "5 to_symbol_qualified text/text NOT NULL",
          "6 edge_type text/text NOT NULL",
          "7 edge_metadata jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
          "8 source_id text/text NULL",
          "9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "code_edges_symbol": {
        "columns": [
          "1 id integer/int4 NOT NULL DEFAULT nextval('code_edges_symbol_id_seq'::regclass)",
          "2 from_chunk_id integer/int4 NOT NULL",
          "3 from_symbol_qualified text/text NOT NULL",
          "4 to_symbol_qualified text/text NOT NULL",
          "5 edge_type text/text NOT NULL",
          "6 edge_metadata jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
          "7 source_id text/text NULL",
          "8 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "code_traversal_cache": {
        "columns": [
          "1 id integer/int4 NOT NULL DEFAULT nextval('code_traversal_cache_id_seq'::regclass)",
          "2 symbol_qualified text/text NOT NULL",
          "3 depth integer/int4 NOT NULL",
          "4 source_id text/text NOT NULL",
          "5 response_json jsonb/jsonb NOT NULL",
          "6 max_chunk_updated_at timestamp with time zone/timestamptz NOT NULL",
          "7 xmin_max bigint/int8 NOT NULL",
          "8 cluster_generation bigint/int8 NOT NULL DEFAULT 0",
          "9 computed_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "config": {
        "columns": [
          "1 key text/text NOT NULL",
          "2 value text/text NOT NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "content_chunks": {
        "columns": [
          "1 id integer/int4 NOT NULL DEFAULT nextval('content_chunks_id_seq'::regclass)",
          "2 page_id integer/int4 NOT NULL",
          "3 chunk_index integer/int4 NOT NULL",
          "4 chunk_text text/text NOT NULL",
          "5 chunk_source text/text NOT NULL DEFAULT 'compiled_truth'::text",
          "6 embedding USER-DEFINED/vector NULL",
          "7 model text/text NOT NULL DEFAULT 'openai:text-embedding-3-large'::text",
          "8 token_count integer/int4 NULL",
          "9 embedded_at timestamp with time zone/timestamptz NULL",
          "10 embedded_text_hash text/text NULL",
          "11 embedding_input_hash text/text NULL",
          "12 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "13 language text/text NULL",
          "14 symbol_name text/text NULL",
          "15 symbol_type text/text NULL",
          "16 start_line integer/int4 NULL",
          "17 end_line integer/int4 NULL",
          "18 modality text/text NOT NULL DEFAULT 'text'::text",
          "19 embedding_image USER-DEFINED/vector NULL",
          "20 embedding_multimodal USER-DEFINED/vector NULL",
          "21 parent_symbol_path ARRAY/_text NULL",
          "22 doc_comment text/text NULL",
          "23 symbol_name_qualified text/text NULL",
          "24 search_vector tsvector/tsvector NULL",
          "25 edges_backfilled_at timestamp with time zone/timestamptz NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "context_volunteer_events": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('context_volunteer_events_id_seq'::regclass)",
          "2 source_id text/text NOT NULL",
          "3 slug text/text NOT NULL",
          "4 confidence double precision/float8 NOT NULL",
          "5 match_arm text/text NOT NULL",
          "6 rationale text/text NOT NULL DEFAULT ''::text",
          "7 channel text/text NOT NULL DEFAULT 'op'::text",
          "8 session_id text/text NULL",
          "9 turn integer/int4 NULL",
          "10 volunteered_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "conversation_parser_llm_cache": {
        "columns": [
          "1 content_sha256 text/text NOT NULL",
          "2 model_id text/text NOT NULL",
          "3 call_shape text/text NOT NULL",
          "4 value_json jsonb/jsonb NOT NULL",
          "5 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "dream_synthesis_completions": {
        "columns": [
          "1 source_id text/text NOT NULL",
          "2 idempotency_key text/text NOT NULL",
          "3 completed_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "dream_verdicts": {
        "columns": [
          "1 file_path text/text NOT NULL",
          "2 content_hash text/text NOT NULL",
          "3 worth_processing boolean/bool NOT NULL",
          "4 reasons jsonb/jsonb NULL",
          "5 judged_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "6 score double precision/float8 NULL",
          "7 content_type text/text NULL",
          "8 segments jsonb/jsonb NULL",
          "9 entities jsonb/jsonb NULL",
          "10 model text/text NULL",
          "11 triage_version integer/int4 NULL",
          "12 expires_at timestamp with time zone/timestamptz NOT NULL DEFAULT (now() + '30 days'::interval)"
        ],
        "flags": "relkind=r rls=true force_rls=false"
      },
      "drift_decisions": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('drift_decisions_id_seq'::regclass)",
          "2 take_id bigint/int8 NOT NULL",
          "3 page_id integer/int4 NOT NULL",
          "4 row_num integer/int4 NOT NULL",
          "5 recommended_weight real/float4 NOT NULL",
          "6 reasoning text/text NULL",
          "7 decided_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "8 applied_at timestamp with time zone/timestamptz NULL",
          "9 applied_by text/text NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "entity_identities": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('entity_identities_id_seq'::regclass)",
          "2 entity_id text/text NOT NULL",
          "3 source_id text/text NOT NULL",
          "4 page_id integer/int4 NOT NULL",
          "5 confidence double precision/float8 NOT NULL DEFAULT 1.0",
          "6 established_by text/text NOT NULL DEFAULT 'manual'::text",
          "7 established_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "8 canonical boolean/bool NOT NULL DEFAULT false"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "eval_candidates": {
        "columns": [
          "1 id integer/int4 NOT NULL DEFAULT nextval('eval_candidates_id_seq'::regclass)",
          "2 tool_name text/text NOT NULL",
          "3 query text/text NOT NULL",
          "4 retrieved_slugs ARRAY/_text NOT NULL DEFAULT '{}'::text[]",
          "5 retrieved_chunk_ids ARRAY/_int4 NOT NULL DEFAULT '{}'::integer[]",
          "6 source_ids ARRAY/_text NOT NULL DEFAULT '{}'::text[]",
          "7 expand_enabled boolean/bool NULL",
          "8 detail text/text NULL",
          "9 detail_resolved text/text NULL",
          "10 vector_enabled boolean/bool NOT NULL",
          "11 expansion_applied boolean/bool NOT NULL",
          "12 latency_ms integer/int4 NOT NULL",
          "13 remote boolean/bool NOT NULL",
          "14 job_id integer/int4 NULL",
          "15 subagent_id integer/int4 NULL",
          "16 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "17 as_of_ts timestamp with time zone/timestamptz NULL",
          "18 salience_param text/text NULL",
          "19 recency_param text/text NULL",
          "20 salience_resolved text/text NULL",
          "21 recency_resolved text/text NULL",
          "22 salience_source text/text NULL",
          "23 recency_source text/text NULL",
          "24 embedding_column text/text NULL",
          "25 schema_pack_per_source jsonb/jsonb NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "eval_capture_failures": {
        "columns": [
          "1 id integer/int4 NOT NULL DEFAULT nextval('eval_capture_failures_id_seq'::regclass)",
          "2 ts timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "3 reason text/text NOT NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "eval_contradictions_cache": {
        "columns": [
          "1 chunk_a_hash text/text NOT NULL",
          "2 chunk_b_hash text/text NOT NULL",
          "3 model_id text/text NOT NULL",
          "4 prompt_version text/text NOT NULL",
          "5 truncation_policy text/text NOT NULL",
          "6 verdict jsonb/jsonb NOT NULL",
          "7 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "8 expires_at timestamp with time zone/timestamptz NOT NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "eval_contradictions_runs": {
        "columns": [
          "1 run_id text/text NOT NULL",
          "2 ran_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "3 schema_version integer/int4 NOT NULL DEFAULT 1",
          "4 judge_model text/text NOT NULL",
          "5 prompt_version text/text NOT NULL",
          "6 queries_evaluated integer/int4 NOT NULL",
          "7 queries_with_contradiction integer/int4 NOT NULL",
          "8 total_contradictions_flagged integer/int4 NOT NULL",
          "9 wilson_ci_lower real/float4 NOT NULL",
          "10 wilson_ci_upper real/float4 NOT NULL",
          "11 judge_errors_total integer/int4 NOT NULL",
          "12 cost_usd_total real/float4 NOT NULL",
          "13 duration_ms integer/int4 NOT NULL",
          "14 source_tier_breakdown jsonb/jsonb NOT NULL",
          "15 report_json jsonb/jsonb NOT NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "eval_takes_quality_runs": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('eval_takes_quality_runs_id_seq'::regclass)",
          "2 receipt_sha8_corpus text/text NOT NULL",
          "3 receipt_sha8_prompt text/text NOT NULL",
          "4 receipt_sha8_models text/text NOT NULL",
          "5 receipt_sha8_rubric text/text NOT NULL",
          "6 rubric_version text/text NOT NULL",
          "7 verdict text/text NOT NULL",
          "8 overall_score real/float4 NOT NULL",
          "9 dim_scores jsonb/jsonb NOT NULL",
          "10 cost_usd real/float4 NOT NULL",
          "11 receipt_json jsonb/jsonb NOT NULL",
          "12 receipt_disk_path text/text NULL",
          "13 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "extract_atoms_page_state": {
        "columns": [
          "1 source_incarnation uuid/uuid NOT NULL",
          "2 page_id integer/int4 NOT NULL",
          "3 content_hash text/text NOT NULL",
          "4 fail_count integer/int4 NOT NULL DEFAULT 0",
          "5 tombstoned boolean/bool NOT NULL DEFAULT false",
          "6 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=true force_rls=false"
      },
      "extract_atoms_transcript_state": {
        "columns": [
          "1 source_id text/text NOT NULL DEFAULT 'default'::text",
          "2 file_path text/text NOT NULL",
          "3 content_hash text/text NOT NULL",
          "4 fail_count integer/int4 NOT NULL DEFAULT 0",
          "5 tombstoned boolean/bool NOT NULL DEFAULT false",
          "6 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "extract_rollup_7d": {
        "columns": [
          "1 kind text/text NOT NULL",
          "2 source_id text/text NOT NULL",
          "3 day date/date NOT NULL",
          "4 cost_usd real/float4 NOT NULL DEFAULT 0",
          "5 halt_count integer/int4 NOT NULL DEFAULT 0",
          "6 eval_fail_count integer/int4 NOT NULL DEFAULT 0",
          "7 eval_pass_count integer/int4 NOT NULL DEFAULT 0",
          "8 round_completed_count integer/int4 NOT NULL DEFAULT 0",
          "9 rollup_write_failures integer/int4 NOT NULL DEFAULT 0",
          "10 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "11 expected_limit_count integer/int4 NOT NULL DEFAULT 0"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "fact_withdrawals": {
        "columns": [
          "1 source_id text/text NOT NULL",
          "2 visibility text/text NOT NULL",
          "3 subject text/text NOT NULL DEFAULT '*'::text",
          "4 fact_hash text/text NOT NULL",
          "5 withdrawn_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "facts": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('facts_id_seq'::regclass)",
          "2 source_id text/text NOT NULL DEFAULT 'default'::text",
          "3 entity_slug text/text NULL",
          "4 fact text/text NOT NULL",
          "5 kind text/text NOT NULL DEFAULT 'fact'::text",
          "6 visibility text/text NOT NULL DEFAULT 'private'::text",
          "7 notability text/text NOT NULL DEFAULT 'medium'::text",
          "8 context text/text NULL",
          "9 valid_from timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "10 valid_until timestamp with time zone/timestamptz NULL",
          "11 expired_at timestamp with time zone/timestamptz NULL",
          "12 superseded_by bigint/int8 NULL",
          "13 consolidated_at timestamp with time zone/timestamptz NULL",
          "14 consolidated_into bigint/int8 NULL",
          "15 source text/text NOT NULL",
          "16 source_session text/text NULL",
          "17 confidence real/float4 NOT NULL DEFAULT 1.0",
          "18 embedding USER-DEFINED/halfvec NULL",
          "19 embedded_at timestamp with time zone/timestamptz NULL",
          "20 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "21 row_num integer/int4 NULL",
          "22 source_markdown_slug text/text NULL",
          "23 claim_metric text/text NULL",
          "24 claim_value double precision/float8 NULL",
          "25 claim_unit text/text NULL",
          "26 claim_period text/text NULL",
          "27 event_type text/text NULL",
          "28 dimension text/text NULL",
          "29 value text/text NULL",
          "30 value_hash text/text NULL",
          "31 dim_status text/text NULL",
          "32 embedding_model text/text NULL",
          "33 embedded_text_hash text/text NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "files": {
        "columns": [
          "1 id integer/int4 NOT NULL DEFAULT nextval('files_id_seq'::regclass)",
          "2 source_id text/text NOT NULL DEFAULT 'default'::text",
          "3 page_slug text/text NULL",
          "4 page_id integer/int4 NULL",
          "5 filename text/text NOT NULL",
          "6 storage_path text/text NOT NULL",
          "7 mime_type text/text NULL",
          "8 size_bytes bigint/int8 NULL",
          "9 content_hash text/text NOT NULL",
          "10 metadata jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
          "11 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "gbrain_cycle_locks": {
        "columns": [
          "1 id text/text NOT NULL",
          "2 holder_pid integer/int4 NOT NULL",
          "3 holder_host text/text NULL",
          "4 acquired_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "5 ttl_expires_at timestamp with time zone/timestamptz NOT NULL",
          "6 last_refreshed_at timestamp with time zone/timestamptz NULL",
          "7 acquisition_token uuid/uuid NOT NULL DEFAULT gen_random_uuid()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "ingest_log": {
        "columns": [
          "1 id integer/int4 NOT NULL DEFAULT nextval('ingest_log_id_seq'::regclass)",
          "2 source_id text/text NOT NULL DEFAULT 'default'::text",
          "3 source_type text/text NOT NULL",
          "4 source_ref text/text NOT NULL",
          "5 pages_updated jsonb/jsonb NOT NULL DEFAULT '[]'::jsonb",
          "6 summary text/text NOT NULL DEFAULT ''::text",
          "7 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "links": {
        "columns": [
          "1 id integer/int4 NOT NULL DEFAULT nextval('links_id_seq'::regclass)",
          "2 from_page_id integer/int4 NOT NULL",
          "3 to_page_id integer/int4 NOT NULL",
          "4 link_type text/text NOT NULL DEFAULT ''::text",
          "5 context text/text NOT NULL DEFAULT ''::text",
          "6 link_source text/text NULL",
          "7 link_kind text/text NULL",
          "8 origin_page_id integer/int4 NULL",
          "9 origin_field text/text NULL",
          "10 resolution_type text/text NULL",
          "11 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "loop_suppressions": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('loop_suppressions_id_seq'::regclass)",
          "2 source_id text/text NOT NULL",
          "3 kind text/text NOT NULL",
          "4 value text/text NOT NULL",
          "5 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "mcp_request_log": {
        "columns": [
          "1 id integer/int4 NOT NULL DEFAULT nextval('mcp_request_log_id_seq'::regclass)",
          "2 token_name text/text NULL",
          "3 agent_name text/text NULL",
          "4 operation text/text NOT NULL",
          "5 latency_ms integer/int4 NULL",
          "6 status text/text NOT NULL DEFAULT 'success'::text",
          "7 params jsonb/jsonb NULL",
          "8 error_message text/text NULL",
          "9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "mcp_spend_log": {
        "columns": [
          "1 id integer/int4 NOT NULL DEFAULT nextval('mcp_spend_log_id_seq'::regclass)",
          "2 client_id text/text NULL",
          "3 token_name text/text NULL",
          "4 operation text/text NOT NULL",
          "5 spend_cents numeric/numeric NOT NULL DEFAULT 0",
          "6 provider text/text NULL",
          "7 model text/text NULL",
          "8 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "mcp_spend_reservations": {
        "columns": [
          "1 reservation_id uuid/uuid NOT NULL",
          "2 client_id text/text NOT NULL",
          "3 job_id bigint/int8 NULL",
          "4 estimated_cents numeric/numeric NOT NULL",
          "5 actual_cents numeric/numeric NULL",
          "6 model text/text NOT NULL",
          "7 provider text/text NOT NULL",
          "8 status text/text NOT NULL",
          "9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "10 settled_at timestamp with time zone/timestamptz NULL",
          "11 expires_at timestamp with time zone/timestamptz NOT NULL",
          "12 estimate_known boolean/bool NOT NULL DEFAULT true",
          "13 usage_unknown_reason text/text NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "migration_impact_log": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('migration_impact_log_id_seq'::regclass)",
          "2 remediation_id text/text NOT NULL",
          "3 metric_name text/text NOT NULL",
          "4 metric_before numeric/numeric NULL",
          "5 metric_after numeric/numeric NULL",
          "6 job_id bigint/int8 NULL",
          "7 source_id text/text NULL",
          "8 brain_id text/text NULL",
          "9 started_at timestamp with time zone/timestamptz NULL",
          "10 idempotency_key text/text NULL",
          "11 applied_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "12 applied_by text/text NULL",
          "13 details jsonb/jsonb NULL DEFAULT '{}'::jsonb"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "minion_attachments": {
        "columns": [
          "1 id integer/int4 NOT NULL DEFAULT nextval('minion_attachments_id_seq'::regclass)",
          "2 job_id integer/int4 NOT NULL",
          "3 filename text/text NOT NULL",
          "4 content_type text/text NOT NULL",
          "5 content bytea/bytea NULL",
          "6 storage_uri text/text NULL",
          "7 size_bytes integer/int4 NOT NULL",
          "8 sha256 text/text NOT NULL",
          "9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "minion_budget_log": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('minion_budget_log_id_seq'::regclass)",
          "2 job_id bigint/int8 NULL",
          "3 owner_id bigint/int8 NULL",
          "4 event_type text/text NOT NULL",
          "5 cents_delta integer/int4 NOT NULL",
          "6 turn_index integer/int4 NULL",
          "7 model text/text NULL",
          "8 occurred_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "minion_inbox": {
        "columns": [
          "1 id integer/int4 NOT NULL DEFAULT nextval('minion_inbox_id_seq'::regclass)",
          "2 job_id integer/int4 NOT NULL",
          "3 sender text/text NOT NULL",
          "4 payload jsonb/jsonb NOT NULL",
          "5 sent_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "6 read_at timestamp with time zone/timestamptz NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "minion_jobs": {
        "columns": [
          "1 id integer/int4 NOT NULL DEFAULT nextval('minion_jobs_id_seq'::regclass)",
          "2 name text/text NOT NULL",
          "3 queue text/text NOT NULL DEFAULT 'default'::text",
          "4 status text/text NOT NULL DEFAULT 'waiting'::text",
          "5 priority integer/int4 NOT NULL DEFAULT 0",
          "6 submission_authority jsonb/jsonb NULL",
          "7 claim_generation bigint/int8 NOT NULL DEFAULT 0",
          "8 data jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
          "9 max_attempts integer/int4 NOT NULL DEFAULT 3",
          "10 attempts_made integer/int4 NOT NULL DEFAULT 0",
          "11 attempts_started integer/int4 NOT NULL DEFAULT 0",
          "12 backoff_type text/text NOT NULL DEFAULT 'exponential'::text",
          "13 backoff_delay integer/int4 NOT NULL DEFAULT 1000",
          "14 backoff_jitter real/float4 NOT NULL DEFAULT 0.2",
          "15 stalled_counter integer/int4 NOT NULL DEFAULT 0",
          "16 max_stalled integer/int4 NOT NULL DEFAULT 5",
          "17 lock_token text/text NULL",
          "18 lock_until timestamp with time zone/timestamptz NULL",
          "19 delay_until timestamp with time zone/timestamptz NULL",
          "20 parent_job_id integer/int4 NULL",
          "21 on_child_fail text/text NOT NULL DEFAULT 'fail_parent'::text",
          "22 tokens_input integer/int4 NOT NULL DEFAULT 0",
          "23 tokens_output integer/int4 NOT NULL DEFAULT 0",
          "24 tokens_cache_read integer/int4 NOT NULL DEFAULT 0",
          "25 depth integer/int4 NOT NULL DEFAULT 0",
          "26 max_children integer/int4 NULL",
          "27 timeout_ms integer/int4 NULL",
          "28 lock_duration_ms integer/int4 NULL",
          "29 timeout_at timestamp with time zone/timestamptz NULL",
          "30 remove_on_complete boolean/bool NOT NULL DEFAULT false",
          "31 remove_on_fail boolean/bool NOT NULL DEFAULT false",
          "32 idempotency_key text/text NULL",
          "33 private_queue_owner_job_id integer/int4 NULL",
          "34 private_queue_owner_token text/text NULL",
          "35 private_queue_lease_until timestamp with time zone/timestamptz NULL",
          "36 result jsonb/jsonb NULL",
          "37 progress jsonb/jsonb NULL",
          "38 error_text text/text NULL",
          "39 stacktrace jsonb/jsonb NULL DEFAULT '[]'::jsonb",
          "40 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "41 started_at timestamp with time zone/timestamptz NULL",
          "42 finished_at timestamp with time zone/timestamptz NULL",
          "43 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "44 quiet_hours jsonb/jsonb NULL",
          "45 stagger_key text/text NULL",
          "46 budget_remaining_cents integer/int4 NULL",
          "47 budget_owner_job_id bigint/int8 NULL",
          "48 budget_root_owner_id bigint/int8 NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "minion_lease_pressure_log": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('minion_lease_pressure_log_id_seq'::regclass)",
          "2 job_id bigint/int8 NULL",
          "3 lease_key text/text NOT NULL",
          "4 active_at_bounce integer/int4 NOT NULL",
          "5 max_concurrent integer/int4 NOT NULL",
          "6 bounced_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "7 queue_name text/text NULL",
          "8 job_name text/text NULL",
          "9 model text/text NULL",
          "10 provider text/text NULL",
          "11 root_owner_id bigint/int8 NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "minion_self_fix_log": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('minion_self_fix_log_id_seq'::regclass)",
          "2 parent_id bigint/int8 NULL",
          "3 child_id bigint/int8 NULL",
          "4 classifier_bucket text/text NOT NULL",
          "5 chain_depth integer/int4 NOT NULL",
          "6 policy_applied text/text NULL",
          "7 outcome text/text NULL",
          "8 occurred_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "oauth_clients": {
        "columns": [
          "1 client_id text/text NOT NULL",
          "2 client_secret_hash text/text NULL",
          "3 client_name text/text NOT NULL",
          "4 redirect_uris ARRAY/_text NULL",
          "5 grant_types ARRAY/_text NULL DEFAULT '{client_credentials}'::text[]",
          "6 scope text/text NULL",
          "7 token_endpoint_auth_method text/text NULL",
          "8 client_id_issued_at bigint/int8 NULL",
          "9 client_secret_expires_at bigint/int8 NULL",
          "10 token_ttl integer/int4 NULL",
          "11 deleted_at timestamp with time zone/timestamptz NULL",
          "12 source_id text/text NULL",
          "13 federated_read ARRAY/_text NOT NULL DEFAULT '{}'::text[]",
          "14 budget_usd_per_day numeric/numeric NULL",
          "15 bound_tools ARRAY/_text NULL",
          "16 bound_source_id text/text NULL",
          "17 bound_brain_id text/text NULL",
          "18 bound_slug_prefixes ARRAY/_text NULL",
          "19 bound_max_concurrent integer/int4 NOT NULL DEFAULT 1",
          "20 surface text/text NULL",
          "21 surface_set_by text/text NULL",
          "22 allowed_operations ARRAY/_text NULL",
          "23 delegated_slug_prefixes ARRAY/_text NULL",
          "24 delegated_namespace text/text NOT NULL DEFAULT 'prefixes'::text",
          "25 grant_profile text/text NULL",
          "26 grant_revision integer/int4 NOT NULL DEFAULT 0",
          "27 grant_repair_reasons ARRAY/_text NOT NULL DEFAULT '{}'::text[]",
          "28 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=true force_rls=false"
      },
      "oauth_codes": {
        "columns": [
          "1 code_hash text/text NOT NULL",
          "2 client_id text/text NOT NULL",
          "3 scopes ARRAY/_text NULL",
          "4 code_challenge text/text NOT NULL",
          "5 code_challenge_method text/text NOT NULL DEFAULT 'S256'::text",
          "6 redirect_uri text/text NOT NULL",
          "7 state text/text NULL",
          "8 resource text/text NULL",
          "9 expires_at bigint/int8 NOT NULL",
          "10 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=true force_rls=false"
      },
      "oauth_grant_audit": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('oauth_grant_audit_id_seq'::regclass)",
          "2 client_id text/text NOT NULL",
          "3 actor text/text NOT NULL",
          "4 action text/text NOT NULL",
          "5 revision integer/int4 NOT NULL",
          "6 before_grant jsonb/jsonb NULL",
          "7 after_grant jsonb/jsonb NOT NULL",
          "8 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "oauth_tokens": {
        "columns": [
          "1 token_hash text/text NOT NULL",
          "2 token_type text/text NOT NULL",
          "3 client_id text/text NOT NULL",
          "4 scopes ARRAY/_text NULL",
          "5 expires_at bigint/int8 NULL",
          "6 resource text/text NULL",
          "7 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=true force_rls=false"
      },
      "op_checkpoint_paths": {
        "columns": [
          "1 op text/text NOT NULL",
          "2 fingerprint text/text NOT NULL",
          "3 path text/text NOT NULL",
          "4 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "op_checkpoints": {
        "columns": [
          "1 op text/text NOT NULL",
          "2 fingerprint text/text NOT NULL",
          "3 completed_keys jsonb/jsonb NOT NULL DEFAULT '[]'::jsonb",
          "4 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "open_loops": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('open_loops_id_seq'::regclass)",
          "2 source_id text/text NOT NULL",
          "3 dedup_key text/text NOT NULL",
          "4 loop_type text/text NOT NULL",
          "5 counterparty_slug text/text NULL",
          "6 counterparty_email text/text NULL",
          "7 summary text/text NOT NULL",
          "8 evidence jsonb/jsonb NOT NULL DEFAULT '[]'::jsonb",
          "9 thread_id text/text NULL",
          "10 page_slug text/text NULL",
          "11 due_at timestamp with time zone/timestamptz NULL",
          "12 status text/text NOT NULL DEFAULT 'open'::text",
          "13 detector text/text NOT NULL",
          "14 confidence real/float4 NOT NULL DEFAULT 1.0",
          "15 fact_id bigint/int8 NULL",
          "16 opened_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "17 last_activity_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "18 closed_at timestamp with time zone/timestamptz NULL",
          "19 closed_by text/text NULL",
          "20 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "21 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "page_aliases": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('page_aliases_id_seq'::regclass)",
          "2 source_id text/text NOT NULL",
          "3 alias_norm text/text NOT NULL",
          "4 slug text/text NOT NULL",
          "5 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "page_generation_clock": {
        "columns": [
          "1 id integer/int4 NOT NULL",
          "2 value bigint/int8 NOT NULL DEFAULT 0"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "page_projection_jobs": {
        "columns": [
          "1 source_incarnation uuid/uuid NOT NULL",
          "2 slug text/text NOT NULL",
          "3 revision uuid/uuid NOT NULL",
          "4 reason text/text NOT NULL",
          "5 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "page_versions": {
        "columns": [
          "1 id integer/int4 NOT NULL DEFAULT nextval('page_versions_id_seq'::regclass)",
          "2 page_id integer/int4 NOT NULL",
          "3 compiled_truth text/text NOT NULL",
          "4 frontmatter jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
          "5 snapshot_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "6 knowledge_revision uuid/uuid NULL",
          "7 timeline text/text NULL",
          "8 title text/text NULL",
          "9 type text/text NULL",
          "10 tags jsonb/jsonb NULL",
          "11 is_deleted boolean/bool NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "page_write_guards": {
        "columns": [
          "1 source_incarnation uuid/uuid NOT NULL",
          "2 slug text/text NOT NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "pages": {
        "columns": [
          "1 id integer/int4 NOT NULL DEFAULT nextval('pages_id_seq'::regclass)",
          "2 source_id text/text NOT NULL DEFAULT 'default'::text",
          "3 slug text/text NOT NULL",
          "4 type text/text NOT NULL",
          "5 page_kind text/text NOT NULL DEFAULT 'markdown'::text",
          "6 title text/text NOT NULL",
          "7 compiled_truth text/text NOT NULL DEFAULT ''::text",
          "8 timeline text/text NOT NULL DEFAULT ''::text",
          "9 frontmatter jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
          "10 content_hash text/text NULL",
          "11 emotional_weight real/float4 NOT NULL DEFAULT 0.0",
          "12 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "13 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "14 deleted_at timestamp with time zone/timestamptz NULL",
          "15 effective_date timestamp with time zone/timestamptz NULL",
          "16 effective_date_source text/text NULL",
          "17 import_filename text/text NULL",
          "18 salience_touched_at timestamp with time zone/timestamptz NULL",
          "19 last_retrieved_at timestamp with time zone/timestamptz NULL",
          "20 links_extracted_at timestamp with time zone/timestamptz NULL",
          "21 database_only_reason text/text NULL",
          "22 contextual_retrieval_mode text/text NULL",
          "23 corpus_generation text/text NULL",
          "24 generation bigint/int8 NOT NULL DEFAULT 1",
          "25 search_vector tsvector/tsvector NULL",
          "26 knowledge_revision uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
          "27 text_projection_revision uuid/uuid NULL",
          "28 emotional_weight_recomputed_at timestamp with time zone/timestamptz NULL",
          "29 chunker_version smallint/int2 NOT NULL DEFAULT 1",
          "30 source_path text/text NULL",
          "31 ingested_via text/text NULL",
          "32 ingested_at timestamp with time zone/timestamptz NULL",
          "33 source_uri text/text NULL",
          "34 source_kind text/text NULL",
          "35 embedding_signature text/text NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "persistence_brain": {
        "columns": [
          "1 singleton integer/int4 NOT NULL",
          "2 brain_id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
          "3 enabled boolean/bool NOT NULL DEFAULT false",
          "4 activated_at timestamp with time zone/timestamptz NULL",
          "5 writer_protocol_floor integer/int4 NOT NULL DEFAULT 1",
          "6 skill_bundles_enabled boolean/bool NOT NULL DEFAULT false",
          "7 writer_version_cutoff timestamp with time zone/timestamptz NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "persistence_counters": {
        "columns": [
          "1 key text/text NOT NULL",
          "2 outstanding_count bigint/int8 NOT NULL DEFAULT 0",
          "3 intent_bytes bigint/int8 NOT NULL DEFAULT 0",
          "4 lifetime_ids bigint/int8 NOT NULL DEFAULT 0",
          "5 terminal_bytes bigint/int8 NOT NULL DEFAULT 0",
          "6 recovery_bytes bigint/int8 NOT NULL DEFAULT 0"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "persistence_effects": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('persistence_effects_id_seq'::regclass)",
          "2 request_id uuid/uuid NOT NULL",
          "3 kind text/text NOT NULL",
          "4 revision uuid/uuid NULL",
          "5 data jsonb/jsonb NOT NULL",
          "6 state text/text NOT NULL DEFAULT 'queued'::text",
          "7 execution_token uuid/uuid NULL",
          "8 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "9 source_id text/text NULL",
          "10 source_incarnation uuid/uuid NULL",
          "11 worktree_id uuid/uuid NULL",
          "12 claim_expires_at timestamp with time zone/timestamptz NULL",
          "13 next_attempt_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "14 attempts integer/int4 NOT NULL DEFAULT 0",
          "15 error_code text/text NULL",
          "16 outcome jsonb/jsonb NULL",
          "17 recovery jsonb/jsonb NULL",
          "18 recovery_bytes bigint/int8 NOT NULL DEFAULT 0"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "persistence_host_bindings": {
        "columns": [
          "1 worktree_id uuid/uuid NOT NULL",
          "2 host_id uuid/uuid NOT NULL",
          "3 local_path text/text NOT NULL",
          "4 coordination_path text/text NOT NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "persistence_local_writers": {
        "columns": [
          "1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
          "2 lane text/text NOT NULL",
          "3 credential_hash text/text NOT NULL",
          "4 grant_ceiling jsonb/jsonb NOT NULL",
          "5 revoked_at timestamp with time zone/timestamptz NULL",
          "6 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "persistence_requests": {
        "columns": [
          "1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
          "2 principal_kind text/text NOT NULL",
          "3 principal_id text/text NOT NULL",
          "4 request_id uuid/uuid NOT NULL",
          "5 operation text/text NOT NULL",
          "6 source_id text/text NOT NULL",
          "7 source_incarnation uuid/uuid NOT NULL",
          "8 page_id integer/int4 NULL",
          "9 slug text/text NOT NULL",
          "10 worktree_id uuid/uuid NULL",
          "11 topology_generation bigint/int8 NULL",
          "12 digest text/text NOT NULL",
          "13 intent jsonb/jsonb NULL",
          "14 authority jsonb/jsonb NOT NULL",
          "15 sequence bigint/int8 NOT NULL DEFAULT nextval('persistence_requests_sequence_seq'::regclass)",
          "16 state text/text NOT NULL DEFAULT 'queued'::text",
          "17 execution_token uuid/uuid NULL",
          "18 claim_expires_at timestamp with time zone/timestamptz NULL",
          "19 recovery jsonb/jsonb NULL",
          "20 recovery_bytes bigint/int8 NOT NULL DEFAULT 0",
          "21 intent_bytes bigint/int8 NOT NULL",
          "22 terminal_reservation bigint/int8 NOT NULL",
          "23 outcome jsonb/jsonb NULL",
          "24 error_code text/text NULL",
          "25 error_message text/text NULL",
          "26 blocked_reason text/text NULL",
          "27 compacted boolean/bool NOT NULL DEFAULT false",
          "28 publication_started boolean/bool NOT NULL DEFAULT false",
          "29 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "30 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "31 completed_at timestamp with time zone/timestamptz NULL",
          "32 target_kind text/text NOT NULL DEFAULT 'page'::text",
          "33 protocol_version integer/int4 NOT NULL DEFAULT 1",
          "34 admitter_version text/text NULL",
          "35 admitter_host_id uuid/uuid NULL",
          "36 consumer_version text/text NULL",
          "37 consumer_host_id uuid/uuid NULL",
          "38 published_at timestamp with time zone/timestamptz NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "persistence_source_bindings": {
        "columns": [
          "1 source_id text/text NOT NULL",
          "2 source_incarnation uuid/uuid NOT NULL",
          "3 worktree_id uuid/uuid NOT NULL",
          "4 relative_path text/text NOT NULL DEFAULT ''::text",
          "5 topology_generation bigint/int8 NOT NULL DEFAULT 1"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "persistence_topology_changes": {
        "columns": [
          "1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
          "2 principal_id uuid/uuid NOT NULL",
          "3 request_id uuid/uuid NOT NULL",
          "4 digest text/text NOT NULL",
          "5 operation text/text NOT NULL",
          "6 source_id text/text NOT NULL",
          "7 source_incarnation uuid/uuid NULL",
          "8 worktree_ids ARRAY/_uuid NOT NULL DEFAULT '{}'::uuid[]",
          "9 state text/text NOT NULL",
          "10 recovery jsonb/jsonb NULL",
          "11 recovery_bytes bigint/int8 NOT NULL DEFAULT 0",
          "12 intent_bytes bigint/int8 NOT NULL DEFAULT 0",
          "13 terminal_bytes bigint/int8 NOT NULL DEFAULT 2048",
          "14 outcome jsonb/jsonb NULL",
          "15 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "16 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "persistence_worktrees": {
        "columns": [
          "1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
          "2 owner_host_id uuid/uuid NULL",
          "3 owner_epoch bigint/int8 NOT NULL DEFAULT 0",
          "4 topology_generation bigint/int8 NOT NULL DEFAULT 1",
          "5 state text/text NOT NULL DEFAULT 'active'::text",
          "6 manifest jsonb/jsonb NULL",
          "7 heartbeat_at timestamp with time zone/timestamptz NULL",
          "8 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "persistence_writer_protocols": {
        "columns": [
          "1 worktree_id uuid/uuid NOT NULL",
          "2 host_id uuid/uuid NOT NULL",
          "3 owner_epoch bigint/int8 NOT NULL",
          "4 protocol_version integer/int4 NOT NULL",
          "5 registered_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=true force_rls=false"
      },
      "query_cache": {
        "columns": [
          "1 id text/text NOT NULL",
          "2 query_text text/text NOT NULL",
          "3 source_id text/text NOT NULL DEFAULT 'default'::text",
          "4 embedding USER-DEFINED/halfvec NULL",
          "5 results jsonb/jsonb NOT NULL DEFAULT '[]'::jsonb",
          "6 meta jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
          "7 ttl_seconds integer/int4 NOT NULL DEFAULT 3600",
          "8 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "9 hit_count integer/int4 NOT NULL DEFAULT 0",
          "10 last_hit_at timestamp with time zone/timestamptz NULL",
          "11 knobs_hash text/text NULL",
          "12 page_generations jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
          "13 max_generation_at_store bigint/int8 NOT NULL DEFAULT 0"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "raw_data": {
        "columns": [
          "1 id integer/int4 NOT NULL DEFAULT nextval('raw_data_id_seq'::regclass)",
          "2 page_id integer/int4 NOT NULL",
          "3 source text/text NOT NULL",
          "4 data jsonb/jsonb NOT NULL",
          "5 fetched_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "search_telemetry": {
        "columns": [
          "1 date text/text NOT NULL",
          "2 mode text/text NOT NULL",
          "3 intent text/text NOT NULL",
          "4 count integer/int4 NOT NULL DEFAULT 0",
          "5 sum_results integer/int4 NOT NULL DEFAULT 0",
          "6 sum_tokens integer/int4 NOT NULL DEFAULT 0",
          "7 sum_budget_dropped integer/int4 NOT NULL DEFAULT 0",
          "8 cache_hit integer/int4 NOT NULL DEFAULT 0",
          "9 cache_miss integer/int4 NOT NULL DEFAULT 0",
          "10 first_seen timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "11 last_seen timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "12 sum_rank1_score double precision/float8 NOT NULL DEFAULT 0",
          "13 count_rank1 integer/int4 NOT NULL DEFAULT 0",
          "14 rank1_lt_solid integer/int4 NOT NULL DEFAULT 0",
          "15 rank1_solid integer/int4 NOT NULL DEFAULT 0",
          "16 rank1_high integer/int4 NOT NULL DEFAULT 0"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "session_context_state": {
        "columns": [
          "1 source_id text/text NOT NULL",
          "2 client_id text/text NOT NULL DEFAULT 'local'::text",
          "3 session_id text/text NOT NULL",
          "4 standing_entities jsonb/jsonb NOT NULL DEFAULT '[]'::jsonb",
          "5 surfaced_slugs jsonb/jsonb NOT NULL DEFAULT '[]'::jsonb",
          "6 checkpoint_manifest jsonb/jsonb NOT NULL DEFAULT '[]'::jsonb",
          "7 last_wake_at timestamp with time zone/timestamptz NULL",
          "8 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "shared_skill_delivery_batches": {
        "columns": [
          "1 token uuid/uuid NOT NULL",
          "2 installation_id uuid/uuid NOT NULL",
          "3 epoch bigint/int8 NOT NULL",
          "4 sequence bigint/int8 NOT NULL",
          "5 view_token text/text NOT NULL",
          "6 authority_digest text/text NOT NULL",
          "7 revisions jsonb/jsonb NOT NULL",
          "8 issued_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "9 acknowledged_at timestamp with time zone/timestamptz NULL",
          "10 evidence jsonb/jsonb NULL"
        ],
        "flags": "relkind=r rls=true force_rls=false"
      },
      "shared_skill_heads": {
        "columns": [
          "1 source_id text/text NOT NULL",
          "2 source_incarnation uuid/uuid NOT NULL",
          "3 pack_id text/text NOT NULL",
          "4 name text/text NOT NULL",
          "5 revision uuid/uuid NOT NULL",
          "6 metadata jsonb/jsonb NOT NULL",
          "7 deleted boolean/bool NOT NULL DEFAULT false",
          "8 policy_epoch text/text NOT NULL",
          "9 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=true force_rls=false"
      },
      "shared_skill_members": {
        "columns": [
          "1 installation_id uuid/uuid NOT NULL",
          "2 principal_kind text/text NOT NULL",
          "3 principal_id text/text NOT NULL",
          "4 adapter text/text NOT NULL",
          "5 brain_id uuid/uuid NOT NULL",
          "6 epoch bigint/int8 NOT NULL DEFAULT 1",
          "7 active boolean/bool NOT NULL DEFAULT true",
          "8 follow_policy jsonb/jsonb NOT NULL",
          "9 issued_sequence bigint/int8 NOT NULL DEFAULT 0",
          "10 acknowledged_sequence bigint/int8 NOT NULL DEFAULT 0",
          "11 desired_view text/text NULL",
          "12 acknowledged_view text/text NULL",
          "13 joined_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "14 last_seen_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "15 join_window timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "16 join_count integer/int4 NOT NULL DEFAULT 1"
        ],
        "flags": "relkind=r rls=true force_rls=false"
      },
      "shared_skill_packs": {
        "columns": [
          "1 source_id text/text NOT NULL",
          "2 source_incarnation uuid/uuid NOT NULL",
          "3 pack_id text/text NOT NULL",
          "4 revision uuid/uuid NOT NULL",
          "5 manifest jsonb/jsonb NOT NULL",
          "6 manifest_hash text/text NOT NULL"
        ],
        "flags": "relkind=r rls=true force_rls=false"
      },
      "shared_skill_policies": {
        "columns": [
          "1 source_id text/text NOT NULL",
          "2 source_incarnation uuid/uuid NOT NULL",
          "3 epoch uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
          "4 policy jsonb/jsonb NOT NULL",
          "5 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=true force_rls=false"
      },
      "shared_skill_policy_audit": {
        "columns": [
          "1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
          "2 source_id text/text NOT NULL",
          "3 source_incarnation uuid/uuid NOT NULL",
          "4 principal_kind text/text NOT NULL",
          "5 principal_id text/text NOT NULL",
          "6 previous_epoch text/text NOT NULL",
          "7 epoch uuid/uuid NOT NULL",
          "8 policy jsonb/jsonb NOT NULL",
          "9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=true force_rls=false"
      },
      "shared_skill_revision_leases": {
        "columns": [
          "1 lease_kind text/text NOT NULL",
          "2 lease_id uuid/uuid NOT NULL",
          "3 source_id text/text NOT NULL",
          "4 source_incarnation uuid/uuid NOT NULL",
          "5 pack_id text/text NOT NULL",
          "6 name text/text NOT NULL",
          "7 revision uuid/uuid NOT NULL",
          "8 principal_kind text/text NOT NULL",
          "9 principal_id text/text NOT NULL",
          "10 expires_at timestamp with time zone/timestamptz NOT NULL"
        ],
        "flags": "relkind=r rls=true force_rls=false"
      },
      "shared_skill_revisions": {
        "columns": [
          "1 source_id text/text NOT NULL",
          "2 source_incarnation uuid/uuid NOT NULL",
          "3 pack_id text/text NOT NULL",
          "4 name text/text NOT NULL",
          "5 revision uuid/uuid NOT NULL",
          "6 metadata jsonb/jsonb NOT NULL",
          "7 files jsonb/jsonb NOT NULL",
          "8 deleted boolean/bool NOT NULL DEFAULT false",
          "9 policy_epoch text/text NOT NULL",
          "10 request_id uuid/uuid NOT NULL",
          "11 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "12 stored_bytes bigint/int8 NULL"
        ],
        "flags": "relkind=r rls=true force_rls=false"
      },
      "shared_skill_state": {
        "columns": [
          "1 singleton integer/int4 NOT NULL",
          "2 token_secret text/text NOT NULL DEFAULT (replace((gen_random_uuid())::text, '-'::text, ''::text) || replace((gen_random_uuid())::text, '-'::text, ''::text))",
          "3 serving_epoch uuid/uuid NOT NULL DEFAULT gen_random_uuid()"
        ],
        "flags": "relkind=r rls=true force_rls=false"
      },
      "slug_aliases": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('slug_aliases_id_seq'::regclass)",
          "2 source_id text/text NOT NULL",
          "3 alias_slug text/text NOT NULL",
          "4 canonical_slug text/text NOT NULL",
          "5 notes text/text NULL",
          "6 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "source_ingestion_receipts": {
        "columns": [
          "1 id uuid/uuid NOT NULL",
          "2 source_id text/text NOT NULL",
          "3 source_incarnation uuid/uuid NOT NULL",
          "4 approved_revision text/text NOT NULL",
          "5 profile text/text NOT NULL",
          "6 schema_fingerprint text/text NOT NULL",
          "7 extractor_version text/text NOT NULL",
          "8 revision integer/int4 NOT NULL DEFAULT 1",
          "9 phase text/text NOT NULL DEFAULT 'ADMITTED'::text",
          "10 outcome text/text NOT NULL DEFAULT 'incomplete'::text",
          "11 counts jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
          "12 lifecycle_request_ids ARRAY/_uuid NOT NULL DEFAULT '{}'::uuid[]",
          "13 checkpoint_refs jsonb/jsonb NOT NULL DEFAULT '[]'::jsonb",
          "14 diagnostic text/text NULL",
          "15 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "16 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "17 completed_at timestamp with time zone/timestamptz NULL",
          "18 discarded_at timestamp with time zone/timestamptz NULL",
          "19 policy_fingerprint text/text NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "sources": {
        "columns": [
          "1 id text/text NOT NULL",
          "2 name text/text NOT NULL",
          "3 local_path text/text NULL",
          "4 last_commit text/text NULL",
          "5 last_sync_at timestamp with time zone/timestamptz NULL",
          "6 config jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
          "7 archived boolean/bool NOT NULL DEFAULT false",
          "8 archived_at timestamp with time zone/timestamptz NULL",
          "9 archive_expires_at timestamp with time zone/timestamptz NULL",
          "10 contextual_retrieval_mode text/text NULL",
          "11 trust_frontmatter_overrides boolean/bool NOT NULL DEFAULT false",
          "12 newest_content_at timestamp with time zone/timestamptz NULL",
          "13 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "14 incarnation uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
          "15 chunker_version text/text NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "subagent_messages": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('subagent_messages_id_seq'::regclass)",
          "2 job_id bigint/int8 NOT NULL",
          "3 message_idx integer/int4 NOT NULL",
          "4 role text/text NOT NULL",
          "5 content_blocks jsonb/jsonb NOT NULL",
          "6 schema_version integer/int4 NOT NULL DEFAULT 1",
          "7 provider_id text/text NULL",
          "8 tokens_in integer/int4 NULL",
          "9 tokens_out integer/int4 NULL",
          "10 tokens_cache_read integer/int4 NULL",
          "11 tokens_cache_create integer/int4 NULL",
          "12 model text/text NULL",
          "13 ended_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "subagent_rate_leases": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('subagent_rate_leases_id_seq'::regclass)",
          "2 key text/text NOT NULL",
          "3 owner_job_id bigint/int8 NOT NULL",
          "4 acquired_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "5 expires_at timestamp with time zone/timestamptz NOT NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "subagent_tool_executions": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('subagent_tool_executions_id_seq'::regclass)",
          "2 job_id bigint/int8 NOT NULL",
          "3 message_idx integer/int4 NOT NULL",
          "4 tool_use_id text/text NOT NULL",
          "5 tool_name text/text NOT NULL",
          "6 input jsonb/jsonb NOT NULL",
          "7 status text/text NOT NULL",
          "8 output jsonb/jsonb NULL",
          "9 error text/text NULL",
          "10 schema_version integer/int4 NOT NULL DEFAULT 1",
          "11 provider_id text/text NULL",
          "12 ordinal integer/int4 NULL",
          "13 gbrain_tool_use_id uuid/uuid NULL",
          "14 started_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "15 ended_at timestamp with time zone/timestamptz NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "synthesis_evidence": {
        "columns": [
          "1 synthesis_page_id integer/int4 NOT NULL",
          "2 take_page_id integer/int4 NOT NULL",
          "3 take_row_num integer/int4 NOT NULL",
          "4 citation_index integer/int4 NOT NULL",
          "5 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "tags": {
        "columns": [
          "1 id integer/int4 NOT NULL DEFAULT nextval('tags_id_seq'::regclass)",
          "2 page_id integer/int4 NOT NULL",
          "3 tag text/text NOT NULL",
          "4 tag_source text/text NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "take_domain_assignments": {
        "columns": [
          "1 take_id bigint/int8 NOT NULL",
          "2 domain text/text NOT NULL",
          "3 pack text/text NOT NULL",
          "4 source text/text NULL",
          "5 confidence real/float4 NOT NULL DEFAULT 1.0",
          "6 assigned_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "take_grade_cache": {
        "columns": [
          "1 take_id bigint/int8 NOT NULL",
          "2 prompt_version text/text NOT NULL",
          "3 judge_model_id text/text NOT NULL",
          "4 evidence_signature text/text NOT NULL",
          "5 wave_version text/text NOT NULL DEFAULT 'v0.36.1.0'::text",
          "6 graded_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "7 verdict text/text NOT NULL",
          "8 confidence real/float4 NOT NULL",
          "9 applied boolean/bool NOT NULL DEFAULT false",
          "10 cost_usd numeric/numeric NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "take_nudge_log": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('take_nudge_log_id_seq'::regclass)",
          "2 source_id text/text NOT NULL",
          "3 take_id bigint/int8 NULL",
          "4 proposal_id bigint/int8 NULL",
          "5 nudge_pattern text/text NOT NULL",
          "6 fired_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "7 channel text/text NOT NULL DEFAULT 'stderr'::text",
          "8 wave_version text/text NOT NULL DEFAULT 'v0.36.1.0'::text"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "take_proposals": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('take_proposals_id_seq'::regclass)",
          "2 source_id text/text NOT NULL",
          "3 page_slug text/text NOT NULL",
          "4 content_hash text/text NOT NULL",
          "5 prompt_version text/text NOT NULL",
          "6 wave_version text/text NOT NULL DEFAULT 'v0.36.1.0'::text",
          "7 proposed_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "8 proposal_run_id text/text NOT NULL",
          "9 status text/text NOT NULL DEFAULT 'pending'::text",
          "10 claim_text text/text NOT NULL",
          "11 kind text/text NOT NULL",
          "12 holder text/text NOT NULL",
          "13 weight real/float4 NOT NULL",
          "14 domain text/text NULL",
          "15 dedup_against_fence_rows jsonb/jsonb NULL",
          "16 model_id text/text NOT NULL",
          "17 acted_at timestamp with time zone/timestamptz NULL",
          "18 acted_by text/text NULL",
          "19 promoted_row_num integer/int4 NULL",
          "20 predicted_brier real/float4 NULL",
          "21 predicted_brier_bucket_n integer/int4 NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "takes": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('takes_id_seq'::regclass)",
          "2 page_id integer/int4 NOT NULL",
          "3 row_num integer/int4 NOT NULL",
          "4 claim text/text NOT NULL",
          "5 kind text/text NOT NULL",
          "6 holder text/text NOT NULL",
          "7 weight real/float4 NOT NULL DEFAULT 0.5",
          "8 since_date text/text NULL",
          "9 until_date text/text NULL",
          "10 source text/text NULL",
          "11 superseded_by integer/int4 NULL",
          "12 active boolean/bool NOT NULL DEFAULT true",
          "13 resolved_at timestamp with time zone/timestamptz NULL",
          "14 resolved_outcome boolean/bool NULL",
          "15 resolved_value real/float4 NULL",
          "16 resolved_unit text/text NULL",
          "17 resolved_source text/text NULL",
          "18 resolved_by text/text NULL",
          "19 embedding USER-DEFINED/vector NULL",
          "20 embedded_at timestamp with time zone/timestamptz NULL",
          "21 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "22 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "23 resolved_quality text/text NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "think_ab_results": {
        "columns": [
          "1 id bigint/int8 NOT NULL DEFAULT nextval('think_ab_results_id_seq'::regclass)",
          "2 source_id text/text NOT NULL",
          "3 wave_version text/text NOT NULL DEFAULT 'v0.36.1.0'::text",
          "4 ran_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
          "5 question text/text NOT NULL",
          "6 baseline_answer text/text NOT NULL",
          "7 with_calibration_answer text/text NOT NULL",
          "8 preferred text/text NOT NULL",
          "9 model_id text/text NULL",
          "10 notes text/text NULL"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      },
      "timeline_entries": {
        "columns": [
          "1 id integer/int4 NOT NULL DEFAULT nextval('timeline_entries_id_seq'::regclass)",
          "2 page_id integer/int4 NOT NULL",
          "3 date date/date NOT NULL",
          "4 source text/text NOT NULL DEFAULT ''::text",
          "5 summary text/text NOT NULL",
          "6 detail text/text NOT NULL DEFAULT ''::text",
          "7 event_page_id integer/int4 NULL",
          "8 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
        ],
        "flags": "relkind=r rls=false force_rls=false"
      }
    },
    "triggers": {
      "content_chunks.chunk_search_vector_trigger": "CREATE TRIGGER chunk_search_vector_trigger BEFORE INSERT OR UPDATE OF chunk_text, doc_comment, symbol_name_qualified ON public.content_chunks FOR EACH ROW EXECUTE FUNCTION update_chunk_search_vector()",
      "facts.facts_preserve_withdrawal": "CREATE TRIGGER facts_preserve_withdrawal BEFORE INSERT OR UPDATE OF fact, source_id, visibility, entity_slug, expired_at ON public.facts FOR EACH ROW EXECUTE FUNCTION gbrain_preserve_fact_withdrawal()",
      "facts.managed_writer_guard": "CREATE TRIGGER managed_writer_guard BEFORE INSERT OR DELETE OR UPDATE ON public.facts FOR EACH ROW EXECUTE FUNCTION gbrain_require_managed_writer()",
      "minion_jobs.minion_queue_protocol": "CREATE TRIGGER minion_queue_protocol BEFORE INSERT OR UPDATE ON public.minion_jobs FOR EACH ROW EXECUTE FUNCTION enforce_minion_queue_protocol()",
      "page_aliases.managed_writer_guard": "CREATE TRIGGER managed_writer_guard BEFORE INSERT OR DELETE OR UPDATE ON public.page_aliases FOR EACH ROW EXECUTE FUNCTION gbrain_require_managed_writer()",
      "pages.bump_page_generation_clock_trg": "CREATE TRIGGER bump_page_generation_clock_trg AFTER INSERT OR DELETE OR UPDATE ON public.pages FOR EACH STATEMENT EXECUTE FUNCTION bump_page_generation_clock_fn()",
      "pages.bump_page_generation_trg": "CREATE TRIGGER bump_page_generation_trg BEFORE INSERT OR UPDATE ON public.pages FOR EACH ROW EXECUTE FUNCTION bump_page_generation_fn()",
      "pages.managed_writer_guard": "CREATE TRIGGER managed_writer_guard BEFORE INSERT OR DELETE OR UPDATE ON public.pages FOR EACH ROW EXECUTE FUNCTION gbrain_require_managed_writer()",
      "pages.pages_clear_atom_scan_state": "CREATE TRIGGER pages_clear_atom_scan_state AFTER UPDATE ON public.pages FOR EACH ROW EXECUTE FUNCTION gbrain_clear_atom_page_state()",
      "pages.pages_knowledge_revision": "CREATE TRIGGER pages_knowledge_revision BEFORE UPDATE ON public.pages FOR EACH ROW EXECUTE FUNCTION gbrain_advance_page_revision()",
      "pages.pages_projection_queue": "CREATE TRIGGER pages_projection_queue AFTER INSERT OR DELETE OR UPDATE ON public.pages FOR EACH ROW EXECUTE FUNCTION gbrain_queue_page_projection()",
      "pages.trg_pages_search_vector": "CREATE TRIGGER trg_pages_search_vector BEFORE INSERT OR UPDATE OF title, timeline ON public.pages FOR EACH ROW EXECUTE FUNCTION update_page_search_vector()",
      "persistence_brain.gbrain_protocol_activation": "CREATE TRIGGER gbrain_protocol_activation BEFORE UPDATE ON public.persistence_brain FOR EACH ROW EXECUTE FUNCTION gbrain_guard_protocol_activation()",
      "persistence_effects.gbrain_effect_protocol": "CREATE TRIGGER gbrain_effect_protocol BEFORE INSERT OR DELETE OR UPDATE ON public.persistence_effects FOR EACH ROW EXECUTE FUNCTION gbrain_guard_effect_protocol()",
      "persistence_requests.gbrain_request_protocol": "CREATE TRIGGER gbrain_request_protocol BEFORE INSERT OR DELETE OR UPDATE ON public.persistence_requests FOR EACH ROW EXECUTE FUNCTION gbrain_guard_request_protocol()",
      "shared_skill_delivery_batches.shared_skill_delivery_lease": "CREATE TRIGGER shared_skill_delivery_lease AFTER INSERT OR UPDATE OF revisions ON public.shared_skill_delivery_batches FOR EACH ROW EXECUTE FUNCTION gbrain_lease_shared_skill_delivery()",
      "shared_skill_heads.gbrain_skill_publication": "CREATE TRIGGER gbrain_skill_publication BEFORE INSERT OR DELETE OR UPDATE ON public.shared_skill_heads FOR EACH ROW EXECUTE FUNCTION gbrain_guard_skill_publication()",
      "shared_skill_packs.gbrain_skill_publication": "CREATE TRIGGER gbrain_skill_publication BEFORE INSERT OR DELETE OR UPDATE ON public.shared_skill_packs FOR EACH ROW EXECUTE FUNCTION gbrain_guard_skill_publication()",
      "shared_skill_revisions.gbrain_skill_publication": "CREATE TRIGGER gbrain_skill_publication BEFORE INSERT OR DELETE OR UPDATE ON public.shared_skill_revisions FOR EACH ROW EXECUTE FUNCTION gbrain_guard_skill_publication()",
      "slug_aliases.managed_writer_guard": "CREATE TRIGGER managed_writer_guard BEFORE INSERT OR DELETE OR UPDATE ON public.slug_aliases FOR EACH ROW EXECUTE FUNCTION gbrain_require_managed_writer()",
      "sources.managed_writer_guard": "CREATE TRIGGER managed_writer_guard BEFORE INSERT OR DELETE OR UPDATE ON public.sources FOR EACH ROW EXECUTE FUNCTION gbrain_require_managed_writer()",
      "tags.managed_writer_guard": "CREATE TRIGGER managed_writer_guard BEFORE INSERT OR DELETE OR UPDATE ON public.tags FOR EACH ROW EXECUTE FUNCTION gbrain_require_managed_writer()",
      "tags.tags_knowledge_revision": "CREATE TRIGGER tags_knowledge_revision AFTER INSERT OR DELETE OR UPDATE ON public.tags FOR EACH ROW EXECUTE FUNCTION gbrain_advance_tag_revision()",
      "takes.managed_writer_guard": "CREATE TRIGGER managed_writer_guard BEFORE INSERT OR DELETE OR UPDATE ON public.takes FOR EACH ROW EXECUTE FUNCTION gbrain_require_managed_writer()",
      "timeline_entries.managed_writer_guard": "CREATE TRIGGER managed_writer_guard BEFORE INSERT OR DELETE OR UPDATE ON public.timeline_entries FOR EACH ROW EXECUTE FUNCTION gbrain_require_managed_writer()"
    },
    "viewColumns": {
      "page_links": [
        "1 id integer/int4 NULL",
        "2 from_page_id integer/int4 NULL",
        "3 to_page_id integer/int4 NULL"
      ]
    },
    "views": {
      "page_links": "relkind=v definition_sha256=3597a75aab3befa3e1aff5bdb972d712d075d5d35a4f9567847de46eaaad3cb0"
    }
  },
  "normalizer": "schema-catalog-lines-v1"
}