Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
{
"golden": {
"constraints": {
"access_group_members.access_group_members_group_id_fkey": "f FOREIGN KEY (group_id) REFERENCES access_groups(id) ON DELETE CASCADE",
"access_group_members.access_group_members_member_id_fkey": "f FOREIGN KEY (member_id) REFERENCES access_members(id) ON DELETE CASCADE",
"access_group_members.access_group_members_pkey": "p PRIMARY KEY (group_id, member_id)",
"access_groups.access_groups_id_check": "c CHECK ((id ~ '^[a-z0-9][a-z0-9._-]{0,63}$'::text))",
"access_groups.access_groups_pkey": "p PRIMARY KEY (id)",
"access_member_links.access_member_links_external_id_check": "c CHECK (((length(external_id) >= 1) AND (length(external_id) <= 256) AND (external_id ~ '^[!-~]+$'::text)))",
"access_member_links.access_member_links_member_id_fkey": "f FOREIGN KEY (member_id) REFERENCES access_members(id) ON DELETE CASCADE",
"access_member_links.access_member_links_pkey": "p PRIMARY KEY (system, external_id)",
"access_member_links.access_member_links_system_check": "c CHECK ((system ~ '^[a-z][a-z0-9_-]{0,31}$'::text))",
"access_member_sources.access_member_sources_member_id_fkey": "f FOREIGN KEY (member_id) REFERENCES access_members(id) ON DELETE CASCADE",
"access_member_sources.access_member_sources_pkey": "p PRIMARY KEY (member_id, source_id)",
"access_members.access_members_email_check": "c CHECK (((email IS NULL) OR ((length(email) <= 254) AND (email ~ '^[^@[:space:]]+@[^@[:space:]]+$'::text))))",
"access_members.access_members_id_check": "c CHECK ((id ~ '^[a-z0-9][a-z0-9._-]{0,63}$'::text))",
"access_members.access_members_kind_check": "c CHECK ((kind = ANY (ARRAY['person'::text, 'audience'::text])))",
"access_members.access_members_pkey": "p PRIMARY KEY (id)",
"access_pending_coverage.access_pending_coverage_pkey": "p PRIMARY KEY (source_id, prefix, reason)",
"access_pending_coverage.access_pending_coverage_prefix_check": "c CHECK (((prefix = ''::text) OR ((length(prefix) <= 512) AND (prefix ~ '^(([a-z0-9][a-z0-9._-]*/)+|([a-z0-9][a-z0-9._-]*/)*[a-z0-9][a-z0-9._-]*)$'::text) AND (POSITION(('..'::text) IN (prefix)) = 0))))",
"access_pending_coverage.access_pending_coverage_reason_check": "c CHECK ((reason = ANY (ARRAY['pending'::text, 'invalid'::text])))",
"access_pending_coverage.access_pending_coverage_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES access_policy_state(source_id) ON DELETE CASCADE",
"access_policy_migrations.access_policy_migrations_direction_check": "c CHECK ((direction = ANY (ARRAY['to_git'::text, 'to_database'::text])))",
"access_policy_migrations.access_policy_migrations_phase_check": "c CHECK ((phase = ANY (ARRAY['started'::text, 'exported'::text, 'committed'::text, 'switched'::text])))",
"access_policy_migrations.access_policy_migrations_pkey": "p PRIMARY KEY (id)",
"access_policy_migrations.access_policy_migrations_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES access_policy_state(source_id) ON DELETE CASCADE",
"access_policy_revisions.access_policy_revisions_change_kind_check": "c CHECK ((change_kind = ANY (ARRAY['narrowing'::text, 'widening'::text, 'mixed'::text, 'unchanged'::text])))",
"access_policy_revisions.access_policy_revisions_pkey": "p PRIMARY KEY (source_id, revision)",
"access_policy_revisions.access_policy_revisions_revision_check": "c CHECK ((revision > 0))",
"access_policy_revisions.access_policy_revisions_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES access_policy_state(source_id) ON DELETE CASCADE",
"access_policy_state.access_policy_state_pkey": "p PRIMARY KEY (source_id)",
"access_policy_state.access_policy_state_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"access_rules.access_rules_pkey": "p PRIMARY KEY (source_id, rule_id)",
"access_rules.access_rules_prefix_check": "c CHECK (((length(prefix) <= 512) AND (prefix ~ '^(([a-z0-9][a-z0-9._-]*/)+|([a-z0-9][a-z0-9._-]*/)*[a-z0-9][a-z0-9._-]*)$'::text) AND (POSITION(('..'::text) IN (prefix)) = 0)))",
"access_rules.access_rules_rule_id_check": "c CHECK ((rule_id ~ '^[a-z0-9][a-z0-9._-]{0,63}$'::text))",
"access_rules.access_rules_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES access_policy_state(source_id) ON DELETE CASCADE",
"access_tokens.access_tokens_min_trust_check": "c CHECK (((min_trust IS NULL) OR (min_trust = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text]))))",
"access_tokens.access_tokens_pkey": "p PRIMARY KEY (id)",
"access_tokens.access_tokens_private_facts_check": "c CHECK ((private_facts = ANY (ARRAY['none'::text, 'granted_sources'::text])))",
"access_tokens.access_tokens_private_pages_check": "c CHECK ((private_pages = ANY (ARRAY['none'::text, 'granted_sources'::text])))",
"access_tokens.access_tokens_source_grant_check": "c CHECK ((source_grant = ANY (ARRAY['default'::text, 'scalar'::text, 'federated'::text, 'none'::text])))",
"access_tokens.access_tokens_token_hash_key": "u UNIQUE (token_hash)",
"access_tokens.trust_generation_update": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"belief_commit_marks.belief_commit_marks_pkey": "p PRIMARY KEY (publication_id)",
"belief_events.belief_events_event_key_key": "u UNIQUE (event_key)",
"belief_events.belief_events_origin_check": "c CHECK ((origin = ANY (ARRAY['live'::text, 'unmanaged'::text, 'baseline'::text, 'backfill'::text, 'reconcile'::text])))",
"belief_events.belief_events_pkey": "p PRIMARY KEY (id)",
"belief_events.belief_events_subject_kind_check": "c CHECK ((subject_kind = ANY (ARRAY['page'::text, 'fact'::text, 'take'::text, 'link'::text, 'link_transition'::text, 'coverage'::text])))",
"belief_events.belief_events_tier_basis_check": "c CHECK ((tier_basis = ANY (ARRAY['row'::text, 'writer'::text, 'unknown'::text])))",
"belief_page_lifetimes.belief_page_lifetimes_pkey": "p PRIMARY KEY (page_lifetime)",
"belief_redactions.belief_redactions_pkey": "p PRIMARY KEY (id)",
"belief_retier_manifest.belief_retier_manifest_pkey": "p PRIMARY KEY (summary_event, subject_kind, subject_key)",
"budget_ledger.budget_ledger_pkey": "p PRIMARY KEY (scope, resolver_id, local_date)",
"budget_reservations.budget_reservations_pkey": "p PRIMARY KEY (reservation_id)",
"calibration_profiles.calibration_profiles_pkey": "p PRIMARY KEY (id)",
"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)",
"chronicle_judge_reservations.chronicle_judge_reservations_pkey": "p PRIMARY KEY (id)",
"chronicle_page_state.chronicle_page_state_attempts_check": "c CHECK ((attempts >= 0))",
"chronicle_page_state.chronicle_page_state_judge_input_failures_check": "c CHECK ((judge_input_failures >= 0))",
"chronicle_page_state.chronicle_page_state_judge_window_chars_check": "c CHECK ((judge_window_chars >= 0))",
"chronicle_page_state.chronicle_page_state_max_attempts_check": "c CHECK ((max_attempts > 0))",
"chronicle_page_state.chronicle_page_state_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
"chronicle_page_state.chronicle_page_state_pkey": "p PRIMARY KEY (source_id, page_id, content_hash, extractor_version)",
"chronicle_page_state.chronicle_page_state_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"chronicle_page_state.chronicle_page_state_state_check": "c CHECK ((state = ANY (ARRAY['pending'::text, 'skipped'::text, 'extracted'::text, 'failed'::text])))",
"chronicle_page_state.chronicle_page_state_trigger_check": "c CHECK ((trigger = ANY (ARRAY['auto'::text, 'backfill'::text])))",
"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)",
"config.trust_generation_delete": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"config.trust_generation_insert": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"config.trust_generation_update": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"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)",
"core_edit_notices.core_edit_notices_pkey": "p PRIMARY KEY (id)",
"decide_calibrations.decide_calibrations_pkey": "p PRIMARY KEY (id)",
"decide_proposals.decide_proposals_pkey": "p PRIMARY KEY (id)",
"decide_proposals.decide_proposals_sweep_id_pair_index_key": "u UNIQUE (sweep_id, pair_index)",
"decide_review_proposals.decide_review_proposals_kind_source_id_a_ref_b_ref_subject_key": "u UNIQUE (kind, source_id, a_ref, b_ref, subject)",
"decide_review_proposals.decide_review_proposals_pkey": "p PRIMARY KEY (id)",
"decide_review_queue.decide_review_queue_pkey": "p PRIMARY KEY (kind, source_id, a_ref, b_ref)",
"decide_spend.decide_spend_pkey": "p PRIMARY KEY (request_id)",
"decide_state.decide_state_pkey": "p PRIMARY KEY (key)",
"decide_sweep_deferred.decide_sweep_deferred_pkey": "p PRIMARY KEY (slot, source_id, fact_id)",
"decision_receipts.decision_receipts_pkey": "p PRIMARY KEY (id)",
"derivation_inputs.derivation_inputs_pkey": "p PRIMARY KEY (derived_table, derived_id, input_table, input_id)",
"derivation_inputs.derivation_inputs_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"derived_generation_activations.derived_generation_activations_generation_id_fkey": "f FOREIGN KEY (generation_id) REFERENCES derived_generations(id) ON DELETE SET NULL",
"derived_generation_activations.derived_generation_activations_pkey": "p PRIMARY KEY (id)",
"derived_generation_activations.derived_generation_activations_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"derived_generation_activations.derived_generation_activations_state_check": "c CHECK ((state = ANY (ARRAY['pending'::text, 'activated'::text])))",
"derived_generation_attempts.derived_generation_attempts_pkey": "p PRIMARY KEY (hold_id)",
"derived_generation_attempts.derived_generation_attempts_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"derived_generation_items.derived_generation_items_action_check": "c CHECK ((action = ANY (ARRAY['published'::text, 'retired'::text, 'revived'::text, 'kept'::text, 'adopted'::text])))",
"derived_generation_items.derived_generation_items_generation_id_fkey": "f FOREIGN KEY (generation_id) REFERENCES derived_generations(id) ON DELETE CASCADE",
"derived_generation_items.derived_generation_items_pkey": "p PRIMARY KEY (generation_id, item_key)",
"derived_generation_valve.derived_generation_valve_pkey": "p PRIMARY KEY (source_id, kind, window_key)",
"derived_generation_valve.derived_generation_valve_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"derived_generations.derived_generations_held_reason_check": "c CHECK (((held_reason IS NULL) OR (held_reason = ANY (ARRAY['shrunk'::text, 'oversize'::text, 'valve'::text, 'no_proof'::text, 'fence_absent'::text, 'attempts_exhausted'::text, 'segmented_unsupported'::text, 'tie'::text]))))",
"derived_generations.derived_generations_pkey": "p PRIMARY KEY (id)",
"derived_generations.derived_generations_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"derived_generations.derived_generations_state_check": "c CHECK ((state = ANY (ARRAY['live'::text, 'held'::text, 'superseded'::text])))",
"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_purges.fact_purges_pkey": "p PRIMARY KEY (source_id, visibility, subject, fact_hash)",
"fact_purges.fact_purges_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"fact_purges.fact_purges_visibility_check": "c CHECK ((visibility = ANY (ARRAY['private'::text, 'world'::text])))",
"fact_purges.trust_generation_insert": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"fact_relink_attempts.fact_relink_attempts_pkey": "p PRIMARY KEY (source_id, fact_id)",
"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_attributed_to_check": "c CHECK ((attributed_to = ANY (ARRAY['user'::text, 'assistant'::text, 'other'::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_source_window_chk": "c CHECK (((source_window IS NULL) OR ((jsonb_typeof(source_window) = 'object'::text) AND (jsonb_typeof((source_window -> 'occurrence_id'::text)) = 'number'::text) AND (jsonb_typeof((source_window -> 'window_ordinal'::text)) = 'number'::text) AND (jsonb_typeof((source_window -> 'window_text_sha'::text)) = 'string'::text))))",
"facts.facts_superseded_by_fkey": "f FOREIGN KEY (superseded_by) REFERENCES facts(id) ON DELETE SET NULL",
"facts.facts_trust_tier_check": "c CHECK ((trust_tier = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text])))",
"facts.facts_visibility_check": "c CHECK ((visibility = ANY (ARRAY['private'::text, 'world'::text])))",
"facts.trust_generation_update": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"file_migration_ledger.chk_ledger_status": "c CHECK ((status = ANY (ARRAY['pending'::text, 'copy_done'::text, 'db_updated'::text, 'complete'::text, 'failed'::text])))",
"file_migration_ledger.file_migration_ledger_file_id_fkey": "f FOREIGN KEY (file_id) REFERENCES files(id) ON DELETE CASCADE",
"file_migration_ledger.file_migration_ledger_pkey": "p PRIMARY KEY (file_id)",
"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)",
"git_canonical_brain.git_canonical_brain_pkey": "p PRIMARY KEY (singleton)",
"git_canonical_brain.git_canonical_brain_singleton_check": "c CHECK ((singleton = 1))",
"git_canonical_brain.git_canonical_brain_strict_sources_check": "c CHECK ((strict_sources >= 0))",
"guest_marks.guest_marks_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
"guest_marks.guest_marks_pkey": "p PRIMARY KEY (page_id)",
"guest_promotions.guest_promotions_guest_page_id_fkey": "f FOREIGN KEY (guest_page_id) REFERENCES pages(id) ON DELETE CASCADE",
"guest_promotions.guest_promotions_pkey": "p PRIMARY KEY (id)",
"guest_sources.guest_sources_pkey": "p PRIMARY KEY (source_id)",
"guest_sources.guest_sources_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"guest_sources.guest_sources_trust_ceiling_check": "c CHECK ((trust_ceiling = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text])))",
"ingest_applied_captures.ingest_applied_captures_pkey": "p PRIMARY KEY (idempotency_key)",
"ingest_log.ingest_log_pkey": "p PRIMARY KEY (id)",
"link_edge_proposals.link_edge_proposals_a_to_page_id_fkey": "f FOREIGN KEY (a_to_page_id) REFERENCES pages(id) ON DELETE CASCADE",
"link_edge_proposals.link_edge_proposals_b_to_page_id_fkey": "f FOREIGN KEY (b_to_page_id) REFERENCES pages(id) ON DELETE CASCADE",
"link_edge_proposals.link_edge_proposals_ending_to_page_id_fkey": "f FOREIGN KEY (ending_to_page_id) REFERENCES pages(id) ON DELETE SET NULL",
"link_edge_proposals.link_edge_proposals_from_page_id_a_to_page_id_b_to_page_id__key": "u UNIQUE (from_page_id, a_to_page_id, b_to_page_id, link_type, evidence_hash)",
"link_edge_proposals.link_edge_proposals_from_page_id_fkey": "f FOREIGN KEY (from_page_id) REFERENCES pages(id) ON DELETE CASCADE",
"link_edge_proposals.link_edge_proposals_pkey": "p PRIMARY KEY (id)",
"link_edge_proposals.link_edge_proposals_status_check": "c CHECK ((status = ANY (ARRAY['proposed'::text, 'applied'::text, 'rejected'::text, 'undone'::text, 'stale'::text, 'reverted_by_user'::text, 'undated_unresolved'::text, 'ambiguous_same_date'::text, 'compatible'::text, 'error'::text])))",
"link_relationships.link_relationships_from_page_id_fkey": "f FOREIGN KEY (from_page_id) REFERENCES pages(id) ON DELETE CASCADE",
"link_relationships.link_relationships_pkey": "p PRIMARY KEY (from_page_id, to_page_id, link_type, scope)",
"link_relationships.link_relationships_scope_check": "c CHECK ((scope = ANY (ARRAY['all'::text, 'world'::text])))",
"link_relationships.link_relationships_semantics_check": "c CHECK ((semantics = ANY (ARRAY['state'::text, 'event'::text])))",
"link_relationships.link_relationships_status_now_check": "c CHECK ((status_now = ANY (ARRAY['live'::text, 'ended'::text, 'ended_unknown_date'::text, 'not_started'::text, 'disputed'::text, 'event'::text])))",
"link_relationships.link_relationships_to_page_id_fkey": "f FOREIGN KEY (to_page_id) REFERENCES pages(id) ON DELETE CASCADE",
"link_transitions.link_transitions_date_precision_check": "c CHECK ((date_precision = ANY (ARRAY['day'::text, 'month'::text, 'year'::text])))",
"link_transitions.link_transitions_from_page_id_fkey": "f FOREIGN KEY (from_page_id) REFERENCES pages(id) ON DELETE CASCADE",
"link_transitions.link_transitions_kind_check": "c CHECK ((kind = ANY (ARRAY['start'::text, 'end'::text])))",
"link_transitions.link_transitions_origin_page_id_fkey": "f FOREIGN KEY (origin_page_id) REFERENCES pages(id) ON DELETE CASCADE",
"link_transitions.link_transitions_pkey": "p PRIMARY KEY (id)",
"link_transitions.link_transitions_producer_check": "c CHECK ((producer = ANY (ARRAY['timeline'::text, 'explicit'::text, 'frontmatter'::text, 'manual'::text, 'inline'::text, 'dream'::text])))",
"link_transitions.link_transitions_to_page_id_fkey": "f FOREIGN KEY (to_page_id) REFERENCES pages(id) ON DELETE CASCADE",
"links.links_assertion_tense_check": "c CHECK (((assertion_tense IS NULL) OR (assertion_tense = ANY (ARRAY['present'::text, 'past'::text]))))",
"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_request_log_rollup.mcp_request_log_rollup_pkey": "p PRIMARY KEY (token_name)",
"mcp_spend_log.mcp_spend_log_one_budget_owner": "c CHECK (((client_id IS NULL) OR (budget_key IS NULL)))",
"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_one_budget_owner": "c CHECK (((client_id IS NULL) <> (budget_key IS 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])))",
"memory_proposals.memory_proposals_kind_check": "c CHECK ((kind = ANY (ARRAY['timeline'::text, 'link'::text])))",
"memory_proposals.memory_proposals_operation_check": "c CHECK ((operation = ANY (ARRAY['add_timeline_entry'::text, 'add_link'::text])))",
"memory_proposals.memory_proposals_pkey": "p PRIMARY KEY (principal_kind, principal_id, request_id)",
"memory_proposals.memory_proposals_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"memory_proposals.memory_proposals_state_check": "c CHECK ((state = ANY (ARRAY['awaiting_owner'::text, 'approved'::text, 'denied'::text, 'expired'::text, 'cancelled'::text, 'failed'::text, 'conflict'::text])))",
"mention_gazetteer_entries.mention_gazetteer_entries_pkey": "p PRIMARY KEY (source_id, name_norm, target_slug, case_sensitive)",
"mention_gazetteer_entries.mention_gazetteer_entries_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"mention_index_status.mention_index_status_pkey": "p PRIMARY KEY (source_id)",
"mention_index_status.mention_index_status_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"mention_index_status.mention_index_status_state_check": "c CHECK ((state = ANY (ARRAY['complete'::text, 'pending'::text, 'disabled'::text, 'failed'::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)",
"needs_rederive.needs_rederive_pkey": "p PRIMARY KEY (derived_table, derived_id)",
"needs_rederive.needs_rederive_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"needs_rederive.trust_generation_insert": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"oauth_clients.fk_oauth_clients_bound_source": "f FOREIGN KEY (bound_source_id) REFERENCES sources(id) ON DELETE SET NULL",
"oauth_clients.oauth_clients_complete_agent_grant": "c CHECK (((NOT (COALESCE(scope, ''::text) ~ '(^|[[:space:]])agent([[:space:]]|$)'::text)) OR ((COALESCE(cardinality(bound_tools), 0) > 0) AND (source_id IS NOT NULL) AND (bound_source_id IS NOT NULL) AND (bound_source_id = source_id) AND COALESCE((source_id = ANY (federated_read)), false) AND (((delegated_namespace = 'job'::text) AND (delegated_slug_prefixes IS NULL)) OR ((delegated_namespace = 'prefixes'::text) AND (COALESCE(cardinality(delegated_slug_prefixes), 0) > 0))) AND (bound_max_concurrent > 0))))",
"oauth_clients.oauth_clients_min_trust_check": "c CHECK (((min_trust IS NULL) OR (min_trust = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text]))))",
"oauth_clients.oauth_clients_pkey": "p PRIMARY KEY (client_id)",
"oauth_clients.oauth_clients_private_facts_check": "c CHECK ((private_facts = ANY (ARRAY['none'::text, 'granted_sources'::text])))",
"oauth_clients.oauth_clients_private_pages_check": "c CHECK ((private_pages = ANY (ARRAY['none'::text, 'granted_sources'::text])))",
"oauth_clients.oauth_clients_registered_via_check": "c CHECK ((registered_via = 'dcr'::text))",
"oauth_clients.oauth_clients_source_grant_check": "c CHECK ((source_grant = 'none'::text))",
"oauth_clients.oauth_clients_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE RESTRICT",
"oauth_clients.trust_generation_update": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"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_origin_check": "c CHECK ((origin = ANY (ARRAY['frontmatter'::text, 'declared'::text, 'subject'::text])))",
"page_aliases.page_aliases_origin_uniq": "u UNIQUE (source_id, alias_norm, slug, origin)",
"page_aliases.page_aliases_pkey": "p PRIMARY KEY (id)",
"page_aliases.page_aliases_source_fk": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"page_body_manifest.page_body_manifest_cut_kind_check": "c CHECK ((cut_kind = ANY (ARRAY['heading'::text, 'day'::text, 'message'::text, 'blank'::text, 'forced'::text, 'region_end'::text, 'eof'::text])))",
"page_body_manifest.page_body_manifest_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
"page_body_manifest.page_body_manifest_pkey": "p PRIMARY KEY (page_id, occurrence_id, gen_from, staging_key)",
"page_body_manifest.page_body_manifest_region_check": "c CHECK ((region = ANY (ARRAY['truth'::text, 'timeline'::text])))",
"page_body_manifest.page_body_manifest_source_id_sha256_fkey": "f FOREIGN KEY (source_id, sha256) REFERENCES page_segment_texts(source_id, sha256)",
"page_body_staging_parts.page_body_staging_parts_byte_len_check": "c CHECK (((byte_len >= 1) AND (byte_len <= 4194304)))",
"page_body_staging_parts.page_body_staging_parts_part_no_check": "c CHECK ((part_no >= 0))",
"page_body_staging_parts.page_body_staging_parts_pkey": "p PRIMARY KEY (staging_id, part_no)",
"page_body_staging_parts.page_body_staging_parts_staging_id_fkey": "f FOREIGN KEY (staging_id) REFERENCES page_body_stagings(id) ON DELETE CASCADE",
"page_body_staging_texts.page_body_staging_texts_pkey": "p PRIMARY KEY (staging_id, sha256)",
"page_body_staging_texts.page_body_staging_texts_staging_id_fkey": "f FOREIGN KEY (staging_id) REFERENCES page_body_stagings(id) ON DELETE CASCADE",
"page_body_stagings.page_body_stagings_declared_bytes_check": "c CHECK ((declared_bytes >= 0))",
"page_body_stagings.page_body_stagings_kind_check": "c CHECK ((kind = ANY (ARRAY['upload'::text, 'import'::text, 'sync'::text, 'put'::text, 'append'::text, 'edit'::text, 'resegment'::text])))",
"page_body_stagings.page_body_stagings_mode_check": "c CHECK ((mode = ANY (ARRAY['create'::text, 'replace'::text, 'append'::text])))",
"page_body_stagings.page_body_stagings_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
"page_body_stagings.page_body_stagings_pkey": "p PRIMARY KEY (id)",
"page_body_stagings.page_body_stagings_principal_kind_principal_id_client_reque_key": "u UNIQUE (principal_kind, principal_id, client_request_id)",
"page_body_stagings.page_body_stagings_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"page_body_stagings.page_body_stagings_state_check": "c CHECK ((state = ANY (ARRAY['open'::text, 'sealed'::text, 'prepared'::text, 'committed'::text, 'aborted'::text, 'expired'::text])))",
"page_derivation_spend.page_derivation_spend_family_check": "c CHECK ((family = ANY (ARRAY['facts'::text, 'synopsis'::text])))",
"page_derivation_spend.page_derivation_spend_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
"page_derivation_spend.page_derivation_spend_pkey": "p PRIMARY KEY (page_id, family)",
"page_derivation_spend.page_derivation_spend_reserved_usd_check": "c CHECK ((reserved_usd >= (0)::double precision))",
"page_derivation_spend.page_derivation_spend_spent_usd_check": "c CHECK ((spent_usd >= (0)::double precision))",
"page_embedding_budget.page_embedding_budget_cap_usd_check": "c CHECK (((cap_usd IS NULL) OR (cap_usd >= (0)::double precision)))",
"page_embedding_budget.page_embedding_budget_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
"page_embedding_budget.page_embedding_budget_pkey": "p PRIMARY KEY (page_id)",
"page_embedding_budget.page_embedding_budget_reserved_usd_check": "c CHECK ((reserved_usd >= (0)::double precision))",
"page_embedding_budget.page_embedding_budget_spent_usd_check": "c CHECK ((spent_usd >= (0)::double precision))",
"page_embedding_budget.page_embedding_budget_state_check": "c CHECK ((state = ANY (ARRAY['open'::text, 'held'::text, 'capped'::text])))",
"page_embedding_budget.page_embedding_budget_unpriced_calls_check": "c CHECK ((unpriced_calls >= 0))",
"page_extraction_state.page_extraction_state_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
"page_extraction_state.page_extraction_state_pipeline_check": "c CHECK ((pipeline = ANY (ARRAY['facts_backstop'::text, 'extract_atoms'::text, 'conversation_facts'::text])))",
"page_extraction_state.page_extraction_state_pkey": "p PRIMARY KEY (page_id, pipeline)",
"page_extraction_state.page_extraction_state_watermark_bytes_check": "c CHECK ((watermark_bytes >= 0))",
"page_facts_reconcile.page_facts_reconcile_outcome_check": "c CHECK ((outcome = ANY (ARRAY['complete'::text, 'deferred'::text, 'invalid'::text, 'cancelled'::text])))",
"page_facts_reconcile.page_facts_reconcile_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
"page_facts_reconcile.page_facts_reconcile_pkey": "p PRIMARY KEY (page_id)",
"page_generation_clock.page_generation_clock_id_check": "c CHECK ((id = 1))",
"page_generation_clock.page_generation_clock_pkey": "p PRIMARY KEY (id)",
"page_label_guards.page_label_guards_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
"page_label_guards.page_label_guards_pkey": "p PRIMARY KEY (page_id)",
"page_label_guards.page_label_guards_tier_check": "c CHECK ((tier = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text])))",
"page_mention_state.page_mention_state_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
"page_mention_state.page_mention_state_pkey": "p PRIMARY KEY (page_id)",
"page_mention_state.page_mention_state_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"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_purges.page_purges_pkey": "p PRIMARY KEY (source_id, content_hash)",
"page_purges.page_purges_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"page_purges.trust_generation_insert": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"page_retrievals.page_retrievals_pkey": "p PRIMARY KEY (page_id)",
"page_segment_derivation_purge_pages.page_segment_derivation_purge_pages_pkey": "p PRIMARY KEY (request_id, page_id)",
"page_segment_derivation_purges.page_segment_derivation_purges_batch_rows_check": "c CHECK ((batch_rows >= 1))",
"page_segment_derivation_purges.page_segment_derivation_purges_found_check": "c CHECK ((found >= 0))",
"page_segment_derivation_purges.page_segment_derivation_purges_pending_reason_check": "c CHECK ((pending_reason = 'scope_lock_busy'::text))",
"page_segment_derivation_purges.page_segment_derivation_purges_phase_check": "c CHECK ((phase = ANY (ARRAY['sweep'::text, 'verify'::text, 'recheck'::text])))",
"page_segment_derivation_purges.page_segment_derivation_purges_pkey": "p PRIMARY KEY (request_id)",
"page_segment_derivation_purges.page_segment_derivation_purges_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"page_segment_derivation_purges.page_segment_derivation_purges_stalled_reason_check": "c CHECK ((stalled_reason = ANY (ARRAY['statement_timeout'::text, 'paid_row_unreadable'::text])))",
"page_segment_derivations.page_segment_derivations_context_hash_check": "c CHECK ((octet_length(context_hash) = 32))",
"page_segment_derivations.page_segment_derivations_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
"page_segment_derivations.page_segment_derivations_pipeline_check": "c CHECK ((pipeline = ANY (ARRAY['links'::text, 'mentions'::text, 'timeline'::text, 'fences'::text, 'conversation_facts'::text, 'facts_backstop'::text, 'synopsis'::text])))",
"page_segment_derivations.page_segment_derivations_pipeline_version_check": "c CHECK ((pipeline_version >= 0))",
"page_segment_derivations.page_segment_derivations_pkey": "p PRIMARY KEY (page_id, pipeline, occurrence_id)",
"page_segment_derivations.page_segment_derivations_segment_sha256_check": "c CHECK ((octet_length(segment_sha256) = 32))",
"page_segment_derivations.page_segment_derivations_state_check": "c CHECK ((state = ANY (ARRAY['done'::text, 'partial'::text, 'failed'::text, 'skipped'::text])))",
"page_segment_texts.page_segment_texts_byte_len_check": "c CHECK (((byte_len >= 1) AND (byte_len <= 1048576)))",
"page_segment_texts.page_segment_texts_line_count_check": "c CHECK ((line_count >= 0))",
"page_segment_texts.page_segment_texts_pkey": "p PRIMARY KEY (source_id, sha256)",
"page_segment_texts.page_segment_texts_sha256_check": "c CHECK ((octet_length(sha256) = 32))",
"page_segment_texts.page_segment_texts_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"page_versions.page_versions_body_chk": "c CHECK ((((body_storage = 'inline'::text) AND (compiled_truth IS NOT NULL)) OR ((body_storage = 'segmented'::text) AND (compiled_truth IS NULL) AND (timeline IS NULL) AND (body_generation IS NOT NULL))))",
"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_versions.page_versions_trust_tier_check": "c CHECK (((trust_tier IS NULL) OR (trust_tier = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text]))))",
"page_view_digests.page_view_digests_audience_check": "c CHECK ((audience = ANY (ARRAY['trusted'::text, 'remote'::text])))",
"page_view_digests.page_view_digests_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
"page_view_digests.page_view_digests_pkey": "p PRIMARY KEY (page_id, revision, view, audience)",
"page_view_digests.page_view_digests_total_bytes_check": "c CHECK ((total_bytes >= 0))",
"page_view_digests.page_view_digests_total_lines_check": "c CHECK ((total_lines >= 0))",
"page_view_digests.page_view_digests_view_check": "c CHECK ((view = ANY (ARRAY['read'::text, 'markdown'::text])))",
"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_body_storage_chk": "c CHECK ((((body_storage = 'inline'::text) AND (compiled_truth IS NOT NULL) AND (timeline IS NOT NULL) AND (truth_lead IS NULL)) OR ((body_storage = 'segmented'::text) AND (compiled_truth IS NULL) AND (timeline IS NULL) AND (body_bytes IS NOT NULL))))",
"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)",
"pages.pages_trust_tier_check": "c CHECK ((trust_tier = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text])))",
"pages.trust_generation_delete": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"pages.trust_generation_insert": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"pages.trust_generation_update": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"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_consumers.persistence_consumers_mode_check": "c CHECK ((mode = ANY (ARRAY['probing'::text, 'full'::text, 'waiter_only'::text, 'promoted'::text])))",
"persistence_consumers.persistence_consumers_pkey": "p PRIMARY KEY (host_id, pid, nonce)",
"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_graduation.persistence_graduation_pkey": "p PRIMARY KEY (singleton)",
"persistence_graduation.persistence_graduation_role_check": "c CHECK ((role = ANY (ARRAY['source'::text, 'target'::text])))",
"persistence_graduation.persistence_graduation_singleton_check": "c CHECK ((singleton = 1))",
"persistence_graduation.persistence_graduation_state_check": "c CHECK ((state = ANY (ARRAY['quiesced'::text, 'cutover'::text, 'rolled_back'::text, 'copying'::text, 'verifying'::text, 'verified'::text, 'authoritative'::text, 'verify_failed'::text, 'rollback_fenced'::text, 'rollback_approved'::text, 'source_restoring'::text, 'abandoned'::text])))",
"persistence_graduation.persistence_graduation_trigger_bypass_check": "c CHECK (((trigger_bypass IS NULL) OR (trigger_bypass = ANY (ARRAY['session_replication_role'::text, 'disable_trigger'::text]))))",
"persistence_host_bindings.persistence_host_bindings_git_durability_check": "c CHECK ((git_durability = ANY (ARRAY['enabled'::text, 'disabled'::text])))",
"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_deferred_refresh_id_fkey": "f FOREIGN KEY (deferred_refresh_id) REFERENCES persistence_worktree_refreshes(id)",
"persistence_requests.persistence_requests_pkey": "p PRIMARY KEY (id)",
"persistence_requests.persistence_requests_preparation_attempts_check": "c CHECK ((preparation_attempts >= 0))",
"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, 'deferred'::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_worktree_refreshes.persistence_worktree_refreshes_pkey": "p PRIMARY KEY (id)",
"persistence_worktree_refreshes.persistence_worktree_refreshes_state_check": "c CHECK ((state = ANY (ARRAY['draining'::text, 'fenced'::text, 'merged'::text, 'syncing'::text, 'completed'::text, 'aborted'::text, 'recovery_required'::text])))",
"persistence_worktree_refreshes.persistence_worktree_refreshes_worktree_id_fkey": "f FOREIGN KEY (worktree_id) REFERENCES persistence_worktrees(id)",
"persistence_worktrees.persistence_worktrees_pkey": "p PRIMARY KEY (id)",
"persistence_worktrees.persistence_worktrees_state_check": "c CHECK ((state = ANY (ARRAY['active'::text, 'draining'::text, 'recovering'::text, 'retired'::text])))",
"persistence_writer_protocols.persistence_writer_protocols_pkey": "p PRIMARY KEY (worktree_id, host_id)",
"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)",
"pinned_questions.pinned_questions_pkey": "p PRIMARY KEY (id)",
"pinned_questions.pinned_questions_source_slug_key": "u UNIQUE (source_id, slug)",
"query_cache.query_cache_pkey": "p PRIMARY KEY (id)",
"question_evidence.question_evidence_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)",
"reason_purge_tombstones.reason_purge_tombstones_pkey": "p PRIMARY KEY (source_id, commit_sha, path)",
"reason_purge_tombstones.reason_purge_tombstones_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"retrieval_event_links.retrieval_event_links_event_id_fkey": "f FOREIGN KEY (event_id) REFERENCES retrieval_events(id) ON DELETE CASCADE",
"retrieval_event_links.retrieval_event_links_pkey": "p PRIMARY KEY (event_id, source_id, edge_key, to_slug)",
"retrieval_event_pages.retrieval_event_pages_event_id_fkey": "f FOREIGN KEY (event_id) REFERENCES retrieval_events(id) ON DELETE CASCADE",
"retrieval_event_pages.retrieval_event_pages_pkey": "p PRIMARY KEY (event_id, source_id, slug)",
"retrieval_events.retrieval_events_op_check": "c CHECK ((op = ANY (ARRAY['query'::text, 'search'::text, 'think'::text, 'synthesize'::text, 'recall'::text])))",
"retrieval_events.retrieval_events_pkey": "p PRIMARY KEY (id)",
"retrieval_feedback.retrieval_feedback_element_kind_check": "c CHECK ((element_kind = ANY (ARRAY['page'::text, 'link'::text])))",
"retrieval_feedback.retrieval_feedback_event_id_fkey": "f FOREIGN KEY (event_id) REFERENCES retrieval_events(id) ON DELETE CASCADE",
"retrieval_feedback.retrieval_feedback_pkey": "p PRIMARY KEY (event_id, signal, element_kind, source_id, element_key)",
"retrieval_feedback.retrieval_feedback_rating_check": "c CHECK (((rating >= 1) AND (rating <= 5)))",
"retrieval_feedback.retrieval_feedback_signal_check": "c CHECK ((signal = ANY (ARRAY['explicit'::text, 'cited'::text])))",
"retrieval_weights.retrieval_weights_element_kind_check": "c CHECK ((element_kind = ANY (ARRAY['page'::text, 'link'::text])))",
"retrieval_weights.retrieval_weights_pkey": "p PRIMARY KEY (source_id, element_kind, element_key)",
"retrieval_weights.retrieval_weights_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"retrieval_weights.retrieval_weights_weight_check": "c CHECK (((weight >= (0)::double precision) AND (weight <= (1)::double precision)))",
"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_source_fk": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"slug_aliases.slug_aliases_uniq": "u UNIQUE (source_id, alias_slug)",
"slug_rename_history.slug_rename_history_pkey": "p PRIMARY KEY (source_id, old_slug, new_slug)",
"slug_rename_history.slug_rename_history_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"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)",
"sync_notifier_leases.sync_notifier_leases_pkey": "p PRIMARY KEY (host_id)",
"sync_notifier_sources.sync_notifier_sources_detection_mode_check": "c CHECK ((detection_mode = ANY (ARRAY['watch'::text, 'poll'::text])))",
"sync_notifier_sources.sync_notifier_sources_pkey": "p PRIMARY KEY (source_id)",
"sync_notifier_sources.sync_notifier_sources_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"sync_notifier_sources.sync_notifier_sources_state_check": "c CHECK ((state = ANY (ARRAY['idle'::text, 'due'::text, 'running'::text, 'retry'::text, 'operator_blocked'::text])))",
"sync_wanted_markers.sync_wanted_markers_intent_check": "c CHECK ((intent = ANY (ARRAY['freshness'::text, 'pull'::text, 'full'::text])))",
"sync_wanted_markers.sync_wanted_markers_pkey": "p PRIMARY KEY (source_id, intent)",
"sync_wanted_markers.sync_wanted_markers_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"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_horizons.take_horizons_basis_check": "c CHECK ((basis = ANY (ARRAY['stated'::text, 'stated_relative'::text, 'owner'::text])))",
"take_horizons.take_horizons_pkey": "p PRIMARY KEY (take_id)",
"take_horizons.take_horizons_take_id_fkey": "f FOREIGN KEY (take_id) REFERENCES takes(id) ON DELETE CASCADE",
"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])))",
"take_purges.take_purges_pkey": "p PRIMARY KEY (source_id, subject, claim_hash)",
"take_purges.take_purges_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"take_purges.trust_generation_insert": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"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_trust_tier_check": "c CHECK ((trust_tier = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text])))",
"takes.takes_weight_check": "c CHECK (((weight >= (0)::double precision) AND (weight <= (1)::double precision)))",
"takes.trust_generation_update": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"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)",
"timeline_entries.timeline_entries_trust_tier_check": "c CHECK ((trust_tier = ANY (ARRAY['user_confirmed'::text, 'operator_curated'::text, 'tool_observed'::text, 'agent_written'::text, 'unknown'::text, 'external_untrusted'::text])))",
"timeline_entries.trust_generation_update": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"trust_allow_rules.trust_allow_rules_pkey": "p PRIMARY KEY (id)",
"trust_allow_rules.trust_allow_rules_reason_check": "c CHECK (((reason IS NULL) OR (length(reason) <= 500)))",
"trust_allow_rules.trust_allow_rules_reason_family_check": "c CHECK (((reason_family IS NULL) OR (reason_family = ANY (ARRAY['override'::text, 'standing_instruction'::text, 'exfiltration'::text, 'credential'::text]))))",
"trust_allow_rules.trust_allow_rules_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"trust_allow_rules.trust_allow_rules_uri_prefix_check": "c CHECK (((uri_prefix IS NULL) OR ((length(uri_prefix) >= 1) AND (length(uri_prefix) <= 2048))))",
"trust_policy_state.trust_policy_state_id_check": "c CHECK ((id = 1))",
"trust_policy_state.trust_policy_state_pkey": "p PRIMARY KEY (id)",
"trust_proposals.trust_proposals_action_check": "c CHECK ((action = ANY (ARRAY['supersede_fact'::text, 'supersede_take'::text, 'forget'::text, 'lower_page'::text, 'confirm'::text])))",
"trust_proposals.trust_proposals_check": "c CHECK (((related_table IS NULL) = (related_id IS NULL)))",
"trust_proposals.trust_proposals_pkey": "p PRIMARY KEY (id)",
"trust_proposals.trust_proposals_related_table_check": "c CHECK ((related_table = ANY (ARRAY['facts'::text, 'takes'::text, 'timeline_entries'::text, 'pages'::text])))",
"trust_proposals.trust_proposals_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"trust_proposals.trust_proposals_status_check": "c CHECK ((status = ANY (ARRAY['pending'::text, 'accepted'::text, 'rejected'::text, 'undone'::text, 'superseded'::text])))",
"trust_proposals.trust_proposals_target_table_check": "c CHECK ((target_table = ANY (ARRAY['facts'::text, 'takes'::text, 'timeline_entries'::text, 'pages'::text])))",
"wake_cron_runs.wake_cron_runs_name_check": "c CHECK ((name ~ '^[a-z0-9._-]{1,64}$'::text))",
"wake_cron_runs.wake_cron_runs_pkey": "p PRIMARY KEY (id)",
"wake_cron_runs.wake_cron_runs_status_check": "c CHECK ((status = ANY (ARRAY['ok'::text, 'failed'::text])))",
"wake_crons.wake_crons_name_check": "c CHECK ((name ~ '^[a-z0-9._-]{1,64}$'::text))",
"wake_crons.wake_crons_pkey": "p PRIMARY KEY (name)",
"wake_forgets.wake_forgets_pkey": "p PRIMARY KEY (id)",
"wake_forgets.wake_forgets_state_check": "c CHECK ((state = ANY (ARRAY['pending'::text, 'done'::text, 'dead'::text])))",
"wake_forgets.wake_forgets_wake_user_check": "c CHECK ((wake_user ~ '^[0-9a-f]{32}$'::text))",
"wake_subscriptions.wake_subscriptions_event_check": "c CHECK ((event ~ '^gbrain\\.[a-z][a-z0-9._]{0,47}$'::text))",
"wake_subscriptions.wake_subscriptions_pkey": "p PRIMARY KEY (id)",
"wake_subscriptions.wake_subscriptions_principal_kind_check": "c CHECK ((principal_kind = ANY (ARRAY['oauth_client'::text, 'legacy_token'::text, 'local_stdio'::text])))",
"wake_subscriptions.wake_subscriptions_state_check": "c CHECK ((state = ANY (ARRAY['open'::text, 'delivered'::text, 'dead'::text, 'ended'::text])))",
"wake_subscriptions.wake_subscriptions_target_check": "c CHECK (((length(target) >= 1) AND (length(target) <= 128)))",
"wake_subscriptions.wake_subscriptions_wake_user_check": "c CHECK ((wake_user ~ '^[0-9a-f]{32}$'::text))",
"wake_subscriptions.wake_subscriptions_ws_subscription_id_check": "c CHECK (((length(ws_subscription_id) >= 1) AND (length(ws_subscription_id) <= 200)))",
"wake_terms_acceptances.wake_terms_acceptances_pkey": "p PRIMARY KEY (principal_key, terms_version)",
"wake_terms_acceptances.wake_terms_acceptances_principal_key_check": "c CHECK (((length(principal_key) >= 1) AND (length(principal_key) <= 300)))",
"wake_terms_acceptances.wake_terms_acceptances_terms_version_check": "c CHECK ((terms_version ~ '^[0-9a-f]{16}$'::text))",
"wanted_links.wanted_links_origin_page_id_fkey": "f FOREIGN KEY (origin_page_id) REFERENCES pages(id) ON DELETE CASCADE",
"wanted_links.wanted_links_pkey": "p PRIMARY KEY (id)",
"wanted_links.wanted_links_producer_check": "c CHECK ((producer = ANY (ARRAY['body'::text, 'frontmatter'::text])))",
"wanted_links.wanted_links_ref_kind_check": "c CHECK ((ref_kind = ANY (ARRAY['slug'::text, 'name'::text])))",
"wanted_links.wanted_links_reference_unique": "u UNIQUE (origin_page_id, producer, ref_kind, target_source_id, target_ref)",
"wanted_links.wanted_links_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"write_gate_holds.write_gate_holds_kind_check": "c CHECK ((kind = ANY (ARRAY['fact'::text, 'take'::text])))",
"write_gate_holds.write_gate_holds_pkey": "p PRIMARY KEY (id)",
"write_gate_holds.write_gate_holds_status_check": "c CHECK ((status = ANY (ARRAY['held'::text, 'released'::text, 'dropped'::text])))",
"write_gate_receipts.trust_generation_delete": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"write_gate_receipts.trust_generation_insert": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"write_gate_receipts.trust_generation_update": "t TRIGGER DEFERRABLE INITIALLY DEFERRED",
"write_gate_receipts.write_gate_receipts_pkey": "p PRIMARY KEY (id)",
"write_gate_receipts.write_gate_receipts_target_table_check": "c CHECK ((target_table = ANY (ARRAY['pages'::text, 'facts'::text, 'takes'::text, 'timeline_entries'::text, 'write_gate_holds'::text])))",
"write_gate_receipts.write_gate_receipts_verdict_check": "c CHECK ((verdict = ANY (ARRAY['flag'::text, 'quarantine'::text])))"
},
"extensions": [
"pg_trgm",
"pgcrypto",
"plpgsql",
"vector"
],
"functions": {
"auto_enable_rls()": "RETURNS event_trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=5e5e0a0ee902f481f07da929c5fd39c2a16671869535b12a1e2270543a5a30eb",
"bump_page_generation_clock_fn()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=d3359bcd09cccd881585abd9eee81c3dcf4161d935164f7953f2e9fdef73ed3e",
"bump_page_generation_fn()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=314d4775d7c90f8ed650ea12ae3687f388f714ed3d30582dc8ff678dfea1dc97",
"enforce_minion_queue_protocol()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=be82640d1979fc81dc812efb78bb3596ef536f656d20750e5e4aa19016bf4784",
"gbrain_access_derive_page_readers()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=55923fb552adcdc8e5e3c820a0b4ba11f74748b4478f52de2e1b7506e969ac4d",
"gbrain_access_folder_rules(p_source text, p_slug text)": "RETURNS text[] kind=f lang=sql volatility=s secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=a476d94909ef46bf697ec14b0e5034eaf504004553264298107d3962fa3059cd",
"gbrain_access_lineage_rules(p_source text, p_rules text[])": "RETURNS text[] kind=f lang=sql volatility=s secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=d2373deb5c27c3ba3794e223754c116a6ded14a54cb296882fff69464d74f0e5",
"gbrain_access_mark_restricted()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=e45dc26421664fa3d409fba6c612af88905d2df35923f9592bcb759fc1ea618f",
"gbrain_access_norm_readers(vals text[])": "RETURNS text[] kind=f lang=sql volatility=i secdef=false config=[search_path=pg_catalog, pg_temp] body_sha256=b536c2604461abac62c90c090d127b71bdda8ed23d43ae25790606a8ee64f769",
"gbrain_access_origin_closed_for(o_source text, o_slug text, o_frontmatter jsonb, o_readers text[], o_rules text[], p_identity text[], p_satisfied text[], p_open boolean, p_own_page text)": "RETURNS boolean kind=f lang=sql volatility=s secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=72cab846e7394f7dc707d5ba4398aca28282577ef0ddfd7344e1d331c14d9736",
"gbrain_access_origin_closed_for(o_source text, o_slug text, o_frontmatter jsonb, o_readers text[], o_rules text[], p_identity text[], p_satisfied text[], p_open boolean, p_own_page text, p_audience_pages text[])": "RETURNS boolean kind=f lang=sql volatility=s secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=141ca5767c490e897b509cee46d2e7b54ce8ff12176c4c45ec36fb7b048cd660",
"gbrain_access_origin_hidden_for(p_id integer, p_source_id text, p_type text, fm jsonb, p_identity text[], p_satisfied text[], p_open boolean, p_own_page text)": "RETURNS boolean kind=f lang=sql volatility=s secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=3eac3806fcfc6e54e07a28f06ce153b4ac415709cd53c50d3b24e4423646be3c",
"gbrain_access_origin_hidden_for(p_id integer, p_source_id text, p_type text, fm jsonb, p_identity text[], p_satisfied text[], p_open boolean, p_own_page text, p_audience_pages text[])": "RETURNS boolean kind=f lang=plpgsql volatility=s secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=74057c9cd464b1993aa10970e8d21cc5fb2f66c7c7fe91dc271680901f927188",
"gbrain_access_origin_labelled_for(p_id integer, p_source_id text, p_type text, fm jsonb, p_identity text[], p_satisfied text[])": "RETURNS boolean kind=f lang=plpgsql volatility=s secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=5a96033dc414d3a00b9fe8c84cdd66d9429260c9d62ca3a9640562944d76ed2f",
"gbrain_access_origin_restricted(p_id integer, p_source_id text, p_type text, fm jsonb)": "RETURNS boolean kind=f lang=plpgsql volatility=s secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=506a29c639348746278d0c472b43a013bf2e39a8e83de4cd3641424116160c6d",
"gbrain_access_pending_covers(p_source text, p_slug text)": "RETURNS boolean kind=f lang=sql volatility=s secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=57448e941169ad1e65fbdab4bbe4572cc7b6f164ef19fd61a3666640e85f253c",
"gbrain_access_readers(fm jsonb)": "RETURNS text[] kind=f lang=sql volatility=i secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=18348cb56089106aaec6470076ee652d7ed3bfbcb20e950a24abd52a21e7a380",
"gbrain_access_refresh_serves()": "RETURNS void kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=84f560a40c85f6b17461f0061dd93f9ccb23ece584d434e5d24faae0618780b3",
"gbrain_access_refresh_serves_trigger()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=cfc246e282936cd9beb99ac87c59f8121412adf0d7bca856ee70cd939039e764",
"gbrain_access_stamp_folder_rules()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=7fb49ce62f4f6153ef0c844a1816f5f5bb7d765b8610ff66fec137283469fc09",
"gbrain_access_state_unreadable()": "RETURNS boolean kind=f lang=sql volatility=s secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=fa6c6edac062270a2fcf9ff3e9c29f16242156e817a3710c273d8da9f5203943",
"gbrain_advance_page_revision()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=2a431195dc4c4150e3428251d0dec0a685cdc2992525c1b4b54dff103d5d99c9",
"gbrain_advance_tag_revision()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=810fecb358043c1c5490f7074955f3543a0af4c8e5b3cacb489232bfea6c980a",
"gbrain_bump_trust_generation()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=eb43f514d9784dabdae32a80d97116a9a49f1eeb1dc7a67e832e714ed7fa0a14",
"gbrain_clear_atom_page_state()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=08198894f9191d7b652d5523fe9dfbfd626a9128c982a4908fae2d09711a644b",
"gbrain_concept_inputs_private(p_id integer)": "RETURNS boolean kind=f lang=sql volatility=s secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=f1bd55db7cff1a79fdea6013080166864784c80747e6f1d5478e2ddd68703e40",
"gbrain_count_git_canonical_sources()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=c8d77fd08f3b8f8e04a9928428cc854a36b6c05979291d2835cd741c305be80b",
"gbrain_fact_fingerprint(claim text)": "RETURNS text kind=f lang=sql volatility=i secdef=false config=[] body_sha256=ff99709590deb4c83f0e16d30b3988ca2598018f5fd6f30d132acf31b1010174",
"gbrain_fact_fingerprint_v1(claim text)": "RETURNS text kind=f lang=sql volatility=i secdef=false config=[] body_sha256=aa955a02d3c695f237e1771f0ffded2fa8e5c7b795c42b87f7fd239ae35e213c",
"gbrain_fact_normalize(claim text)": "RETURNS text kind=f lang=sql volatility=i secdef=false config=[] body_sha256=595b1e012edeb66edbec72a2a8b1d046a8360a386bfce2fd903e50e3f78af37b",
"gbrain_forget_page_retrievals()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=b35125db2179fb90ea092804d0acd61b60e58434d7fbf937413324b681ab416c",
"gbrain_fts_input(t text)": "RETURNS text kind=f lang=sql volatility=i secdef=false config=[search_path=pg_catalog, pg_temp] body_sha256=c73d0dbc333c6dccc9714a6b8d1b7785f48170556b9024002ddca1c80b25d87d",
"gbrain_graduation_fence()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=cd4642fe8deee2a3c14ef41f53862f0a449b2d8a10e47177bd4f5d2e05ce8803",
"gbrain_guard_deferred_request()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=edf066d51ee76d4037663393271883a12d7fdf4f0f01b7d1faa9e979d552c6c6",
"gbrain_guard_effect_protocol()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=aa01528006dd7029eac6808e0233991524c9de9dc14aaf41f44160d67a747042",
"gbrain_guard_guest_records()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=2d055da8535efc1d03d9e4e1b6ebaff581577f2b20726617821434266fb27597",
"gbrain_guard_inserted_facts()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=987e77b02393511a72e1503c3900d5162d90f5473a2c6f83c23cdd5689601856",
"gbrain_guard_protocol_activation()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=bb477ec66ecac06e6edba773a94a2834ef4286a0b9e5cfa8b9b8646e003b0b9e",
"gbrain_guard_request_protocol()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=2709686143e064b577e2b3c8e3e2b1009d52a836a2bc709f5f003a251eb004d2",
"gbrain_guard_skill_publication()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=e854c0d058e75a65c3a90127c5c417380975100e83fc34288f6085e786df10a9",
"gbrain_lease_shared_skill_delivery()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=5e493c1ac8dce8cb025a736629e563437c4b214744137c302c532c20bf7e7acf",
"gbrain_mark_derivation_scope_entry()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=592e9e3bcab2cf339197544185dc0ae3664698acecaf77cc6a1588c4134d7a93",
"gbrain_owner_only_lineage()": "RETURNS boolean kind=f lang=sql volatility=s secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=ab91d9d7e1c492ac608e00b812a621d950f5c693385d5370450fa67f2af02cea",
"gbrain_owner_only_lineage(p_table text, p_id bigint)": "RETURNS boolean kind=f lang=plpgsql volatility=s secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=01a7781cebe2d4b6605d0f15937b3c290a2d706469f375b77200036a8bbe5535",
"gbrain_preserve_fact_withdrawal()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=9969685406ebbe862fd08037eb4a81b31524ae422069c61d442b082369ae920c",
"gbrain_queue_page_projection()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=dc7a279205df83f00b9147adea8e609a410d0484d04648ea3fdb4344a5caf259",
"gbrain_refuse_purged_fact()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=7da3c1a6b9fd96be5ce5b09924815ce140cc2cbb1da0755cffc34706846175b9",
"gbrain_refuse_purged_page()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=5a4d7edc34063b61f333fa24f0ce3e632c10d4f4759b023e876ff6624f4180db",
"gbrain_refuse_purged_take()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=16445f63258067ff4fe8a723ef5a04605d8c8d22a927b2239774fb5d0d7e3aa5",
"gbrain_refuse_purging_derivation()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=4bbe0281b504599ecf7facae1e1d6701d8890b692a1bcb559b8dc3549557e169",
"gbrain_release_refresh_barrier()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=0474782d352e51a92be5486f0d1eb0245cd6dc70ab6d7320acc685330690db4b",
"gbrain_require_managed_writer()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=15a834d125e04a6508f114e93e2595800bccf0a8ccfe7e2e23323830580c98a1",
"gbrain_require_persistence_protocol(required integer)": "RETURNS void kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=af07b7fac60dec0a4fe568217931ac449d32f73b3a53a047b3b02a5f59cb5058",
"gbrain_snapshot_version_trust()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=a0aa697992ad1777eaba4a1f4d2325dc4f2a98f3ebf9e81325d1b068406ce1cb",
"gbrain_stamp_revision_attribution()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=d446ed1145d8bb9c93cb0ca4aa076a5dc7a5fe07b3e79518adaf1b17b0a51216",
"gbrain_stamp_trust_tier()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=97d9a8ab7fde70e547ae7bbc87fa3dd749de18e81ffc013f78af3976ee6bd7e3",
"gbrain_stamp_version_attribution()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=1f8fcf3492a9276c52541f6d353d6c709a123b6db4c84bb9a60d77a82fa1672f",
"gbrain_stamp_write_attribution()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=e2dbafe65571fedcadc0441415f58fb5b5209b4c9cefa50e4855f58f0452327c",
"gbrain_try_jsonb(input text)": "RETURNS jsonb kind=f lang=plpgsql volatility=i secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=11b96a0400158fcb3dbd84255985cd11e473688c53fff64ebf92602fceccbedf",
"notify_minion_job_change()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=17f7c36408688409c80befd0a9ef9314e597d78a195418d1b94426e3d0b662f8",
"update_chunk_search_vector()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=b870de46705a62891bb318ecdeca1d0d5ea1f8da9a9a79c4cec6569e515dbdeb",
"update_page_search_vector()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=dd7dd80ac1ffe1877ce9c33f690ee704620c10fce0ff1aedd392525422623e62"
},
"grants": {
"access_group_members": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"access_groups": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"access_member_links": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"access_member_sources": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"access_members": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"access_pending_coverage": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"access_policy_migrations": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"access_policy_revisions": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"access_policy_state": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"access_rules": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"access_tokens": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"belief_commit_marks": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"belief_events": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"belief_page_lifetimes": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"belief_redactions": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"belief_retier_manifest": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"budget_ledger": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"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"
],
"chronicle_judge_reservations": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"chronicle_page_state": [
"<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"
],
"core_edit_notices": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"decide_calibrations": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"decide_proposals": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"decide_review_proposals": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"decide_review_queue": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"decide_spend": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"decide_state": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"decide_sweep_deferred": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"decision_receipts": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"derivation_inputs": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"derived_generation_activations": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"derived_generation_attempts": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"derived_generation_items": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"derived_generation_valve": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"derived_generations": [
"<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_purges": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"fact_relink_attempts": [
"<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"
],
"file_migration_ledger": [
"<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"
],
"git_canonical_brain": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"guest_marks": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"guest_promotions": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"guest_sources": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"ingest_applied_captures": [
"<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"
],
"link_edge_proposals": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"link_relationships": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"link_transitions": [
"<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_request_log_rollup": [
"<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"
],
"memory_proposals": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"mention_gazetteer_entries": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"mention_index_status": [
"<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"
],
"needs_rederive": [
"<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_body_manifest": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"page_body_staging_parts": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"page_body_staging_texts": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"page_body_stagings": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"page_derivation_spend": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"page_embedding_budget": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"page_extraction_state": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"page_facts_reconcile": [
"<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_label_guards": [
"<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_mention_state": [
"<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_purges": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"page_retrievals": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"page_segment_derivation_purge_pages": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"page_segment_derivation_purges": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"page_segment_derivations": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"page_segment_texts": [
"<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_view_digests": [
"<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_consumers": [
"<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_graduation": [
"<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_worktree_refreshes": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"persistence_worktrees": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"persistence_writer_protocols": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"pinned_questions": [
"<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"
],
"question_evidence": [
"<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"
],
"reason_purge_tombstones": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"retrieval_event_links": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"retrieval_event_pages": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"retrieval_events": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"retrieval_feedback": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"retrieval_weights": [
"<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"
],
"slug_rename_history": [
"<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"
],
"sync_notifier_leases": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"sync_notifier_sources": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"sync_wanted_markers": [
"<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_horizons": [
"<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"
],
"take_purges": [
"<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"
],
"trust_allow_rules": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"trust_policy_state": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"trust_proposals": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"wake_cron_runs": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"wake_crons": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"wake_forgets": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"wake_subscriptions": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"wake_terms_acceptances": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"wanted_links": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"write_gate_holds": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"write_gate_receipts": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
]
},
"indexes": {
"access_group_members_member_idx": "CREATE INDEX access_group_members_member_idx ON public.access_group_members USING btree (member_id)",
"access_group_members_pkey": "CREATE UNIQUE INDEX access_group_members_pkey ON public.access_group_members USING btree (group_id, member_id)",
"access_groups_pkey": "CREATE UNIQUE INDEX access_groups_pkey ON public.access_groups USING btree (id)",
"access_member_links_member_idx": "CREATE INDEX access_member_links_member_idx ON public.access_member_links USING btree (member_id)",
"access_member_links_pkey": "CREATE UNIQUE INDEX access_member_links_pkey ON public.access_member_links USING btree (system, external_id)",
"access_member_sources_pkey": "CREATE UNIQUE INDEX access_member_sources_pkey ON public.access_member_sources USING btree (member_id, source_id)",
"access_member_sources_source_idx": "CREATE INDEX access_member_sources_source_idx ON public.access_member_sources USING btree (source_id)",
"access_members_email_key": "CREATE UNIQUE INDEX access_members_email_key ON public.access_members USING btree (email)",
"access_members_pkey": "CREATE UNIQUE INDEX access_members_pkey ON public.access_members USING btree (id)",
"access_pending_coverage_pkey": "CREATE UNIQUE INDEX access_pending_coverage_pkey ON public.access_pending_coverage USING btree (source_id, prefix, reason)",
"access_policy_migrations_pkey": "CREATE UNIQUE INDEX access_policy_migrations_pkey ON public.access_policy_migrations USING btree (id)",
"access_policy_revisions_operation_idx": "CREATE UNIQUE INDEX access_policy_revisions_operation_idx ON public.access_policy_revisions USING btree (operation_id) WHERE (operation_id IS NOT NULL)",
"access_policy_revisions_pkey": "CREATE UNIQUE INDEX access_policy_revisions_pkey ON public.access_policy_revisions USING btree (source_id, revision)",
"access_policy_state_pkey": "CREATE UNIQUE INDEX access_policy_state_pkey ON public.access_policy_state USING btree (source_id)",
"access_rules_pkey": "CREATE UNIQUE INDEX access_rules_pkey ON public.access_rules USING btree (source_id, rule_id)",
"access_tokens_pkey": "CREATE UNIQUE INDEX access_tokens_pkey ON public.access_tokens USING btree (id)",
"access_tokens_token_hash_key": "CREATE UNIQUE INDEX access_tokens_token_hash_key ON public.access_tokens USING btree (token_hash)",
"belief_commit_marks_pkey": "CREATE UNIQUE INDEX belief_commit_marks_pkey ON public.belief_commit_marks USING btree (publication_id)",
"belief_events_claim_fp": "CREATE INDEX belief_events_claim_fp ON public.belief_events USING btree (source_id, claim_fp) WHERE (claim_fp IS NOT NULL)",
"belief_events_event_key_key": "CREATE UNIQUE INDEX belief_events_event_key_key ON public.belief_events USING btree (event_key)",
"belief_events_lifetime": "CREATE INDEX belief_events_lifetime ON public.belief_events USING btree (page_lifetime, id) WHERE (page_lifetime IS NOT NULL)",
"belief_events_page": "CREATE INDEX belief_events_page ON public.belief_events USING btree (source_id, slug, id)",
"belief_events_pkey": "CREATE UNIQUE INDEX belief_events_pkey ON public.belief_events USING btree (id)",
"belief_events_publication": "CREATE INDEX belief_events_publication ON public.belief_events USING btree (publication_id)",
"belief_events_recorded": "CREATE INDEX belief_events_recorded ON public.belief_events USING btree (recorded_at)",
"belief_events_subject": "CREATE INDEX belief_events_subject ON public.belief_events USING btree (source_id, subject_kind, subject_key, id)",
"belief_page_lifetimes_open": "CREATE UNIQUE INDEX belief_page_lifetimes_open ON public.belief_page_lifetimes USING btree (source_incarnation, slug) WHERE (ended_at IS NULL)",
"belief_page_lifetimes_pkey": "CREATE UNIQUE INDEX belief_page_lifetimes_pkey ON public.belief_page_lifetimes USING btree (page_lifetime)",
"belief_page_lifetimes_slug": "CREATE INDEX belief_page_lifetimes_slug ON public.belief_page_lifetimes USING btree (source_id, slug)",
"belief_redactions_field_hash": "CREATE INDEX belief_redactions_field_hash ON public.belief_redactions USING btree (source_id, field_hash)",
"belief_redactions_pkey": "CREATE UNIQUE INDEX belief_redactions_pkey ON public.belief_redactions USING btree (id)",
"belief_redactions_subject": "CREATE INDEX belief_redactions_subject ON public.belief_redactions USING btree (source_id, subject_key, field)",
"belief_retier_manifest_pkey": "CREATE UNIQUE INDEX belief_retier_manifest_pkey ON public.belief_retier_manifest USING btree (summary_event, subject_kind, subject_key)",
"budget_ledger_pkey": "CREATE UNIQUE INDEX budget_ledger_pkey ON public.budget_ledger USING btree (scope, resolver_id, local_date)",
"budget_reservations_pkey": "CREATE UNIQUE INDEX budget_reservations_pkey ON public.budget_reservations USING btree (reservation_id)",
"calibration_profiles_bias_tags_gin": "CREATE INDEX calibration_profiles_bias_tags_gin ON public.calibration_profiles USING gin (active_bias_tags)",
"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)",
"chronicle_judge_reservations_at_idx": "CREATE INDEX chronicle_judge_reservations_at_idx ON public.chronicle_judge_reservations USING btree (reserved_at)",
"chronicle_judge_reservations_pkey": "CREATE UNIQUE INDEX chronicle_judge_reservations_pkey ON public.chronicle_judge_reservations USING btree (id)",
"chronicle_page_state_page_idx": "CREATE INDEX chronicle_page_state_page_idx ON public.chronicle_page_state USING btree (page_id)",
"chronicle_page_state_pkey": "CREATE UNIQUE INDEX chronicle_page_state_pkey ON public.chronicle_page_state USING btree (source_id, page_id, content_hash, extractor_version)",
"chronicle_page_state_work_idx": "CREATE INDEX chronicle_page_state_work_idx ON public.chronicle_page_state USING btree (source_id, state, next_attempt_at)",
"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_generation_idx": "CREATE INDEX content_chunks_generation_idx ON public.content_chunks USING btree (page_id, body_generation) WHERE (body_generation IS NOT NULL)",
"content_chunks_occurrence_generation_idx": "CREATE INDEX content_chunks_occurrence_generation_idx ON public.content_chunks USING btree (page_id, occurrence_id, body_generation)",
"content_chunks_occurrence_idx": "CREATE INDEX content_chunks_occurrence_idx ON public.content_chunks USING btree (page_id, occurrence_id) WHERE (occurrence_id IS NOT NULL)",
"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)",
"core_edit_notices_pending_idx": "CREATE INDEX core_edit_notices_pending_idx ON public.core_edit_notices USING btree (source_id, slug, id) WHERE (acked_at IS NULL)",
"core_edit_notices_pkey": "CREATE UNIQUE INDEX core_edit_notices_pkey ON public.core_edit_notices USING btree (id)",
"decide_calibrations_lookup_idx": "CREATE INDEX decide_calibrations_lookup_idx ON public.decide_calibrations USING btree (slot, provider, model_resolved, created_at DESC)",
"decide_calibrations_pkey": "CREATE UNIQUE INDEX decide_calibrations_pkey ON public.decide_calibrations USING btree (id)",
"decide_proposals_claim_pair_uidx": "CREATE UNIQUE INDEX decide_proposals_claim_pair_uidx ON public.decide_proposals USING btree (source_id, LEAST(new_fact_id, old_fact_id), GREATEST(new_fact_id, old_fact_id)) WHERE (sweep_id ~~ 'claim_conflicts:%'::text)",
"decide_proposals_pending_new_idx": "CREATE INDEX decide_proposals_pending_new_idx ON public.decide_proposals USING btree (new_fact_id) WHERE (status = 'pending'::text)",
"decide_proposals_pending_old_idx": "CREATE INDEX decide_proposals_pending_old_idx ON public.decide_proposals USING btree (old_fact_id) WHERE (status = 'pending'::text)",
"decide_proposals_pkey": "CREATE UNIQUE INDEX decide_proposals_pkey ON public.decide_proposals USING btree (id)",
"decide_proposals_status_created_idx": "CREATE INDEX decide_proposals_status_created_idx ON public.decide_proposals USING btree (status, created_at)",
"decide_proposals_sweep_id_pair_index_key": "CREATE UNIQUE INDEX decide_proposals_sweep_id_pair_index_key ON public.decide_proposals USING btree (sweep_id, pair_index)",
"decide_review_proposals_kind_source_id_a_ref_b_ref_subject_key": "CREATE UNIQUE INDEX decide_review_proposals_kind_source_id_a_ref_b_ref_subject_key ON public.decide_review_proposals USING btree (kind, source_id, a_ref, b_ref, subject)",
"decide_review_proposals_pkey": "CREATE UNIQUE INDEX decide_review_proposals_pkey ON public.decide_review_proposals USING btree (id)",
"decide_review_proposals_status_idx": "CREATE INDEX decide_review_proposals_status_idx ON public.decide_review_proposals USING btree (status, created_at)",
"decide_review_queue_pkey": "CREATE UNIQUE INDEX decide_review_queue_pkey ON public.decide_review_queue USING btree (kind, source_id, a_ref, b_ref)",
"decide_spend_created_idx": "CREATE INDEX decide_spend_created_idx ON public.decide_spend USING btree (created_at)",
"decide_spend_pkey": "CREATE UNIQUE INDEX decide_spend_pkey ON public.decide_spend USING btree (request_id)",
"decide_state_pkey": "CREATE UNIQUE INDEX decide_state_pkey ON public.decide_state USING btree (key)",
"decide_sweep_deferred_pkey": "CREATE UNIQUE INDEX decide_sweep_deferred_pkey ON public.decide_sweep_deferred USING btree (slot, source_id, fact_id)",
"decision_receipts_decision_idx": "CREATE INDEX decision_receipts_decision_idx ON public.decision_receipts USING btree (decision_id)",
"decision_receipts_model_slot_idx": "CREATE INDEX decision_receipts_model_slot_idx ON public.decision_receipts USING btree (model_resolved, slot)",
"decision_receipts_pkey": "CREATE UNIQUE INDEX decision_receipts_pkey ON public.decision_receipts USING btree (id)",
"decision_receipts_slot_created_idx": "CREATE INDEX decision_receipts_slot_created_idx ON public.decision_receipts USING btree (slot, created_at)",
"derivation_inputs_pkey": "CREATE UNIQUE INDEX derivation_inputs_pkey ON public.derivation_inputs USING btree (derived_table, derived_id, input_table, input_id)",
"derived_generation_activations_key": "CREATE INDEX derived_generation_activations_key ON public.derived_generation_activations USING btree (source_id, kind, owner_key, state)",
"derived_generation_activations_pkey": "CREATE UNIQUE INDEX derived_generation_activations_pkey ON public.derived_generation_activations USING btree (id)",
"derived_generation_attempts_key": "CREATE INDEX derived_generation_attempts_key ON public.derived_generation_attempts USING btree (source_id, kind, owner_key)",
"derived_generation_attempts_pkey": "CREATE UNIQUE INDEX derived_generation_attempts_pkey ON public.derived_generation_attempts USING btree (hold_id)",
"derived_generation_items_key": "CREATE INDEX derived_generation_items_key ON public.derived_generation_items USING btree (item_key)",
"derived_generation_items_pending": "CREATE INDEX derived_generation_items_pending ON public.derived_generation_items USING btree (generation_id) WHERE pending",
"derived_generation_items_pkey": "CREATE UNIQUE INDEX derived_generation_items_pkey ON public.derived_generation_items USING btree (generation_id, item_key)",
"derived_generation_valve_pkey": "CREATE UNIQUE INDEX derived_generation_valve_pkey ON public.derived_generation_valve USING btree (source_id, kind, window_key)",
"derived_generations_one_hold": "CREATE UNIQUE INDEX derived_generations_one_hold ON public.derived_generations USING btree (source_id, kind, owner_key) WHERE (state = 'held'::text)",
"derived_generations_one_live": "CREATE UNIQUE INDEX derived_generations_one_live ON public.derived_generations USING btree (source_id, kind, owner_key) WHERE (state = 'live'::text)",
"derived_generations_operation": "CREATE INDEX derived_generations_operation ON public.derived_generations USING btree (operation_id)",
"derived_generations_pkey": "CREATE UNIQUE INDEX derived_generations_pkey ON public.derived_generations USING btree (id)",
"derived_generations_state_created": "CREATE INDEX derived_generations_state_created ON public.derived_generations USING btree (state, created_at)",
"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_purges_all_subjects_idx": "CREATE INDEX fact_purges_all_subjects_idx ON public.fact_purges USING btree (source_id, purged_at) WHERE (subject = '*'::text)",
"fact_purges_pkey": "CREATE UNIQUE INDEX fact_purges_pkey ON public.fact_purges USING btree (source_id, visibility, subject, fact_hash)",
"fact_purges_subject_idx": "CREATE INDEX fact_purges_subject_idx ON public.fact_purges USING btree (source_id, subject, fact_hash) INCLUDE (visibility, purged_at)",
"fact_relink_attempts_outcome_idx": "CREATE INDEX fact_relink_attempts_outcome_idx ON public.fact_relink_attempts USING btree (source_id, outcome, attempted_at)",
"fact_relink_attempts_pkey": "CREATE UNIQUE INDEX fact_relink_attempts_pkey ON public.fact_relink_attempts USING btree (source_id, fact_id)",
"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)",
"file_migration_ledger_pkey": "CREATE UNIQUE INDEX file_migration_ledger_pkey ON public.file_migration_ledger USING btree (file_id)",
"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)",
"git_canonical_brain_pkey": "CREATE UNIQUE INDEX git_canonical_brain_pkey ON public.git_canonical_brain USING btree (singleton)",
"guest_marks_audience_saved_idx": "CREATE INDEX guest_marks_audience_saved_idx ON public.guest_marks USING btree (audience_member, saved_at)",
"guest_marks_pkey": "CREATE UNIQUE INDEX guest_marks_pkey ON public.guest_marks USING btree (page_id)",
"guest_promotions_guest_page_idx": "CREATE INDEX guest_promotions_guest_page_idx ON public.guest_promotions USING btree (guest_page_id)",
"guest_promotions_link_key": "CREATE UNIQUE INDEX guest_promotions_link_key ON public.guest_promotions USING btree (guest_page_id, target_source_id, target_slug)",
"guest_promotions_pkey": "CREATE UNIQUE INDEX guest_promotions_pkey ON public.guest_promotions USING btree (id)",
"guest_sources_pkey": "CREATE UNIQUE INDEX guest_sources_pkey ON public.guest_sources USING btree (source_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_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_derivation_inputs_input": "CREATE INDEX idx_derivation_inputs_input ON public.derivation_inputs USING btree (input_table, input_id)",
"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_belief_stream": "CREATE INDEX idx_facts_belief_stream ON public.facts USING btree (source_id, source_markdown_slug) WHERE (expired_at IS NULL)",
"idx_facts_context_head": "CREATE INDEX idx_facts_context_head ON public.facts USING btree (source_id, md5(split_part(context, ' — '::text, 1))) WHERE (source_markdown_slug IS NULL)",
"idx_facts_dimension": "CREATE INDEX idx_facts_dimension ON public.facts USING btree (source_id, entity_slug, dimension, valid_from DESC) WHERE ((expired_at IS NULL) AND (dimension IS NOT NULL))",
"idx_facts_embedding_hnsw": "CREATE INDEX idx_facts_embedding_hnsw ON public.facts USING hnsw (embedding halfvec_cosine_ops) WHERE ((embedding IS NOT NULL) AND (expired_at IS NULL))",
"idx_facts_embedding_model": "CREATE INDEX idx_facts_embedding_model ON public.facts USING btree (source_id, embedding_model) WHERE (expired_at IS NULL)",
"idx_facts_entity_active": "CREATE INDEX idx_facts_entity_active ON public.facts USING btree (source_id, entity_slug, valid_from DESC) WHERE (expired_at IS NULL)",
"idx_facts_extract_conversation_session": "CREATE INDEX idx_facts_extract_conversation_session ON public.facts USING btree (source_id, source_session) WHERE (source ~~ 'cli:extract-conversation-facts%'::text)",
"idx_facts_fence_key": "CREATE UNIQUE INDEX idx_facts_fence_key ON public.facts USING btree (source_id, source_markdown_slug, row_num) WHERE (row_num IS NOT NULL)",
"idx_facts_fts": "CREATE INDEX idx_facts_fts ON public.facts USING gin (to_tsvector('english'::regconfig, ((fact || ' '::text) || replace(COALESCE(entity_slug, ''::text), '-'::text, ' '::text)))) WHERE (expired_at IS NULL)",
"idx_facts_ontology_stint_dedup": "CREATE UNIQUE INDEX idx_facts_ontology_stint_dedup ON public.facts USING btree (source_id, entity_slug, dimension, value_hash, source_markdown_slug, valid_from) WHERE (dimension IS NOT NULL)",
"idx_facts_session": "CREATE INDEX idx_facts_session ON public.facts USING btree (source_id, source_session, created_at DESC) WHERE (expired_at IS NULL)",
"idx_facts_since": "CREATE INDEX idx_facts_since ON public.facts USING btree (source_id, created_at DESC) WHERE (expired_at IS NULL)",
"idx_facts_since_event_time": "CREATE INDEX idx_facts_since_event_time ON public.facts USING btree (source_id, COALESCE(valid_from, created_at) DESC) WHERE (expired_at IS NULL)",
"idx_facts_superseded_by": "CREATE INDEX idx_facts_superseded_by ON public.facts USING btree (superseded_by) WHERE (superseded_by IS NOT NULL)",
"idx_facts_unconsolidated": "CREATE INDEX idx_facts_unconsolidated ON public.facts USING btree (source_id, entity_slug) WHERE ((consolidated_at IS NULL) AND (expired_at IS NULL))",
"idx_facts_unembedded": "CREATE INDEX idx_facts_unembedded ON public.facts USING btree (source_id) WHERE ((expired_at IS NULL) AND ((embedding IS NULL) OR (embedded_text_hash IS DISTINCT FROM md5(fact))))",
"idx_facts_unlinked_active": "CREATE INDEX idx_facts_unlinked_active ON public.facts USING btree (source_id, id) WHERE ((entity_slug IS NULL) AND (expired_at IS NULL))",
"idx_facts_withdrawal_fingerprint": "CREATE INDEX idx_facts_withdrawal_fingerprint ON public.facts USING btree (source_id, visibility, gbrain_fact_fingerprint(fact))",
"idx_file_migration_ledger_status": "CREATE INDEX idx_file_migration_ledger_status ON public.file_migration_ledger USING btree (status) WHERE (status <> 'complete'::text)",
"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_supersedes_to": "CREATE INDEX idx_links_supersedes_to ON public.links USING btree (to_page_id) WHERE (link_type = 'supersedes'::text)",
"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_budget_key": "CREATE INDEX idx_mcp_spend_log_budget_key ON public.mcp_spend_log USING btree (budget_key) WHERE (budget_key IS NOT NULL)",
"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_budget_key": "CREATE INDEX idx_mcp_spend_reservations_budget_key ON public.mcp_spend_reservations USING btree (budget_key) WHERE (budget_key IS NOT NULL)",
"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_spend_group": "CREATE INDEX idx_minion_jobs_spend_group ON public.minion_jobs USING btree (((spend_authorization ->> 'group_id'::text))) WHERE (spend_authorization IS NOT NULL)",
"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_projection_waiting": "CREATE INDEX idx_pages_projection_waiting ON public.pages USING btree (source_id, page_kind, slug) WHERE ((deleted_at IS NULL) AND (text_projection_revision IS DISTINCT FROM knowledge_revision) AND (text_projection_revision IS DISTINCT FROM '00000000-0000-0000-0000-000000000153'::uuid))",
"idx_pages_search": "CREATE INDEX idx_pages_search ON public.pages USING gin (search_vector)",
"idx_pages_slug_basename": "CREATE INDEX idx_pages_slug_basename ON public.pages USING btree (source_id, regexp_replace(slug, '^.*/'::text, ''::text))",
"idx_pages_slug_trgm": "CREATE INDEX idx_pages_slug_trgm ON public.pages USING gin (slug gin_trgm_ops)",
"idx_pages_source_id": "CREATE INDEX idx_pages_source_id ON public.pages USING btree (source_id)",
"idx_pages_source_title_lower": "CREATE INDEX idx_pages_source_title_lower ON public.pages USING btree (source_id, lower(title))",
"idx_pages_source_type": "CREATE INDEX idx_pages_source_type ON public.pages USING btree (source_id, type) WHERE (deleted_at IS NULL)",
"idx_pages_title_search": "CREATE INDEX idx_pages_title_search ON public.pages USING gin (ts_filter(search_vector, '{a}'::\"char\"[]))",
"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_applied_captures_applied_at_idx": "CREATE INDEX ingest_applied_captures_applied_at_idx ON public.ingest_applied_captures USING btree (applied_at)",
"ingest_applied_captures_pkey": "CREATE UNIQUE INDEX ingest_applied_captures_pkey ON public.ingest_applied_captures USING btree (idempotency_key)",
"ingest_log_marked_idx": "CREATE INDEX ingest_log_marked_idx ON public.ingest_log USING btree (created_at) WHERE (writer_segment_reader IS TRUE)",
"ingest_log_pkey": "CREATE UNIQUE INDEX ingest_log_pkey ON public.ingest_log USING btree (id)",
"ingest_log_unmarked_idx": "CREATE INDEX ingest_log_unmarked_idx ON public.ingest_log USING btree (created_at) WHERE (writer_segment_reader IS NOT TRUE)",
"link_edge_proposals_from_page_id_a_to_page_id_b_to_page_id__key": "CREATE UNIQUE INDEX link_edge_proposals_from_page_id_a_to_page_id_b_to_page_id__key ON public.link_edge_proposals USING btree (from_page_id, a_to_page_id, b_to_page_id, link_type, evidence_hash)",
"link_edge_proposals_pkey": "CREATE UNIQUE INDEX link_edge_proposals_pkey ON public.link_edge_proposals USING btree (id)",
"link_edge_proposals_status_idx": "CREATE INDEX link_edge_proposals_status_idx ON public.link_edge_proposals USING btree (source_id, status, created_at)",
"link_relationships_pkey": "CREATE UNIQUE INDEX link_relationships_pkey ON public.link_relationships USING btree (from_page_id, to_page_id, link_type, scope)",
"link_relationships_source_idx": "CREATE INDEX link_relationships_source_idx ON public.link_relationships USING btree (source_id, status_now)",
"link_relationships_to_idx": "CREATE INDEX link_relationships_to_idx ON public.link_relationships USING btree (to_page_id, link_type, scope)",
"link_transitions_identity_idx": "CREATE UNIQUE INDEX link_transitions_identity_idx ON public.link_transitions USING btree (origin_page_id, from_page_id, to_page_id, link_type, link_source, kind, occurred_on, producer) NULLS NOT DISTINCT",
"link_transitions_origin_idx": "CREATE INDEX link_transitions_origin_idx ON public.link_transitions USING btree (origin_page_id)",
"link_transitions_pkey": "CREATE UNIQUE INDEX link_transitions_pkey ON public.link_transitions USING btree (id)",
"link_transitions_relationship_idx": "CREATE INDEX link_transitions_relationship_idx ON public.link_transitions USING btree (from_page_id, to_page_id, link_type)",
"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_request_log_rollup_pkey": "CREATE UNIQUE INDEX mcp_request_log_rollup_pkey ON public.mcp_request_log_rollup USING btree (token_name)",
"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)",
"memory_proposals_closed_idx": "CREATE INDEX memory_proposals_closed_idx ON public.memory_proposals USING btree (decided_at) WHERE (state <> 'awaiting_owner'::text)",
"memory_proposals_pending_actor_idx": "CREATE INDEX memory_proposals_pending_actor_idx ON public.memory_proposals USING btree (principal_kind, principal_id, member_id, expires_at) WHERE (state = 'awaiting_owner'::text)",
"memory_proposals_pending_source_idx": "CREATE INDEX memory_proposals_pending_source_idx ON public.memory_proposals USING btree (source_id, created_at) WHERE (state = 'awaiting_owner'::text)",
"memory_proposals_pkey": "CREATE UNIQUE INDEX memory_proposals_pkey ON public.memory_proposals USING btree (principal_kind, principal_id, request_id)",
"memory_proposals_request_idx": "CREATE INDEX memory_proposals_request_idx ON public.memory_proposals USING btree (request_id)",
"mention_gazetteer_entries_pkey": "CREATE UNIQUE INDEX mention_gazetteer_entries_pkey ON public.mention_gazetteer_entries USING btree (source_id, name_norm, target_slug, case_sensitive)",
"mention_index_status_pkey": "CREATE UNIQUE INDEX mention_index_status_pkey ON public.mention_index_status USING btree (source_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_doctor_run_id_idx": "CREATE INDEX minion_jobs_doctor_run_id_idx ON public.minion_jobs USING gin (data jsonb_path_ops) WHERE (data ? 'doctor_run_id'::text)",
"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)",
"needs_rederive_pkey": "CREATE UNIQUE INDEX needs_rederive_pkey ON public.needs_rederive USING btree (derived_table, derived_id)",
"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_sync_hold_page_idx": "CREATE INDEX op_checkpoints_sync_hold_page_idx ON public.op_checkpoints USING btree ((((completed_keys -> 0) ->> 'page_id'::text))) WHERE (op = 'sync-hold'::text)",
"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_counterparty_source_idx": "CREATE INDEX open_loops_counterparty_source_idx ON public.open_loops USING btree (counterparty_source_id, counterparty_slug) WHERE ((status = 'open'::text) AND (counterparty_source_id IS NOT NULL))",
"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_origin_uniq": "CREATE UNIQUE INDEX page_aliases_origin_uniq ON public.page_aliases USING btree (source_id, alias_norm, slug, origin)",
"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_body_manifest_live_bytes": "CREATE INDEX page_body_manifest_live_bytes ON public.page_body_manifest USING btree (page_id, byte_start) WHERE (gen_to IS NULL)",
"page_body_manifest_live_seq": "CREATE UNIQUE INDEX page_body_manifest_live_seq ON public.page_body_manifest USING btree (page_id, seq) WHERE ((gen_to IS NULL) AND (staging_id IS NULL))",
"page_body_manifest_pkey": "CREATE UNIQUE INDEX page_body_manifest_pkey ON public.page_body_manifest USING btree (page_id, occurrence_id, gen_from, staging_key)",
"page_body_manifest_staging": "CREATE INDEX page_body_manifest_staging ON public.page_body_manifest USING btree (staging_id) WHERE (staging_id IS NOT NULL)",
"page_body_manifest_text": "CREATE INDEX page_body_manifest_text ON public.page_body_manifest USING btree (source_id, sha256)",
"page_body_staging_parts_pkey": "CREATE UNIQUE INDEX page_body_staging_parts_pkey ON public.page_body_staging_parts USING btree (staging_id, part_no)",
"page_body_staging_texts_pkey": "CREATE UNIQUE INDEX page_body_staging_texts_pkey ON public.page_body_staging_texts USING btree (staging_id, sha256)",
"page_body_staging_texts_text": "CREATE INDEX page_body_staging_texts_text ON public.page_body_staging_texts USING btree (source_id, sha256)",
"page_body_stagings_expiry": "CREATE INDEX page_body_stagings_expiry ON public.page_body_stagings USING btree (hard_expires_at) WHERE (state = ANY (ARRAY['open'::text, 'sealed'::text, 'prepared'::text]))",
"page_body_stagings_pkey": "CREATE UNIQUE INDEX page_body_stagings_pkey ON public.page_body_stagings USING btree (id)",
"page_body_stagings_principal_kind_principal_id_client_reque_key": "CREATE UNIQUE INDEX page_body_stagings_principal_kind_principal_id_client_reque_key ON public.page_body_stagings USING btree (principal_kind, principal_id, client_request_id)",
"page_derivation_spend_pkey": "CREATE UNIQUE INDEX page_derivation_spend_pkey ON public.page_derivation_spend USING btree (page_id, family)",
"page_embedding_budget_pkey": "CREATE UNIQUE INDEX page_embedding_budget_pkey ON public.page_embedding_budget USING btree (page_id)",
"page_embedding_budget_state_idx": "CREATE INDEX page_embedding_budget_state_idx ON public.page_embedding_budget USING btree (state) WHERE (state <> 'open'::text)",
"page_extraction_state_pkey": "CREATE UNIQUE INDEX page_extraction_state_pkey ON public.page_extraction_state USING btree (page_id, pipeline)",
"page_extraction_state_truncated_idx": "CREATE INDEX page_extraction_state_truncated_idx ON public.page_extraction_state USING btree (pipeline, page_id) WHERE (input_truncated IS NOT NULL)",
"page_facts_reconcile_pkey": "CREATE UNIQUE INDEX page_facts_reconcile_pkey ON public.page_facts_reconcile USING btree (page_id)",
"page_generation_clock_pkey": "CREATE UNIQUE INDEX page_generation_clock_pkey ON public.page_generation_clock USING btree (id)",
"page_label_guards_pkey": "CREATE UNIQUE INDEX page_label_guards_pkey ON public.page_label_guards USING btree (page_id)",
"page_mention_state_pkey": "CREATE UNIQUE INDEX page_mention_state_pkey ON public.page_mention_state USING btree (page_id)",
"page_mention_state_source_idx": "CREATE INDEX page_mention_state_source_idx ON public.page_mention_state USING btree (source_id, mention_version)",
"page_projection_jobs_pkey": "CREATE UNIQUE INDEX page_projection_jobs_pkey ON public.page_projection_jobs USING btree (source_incarnation, slug)",
"page_purges_pkey": "CREATE UNIQUE INDEX page_purges_pkey ON public.page_purges USING btree (source_id, content_hash)",
"page_retrievals_pkey": "CREATE UNIQUE INDEX page_retrievals_pkey ON public.page_retrievals USING btree (page_id)",
"page_segment_derivation_purge_pages_pkey": "CREATE UNIQUE INDEX page_segment_derivation_purge_pages_pkey ON public.page_segment_derivation_purge_pages USING btree (request_id, page_id)",
"page_segment_derivation_purges_pkey": "CREATE UNIQUE INDEX page_segment_derivation_purges_pkey ON public.page_segment_derivation_purges USING btree (request_id)",
"page_segment_derivation_purges_source": "CREATE INDEX page_segment_derivation_purges_source ON public.page_segment_derivation_purges USING btree (source_id, created_at)",
"page_segment_derivations_pkey": "CREATE UNIQUE INDEX page_segment_derivations_pkey ON public.page_segment_derivations USING btree (page_id, pipeline, occurrence_id)",
"page_segment_derivations_unsettled": "CREATE INDEX page_segment_derivations_unsettled ON public.page_segment_derivations USING btree (pipeline, page_id) WHERE (state = ANY (ARRAY['partial'::text, 'failed'::text]))",
"page_segment_texts_pkey": "CREATE UNIQUE INDEX page_segment_texts_pkey ON public.page_segment_texts USING btree (source_id, sha256)",
"page_versions_pkey": "CREATE UNIQUE INDEX page_versions_pkey ON public.page_versions USING btree (id)",
"page_view_digests_pkey": "CREATE UNIQUE INDEX page_view_digests_pkey ON public.page_view_digests USING btree (page_id, revision, view, audience)",
"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_file_uri_name_idx": "CREATE INDEX pages_file_uri_name_idx ON public.pages USING btree (source_id, regexp_replace(source_uri, '^.*/'::text, ''::text)) WHERE (source_uri ~~ 'file:%'::text)",
"pages_folder_rule_ids_gin": "CREATE INDEX pages_folder_rule_ids_gin ON public.pages USING gin (folder_rule_ids) WHERE (folder_rule_ids IS NOT NULL)",
"pages_generation_idx": "CREATE INDEX pages_generation_idx ON public.pages USING btree (generation)",
"pages_links_extracted_at_idx": "CREATE INDEX pages_links_extracted_at_idx ON public.pages USING btree (source_id, links_extracted_at)",
"pages_live_origin_key": "CREATE UNIQUE INDEX pages_live_origin_key ON public.pages USING btree (source_id, source_path) WHERE ((deleted_at IS NULL) AND (source_path IS NOT NULL))",
"pages_page_readers_gin": "CREATE INDEX pages_page_readers_gin ON public.pages USING gin (page_readers) WHERE (page_readers IS NOT NULL)",
"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_segmented_body_bytes_idx": "CREATE INDEX pages_segmented_body_bytes_idx ON public.pages USING btree (body_bytes) WHERE (body_storage = 'segmented'::text)",
"pages_source_created_idx": "CREATE INDEX pages_source_created_idx ON public.pages USING btree (source_id, created_at) WHERE (deleted_at IS NULL)",
"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_path_name_idx": "CREATE INDEX pages_source_path_name_idx ON public.pages USING btree (source_id, regexp_replace(replace(btrim(source_path), chr(92), '/'::text), '^.*/'::text, ''::text)) 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_consumers_pkey": "CREATE UNIQUE INDEX persistence_consumers_pkey ON public.persistence_consumers USING btree (host_id, pid, nonce)",
"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_graduation_pkey": "CREATE UNIQUE INDEX persistence_graduation_pkey ON public.persistence_graduation USING btree (singleton)",
"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_compactable": "CREATE INDEX persistence_requests_compactable ON public.persistence_requests USING btree (completed_at) WHERE ((recovery IS NULL) AND (NOT compacted) AND (state = ANY (ARRAY['committed'::text, 'conflict'::text, 'failed'::text, 'cancelled'::text])))",
"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_foreground_committed": "CREATE INDEX persistence_requests_foreground_committed ON public.persistence_requests USING btree (worktree_id, sequence) WHERE ((state = 'committed'::text) AND (NOT (COALESCE((intent ->> 'kind'::text), ''::text) ~~ 'managed_sync_%'::text)))",
"persistence_requests_open": "CREATE INDEX persistence_requests_open ON public.persistence_requests USING btree (worktree_id, sequence) WHERE (state = ANY (ARRAY['queued'::text, 'deferred'::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_replay_id": "CREATE INDEX persistence_requests_replay_id ON public.persistence_requests USING btree (request_id)",
"persistence_requests_request_id": "CREATE INDEX persistence_requests_request_id ON public.persistence_requests USING btree (source_id, request_id)",
"persistence_requests_sequence_key": "CREATE UNIQUE INDEX persistence_requests_sequence_key ON public.persistence_requests USING btree (sequence)",
"persistence_requests_slug_intent": "CREATE INDEX persistence_requests_slug_intent ON public.persistence_requests USING btree (source_id, slug, sequence) WHERE ((intent IS NOT NULL) AND (NOT compacted))",
"persistence_requests_slug_sequence": "CREATE INDEX persistence_requests_slug_sequence ON public.persistence_requests USING btree (source_id, slug, sequence)",
"persistence_requests_sync_run_committed": "CREATE INDEX persistence_requests_sync_run_committed ON public.persistence_requests USING btree (source_id, ((intent ->> 'runId'::text)), ((intent ->> 'index'::text))) WHERE ((state = 'committed'::text) AND (intent ? 'runId'::text))",
"persistence_requests_sync_run_open": "CREATE INDEX persistence_requests_sync_run_open ON public.persistence_requests USING btree (worktree_id, ((intent ->> 'runId'::text))) WHERE ((state <> 'committed'::text) AND ((intent ->> 'kind'::text) = ANY (ARRAY['managed_sync_import'::text, 'managed_sync_delete'::text])))",
"persistence_requests_sync_watermark": "CREATE INDEX persistence_requests_sync_watermark ON public.persistence_requests USING btree (worktree_id, source_incarnation, completed_at DESC) WHERE ((state = 'committed'::text) AND (COALESCE((intent ->> 'kind'::text), ''::text) ~~ 'managed_sync_%'::text))",
"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_worktree_refreshes_active": "CREATE UNIQUE INDEX persistence_worktree_refreshes_active ON public.persistence_worktree_refreshes USING btree (worktree_id) WHERE (state = ANY (ARRAY['draining'::text, 'fenced'::text, 'merged'::text, 'syncing'::text, 'recovery_required'::text]))",
"persistence_worktree_refreshes_completed": "CREATE INDEX persistence_worktree_refreshes_completed ON public.persistence_worktree_refreshes USING btree (worktree_id, completed_at DESC) WHERE (state = 'completed'::text)",
"persistence_worktree_refreshes_pkey": "CREATE UNIQUE INDEX persistence_worktree_refreshes_pkey ON public.persistence_worktree_refreshes USING btree (id)",
"persistence_worktrees_pkey": "CREATE UNIQUE INDEX persistence_worktrees_pkey ON public.persistence_worktrees USING btree (id)",
"persistence_writer_protocols_pkey": "CREATE UNIQUE INDEX persistence_writer_protocols_pkey ON public.persistence_writer_protocols USING btree (worktree_id, host_id)",
"pinned_questions_pkey": "CREATE UNIQUE INDEX pinned_questions_pkey ON public.pinned_questions USING btree (id)",
"pinned_questions_source_slug_key": "CREATE UNIQUE INDEX pinned_questions_source_slug_key ON public.pinned_questions USING btree (source_id, slug)",
"pinned_questions_state_idx": "CREATE INDEX pinned_questions_state_idx ON public.pinned_questions USING btree (state, source_id)",
"query_cache_pkey": "CREATE UNIQUE INDEX query_cache_pkey ON public.query_cache USING btree (id)",
"question_evidence_pkey": "CREATE UNIQUE INDEX question_evidence_pkey ON public.question_evidence USING btree (id)",
"question_evidence_question_idx": "CREATE INDEX question_evidence_question_idx ON public.question_evidence USING btree (question_id, answer_revision)",
"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)",
"reason_purge_tombstones_pkey": "CREATE UNIQUE INDEX reason_purge_tombstones_pkey ON public.reason_purge_tombstones USING btree (source_id, commit_sha, path)",
"retrieval_event_links_pkey": "CREATE UNIQUE INDEX retrieval_event_links_pkey ON public.retrieval_event_links USING btree (event_id, source_id, edge_key, to_slug)",
"retrieval_event_pages_pkey": "CREATE UNIQUE INDEX retrieval_event_pages_pkey ON public.retrieval_event_pages USING btree (event_id, source_id, slug)",
"retrieval_events_pkey": "CREATE UNIQUE INDEX retrieval_events_pkey ON public.retrieval_events USING btree (id)",
"retrieval_events_time_idx": "CREATE INDEX retrieval_events_time_idx ON public.retrieval_events USING btree (created_at)",
"retrieval_feedback_client_time_idx": "CREATE INDEX retrieval_feedback_client_time_idx ON public.retrieval_feedback USING btree (client_id, applied_at DESC)",
"retrieval_feedback_pkey": "CREATE UNIQUE INDEX retrieval_feedback_pkey ON public.retrieval_feedback USING btree (event_id, signal, element_kind, source_id, element_key)",
"retrieval_weights_pkey": "CREATE UNIQUE INDEX retrieval_weights_pkey ON public.retrieval_weights USING btree (source_id, element_kind, element_key)",
"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)",
"slug_rename_history_new_idx": "CREATE INDEX slug_rename_history_new_idx ON public.slug_rename_history USING btree (source_id, new_slug)",
"slug_rename_history_pkey": "CREATE UNIQUE INDEX slug_rename_history_pkey ON public.slug_rename_history USING btree (source_id, old_slug, new_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)",
"sync_notifier_leases_pkey": "CREATE UNIQUE INDEX sync_notifier_leases_pkey ON public.sync_notifier_leases USING btree (host_id)",
"sync_notifier_sources_pkey": "CREATE UNIQUE INDEX sync_notifier_sources_pkey ON public.sync_notifier_sources USING btree (source_id)",
"sync_wanted_markers_pkey": "CREATE UNIQUE INDEX sync_wanted_markers_pkey ON public.sync_wanted_markers USING btree (source_id, intent)",
"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_horizons_date_idx": "CREATE INDEX take_horizons_date_idx ON public.take_horizons USING btree (horizon_date)",
"take_horizons_pkey": "CREATE UNIQUE INDEX take_horizons_pkey ON public.take_horizons USING btree (take_id)",
"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)",
"take_purges_pkey": "CREATE UNIQUE INDEX take_purges_pkey ON public.take_purges USING btree (source_id, subject, claim_hash)",
"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)",
"trust_allow_rules_active_idx": "CREATE INDEX trust_allow_rules_active_idx ON public.trust_allow_rules USING btree (source_id) WHERE (removed_at IS NULL)",
"trust_allow_rules_active_unique": "CREATE UNIQUE INDEX trust_allow_rules_active_unique ON public.trust_allow_rules USING btree (source_id, COALESCE(uri_prefix, ''::text), COALESCE(reason_family, ''::text)) WHERE (removed_at IS NULL)",
"trust_allow_rules_pkey": "CREATE UNIQUE INDEX trust_allow_rules_pkey ON public.trust_allow_rules USING btree (id)",
"trust_policy_state_pkey": "CREATE UNIQUE INDEX trust_policy_state_pkey ON public.trust_policy_state USING btree (id)",
"trust_proposals_pending_idx": "CREATE INDEX trust_proposals_pending_idx ON public.trust_proposals USING btree (source_id, created_at) WHERE (status = 'pending'::text)",
"trust_proposals_pending_unique": "CREATE UNIQUE INDEX trust_proposals_pending_unique ON public.trust_proposals USING btree (action, target_table, target_id, COALESCE(related_table, ''::text), COALESCE(related_id, (0)::bigint)) WHERE (status = 'pending'::text)",
"trust_proposals_pkey": "CREATE UNIQUE INDEX trust_proposals_pkey ON public.trust_proposals USING btree (id)",
"trust_proposals_target_idx": "CREATE INDEX trust_proposals_target_idx ON public.trust_proposals USING btree (target_table, target_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)",
"wake_cron_runs_name_idx": "CREATE INDEX wake_cron_runs_name_idx ON public.wake_cron_runs USING btree (name, finished_at)",
"wake_cron_runs_pkey": "CREATE UNIQUE INDEX wake_cron_runs_pkey ON public.wake_cron_runs USING btree (id)",
"wake_crons_pkey": "CREATE UNIQUE INDEX wake_crons_pkey ON public.wake_crons USING btree (name)",
"wake_forgets_due_idx": "CREATE INDEX wake_forgets_due_idx ON public.wake_forgets USING btree (next_attempt_at) WHERE (state = 'pending'::text)",
"wake_forgets_pending_unique": "CREATE UNIQUE INDEX wake_forgets_pending_unique ON public.wake_forgets USING btree (wake_user) WHERE (state = 'pending'::text)",
"wake_forgets_pkey": "CREATE UNIQUE INDEX wake_forgets_pkey ON public.wake_forgets USING btree (id)",
"wake_subscriptions_open_idx": "CREATE INDEX wake_subscriptions_open_idx ON public.wake_subscriptions USING btree (next_attempt_at) WHERE (state = 'open'::text)",
"wake_subscriptions_open_unique": "CREATE UNIQUE INDEX wake_subscriptions_open_unique ON public.wake_subscriptions USING btree (wake_user, ws_subscription_id) WHERE (state = 'open'::text)",
"wake_subscriptions_pkey": "CREATE UNIQUE INDEX wake_subscriptions_pkey ON public.wake_subscriptions USING btree (id)",
"wake_subscriptions_principal_idx": "CREATE INDEX wake_subscriptions_principal_idx ON public.wake_subscriptions USING btree (principal_kind, principal_id, created_at DESC)",
"wake_terms_acceptances_pkey": "CREATE UNIQUE INDEX wake_terms_acceptances_pkey ON public.wake_terms_acceptances USING btree (principal_key, terms_version)",
"wanted_links_pkey": "CREATE UNIQUE INDEX wanted_links_pkey ON public.wanted_links USING btree (id)",
"wanted_links_reference_unique": "CREATE UNIQUE INDEX wanted_links_reference_unique ON public.wanted_links USING btree (origin_page_id, producer, ref_kind, target_source_id, target_ref)",
"wanted_links_source_idx": "CREATE INDEX wanted_links_source_idx ON public.wanted_links USING btree (source_id)",
"wanted_links_target_idx": "CREATE INDEX wanted_links_target_idx ON public.wanted_links USING btree (target_source_id, target_ref)",
"write_gate_holds_dedupe_idx": "CREATE UNIQUE INDEX write_gate_holds_dedupe_idx ON public.write_gate_holds USING btree (source_id, slug, fingerprint, detector_version)",
"write_gate_holds_pkey": "CREATE UNIQUE INDEX write_gate_holds_pkey ON public.write_gate_holds USING btree (id)",
"write_gate_holds_status_idx": "CREATE INDEX write_gate_holds_status_idx ON public.write_gate_holds USING btree (status, source_id, id)",
"write_gate_receipts_pkey": "CREATE UNIQUE INDEX write_gate_receipts_pkey ON public.write_gate_receipts USING btree (id)",
"write_gate_receipts_seen_idx": "CREATE INDEX write_gate_receipts_seen_idx ON public.write_gate_receipts USING btree (last_seen_at)",
"write_gate_receipts_target_idx": "CREATE UNIQUE INDEX write_gate_receipts_target_idx ON public.write_gate_receipts USING btree (target_table, target_id, content_hash, detector_version)"
},
"policies": {},
"sequences": {
"belief_events_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_events.id",
"belief_redactions_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=belief_redactions.id",
"calibration_profiles_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=calibration_profiles.id",
"chat_usage_log_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chat_usage_log.id",
"chronicle_judge_reservations_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=chronicle_judge_reservations.id",
"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",
"core_edit_notices_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=core_edit_notices.id",
"decide_calibrations_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=decide_calibrations.id",
"decide_proposals_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=decide_proposals.id",
"decide_review_proposals_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=decide_review_proposals.id",
"decision_receipts_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=decision_receipts.id",
"derived_generations_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=derived_generations.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",
"graph_generation_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=-",
"guest_promotions_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=guest_promotions.id",
"ingest_log_id_seq": "integer start=1 min=1 max=2147483647 increment=1 cycle=false cache=1 owned_by=ingest_log.id",
"link_edge_proposals_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=link_edge_proposals.id",
"link_transitions_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=link_transitions.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_body_occurrence_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=-",
"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",
"pinned_questions_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=pinned_questions.id",
"question_evidence_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=question_evidence.id",
"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",
"trust_allow_rules_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=trust_allow_rules.id",
"trust_proposals_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=trust_proposals.id",
"wake_cron_runs_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=wake_cron_runs.id",
"wake_forgets_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=wake_forgets.id",
"wake_subscriptions_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=wake_subscriptions.id",
"wanted_links_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=wanted_links.id",
"write_gate_holds_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=write_gate_holds.id",
"write_gate_receipts_id_seq": "bigint start=1 min=1 max=9223372036854775807 increment=1 cycle=false cache=1 owned_by=write_gate_receipts.id"
},
"tables": {
"access_group_members": {
"columns": [
"1 group_id text/text NOT NULL",
"2 member_id text/text NOT NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"access_groups": {
"columns": [
"1 id text/text NOT NULL",
"2 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"access_member_links": {
"columns": [
"1 system text/text NOT NULL",
"2 external_id text/text NOT NULL",
"3 member_id text/text NOT NULL",
"4 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"access_member_sources": {
"columns": [
"1 member_id text/text NOT NULL",
"2 source_id text/text NOT NULL",
"3 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"access_members": {
"columns": [
"1 id text/text NOT NULL",
"2 display_name text/text NULL",
"3 disabled_at timestamp with time zone/timestamptz NULL",
"4 tombstoned_at timestamp with time zone/timestamptz NULL",
"5 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"6 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"7 email text/text NULL",
"8 kind text/text NOT NULL DEFAULT 'person'::text",
"9 labelled_only boolean/bool NOT NULL DEFAULT false"
],
"flags": "relkind=r rls=true force_rls=false"
},
"access_pending_coverage": {
"columns": [
"1 source_id text/text NOT NULL",
"2 prefix text/text NOT NULL",
"3 reason text/text NOT NULL",
"4 revision bigint/int8 NULL",
"5 detail jsonb/jsonb NULL",
"6 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"access_policy_migrations": {
"columns": [
"1 id text/text NOT NULL",
"2 source_id text/text NOT NULL",
"3 direction text/text NOT NULL",
"4 phase text/text NOT NULL",
"5 receipts jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
"6 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"7 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"access_policy_revisions": {
"columns": [
"1 source_id text/text NOT NULL",
"2 revision bigint/int8 NOT NULL",
"3 rules jsonb/jsonb NOT NULL",
"4 digest text/text NOT NULL",
"5 change_kind text/text NOT NULL",
"6 origin text/text NOT NULL",
"7 operation_id text/text NULL",
"8 proposed_by text/text NULL",
"9 approved_by text/text NULL",
"10 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"11 applied_at timestamp with time zone/timestamptz NULL",
"12 approved_at timestamp with time zone/timestamptz NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"access_policy_state": {
"columns": [
"1 source_id text/text NOT NULL",
"2 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"access_rules": {
"columns": [
"1 source_id text/text NOT NULL",
"2 rule_id text/text NOT NULL",
"3 prefix text/text NOT NULL",
"4 readable_by ARRAY/_text NOT NULL",
"5 revision bigint/int8 NOT NULL",
"6 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"7 created_by text/text NULL",
"8 covers_derived boolean/bool NOT NULL DEFAULT true"
],
"flags": "relkind=r rls=true force_rls=false"
},
"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",
"9 source_grant text/text NULL",
"10 source_id text/text NULL",
"11 federated_read ARRAY/_text NULL",
"12 allowed_operations ARRAY/_text NULL",
"13 takes_holders ARRAY/_text NULL",
"14 grant_revision integer/int4 NOT NULL DEFAULT 0",
"15 min_trust text/text NULL",
"16 private_pages text/text NOT NULL DEFAULT 'none'::text",
"17 member_id text/text NULL",
"18 may_act_for ARRAY/_text NULL",
"19 attest_actor text/text NULL",
"20 attest_ops ARRAY/_text NULL",
"21 attest_sources ARRAY/_text NULL",
"22 attest_read text/text NULL",
"23 reads_unscoped timestamp with time zone/timestamptz NULL",
"24 private_facts text/text NOT NULL DEFAULT 'none'::text"
],
"flags": "relkind=r rls=true force_rls=false"
},
"belief_commit_marks": {
"columns": [
"1 publication_id uuid/uuid NOT NULL",
"2 observed_at timestamp with time zone/timestamptz NOT NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"belief_events": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('belief_events_id_seq'::regclass)",
"2 event_key bytea/bytea NOT NULL",
"3 source_id text/text NOT NULL",
"4 source_incarnation uuid/uuid NOT NULL",
"5 page_lifetime uuid/uuid NULL",
"6 slug text/text NOT NULL",
"7 subject_kind text/text NOT NULL",
"8 subject_key text/text NOT NULL",
"9 event_type text/text NOT NULL",
"10 origin text/text NOT NULL DEFAULT 'live'::text",
"11 trust_tier text/text NOT NULL",
"12 writer_tier text/text NULL",
"13 tier_basis text/text NOT NULL DEFAULT 'row'::text",
"14 visibility text/text NOT NULL",
"15 publication_id uuid/uuid NOT NULL",
"16 ord integer/int4 NOT NULL",
"17 recorded_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",
"18 source_time timestamp with time zone/timestamptz NULL",
"19 valid_from timestamp with time zone/timestamptz NULL",
"20 valid_until timestamp with time zone/timestamptz NULL",
"21 value jsonb/jsonb NULL",
"22 value_hash text/text NULL",
"23 prior_hash text/text NULL",
"24 state_hash text/text NOT NULL",
"25 cause jsonb/jsonb NOT NULL",
"26 claim_fp text/text NULL",
"27 purged boolean/bool NOT NULL DEFAULT false",
"28 redacted_fields ARRAY/_text NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"belief_page_lifetimes": {
"columns": [
"1 page_lifetime uuid/uuid NOT NULL",
"2 source_id text/text NOT NULL",
"3 source_incarnation uuid/uuid NOT NULL",
"4 slug text/text NOT NULL",
"5 page_id integer/int4 NULL",
"6 started_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",
"7 ended_at timestamp with time zone/timestamptz NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"belief_redactions": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('belief_redactions_id_seq'::regclass)",
"2 source_id text/text NOT NULL",
"3 subject_key text/text NOT NULL",
"4 field text/text NOT NULL",
"5 purge_request uuid/uuid NOT NULL",
"6 field_hash text/text NOT NULL",
"7 released_by uuid/uuid NULL",
"8 released_hash text/text NULL",
"9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"belief_retier_manifest": {
"columns": [
"1 summary_event bigint/int8 NOT NULL",
"2 source_id text/text NOT NULL",
"3 subject_kind text/text NOT NULL",
"4 subject_key text/text NOT NULL",
"5 from_tier text/text NULL",
"6 to_tier text/text NOT NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"budget_ledger": {
"columns": [
"1 scope text/text NOT NULL",
"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=true 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=true 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=true 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=true force_rls=false"
},
"chronicle_judge_reservations": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('chronicle_judge_reservations_id_seq'::regclass)",
"2 reserved_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"3 source_id text/text NOT NULL",
"4 page_id integer/int4 NOT NULL",
"5 content_hash text/text NOT NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"chronicle_page_state": {
"columns": [
"1 source_id text/text NOT NULL",
"2 page_id integer/int4 NOT NULL",
"3 content_hash text/text NOT NULL",
"4 extractor_version integer/int4 NOT NULL",
"5 slug text/text NOT NULL",
"6 state text/text NOT NULL",
"7 reason text/text NULL",
"8 trigger text/text NOT NULL",
"9 principal_kind text/text NULL",
"10 principal_id text/text NULL",
"11 request_id uuid/uuid NULL",
"12 no_extract boolean/bool NOT NULL DEFAULT false",
"13 attempts integer/int4 NOT NULL DEFAULT 0",
"14 next_attempt_at timestamp with time zone/timestamptz NULL",
"15 cost_usd numeric/numeric NULL",
"16 unpriced boolean/bool NOT NULL DEFAULT false",
"17 event_slugs ARRAY/_text NOT NULL DEFAULT '{}'::text[]",
"18 event_hashes ARRAY/_text NOT NULL DEFAULT '{}'::text[]",
"19 decided_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"20 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"21 campaign_id text/text NULL",
"22 attempt_cap_usd numeric/numeric NULL",
"23 max_attempts integer/int4 NULL",
"24 pricing_policy text/text NULL",
"25 campaign_max_usd numeric/numeric NULL",
"26 cost_attempts ARRAY/_int4 NOT NULL DEFAULT '{}'::integer[]",
"27 judge_input_hash text/text NULL",
"28 judge_window_chars integer/int4 NULL",
"29 judge_window_hash text/text NULL",
"30 judge_input_failures integer/int4 NOT NULL DEFAULT 0"
],
"flags": "relkind=r rls=true 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=true 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=true 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=true force_rls=false"
},
"config": {
"columns": [
"1 key text/text NOT NULL",
"2 value text/text NOT NULL"
],
"flags": "relkind=r rls=true 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 parent_symbol_path ARRAY/_text NULL",
"19 doc_comment text/text NULL",
"20 symbol_name_qualified text/text NULL",
"21 search_vector tsvector/tsvector NULL",
"22 modality text/text NOT NULL DEFAULT 'text'::text",
"23 embedding_image USER-DEFINED/vector NULL",
"24 embedding_multimodal USER-DEFINED/vector NULL",
"25 edges_backfilled_at timestamp with time zone/timestamptz NULL",
"26 embedding_pending_since timestamp with time zone/timestamptz NULL",
"27 projected_byte_start bigint/int8 NULL",
"28 projected_byte_end bigint/int8 NULL",
"29 occurrence_id bigint/int8 NULL",
"30 local_ordinal integer/int4 NULL",
"31 raw_byte_start bigint/int8 NULL",
"32 raw_byte_end bigint/int8 NULL",
"33 body_generation bigint/int8 NULL",
"34 retired_generation bigint/int8 NULL"
],
"flags": "relkind=r rls=true 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=true 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=true force_rls=false"
},
"core_edit_notices": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('core_edit_notices_id_seq'::regclass)",
"2 source_id text/text NOT NULL",
"3 slug text/text NOT NULL",
"4 page_id bigint/int8 NULL",
"5 revision text/text NULL",
"6 base_revision text/text NULL",
"7 base_text text/text NULL",
"8 actor text/text NOT NULL",
"9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"10 acked_at timestamp with time zone/timestamptz NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"decide_calibrations": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('decide_calibrations_id_seq'::regclass)",
"2 slot text/text NOT NULL",
"3 call_site text/text NOT NULL",
"4 provider text/text NOT NULL",
"5 model_resolved text/text NOT NULL",
"6 threshold real/float4 NOT NULL",
"7 min_keep integer/int4 NULL",
"8 metric text/text NOT NULL",
"9 metric_value real/float4 NULL",
"10 ece real/float4 NULL",
"11 retest_sd real/float4 NULL",
"12 repack_sd real/float4 NULL",
"13 action_precision_lb real/float4 NULL",
"14 qualification text/text NULL",
"15 qualified_at timestamp with time zone/timestamptz NULL",
"16 policy_fingerprint text/text NULL",
"17 n integer/int4 NOT NULL",
"18 dataset_hash text/text NULL",
"19 split_hash text/text NULL",
"20 calibrate_ids_hash text/text NULL",
"21 calibrate_only boolean/bool NOT NULL DEFAULT true",
"22 pack_shape text/text NOT NULL",
"23 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"24 retired_at timestamp with time zone/timestamptz NULL",
"25 notes text/text NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"decide_proposals": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('decide_proposals_id_seq'::regclass)",
"2 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"3 source_id text/text NOT NULL",
"4 sweep_id text/text NOT NULL",
"5 pair_index integer/int4 NOT NULL",
"6 new_fact_id bigint/int8 NOT NULL",
"7 old_fact_id bigint/int8 NOT NULL",
"8 direction text/text NOT NULL DEFAULT 'new_supersedes_old'::text",
"9 p_supersede real/float4 NOT NULL",
"10 threshold real/float4 NULL",
"11 proposal_floor real/float4 NOT NULL",
"12 model_resolved text/text NULL",
"13 status text/text NOT NULL DEFAULT 'pending'::text",
"14 decided_at timestamp with time zone/timestamptz NULL",
"15 before_state text/text NULL",
"16 after_state text/text NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"decide_review_proposals": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('decide_review_proposals_id_seq'::regclass)",
"2 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"3 kind text/text NOT NULL",
"4 source_id text/text NOT NULL",
"5 sweep_id text/text NOT NULL",
"6 a_ref text/text NOT NULL",
"7 b_ref text/text NOT NULL",
"8 subject text/text NOT NULL DEFAULT '*'::text",
"9 visibility text/text NULL",
"10 p_action real/float4 NOT NULL",
"11 threshold real/float4 NULL",
"12 model_resolved text/text NULL",
"13 question_version text/text NULL",
"14 status text/text NOT NULL DEFAULT 'pending'::text",
"15 decided_at timestamp with time zone/timestamptz NULL",
"16 receipt text/text NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"decide_review_queue": {
"columns": [
"1 kind text/text NOT NULL",
"2 source_id text/text NOT NULL",
"3 a_ref text/text NOT NULL",
"4 b_ref text/text NOT NULL DEFAULT '*'::text",
"5 evidence text/text NULL",
"6 reason text/text NOT NULL DEFAULT 'queued'::text",
"7 attempts integer/int4 NOT NULL DEFAULT 0",
"8 next_attempt_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"decide_spend": {
"columns": [
"1 request_id text/text NOT NULL",
"2 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"3 source_id text/text NULL",
"4 slot text/text NOT NULL",
"5 provider text/text NOT NULL",
"6 model_resolved text/text NULL",
"7 lane text/text NOT NULL",
"8 remote boolean/bool NOT NULL DEFAULT false",
"9 input_tokens integer/int4 NOT NULL DEFAULT 0",
"10 cost_usd double precision/float8 NOT NULL DEFAULT 0",
"11 outcome text/text NOT NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"decide_state": {
"columns": [
"1 key text/text NOT NULL",
"2 value text/text NOT NULL",
"3 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"decide_sweep_deferred": {
"columns": [
"1 source_id text/text NOT NULL",
"2 fact_id bigint/int8 NOT NULL",
"3 slot text/text NOT NULL",
"4 reason text/text NOT NULL",
"5 attempts integer/int4 NOT NULL DEFAULT 0",
"6 next_attempt_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"7 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"decision_receipts": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('decision_receipts_id_seq'::regclass)",
"2 decision_id text/text NOT NULL",
"3 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"4 source_id text/text NULL",
"5 slot text/text NOT NULL",
"6 mode text/text NOT NULL",
"7 provider text/text NOT NULL",
"8 model_alias text/text NULL",
"9 model_resolved text/text NULL",
"10 question_kind text/text NULL",
"11 state_hash text/text NULL",
"12 question_hash text/text NULL",
"13 answer_value real/float4 NULL",
"14 answer_choice text/text NULL",
"15 confidence real/float4 NULL",
"16 threshold real/float4 NULL",
"17 outcome text/text NOT NULL",
"18 subject_ref text/text NULL",
"19 call_site text/text NOT NULL",
"20 lane text/text NOT NULL",
"21 policy_fingerprint text/text NULL",
"22 calibration_ref text/text NULL",
"23 latency_ms integer/int4 NULL",
"24 input_tokens integer/int4 NULL",
"25 error_reason text/text NULL",
"26 protected boolean/bool NOT NULL DEFAULT false",
"27 min_keep integer/int4 NULL",
"28 rank integer/int4 NULL",
"29 k_used integer/int4 NULL",
"30 remote boolean/bool NOT NULL DEFAULT false",
"31 run_meta text/text NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"derivation_inputs": {
"columns": [
"1 derived_table text/text NOT NULL",
"2 derived_id text/text NOT NULL",
"3 input_table text/text NOT NULL",
"4 input_id text/text NOT NULL",
"5 source_id text/text NULL",
"6 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"derived_generation_activations": {
"columns": [
"1 id text/text NOT NULL",
"2 source_id text/text NOT NULL",
"3 kind text/text NOT NULL",
"4 owner_key text/text NOT NULL",
"5 expected_generation integer/int4 NOT NULL",
"6 input_pin text/text NULL",
"7 item_set_hash text/text NOT NULL",
"8 state text/text NOT NULL",
"9 generation_id bigint/int8 NULL",
"10 members jsonb/jsonb NOT NULL DEFAULT '[]'::jsonb",
"11 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"12 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"derived_generation_attempts": {
"columns": [
"1 hold_id text/text NOT NULL",
"2 source_id text/text NOT NULL",
"3 kind text/text NOT NULL",
"4 owner_key text/text NOT NULL",
"5 attempts integer/int4 NOT NULL DEFAULT 0",
"6 codes jsonb/jsonb NOT NULL DEFAULT '[]'::jsonb",
"7 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"derived_generation_items": {
"columns": [
"1 generation_id bigint/int8 NOT NULL",
"2 item_key text/text NOT NULL",
"3 identity_hash text/text NOT NULL",
"4 action text/text NOT NULL",
"5 preimage jsonb/jsonb NULL",
"6 preimage_bytes integer/int4 NULL",
"7 pending boolean/bool NOT NULL DEFAULT false"
],
"flags": "relkind=r rls=true force_rls=false"
},
"derived_generation_valve": {
"columns": [
"1 source_id text/text NOT NULL",
"2 kind text/text NOT NULL",
"3 window_key text/text NOT NULL",
"4 retired integer/int4 NOT NULL DEFAULT 0",
"5 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"derived_generations": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('derived_generations_id_seq'::regclass)",
"2 source_id text/text NOT NULL",
"3 kind text/text NOT NULL",
"4 owner_key text/text NOT NULL",
"5 generation integer/int4 NOT NULL DEFAULT 0",
"6 state text/text NOT NULL",
"7 run_id text/text NULL",
"8 operation_id text/text NOT NULL",
"9 hold_id text/text NULL",
"10 input_pin text/text NULL",
"11 input_size bigint/int8 NULL",
"12 completeness jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
"13 item_set_hash text/text NOT NULL",
"14 held_reason text/text NULL",
"15 held_context jsonb/jsonb NULL",
"16 proposal jsonb/jsonb NULL",
"17 proposal_bytes integer/int4 NULL",
"18 attempts integer/int4 NOT NULL DEFAULT 0",
"19 superseded_by bigint/int8 NULL",
"20 restore_of bigint/int8 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 locator text/text NULL",
"24 activation_id text/text NULL"
],
"flags": "relkind=r rls=true 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=true 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=true 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=true 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=true 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=true 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=true 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=true 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=true 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()",
"7 partial_input_chars integer/int4 NULL"
],
"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()",
"7 partial_input_chars integer/int4 NULL"
],
"flags": "relkind=r rls=true 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",
"12 halt_reasons jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb"
],
"flags": "relkind=r rls=true force_rls=false"
},
"fact_purges": {
"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 request_id uuid/uuid NULL",
"6 actor text/text NULL",
"7 reason text/text NULL",
"8 purged_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"fact_relink_attempts": {
"columns": [
"1 source_id text/text NOT NULL",
"2 fact_id bigint/int8 NOT NULL",
"3 outcome text/text NOT NULL",
"4 reason text/text NULL",
"5 tier text/text NULL",
"6 model text/text NULL",
"7 target_slug text/text NULL",
"8 run_id text/text NULL",
"9 attempted_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true 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=true 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",
"34 write_request_id uuid/uuid NULL",
"35 write_principal_kind text/text NULL",
"36 write_principal_id text/text NULL",
"37 last_write_request_id uuid/uuid NULL",
"38 last_write_principal_kind text/text NULL",
"39 last_write_principal_id text/text NULL",
"40 last_written_at timestamp with time zone/timestamptz NULL",
"41 attributed_to text/text NULL",
"42 trust_tier text/text NOT NULL DEFAULT 'unknown'::text",
"43 write_origin jsonb/jsonb NULL",
"44 source_window jsonb/jsonb NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"file_migration_ledger": {
"columns": [
"1 file_id integer/int4 NOT NULL",
"2 storage_path_old text/text NOT NULL",
"3 storage_path_new text/text NOT NULL",
"4 status text/text NOT NULL DEFAULT 'pending'::text",
"5 error text/text NULL",
"6 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true 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=true 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=true force_rls=false"
},
"git_canonical_brain": {
"columns": [
"1 singleton integer/int4 NOT NULL DEFAULT 1",
"2 strict_sources integer/int4 NOT NULL DEFAULT 0"
],
"flags": "relkind=r rls=true force_rls=false"
},
"guest_marks": {
"columns": [
"1 page_id integer/int4 NOT NULL",
"2 source_id text/text NOT NULL",
"3 slug_at_write text/text NOT NULL",
"4 audience_member text/text NOT NULL",
"5 group_slug text/text NOT NULL",
"6 sender_label text/text NOT NULL",
"7 saved_at timestamp with time zone/timestamptz NOT NULL",
"8 writer_kind text/text NOT NULL",
"9 writer_id text/text NOT NULL",
"10 request_id text/text NULL",
"11 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"guest_promotions": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('guest_promotions_id_seq'::regclass)",
"2 guest_page_id integer/int4 NOT NULL",
"3 target_source_id text/text NOT NULL",
"4 target_slug text/text NOT NULL",
"5 promoted_by_kind text/text NOT NULL",
"6 promoted_by_id text/text NOT NULL",
"7 promoted_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"8 request_id text/text NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"guest_sources": {
"columns": [
"1 source_id text/text NOT NULL",
"2 writers ARRAY/_text NOT NULL DEFAULT '{}'::text[]",
"3 trust_ceiling text/text NOT NULL DEFAULT 'external_untrusted'::text",
"4 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"ingest_applied_captures": {
"columns": [
"1 idempotency_key text/text NOT NULL",
"2 source_id text/text NOT NULL",
"3 slug text/text NOT NULL",
"4 result jsonb/jsonb NOT NULL",
"5 applied_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true 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()",
"8 writer_version text/text NULL",
"9 writer_host_id uuid/uuid NULL",
"10 writer_segment_reader boolean/bool NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"link_edge_proposals": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('link_edge_proposals_id_seq'::regclass)",
"2 source_id text/text NOT NULL",
"3 from_page_id integer/int4 NOT NULL",
"4 a_to_page_id integer/int4 NOT NULL",
"5 b_to_page_id integer/int4 NOT NULL",
"6 link_type text/text NOT NULL",
"7 evidence_hash text/text NOT NULL",
"8 status text/text NOT NULL",
"9 ending_to_page_id integer/int4 NULL",
"10 close_date date/date NULL",
"11 born_closed boolean/bool NOT NULL DEFAULT false",
"12 model text/text NULL",
"13 confidence real/float4 NULL",
"14 cost_usd real/float4 NULL",
"15 generated_line text/text NULL",
"16 detail text/text NULL",
"17 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"18 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"link_relationships": {
"columns": [
"1 from_page_id integer/int4 NOT NULL",
"2 to_page_id integer/int4 NOT NULL",
"3 link_type text/text NOT NULL",
"4 scope text/text NOT NULL",
"5 source_id text/text NOT NULL",
"6 semantics text/text NOT NULL",
"7 valid_ranges datemultirange/datemultirange NOT NULL",
"8 status_now text/text NOT NULL",
"9 first_start date/date NULL",
"10 last_start date/date NULL",
"11 last_end date/date NULL",
"12 undated_present integer/int4 NOT NULL DEFAULT 0",
"13 undated_past integer/int4 NOT NULL DEFAULT 0",
"14 disputed boolean/bool NOT NULL DEFAULT false",
"15 recorded_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"16 retired_at timestamp with time zone/timestamptz NULL",
"17 evidence_hash text/text NOT NULL",
"18 refreshed_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"link_transitions": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('link_transitions_id_seq'::regclass)",
"2 source_id text/text NOT NULL",
"3 from_page_id integer/int4 NOT NULL",
"4 to_page_id integer/int4 NOT NULL",
"5 link_type text/text NOT NULL",
"6 kind text/text NOT NULL",
"7 occurred_on date/date NOT NULL",
"8 date_precision text/text NOT NULL DEFAULT 'day'::text",
"9 producer text/text NOT NULL",
"10 origin_page_id integer/int4 NULL",
"11 line_hash text/text NOT NULL DEFAULT ''::text",
"12 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"13 link_source text/text NULL"
],
"flags": "relkind=r rls=true 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()",
"12 assertion_tense text/text NULL"
],
"flags": "relkind=r rls=true 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=true 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=true force_rls=false"
},
"mcp_request_log_rollup": {
"columns": [
"1 token_name text/text NOT NULL",
"2 requests bigint/int8 NOT NULL DEFAULT 0",
"3 last_used_at timestamp with time zone/timestamptz NULL",
"4 pruned_through timestamp with time zone/timestamptz NULL"
],
"flags": "relkind=r rls=true 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()",
"9 budget_key text/text NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"mcp_spend_reservations": {
"columns": [
"1 reservation_id uuid/uuid NOT NULL",
"2 client_id text/text 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",
"14 budget_key text/text NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"memory_proposals": {
"columns": [
"1 principal_kind text/text NOT NULL",
"2 principal_id text/text NOT NULL",
"3 request_id uuid/uuid NOT NULL",
"4 system text/text NOT NULL",
"5 external_id text/text NOT NULL",
"6 member_id text/text NOT NULL",
"7 source_id text/text NOT NULL",
"8 source_incarnation uuid/uuid NOT NULL",
"9 kind text/text NOT NULL",
"10 operation text/text NOT NULL",
"11 slug text/text NOT NULL",
"12 to_slug text/text NULL",
"13 payload jsonb/jsonb NULL",
"14 payload_digest text/text NOT NULL",
"15 expected_revision text/text NULL",
"16 authority jsonb/jsonb NOT NULL",
"17 state text/text NOT NULL DEFAULT 'awaiting_owner'::text",
"18 reason text/text NULL",
"19 error_code text/text NULL",
"20 decided_by text/text NULL",
"21 decided_at timestamp with time zone/timestamptz NULL",
"22 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"23 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"24 expires_at timestamp with time zone/timestamptz NOT NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"mention_gazetteer_entries": {
"columns": [
"1 source_id text/text NOT NULL",
"2 name_norm text/text NOT NULL",
"3 target_slug text/text NOT NULL",
"4 case_sensitive boolean/bool NOT NULL DEFAULT false"
],
"flags": "relkind=r rls=true force_rls=false"
},
"mention_index_status": {
"columns": [
"1 source_id text/text NOT NULL",
"2 generation bigint/int8 NOT NULL DEFAULT 0",
"3 state text/text NOT NULL DEFAULT 'pending'::text",
"4 pending integer/int4 NOT NULL DEFAULT 0",
"5 counted_at timestamp with time zone/timestamptz NULL",
"6 last_pass_at timestamp with time zone/timestamptz NULL",
"7 policy_fingerprint text/text NULL",
"8 error text/text NULL",
"9 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true 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=true 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=true 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=true 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=true 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 result jsonb/jsonb NULL",
"26 progress jsonb/jsonb NULL",
"27 error_text text/text NULL",
"28 stacktrace jsonb/jsonb NULL DEFAULT '[]'::jsonb",
"29 depth integer/int4 NOT NULL DEFAULT 0",
"30 max_children integer/int4 NULL",
"31 timeout_ms integer/int4 NULL",
"32 lock_duration_ms integer/int4 NULL",
"33 timeout_at timestamp with time zone/timestamptz NULL",
"34 remove_on_complete boolean/bool NOT NULL DEFAULT false",
"35 remove_on_fail boolean/bool NOT NULL DEFAULT false",
"36 idempotency_key text/text NULL",
"37 private_queue_owner_job_id integer/int4 NULL",
"38 private_queue_owner_token text/text NULL",
"39 private_queue_lease_until timestamp with time zone/timestamptz NULL",
"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",
"49 spend_authorization jsonb/jsonb NULL",
"50 spend_claim_token bigint/int8 NULL"
],
"flags": "relkind=r rls=true 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=true 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=true force_rls=false"
},
"needs_rederive": {
"columns": [
"1 derived_table text/text NOT NULL",
"2 derived_id text/text NOT NULL",
"3 source_id text/text NULL",
"4 request_id uuid/uuid NULL",
"5 reason text/text NOT NULL",
"6 marked_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true 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()",
"29 source_grant text/text NULL",
"30 takes_holders ARRAY/_text NULL",
"31 min_trust text/text NULL",
"32 registered_via text/text NULL",
"33 private_pages text/text NOT NULL DEFAULT 'none'::text",
"34 member_id text/text NULL",
"35 may_act_for ARRAY/_text NULL",
"36 attest_actor text/text NULL",
"37 attest_ops ARRAY/_text NULL",
"38 attest_sources ARRAY/_text NULL",
"39 attest_read text/text NULL",
"40 reads_unscoped timestamp with time zone/timestamptz NULL",
"41 private_facts text/text NOT NULL DEFAULT 'none'::text"
],
"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=true 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()",
"8 grant_type text/text NULL"
],
"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=true 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=true 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()",
"22 counterparty_source_id text/text NULL"
],
"flags": "relkind=r rls=true 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()",
"6 origin text/text NOT NULL DEFAULT 'frontmatter'::text",
"7 case_sensitive boolean/bool NOT NULL DEFAULT false",
"8 alias_text text/text NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"page_body_manifest": {
"columns": [
"1 page_id integer/int4 NOT NULL",
"2 occurrence_id bigint/int8 NOT NULL",
"3 gen_from bigint/int8 NOT NULL",
"4 gen_to bigint/int8 NULL",
"5 seq integer/int4 NOT NULL",
"6 region text/text NOT NULL",
"7 source_id text/text NOT NULL",
"8 sha256 bytea/bytea NOT NULL",
"9 byte_start bigint/int8 NOT NULL",
"10 byte_len integer/int4 NOT NULL",
"11 line_start bigint/int8 NOT NULL",
"12 line_count integer/int4 NOT NULL",
"13 cut_kind text/text NOT NULL",
"14 entry_state jsonb/jsonb NOT NULL",
"15 protected_regions jsonb/jsonb NOT NULL DEFAULT '[]'::jsonb",
"16 facts_slots jsonb/jsonb NOT NULL DEFAULT '[]'::jsonb",
"17 static_proj_bytes bigint/int8 NOT NULL",
"18 static_proj_lines integer/int4 NOT NULL",
"19 outline jsonb/jsonb NOT NULL DEFAULT '[]'::jsonb",
"20 date_min date/date NULL",
"21 date_max date/date NULL",
"22 hash_state bytea/bytea NOT NULL",
"23 staging_id uuid/uuid NULL",
"24 staging_key uuid/uuid NOT NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"page_body_staging_parts": {
"columns": [
"1 staging_id uuid/uuid NOT NULL",
"2 part_no integer/int4 NOT NULL",
"3 byte_start bigint/int8 NOT NULL",
"4 byte_len integer/int4 NOT NULL",
"5 sha256 bytea/bytea NOT NULL",
"6 body bytea/bytea NOT NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"page_body_staging_texts": {
"columns": [
"1 staging_id uuid/uuid NOT NULL",
"2 source_id text/text NOT NULL",
"3 sha256 bytea/bytea NOT NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"page_body_stagings": {
"columns": [
"1 id uuid/uuid NOT NULL",
"2 kind text/text NOT NULL",
"3 principal_kind text/text NOT NULL",
"4 principal_id text/text NOT NULL",
"5 client_request_id uuid/uuid NOT NULL",
"6 source_id text/text NOT NULL",
"7 source_incarnation uuid/uuid NOT NULL",
"8 slug text/text NOT NULL",
"9 page_id integer/int4 NULL",
"10 mode text/text NOT NULL",
"11 base_revision uuid/uuid NULL",
"12 base_generation bigint/int8 NULL",
"13 declared_bytes bigint/int8 NOT NULL",
"14 declared_sha256 bytea/bytea NULL",
"15 received_bytes bigint/int8 NOT NULL DEFAULT 0",
"16 next_part integer/int4 NOT NULL DEFAULT 0",
"17 reserved_bytes bigint/int8 NOT NULL",
"18 state text/text NOT NULL DEFAULT 'open'::text",
"19 commit_request_id uuid/uuid NULL",
"20 idle_expires_at timestamp with time zone/timestamptz NOT NULL",
"21 hard_expires_at timestamp with time zone/timestamptz NOT NULL",
"22 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"23 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"page_derivation_spend": {
"columns": [
"1 page_id integer/int4 NOT NULL",
"2 family text/text NOT NULL",
"3 spent_usd double precision/float8 NOT NULL DEFAULT 0",
"4 reserved_usd double precision/float8 NOT NULL DEFAULT 0",
"5 reserved_at timestamp with time zone/timestamptz NULL",
"6 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"page_embedding_budget": {
"columns": [
"1 page_id integer/int4 NOT NULL",
"2 state text/text NOT NULL DEFAULT 'open'::text",
"3 reason text/text NULL",
"4 embedding_signature text/text NULL",
"5 spent_usd double precision/float8 NOT NULL DEFAULT 0",
"6 reserved_usd double precision/float8 NOT NULL DEFAULT 0",
"7 reserved_at timestamp with time zone/timestamptz NULL",
"8 unpriced_calls integer/int4 NOT NULL DEFAULT 0",
"9 cap_usd double precision/float8 NULL",
"10 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"page_extraction_state": {
"columns": [
"1 page_id integer/int4 NOT NULL",
"2 pipeline text/text NOT NULL",
"3 pipeline_version integer/int4 NOT NULL",
"4 watermark_bytes bigint/int8 NULL",
"5 watermark_sha256 text/text NULL",
"6 input_truncated jsonb/jsonb NULL",
"7 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"page_facts_reconcile": {
"columns": [
"1 page_id integer/int4 NOT NULL",
"2 reconciled_revision uuid/uuid NULL",
"3 reconciled_at timestamp with time zone/timestamptz NULL",
"4 outcome text/text NOT NULL",
"5 attempted_revision uuid/uuid NULL",
"6 attempted_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true 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=true force_rls=false"
},
"page_label_guards": {
"columns": [
"1 page_id integer/int4 NOT NULL",
"2 tier text/text NOT NULL",
"3 set_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"page_mention_state": {
"columns": [
"1 page_id integer/int4 NOT NULL",
"2 source_id text/text NOT NULL",
"3 mention_revision uuid/uuid NULL",
"4 mention_version integer/int4 NULL",
"5 mention_generation bigint/int8 NULL",
"6 mentions_scanned_at timestamp with time zone/timestamptz NULL",
"7 alias_revision uuid/uuid NULL",
"8 alias_version integer/int4 NULL",
"9 aliases_refreshed_at timestamp with time zone/timestamptz NULL"
],
"flags": "relkind=r rls=true 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=true force_rls=false"
},
"page_purges": {
"columns": [
"1 source_id text/text NOT NULL",
"2 content_hash text/text NOT NULL",
"3 slug text/text NOT NULL",
"4 request_id uuid/uuid NULL",
"5 purged_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"page_retrievals": {
"columns": [
"1 page_id integer/int4 NOT NULL",
"2 last_retrieved_at timestamp with time zone/timestamptz NOT NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"page_segment_derivation_purge_pages": {
"columns": [
"1 request_id uuid/uuid NOT NULL",
"2 page_id integer/int4 NOT NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"page_segment_derivation_purges": {
"columns": [
"1 request_id uuid/uuid NOT NULL",
"2 source_id text/text NOT NULL",
"3 needles ARRAY/_text NOT NULL",
"4 patterns ARRAY/_text NOT NULL",
"5 page_ids ARRAY/_int4 NOT NULL DEFAULT '{}'::integer[]",
"6 phase text/text NOT NULL DEFAULT 'sweep'::text",
"7 recheck ARRAY/_int4 NULL",
"8 found integer/int4 NOT NULL DEFAULT 0",
"9 cursor_page integer/int4 NULL",
"10 cursor_pipeline text/text NULL",
"11 cursor_occurrence bigint/int8 NULL",
"12 batch_rows integer/int4 NULL",
"13 stalled_at timestamp with time zone/timestamptz NULL",
"14 stalled_reason text/text NULL",
"15 pending_reason text/text NULL",
"16 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"page_segment_derivations": {
"columns": [
"1 page_id integer/int4 NOT NULL",
"2 pipeline text/text NOT NULL",
"3 occurrence_id bigint/int8 NOT NULL",
"4 pipeline_version integer/int4 NOT NULL",
"5 segment_sha256 bytea/bytea NOT NULL",
"6 context_hash bytea/bytea NOT NULL",
"7 state text/text NOT NULL",
"8 output jsonb/jsonb NULL",
"9 receipt jsonb/jsonb NULL",
"10 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"11 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"page_segment_texts": {
"columns": [
"1 source_id text/text NOT NULL",
"2 sha256 bytea/bytea NOT NULL",
"3 byte_len integer/int4 NOT NULL",
"4 line_count integer/int4 NOT NULL",
"5 body bytea/bytea NOT NULL",
"6 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true 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 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",
"12 source_path text/text NULL",
"13 write_request_id uuid/uuid NULL",
"14 write_principal_kind text/text NULL",
"15 write_principal_id text/text NULL",
"16 archived_write_request_id uuid/uuid NULL",
"17 archived_principal_kind text/text NULL",
"18 archived_principal_id text/text NULL",
"19 trust_tier text/text NULL",
"20 write_origin jsonb/jsonb NULL",
"21 body_storage text/text NOT NULL DEFAULT 'inline'::text",
"22 body_generation bigint/int8 NULL",
"23 body_bytes bigint/int8 NULL",
"24 content_hash text/text NULL",
"25 change_reason text/text NULL",
"26 successor_pruned boolean/bool NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"page_view_digests": {
"columns": [
"1 page_id integer/int4 NOT NULL",
"2 revision text/text NOT NULL",
"3 view text/text NOT NULL",
"4 audience text/text NOT NULL",
"5 total_bytes bigint/int8 NOT NULL",
"6 total_lines bigint/int8 NOT NULL",
"7 sha256 text/text NULL",
"8 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"page_write_guards": {
"columns": [
"1 source_incarnation uuid/uuid NOT NULL",
"2 slug text/text NOT NULL"
],
"flags": "relkind=r rls=true 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 NULL DEFAULT ''::text",
"8 timeline text/text 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",
"36 links_attendance_blocked_revision uuid/uuid NULL",
"37 links_attendance_blocked_at timestamp with time zone/timestamptz NULL",
"38 revision_write_request_id uuid/uuid NULL",
"39 revision_principal_kind text/text NULL",
"40 revision_principal_id text/text NULL",
"41 trust_tier text/text NOT NULL DEFAULT 'unknown'::text",
"42 write_origin jsonb/jsonb NULL",
"43 body_storage text/text NOT NULL DEFAULT 'inline'::text",
"44 body_bytes bigint/int8 NULL",
"45 truth_bytes bigint/int8 NULL",
"46 body_lines bigint/int8 NULL",
"47 body_generation bigint/int8 NOT NULL DEFAULT 0",
"48 segment_count integer/int4 NULL",
"49 segmenter_version integer/int4 NULL",
"50 body_flags jsonb/jsonb NULL",
"51 truth_lead text/text NULL",
"52 timeline_lead text/text NULL",
"53 links_extract_failure jsonb/jsonb NULL",
"54 withheld_source_path text/text NULL",
"55 page_readers ARRAY/_text NULL",
"56 folder_rule_ids ARRAY/_text NULL",
"57 version_history_gap_at timestamp with time zone/timestamptz NULL"
],
"flags": "relkind=r rls=true 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",
"8 mode_epoch bigint/int8 NOT NULL DEFAULT 1"
],
"flags": "relkind=r rls=true force_rls=false"
},
"persistence_consumers": {
"columns": [
"1 host_id uuid/uuid NOT NULL",
"2 pid integer/int4 NOT NULL",
"3 nonce text/text NOT NULL",
"4 pid_ns text/text NULL",
"5 kind text/text NOT NULL",
"6 mode text/text NOT NULL",
"7 started_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"8 renewed_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"9 restart_required boolean/bool NOT NULL DEFAULT false",
"10 root_barrier_age_ms integer/int4 NULL",
"11 pool jsonb/jsonb NULL",
"12 host_json_path text/text NOT NULL",
"13 persistence_home text/text NOT NULL",
"14 minted_under jsonb/jsonb NULL",
"15 version text/text NOT NULL",
"16 boot_id text/text NULL",
"17 process_start text/text NULL",
"18 segment_reader boolean/bool NULL",
"19 capabilities ARRAY/_text NOT NULL DEFAULT '{}'::text[]"
],
"flags": "relkind=r rls=true 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=true 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",
"19 claim_owner jsonb/jsonb NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"persistence_graduation": {
"columns": [
"1 singleton smallint/int2 NOT NULL DEFAULT 1",
"2 role text/text NOT NULL",
"3 run_id uuid/uuid NOT NULL",
"4 state text/text NOT NULL",
"5 source_brain_id uuid/uuid NULL",
"6 source_data_dir text/text NULL",
"7 cutover_sequence bigint/int8 NULL",
"8 trigger_bypass text/text NULL",
"9 table_receipts jsonb/jsonb NULL",
"10 replay_probe jsonb/jsonb NULL",
"11 timings jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
"12 doctor jsonb/jsonb NULL",
"13 rollback jsonb/jsonb NULL",
"14 graduated_at timestamp with time zone/timestamptz 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=true 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",
"5 git_durability text/text NULL"
],
"flags": "relkind=r rls=true 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=true 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",
"39 error_detail jsonb/jsonb NULL",
"40 claim_phase jsonb/jsonb NULL",
"41 preparation_attempts integer/int4 NOT NULL DEFAULT 0",
"42 client_request_id text/text NULL",
"43 admitter_segment_reader boolean/bool NULL",
"44 consumer_segment_reader boolean/bool NULL",
"45 transient_interruptions integer/int4 NOT NULL DEFAULT 0",
"46 next_attempt_at timestamp with time zone/timestamptz NULL",
"47 deferred_refresh_id uuid/uuid NULL",
"48 deferred_import_from text/text NULL"
],
"flags": "relkind=r rls=true 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=true 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=true force_rls=false"
},
"persistence_worktree_refreshes": {
"columns": [
"1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
"2 worktree_id uuid/uuid NOT NULL",
"3 source_ids ARRAY/_text NOT NULL",
"4 principal_id uuid/uuid NOT NULL",
"5 owner_epoch bigint/int8 NOT NULL",
"6 topology_generation bigint/int8 NOT NULL",
"7 state text/text NOT NULL",
"8 old_head text/text NOT NULL",
"9 target_head text/text NOT NULL",
"10 upstream_ref text/text NOT NULL",
"11 preserved_uncommitted ARRAY/_text NOT NULL DEFAULT '{}'::text[]",
"12 outcome jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
"13 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"14 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"15 completed_at timestamp with time zone/timestamptz NULL",
"16 barrier_sequence bigint/int8 NULL",
"17 released_at timestamp with time zone/timestamptz NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"persistence_worktrees": {
"columns": [
"1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
"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=true 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"
},
"pinned_questions": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('pinned_questions_id_seq'::regclass)",
"2 source_id text/text NOT NULL",
"3 slug text/text NOT NULL",
"4 question text/text NOT NULL",
"5 scope_slug_prefix text/text NULL",
"6 scope_entity text/text NULL",
"7 state text/text NOT NULL DEFAULT 'active'::text",
"8 inactive_reason text/text NULL",
"9 publish_mode text/text NOT NULL DEFAULT 'publish'::text",
"10 model text/text NULL",
"11 cooldown_days real/float4 NULL",
"12 origin text/text NOT NULL DEFAULT 'pin'::text",
"13 created_by text/text NOT NULL",
"14 revision bigint/int8 NOT NULL DEFAULT 1",
"15 answer_revision integer/int4 NOT NULL DEFAULT 0",
"16 answer text/text NULL",
"17 answer_model text/text NULL",
"18 last_refresh_at timestamp with time zone/timestamptz NULL",
"19 last_attempt_at timestamp with time zone/timestamptz NULL",
"20 last_error text/text NULL",
"21 watermark_generation bigint/int8 NULL",
"22 watermark_fact_id bigint/int8 NULL",
"23 watermark_at timestamp with time zone/timestamptz NULL",
"24 lease_token text/text NULL",
"25 lease_owner text/text NULL",
"26 lease_expires_at timestamp with time zone/timestamptz NULL",
"27 refresh_attempts integer/int4 NOT NULL DEFAULT 0",
"28 spend_usd double precision/float8 NOT NULL DEFAULT 0",
"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 archived_at timestamp with time zone/timestamptz NULL"
],
"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=true force_rls=false"
},
"question_evidence": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('question_evidence_id_seq'::regclass)",
"2 question_id bigint/int8 NOT NULL",
"3 answer_revision integer/int4 NOT NULL",
"4 sentence_id text/text NOT NULL",
"5 kind text/text NOT NULL",
"6 source_id text/text NOT NULL",
"7 page_id integer/int4 NULL",
"8 page_slug text/text NULL",
"9 page_generation bigint/int8 NULL",
"10 page_revision text/text NULL",
"11 item_id bigint/int8 NULL",
"12 content_hash text/text NULL",
"13 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true 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=true force_rls=false"
},
"reason_purge_tombstones": {
"columns": [
"1 source_id text/text NOT NULL",
"2 commit_sha 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=true force_rls=false"
},
"retrieval_event_links": {
"columns": [
"1 event_id text/text NOT NULL",
"2 source_id text/text NOT NULL",
"3 edge_key text/text NOT NULL",
"4 to_slug text/text NOT NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"retrieval_event_pages": {
"columns": [
"1 event_id text/text NOT NULL",
"2 source_id text/text NOT NULL",
"3 slug text/text NOT NULL",
"4 content_hash text/text NULL",
"5 rank integer/int4 NOT NULL",
"6 cited boolean/bool NOT NULL DEFAULT false"
],
"flags": "relkind=r rls=true force_rls=false"
},
"retrieval_events": {
"columns": [
"1 id text/text NOT NULL",
"2 client_id text/text NOT NULL DEFAULT 'local'::text",
"3 op text/text NOT NULL",
"4 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"retrieval_feedback": {
"columns": [
"1 event_id text/text NOT NULL",
"2 signal text/text NOT NULL",
"3 element_kind text/text NOT NULL",
"4 source_id text/text NOT NULL",
"5 element_key text/text NOT NULL",
"6 client_id text/text NOT NULL DEFAULT 'local'::text",
"7 rating smallint/int2 NOT NULL",
"8 weight_before real/float4 NOT NULL",
"9 weight_after real/float4 NOT NULL",
"10 applied_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"retrieval_weights": {
"columns": [
"1 source_id text/text NOT NULL",
"2 element_kind text/text NOT NULL",
"3 element_key text/text NOT NULL",
"4 weight real/float4 NOT NULL DEFAULT 0.5",
"5 content_hash text/text NULL",
"6 updates integer/int4 NOT NULL DEFAULT 0",
"7 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true 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=true 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()",
"9 facts_cursor_at timestamp with time zone/timestamptz NULL",
"10 facts_cursor_id bigint/int8 NULL",
"11 degraded_wakes integer/int4 NOT NULL DEFAULT 0"
],
"flags": "relkind=r rls=true 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=true force_rls=false"
},
"slug_rename_history": {
"columns": [
"1 source_id text/text NOT NULL",
"2 old_slug text/text NOT NULL",
"3 new_slug text/text NOT NULL",
"4 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true 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=true 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 chunker_version text/text NULL",
"8 archived boolean/bool NOT NULL DEFAULT false",
"9 archived_at timestamp with time zone/timestamptz NULL",
"10 archive_expires_at timestamp with time zone/timestamptz NULL",
"11 contextual_retrieval_mode text/text NULL",
"12 trust_frontmatter_overrides boolean/bool NOT NULL DEFAULT false",
"13 newest_content_at timestamp with time zone/timestamptz NULL",
"14 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"15 incarnation uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
"16 upstream_checked_at timestamp with time zone/timestamptz NULL",
"17 upstream_commit text/text NULL",
"18 upstream_behind integer/int4 NULL",
"19 purge_epoch bigint/int8 NOT NULL DEFAULT 0"
],
"flags": "relkind=r rls=true 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=true 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=true 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=true force_rls=false"
},
"sync_notifier_leases": {
"columns": [
"1 host_id text/text NOT NULL",
"2 owner_id text/text NOT NULL",
"3 fence bigint/int8 NOT NULL DEFAULT 1",
"4 resident_kind text/text NOT NULL",
"5 pid integer/int4 NULL",
"6 renewed_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"7 expires_at timestamp with time zone/timestamptz NOT NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"sync_notifier_sources": {
"columns": [
"1 source_id text/text NOT NULL",
"2 source_incarnation text/text NULL",
"3 syncer_host_id text/text NULL",
"4 syncer_recorded_at timestamp with time zone/timestamptz NULL",
"5 state text/text NOT NULL DEFAULT 'idle'::text",
"6 reason text/text NULL",
"7 first_due_at timestamp with time zone/timestamptz NULL",
"8 attempts integer/int4 NOT NULL DEFAULT 0",
"9 next_retry_at timestamp with time zone/timestamptz NULL",
"10 last_progress_at timestamp with time zone/timestamptz NULL",
"11 last_error_code text/text NULL",
"12 last_error text/text NULL",
"13 last_error_at timestamp with time zone/timestamptz NULL",
"14 trace_path text/text NULL",
"15 observed_head text/text NULL",
"16 observed_at timestamp with time zone/timestamptz NULL",
"17 detection_mode text/text NULL",
"18 owner_host_id text/text NULL",
"19 owner_kind text/text NULL",
"20 owner_pid integer/int4 NULL",
"21 owner_seen_at timestamp with time zone/timestamptz NULL",
"22 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"sync_wanted_markers": {
"columns": [
"1 source_id text/text NOT NULL",
"2 intent text/text NOT NULL",
"3 source_incarnation text/text NULL",
"4 wanted_head text/text NULL",
"5 generation bigint/int8 NOT NULL DEFAULT 1",
"6 first_due_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"7 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"8 requested_by text/text NOT NULL",
"9 job_id bigint/int8 NULL"
],
"flags": "relkind=r rls=true 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=true 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=true 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=true 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=true force_rls=false"
},
"take_horizons": {
"columns": [
"1 take_id bigint/int8 NOT NULL",
"2 claim_sha256 text/text NOT NULL",
"3 horizon_date date/date NOT NULL",
"4 basis text/text NOT NULL",
"5 set_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true 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=true 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=true force_rls=false"
},
"take_purges": {
"columns": [
"1 source_id text/text NOT NULL",
"2 subject text/text NOT NULL DEFAULT '*'::text",
"3 claim_hash text/text NOT NULL",
"4 request_id uuid/uuid NULL",
"5 purged_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true 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",
"24 embedding_model text/text NULL",
"25 embedded_text_hash text/text NULL",
"26 write_request_id uuid/uuid NULL",
"27 write_principal_kind text/text NULL",
"28 write_principal_id text/text NULL",
"29 last_write_request_id uuid/uuid NULL",
"30 last_write_principal_kind text/text NULL",
"31 last_write_principal_id text/text NULL",
"32 last_written_at timestamp with time zone/timestamptz NULL",
"33 trust_tier text/text NOT NULL DEFAULT 'unknown'::text",
"34 write_origin jsonb/jsonb NULL"
],
"flags": "relkind=r rls=true 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=true 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()",
"9 write_request_id uuid/uuid NULL",
"10 write_principal_kind text/text NULL",
"11 write_principal_id text/text NULL",
"12 last_write_request_id uuid/uuid NULL",
"13 last_write_principal_kind text/text NULL",
"14 last_write_principal_id text/text NULL",
"15 last_written_at timestamp with time zone/timestamptz NULL",
"16 trust_tier text/text NOT NULL DEFAULT 'unknown'::text",
"17 write_origin jsonb/jsonb NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"trust_allow_rules": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('trust_allow_rules_id_seq'::regclass)",
"2 source_id text/text NOT NULL",
"3 uri_prefix text/text NULL",
"4 reason_family text/text NULL",
"5 created_by text/text NOT NULL",
"6 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"7 removed_at timestamp with time zone/timestamptz NULL",
"8 removed_by text/text NULL",
"9 reason text/text NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"trust_policy_state": {
"columns": [
"1 id smallint/int2 NOT NULL",
"2 generation bigint/int8 NOT NULL DEFAULT 0",
"3 bumped_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"trust_proposals": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('trust_proposals_id_seq'::regclass)",
"2 action text/text NOT NULL",
"3 source_id text/text NOT NULL",
"4 target_table text/text NOT NULL",
"5 target_id bigint/int8 NOT NULL",
"6 related_table text/text NULL",
"7 related_id bigint/int8 NULL",
"8 before_state jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
"9 after_state jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
"10 proposer text/text NOT NULL",
"11 proposer_principal_kind text/text NULL",
"12 proposer_principal_id text/text NULL",
"13 write_request_id uuid/uuid NULL",
"14 status text/text NOT NULL DEFAULT 'pending'::text",
"15 decided_at timestamp with time zone/timestamptz NULL",
"16 decided_principal_kind text/text NULL",
"17 decided_principal_id text/text NULL",
"18 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"19 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"wake_cron_runs": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('wake_cron_runs_id_seq'::regclass)",
"2 name text/text NOT NULL",
"3 status text/text NOT NULL",
"4 finished_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"wake_crons": {
"columns": [
"1 name text/text NOT NULL",
"2 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"wake_forgets": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('wake_forgets_id_seq'::regclass)",
"2 wake_user text/text NOT NULL",
"3 state text/text NOT NULL DEFAULT 'pending'::text",
"4 attempts integer/int4 NOT NULL DEFAULT 0",
"5 next_attempt_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"6 lease_until timestamp with time zone/timestamptz NULL",
"7 last_error text/text NULL",
"8 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"9 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"wake_subscriptions": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('wake_subscriptions_id_seq'::regclass)",
"2 event text/text NOT NULL",
"3 target text/text NOT NULL",
"4 principal_kind text/text NOT NULL",
"5 principal_id text/text NOT NULL",
"6 member_id text/text NULL",
"7 wake_user text/text NOT NULL",
"8 ws_subscription_id text/text NOT NULL",
"9 state text/text NOT NULL DEFAULT 'open'::text",
"10 delivered_marker text/text NULL",
"11 attempts integer/int4 NOT NULL DEFAULT 0",
"12 next_attempt_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"13 lease_until timestamp with time zone/timestamptz NULL",
"14 last_error text/text NULL",
"15 expires_at timestamp with time zone/timestamptz NOT NULL",
"16 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"17 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"18 target_ref text/text NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"wake_terms_acceptances": {
"columns": [
"1 principal_key text/text NOT NULL",
"2 terms_version text/text NOT NULL",
"3 accepted_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"wanted_links": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('wanted_links_id_seq'::regclass)",
"2 origin_page_id integer/int4 NOT NULL",
"3 source_id text/text NOT NULL",
"4 producer text/text NOT NULL",
"5 ref_kind text/text NOT NULL",
"6 target_source_id text/text NOT NULL",
"7 target_ref text/text NOT NULL",
"8 link_type text/text NOT NULL DEFAULT ''::text",
"9 context text/text NOT NULL DEFAULT ''::text",
"10 checked_at timestamp with time zone/timestamptz NOT NULL",
"11 first_seen_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"write_gate_holds": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('write_gate_holds_id_seq'::regclass)",
"2 kind text/text NOT NULL",
"3 source_id text/text NOT NULL",
"4 slug text/text NOT NULL DEFAULT ''::text",
"5 fingerprint text/text NOT NULL",
"6 detector_version integer/int4 NOT NULL",
"7 tier text/text NOT NULL",
"8 reason_families ARRAY/_text NOT NULL DEFAULT '{}'::text[]",
"9 reasons ARRAY/_text NOT NULL DEFAULT '{}'::text[]",
"10 detector_error boolean/bool NOT NULL DEFAULT false",
"11 payload jsonb/jsonb NOT NULL",
"12 write_origin jsonb/jsonb NULL",
"13 request_id text/text NULL",
"14 status text/text NOT NULL DEFAULT 'held'::text",
"15 seen_count integer/int4 NOT NULL DEFAULT 1",
"16 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"17 last_seen_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"18 decided_at timestamp with time zone/timestamptz NULL",
"19 decided_by text/text NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"write_gate_receipts": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('write_gate_receipts_id_seq'::regclass)",
"2 target_table text/text NOT NULL",
"3 target_id text/text NOT NULL",
"4 source_id text/text NULL",
"5 content_hash text/text NOT NULL",
"6 tier text/text NOT NULL",
"7 detector_version integer/int4 NOT NULL",
"8 verdict text/text NOT NULL",
"9 reason_families ARRAY/_text NOT NULL DEFAULT '{}'::text[]",
"10 reasons ARRAY/_text NOT NULL DEFAULT '{}'::text[]",
"11 detector_error boolean/bool NOT NULL DEFAULT false",
"12 request_id text/text NULL",
"13 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"14 last_seen_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
}
},
"triggers": {
"access_members.access_members_mark_restricted": "CREATE TRIGGER access_members_mark_restricted AFTER INSERT ON public.access_members FOR EACH ROW EXECUTE FUNCTION gbrain_access_mark_restricted()",
"access_members.access_members_refresh_serves": "CREATE TRIGGER access_members_refresh_serves AFTER INSERT OR DELETE OR UPDATE OF disabled_at, tombstoned_at ON public.access_members FOR EACH STATEMENT EXECUTE FUNCTION gbrain_access_refresh_serves_trigger()",
"access_pending_coverage.access_pending_coverage_mark_restricted": "CREATE TRIGGER access_pending_coverage_mark_restricted AFTER INSERT ON public.access_pending_coverage FOR EACH ROW EXECUTE FUNCTION gbrain_access_mark_restricted()",
"access_rules.access_rules_mark_restricted": "CREATE TRIGGER access_rules_mark_restricted AFTER INSERT ON public.access_rules FOR EACH ROW EXECUTE FUNCTION gbrain_access_mark_restricted()",
"access_tokens.trust_generation_update": "CREATE CONSTRAINT TRIGGER trust_generation_update AFTER UPDATE ON public.access_tokens DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN ((old.min_trust IS DISTINCT FROM new.min_trust)) EXECUTE FUNCTION gbrain_bump_trust_generation()",
"config.config_serves_refresh": "CREATE TRIGGER config_serves_refresh AFTER INSERT OR UPDATE ON public.config FOR EACH ROW WHEN ((new.key = ANY (ARRAY['access.serves'::text, 'access.serves_derived'::text]))) EXECUTE FUNCTION gbrain_access_refresh_serves_trigger()",
"config.config_serves_refresh_delete": "CREATE TRIGGER config_serves_refresh_delete AFTER DELETE ON public.config FOR EACH ROW WHEN ((old.key = ANY (ARRAY['access.serves'::text, 'access.serves_derived'::text]))) EXECUTE FUNCTION gbrain_access_refresh_serves_trigger()",
"config.trust_generation_delete": "CREATE CONSTRAINT TRIGGER trust_generation_delete AFTER DELETE ON public.config DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN ((old.key ~~ 'trust.%'::text)) EXECUTE FUNCTION gbrain_bump_trust_generation()",
"config.trust_generation_insert": "CREATE CONSTRAINT TRIGGER trust_generation_insert AFTER INSERT ON public.config DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN ((new.key ~~ 'trust.%'::text)) EXECUTE FUNCTION gbrain_bump_trust_generation()",
"config.trust_generation_update": "CREATE CONSTRAINT TRIGGER trust_generation_update AFTER UPDATE ON public.config DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN ((((old.key ~~ 'trust.%'::text) OR (new.key ~~ 'trust.%'::text)) AND ((old.key IS DISTINCT FROM new.key) OR (old.value IS DISTINCT FROM new.value)))) EXECUTE FUNCTION gbrain_bump_trust_generation()",
"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()",
"fact_purges.trust_generation_insert": "CREATE CONSTRAINT TRIGGER trust_generation_insert AFTER INSERT ON public.fact_purges DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN (true) EXECUTE FUNCTION gbrain_bump_trust_generation()",
"facts.facts_guard_inserted": "CREATE TRIGGER facts_guard_inserted AFTER INSERT ON public.facts REFERENCING NEW TABLE AS inserted_facts FOR EACH STATEMENT EXECUTE FUNCTION gbrain_guard_inserted_facts()",
"facts.facts_preserve_withdrawal": "CREATE TRIGGER facts_preserve_withdrawal BEFORE UPDATE OF fact, source_id, visibility, entity_slug, expired_at ON public.facts FOR EACH ROW EXECUTE FUNCTION gbrain_preserve_fact_withdrawal()",
"facts.facts_preserve_withdrawal_insert": "CREATE TRIGGER facts_preserve_withdrawal_insert BEFORE INSERT ON public.facts FOR EACH ROW WHEN (((new.expired_at IS NULL) AND (COALESCE(current_setting('gbrain.fact_withdrawal_stamp_deferred'::text, true), ''::text) <> 'on'::text))) EXECUTE FUNCTION gbrain_preserve_fact_withdrawal()",
"facts.facts_refuse_purged": "CREATE TRIGGER facts_refuse_purged BEFORE UPDATE OF fact, source_id, visibility, entity_slug ON public.facts FOR EACH ROW EXECUTE FUNCTION gbrain_refuse_purged_fact()",
"facts.gbrain_write_attribution": "CREATE TRIGGER gbrain_write_attribution BEFORE INSERT OR UPDATE ON public.facts FOR EACH ROW EXECUTE FUNCTION gbrain_stamp_write_attribution()",
"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()",
"facts.trust_generation_update": "CREATE CONSTRAINT TRIGGER trust_generation_update AFTER UPDATE ON public.facts DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN ((old.trust_tier IS DISTINCT FROM new.trust_tier)) EXECUTE FUNCTION gbrain_bump_trust_generation()",
"facts.trust_tier_stamp": "CREATE TRIGGER trust_tier_stamp BEFORE INSERT OR UPDATE ON public.facts FOR EACH ROW EXECUTE FUNCTION gbrain_stamp_trust_tier()",
"guest_marks.guest_marks_immutable": "CREATE TRIGGER guest_marks_immutable BEFORE UPDATE ON public.guest_marks FOR EACH ROW EXECUTE FUNCTION gbrain_guard_guest_records()",
"guest_sources.guest_source_database_only": "CREATE TRIGGER guest_source_database_only BEFORE INSERT OR UPDATE OF source_id ON public.guest_sources FOR EACH ROW EXECUTE FUNCTION gbrain_guard_guest_records()",
"minion_jobs.minion_job_notify": "CREATE TRIGGER minion_job_notify AFTER INSERT OR UPDATE OF status ON public.minion_jobs FOR EACH ROW EXECUTE FUNCTION notify_minion_job_change()",
"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()",
"needs_rederive.trust_generation_insert": "CREATE CONSTRAINT TRIGGER trust_generation_insert AFTER INSERT ON public.needs_rederive DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN (true) EXECUTE FUNCTION gbrain_bump_trust_generation()",
"oauth_clients.trust_generation_update": "CREATE CONSTRAINT TRIGGER trust_generation_update AFTER UPDATE ON public.oauth_clients DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN ((old.min_trust IS DISTINCT FROM new.min_trust)) EXECUTE FUNCTION gbrain_bump_trust_generation()",
"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()",
"page_body_manifest.managed_writer_guard": "CREATE TRIGGER managed_writer_guard BEFORE INSERT OR DELETE OR UPDATE ON public.page_body_manifest FOR EACH ROW EXECUTE FUNCTION gbrain_require_managed_writer()",
"page_body_manifest.page_body_manifest_derivation_scope_delete": "CREATE TRIGGER page_body_manifest_derivation_scope_delete AFTER DELETE ON public.page_body_manifest FOR EACH ROW WHEN (((old.gen_to IS NULL) AND (old.staging_id IS NULL))) EXECUTE FUNCTION gbrain_mark_derivation_scope_entry()",
"page_body_manifest.page_body_manifest_derivation_scope_retire": "CREATE TRIGGER page_body_manifest_derivation_scope_retire AFTER UPDATE OF gen_to ON public.page_body_manifest FOR EACH ROW WHEN (((old.gen_to IS NULL) AND (new.gen_to IS NOT NULL) AND (old.staging_id IS NULL))) EXECUTE FUNCTION gbrain_mark_derivation_scope_entry()",
"page_purges.trust_generation_insert": "CREATE CONSTRAINT TRIGGER trust_generation_insert AFTER INSERT ON public.page_purges DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN (true) EXECUTE FUNCTION gbrain_bump_trust_generation()",
"page_segment_derivations.page_segment_derivations_refuse_purging": "CREATE TRIGGER page_segment_derivations_refuse_purging BEFORE INSERT OR UPDATE OF output, receipt ON public.page_segment_derivations FOR EACH ROW EXECUTE FUNCTION gbrain_refuse_purging_derivation()",
"page_segment_texts.managed_writer_guard": "CREATE TRIGGER managed_writer_guard BEFORE INSERT OR DELETE OR UPDATE ON public.page_segment_texts FOR EACH ROW EXECUTE FUNCTION gbrain_require_managed_writer()",
"page_versions.page_versions_trust_snapshot": "CREATE TRIGGER page_versions_trust_snapshot BEFORE INSERT ON public.page_versions FOR EACH ROW EXECUTE FUNCTION gbrain_snapshot_version_trust()",
"page_versions.page_versions_write_attribution": "CREATE TRIGGER page_versions_write_attribution BEFORE INSERT ON public.page_versions FOR EACH ROW EXECUTE FUNCTION gbrain_stamp_version_attribution()",
"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_access_derive_readers": "CREATE TRIGGER pages_access_derive_readers BEFORE INSERT OR UPDATE OF frontmatter, page_readers ON public.pages FOR EACH ROW EXECUTE FUNCTION gbrain_access_derive_page_readers()",
"pages.pages_access_mark_restricted": "CREATE TRIGGER pages_access_mark_restricted AFTER INSERT OR UPDATE OF frontmatter ON public.pages FOR EACH ROW WHEN ((new.frontmatter ? 'readable_by'::text)) EXECUTE FUNCTION gbrain_access_mark_restricted()",
"pages.pages_access_stamp_folder_rules": "CREATE TRIGGER pages_access_stamp_folder_rules BEFORE INSERT OR UPDATE OF slug, source_id, folder_rule_ids ON public.pages FOR EACH ROW EXECUTE FUNCTION gbrain_access_stamp_folder_rules()",
"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_derivation_scope_delete": "CREATE TRIGGER pages_derivation_scope_delete AFTER UPDATE OF deleted_at ON public.pages FOR EACH ROW WHEN (((old.deleted_at IS NULL) AND (new.deleted_at IS NOT NULL))) EXECUTE FUNCTION gbrain_mark_derivation_scope_entry()",
"pages.pages_forget_retrievals": "CREATE TRIGGER pages_forget_retrievals AFTER DELETE ON public.pages REFERENCING OLD TABLE AS gbrain_deleted_pages FOR EACH STATEMENT EXECUTE FUNCTION gbrain_forget_page_retrievals()",
"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.pages_refuse_purged": "CREATE TRIGGER pages_refuse_purged BEFORE INSERT OR UPDATE ON public.pages FOR EACH ROW EXECUTE FUNCTION gbrain_refuse_purged_page()",
"pages.pages_revision_attribution": "CREATE TRIGGER pages_revision_attribution BEFORE INSERT OR UPDATE ON public.pages FOR EACH ROW EXECUTE FUNCTION gbrain_stamp_revision_attribution()",
"pages.trg_pages_search_vector": "CREATE TRIGGER trg_pages_search_vector BEFORE INSERT OR UPDATE OF title, timeline, timeline_lead ON public.pages FOR EACH ROW EXECUTE FUNCTION update_page_search_vector()",
"pages.trust_generation_delete": "CREATE CONSTRAINT TRIGGER trust_generation_delete AFTER DELETE ON public.pages DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN ((COALESCE(old.frontmatter, '{}'::jsonb) ? 'quarantine'::text)) EXECUTE FUNCTION gbrain_bump_trust_generation()",
"pages.trust_generation_insert": "CREATE CONSTRAINT TRIGGER trust_generation_insert AFTER INSERT ON public.pages DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN ((COALESCE(new.frontmatter, '{}'::jsonb) ? 'quarantine'::text)) EXECUTE FUNCTION gbrain_bump_trust_generation()",
"pages.trust_generation_update": "CREATE CONSTRAINT TRIGGER trust_generation_update AFTER UPDATE ON public.pages DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN (((old.trust_tier IS DISTINCT FROM new.trust_tier) OR ((COALESCE(old.frontmatter, '{}'::jsonb) ? 'quarantine'::text) IS DISTINCT FROM (COALESCE(new.frontmatter, '{}'::jsonb) ? 'quarantine'::text)) OR ((COALESCE(new.frontmatter, '{}'::jsonb) ? 'quarantine'::text) AND (((old.deleted_at IS DISTINCT FROM new.deleted_at) OR (old.source_id IS DISTINCT FROM new.source_id)) OR (old.slug IS DISTINCT FROM new.slug))))) EXECUTE FUNCTION gbrain_bump_trust_generation()",
"pages.trust_tier_stamp": "CREATE TRIGGER trust_tier_stamp BEFORE INSERT OR UPDATE ON public.pages FOR EACH ROW EXECUTE FUNCTION gbrain_stamp_trust_tier()",
"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_deferred": "CREATE TRIGGER gbrain_request_deferred BEFORE UPDATE OF state ON public.persistence_requests FOR EACH ROW WHEN (((old.state = 'deferred'::text) OR (new.state = 'deferred'::text))) EXECUTE FUNCTION gbrain_guard_deferred_request()",
"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()",
"persistence_worktree_refreshes.gbrain_refresh_release": "CREATE TRIGGER gbrain_refresh_release BEFORE UPDATE OF state ON public.persistence_worktree_refreshes FOR EACH ROW WHEN (((new.state = ANY (ARRAY['completed'::text, 'aborted'::text])) AND (old.state <> ALL (ARRAY['completed'::text, 'aborted'::text])))) EXECUTE FUNCTION gbrain_release_refresh_barrier()",
"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.git_canonical_sources_count_delete": "CREATE TRIGGER git_canonical_sources_count_delete AFTER DELETE ON public.sources FOR EACH ROW WHEN (((old.config ->> 'canonical'::text) = 'git'::text)) EXECUTE FUNCTION gbrain_count_git_canonical_sources()",
"sources.git_canonical_sources_count_insert": "CREATE TRIGGER git_canonical_sources_count_insert AFTER INSERT ON public.sources FOR EACH ROW WHEN (((new.config ->> 'canonical'::text) = 'git'::text)) EXECUTE FUNCTION gbrain_count_git_canonical_sources()",
"sources.git_canonical_sources_count_update": "CREATE TRIGGER git_canonical_sources_count_update AFTER UPDATE ON public.sources FOR EACH ROW WHEN (((old.config ->> 'canonical'::text) IS DISTINCT FROM (new.config ->> 'canonical'::text))) EXECUTE FUNCTION gbrain_count_git_canonical_sources()",
"sources.guest_source_database_only": "CREATE TRIGGER guest_source_database_only BEFORE UPDATE OF local_path ON public.sources FOR EACH ROW EXECUTE FUNCTION gbrain_guard_guest_records()",
"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()",
"take_purges.trust_generation_insert": "CREATE CONSTRAINT TRIGGER trust_generation_insert AFTER INSERT ON public.take_purges DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN (true) EXECUTE FUNCTION gbrain_bump_trust_generation()",
"takes.gbrain_write_attribution": "CREATE TRIGGER gbrain_write_attribution BEFORE INSERT OR UPDATE ON public.takes FOR EACH ROW EXECUTE FUNCTION gbrain_stamp_write_attribution()",
"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()",
"takes.takes_refuse_purged": "CREATE TRIGGER takes_refuse_purged BEFORE INSERT OR UPDATE OF claim, page_id ON public.takes FOR EACH ROW EXECUTE FUNCTION gbrain_refuse_purged_take()",
"takes.trust_generation_update": "CREATE CONSTRAINT TRIGGER trust_generation_update AFTER UPDATE ON public.takes DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN ((old.trust_tier IS DISTINCT FROM new.trust_tier)) EXECUTE FUNCTION gbrain_bump_trust_generation()",
"takes.trust_tier_stamp": "CREATE TRIGGER trust_tier_stamp BEFORE INSERT OR UPDATE ON public.takes FOR EACH ROW EXECUTE FUNCTION gbrain_stamp_trust_tier()",
"timeline_entries.gbrain_write_attribution": "CREATE TRIGGER gbrain_write_attribution BEFORE INSERT OR UPDATE ON public.timeline_entries FOR EACH ROW EXECUTE FUNCTION gbrain_stamp_write_attribution()",
"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()",
"timeline_entries.trust_generation_update": "CREATE CONSTRAINT TRIGGER trust_generation_update AFTER UPDATE ON public.timeline_entries DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN ((old.trust_tier IS DISTINCT FROM new.trust_tier)) EXECUTE FUNCTION gbrain_bump_trust_generation()",
"timeline_entries.trust_tier_stamp": "CREATE TRIGGER trust_tier_stamp BEFORE INSERT OR UPDATE ON public.timeline_entries FOR EACH ROW EXECUTE FUNCTION gbrain_stamp_trust_tier()",
"write_gate_receipts.trust_generation_delete": "CREATE CONSTRAINT TRIGGER trust_generation_delete AFTER DELETE ON public.write_gate_receipts DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN (true) EXECUTE FUNCTION gbrain_bump_trust_generation()",
"write_gate_receipts.trust_generation_insert": "CREATE CONSTRAINT TRIGGER trust_generation_insert AFTER INSERT ON public.write_gate_receipts DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN (true) EXECUTE FUNCTION gbrain_bump_trust_generation()",
"write_gate_receipts.trust_generation_update": "CREATE CONSTRAINT TRIGGER trust_generation_update AFTER UPDATE ON public.write_gate_receipts DEFERRABLE INITIALLY DEFERRED FOR EACH ROW WHEN ((((((old.verdict IS DISTINCT FROM new.verdict) OR (old.reason_families IS DISTINCT FROM new.reason_families)) OR (old.content_hash IS DISTINCT FROM new.content_hash)) OR (old.target_table IS DISTINCT FROM new.target_table)) OR (old.target_id IS DISTINCT FROM new.target_id))) EXECUTE FUNCTION gbrain_bump_trust_generation()"
},
"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"
}