Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
{
"golden": {
"constraints": {
"access_tokens.access_tokens_pkey": "p PRIMARY KEY (id)",
"access_tokens.access_tokens_token_hash_key": "u UNIQUE (token_hash)",
"belief_commit_marks.belief_commit_marks_pkey": "p PRIMARY KEY (publication_id)",
"belief_events.belief_events_event_key_key": "u UNIQUE (event_key)",
"belief_events.belief_events_origin_check": "c CHECK ((origin = ANY (ARRAY['live'::text, 'unmanaged'::text, 'baseline'::text, 'backfill'::text, 'reconcile'::text])))",
"belief_events.belief_events_pkey": "p PRIMARY KEY (id)",
"belief_events.belief_events_subject_kind_check": "c CHECK ((subject_kind = ANY (ARRAY['page'::text, 'fact'::text, 'take'::text, 'link'::text, 'link_transition'::text, 'coverage'::text])))",
"belief_events.belief_events_tier_basis_check": "c CHECK ((tier_basis = ANY (ARRAY['row'::text, 'writer'::text, 'unknown'::text])))",
"belief_page_lifetimes.belief_page_lifetimes_pkey": "p PRIMARY KEY (page_lifetime)",
"belief_redactions.belief_redactions_pkey": "p PRIMARY KEY (id)",
"belief_retier_manifest.belief_retier_manifest_pkey": "p PRIMARY KEY (summary_event, subject_kind, subject_key)",
"calibration_profiles.calibration_profiles_pkey": "p PRIMARY KEY (id)",
"calibration_profiles.calibration_profiles_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"chat_usage_log.chat_usage_log_pkey": "p PRIMARY KEY (id)",
"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)",
"config.config_pkey": "p PRIMARY KEY (key)",
"content_chunks.content_chunks_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
"content_chunks.content_chunks_pkey": "p PRIMARY KEY (id)",
"context_volunteer_events.context_volunteer_events_pkey": "p PRIMARY KEY (id)",
"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)",
"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)",
"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_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])))",
"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))",
"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)",
"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_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_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",
"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",
"oauth_clients.oauth_clients_pkey": "p PRIMARY KEY (client_id)",
"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_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_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_generation_clock.page_generation_clock_id_check": "c CHECK ((id = 1))",
"page_generation_clock.page_generation_clock_pkey": "p PRIMARY KEY (id)",
"page_projection_jobs.page_projection_jobs_pkey": "p PRIMARY KEY (source_incarnation, slug)",
"page_projection_jobs.page_projection_jobs_source_incarnation_fkey": "f FOREIGN KEY (source_incarnation) REFERENCES sources(incarnation) ON DELETE CASCADE",
"page_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_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_page_id_fkey": "f FOREIGN KEY (page_id) REFERENCES pages(id) ON DELETE CASCADE",
"page_versions.page_versions_pkey": "p PRIMARY KEY (id)",
"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_page_kind_check": "c CHECK ((page_kind = ANY (ARRAY['markdown'::text, 'code'::text, 'image'::text])))",
"pages.pages_pkey": "p PRIMARY KEY (id)",
"pages.pages_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"pages.pages_source_slug_key": "u UNIQUE (source_id, slug)",
"persistence_brain.persistence_brain_pkey": "p PRIMARY KEY (singleton)",
"persistence_brain.persistence_brain_singleton_check": "c CHECK ((singleton = 1))",
"persistence_brain.persistence_brain_writer_protocol_floor_check": "c CHECK ((writer_protocol_floor = ANY (ARRAY[1, 2])))",
"persistence_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_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_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_pkey": "p PRIMARY KEY (id)",
"persistence_requests.persistence_requests_principal_kind_check": "c CHECK ((principal_kind = ANY (ARRAY['oauth_client'::text, 'legacy_token'::text, 'local_cli'::text, 'local_stdio'::text, 'application'::text])))",
"persistence_requests.persistence_requests_principal_kind_principal_id_request_id_key": "u UNIQUE (principal_kind, principal_id, request_id)",
"persistence_requests.persistence_requests_protocol_version_check": "c CHECK ((protocol_version = ANY (ARRAY[1, 2])))",
"persistence_requests.persistence_requests_sequence_key": "u UNIQUE (sequence)",
"persistence_requests.persistence_requests_state_check": "c CHECK ((state = ANY (ARRAY['queued'::text, 'running'::text, 'recovering'::text, 'committed'::text, 'conflict'::text, 'failed'::text, 'cancelled'::text])))",
"persistence_requests.persistence_requests_target_kind_check": "c CHECK ((target_kind = ANY (ARRAY['page'::text, 'skill_bundle'::text])))",
"persistence_requests.persistence_requests_worktree_id_fkey": "f FOREIGN KEY (worktree_id) REFERENCES persistence_worktrees(id)",
"persistence_source_bindings.persistence_source_bindings_pkey": "p PRIMARY KEY (source_id)",
"persistence_source_bindings.persistence_source_bindings_worktree_id_fkey": "f FOREIGN KEY (worktree_id) REFERENCES persistence_worktrees(id)",
"persistence_topology_changes.persistence_topology_changes_intent_bytes_check": "c CHECK ((intent_bytes >= 0))",
"persistence_topology_changes.persistence_topology_changes_pkey": "p PRIMARY KEY (id)",
"persistence_topology_changes.persistence_topology_changes_principal_id_request_id_key": "u UNIQUE (principal_id, request_id)",
"persistence_topology_changes.persistence_topology_changes_recovery_bytes_check": "c CHECK ((recovery_bytes >= 0))",
"persistence_topology_changes.persistence_topology_changes_state_check": "c CHECK ((state = ANY (ARRAY['recovering'::text, 'committed'::text, 'failed'::text])))",
"persistence_topology_changes.persistence_topology_changes_terminal_bytes_check": "c CHECK ((terminal_bytes >= 0))",
"persistence_worktree_refreshes.persistence_worktree_refreshes_pkey": "p PRIMARY KEY (id)",
"persistence_worktree_refreshes.persistence_worktree_refreshes_state_check": "c CHECK ((state = ANY (ARRAY['draining'::text, 'fenced'::text, 'merged'::text, 'syncing'::text, 'completed'::text, 'aborted'::text, 'recovery_required'::text])))",
"persistence_worktree_refreshes.persistence_worktree_refreshes_worktree_id_fkey": "f FOREIGN KEY (worktree_id) REFERENCES persistence_worktrees(id)",
"persistence_worktrees.persistence_worktrees_pkey": "p PRIMARY KEY (id)",
"persistence_worktrees.persistence_worktrees_state_check": "c CHECK ((state = ANY (ARRAY['active'::text, 'draining'::text, 'recovering'::text])))",
"persistence_writer_protocols.persistence_writer_protocols_pkey": "p PRIMARY KEY (worktree_id, host_id)",
"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)",
"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)",
"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)))",
"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))",
"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",
"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_grade_cache.take_grade_cache_pkey": "p PRIMARY KEY (take_id, prompt_version, judge_model_id, evidence_signature)",
"take_grade_cache.take_grade_cache_verdict_check": "c CHECK ((verdict = ANY (ARRAY['correct'::text, 'incorrect'::text, 'partial'::text, 'unresolvable'::text])))",
"take_nudge_log.take_nudge_log_pkey": "p PRIMARY KEY (id)",
"take_nudge_log.take_nudge_log_proposal_id_fkey": "f FOREIGN KEY (proposal_id) REFERENCES take_proposals(id) ON DELETE CASCADE",
"take_nudge_log.take_nudge_log_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"take_nudge_log.take_nudge_log_target_xor": "c CHECK (((take_id IS NOT NULL) <> (proposal_id IS NOT NULL)))",
"take_proposals.take_proposals_pkey": "p PRIMARY KEY (id)",
"take_proposals.take_proposals_source_id_fkey": "f FOREIGN KEY (source_id) REFERENCES sources(id) ON DELETE CASCADE",
"take_proposals.take_proposals_status_check": "c CHECK ((status = ANY (ARRAY['pending'::text, 'accepted'::text, 'rejected'::text, 'superseded'::text])))",
"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",
"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)",
"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.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": {
"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=c40a0a3b86e640b6c8979976173dd93ae92c8c1b9a9e3595cae2af1e265328fe",
"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_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_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_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_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_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_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_purging_derivation()": "RETURNS trigger kind=f lang=plpgsql volatility=v secdef=false config=[search_path=pg_catalog, public, pg_temp] body_sha256=4bbe0281b504599ecf7facae1e1d6701d8890b692a1bcb559b8dc3549557e169",
"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_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_tokens": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"belief_commit_marks": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"belief_events": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"belief_page_lifetimes": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"belief_redactions": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"belief_retier_manifest": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"calibration_profiles": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"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"
],
"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"
],
"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"
],
"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"
],
"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"
],
"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"
],
"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"
],
"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_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"
],
"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_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_generation_clock": [
"<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_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"
],
"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"
],
"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"
],
"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"
],
"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"
],
"tags": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"take_grade_cache": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"take_nudge_log": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"take_proposals": [
"<current_role> -> <current_role> WITH GRANT OPTION: DELETE,INSERT,REFERENCES,SELECT,TRIGGER,TRUNCATE,UPDATE"
],
"take_purges": [
"<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"
],
"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_tokens_pkey": "CREATE UNIQUE INDEX access_tokens_pkey ON public.access_tokens USING btree (id)",
"access_tokens_token_hash_key": "CREATE UNIQUE INDEX access_tokens_token_hash_key ON public.access_tokens USING btree (token_hash)",
"belief_commit_marks_pkey": "CREATE UNIQUE INDEX belief_commit_marks_pkey ON public.belief_commit_marks USING btree (publication_id)",
"belief_events_claim_fp": "CREATE INDEX belief_events_claim_fp ON public.belief_events USING btree (source_id, claim_fp) WHERE (claim_fp IS NOT NULL)",
"belief_events_event_key_key": "CREATE UNIQUE INDEX belief_events_event_key_key ON public.belief_events USING btree (event_key)",
"belief_events_lifetime": "CREATE INDEX belief_events_lifetime ON public.belief_events USING btree (page_lifetime, id) WHERE (page_lifetime IS NOT NULL)",
"belief_events_page": "CREATE INDEX belief_events_page ON public.belief_events USING btree (source_id, slug, id)",
"belief_events_pkey": "CREATE UNIQUE INDEX belief_events_pkey ON public.belief_events USING btree (id)",
"belief_events_publication": "CREATE INDEX belief_events_publication ON public.belief_events USING btree (publication_id)",
"belief_events_recorded": "CREATE INDEX belief_events_recorded ON public.belief_events USING btree (recorded_at)",
"belief_events_subject": "CREATE INDEX belief_events_subject ON public.belief_events USING btree (source_id, subject_kind, subject_key, id)",
"belief_page_lifetimes_open": "CREATE UNIQUE INDEX belief_page_lifetimes_open ON public.belief_page_lifetimes USING btree (source_incarnation, slug) WHERE (ended_at IS NULL)",
"belief_page_lifetimes_pkey": "CREATE UNIQUE INDEX belief_page_lifetimes_pkey ON public.belief_page_lifetimes USING btree (page_lifetime)",
"belief_page_lifetimes_slug": "CREATE INDEX belief_page_lifetimes_slug ON public.belief_page_lifetimes USING btree (source_id, slug)",
"belief_redactions_field_hash": "CREATE INDEX belief_redactions_field_hash ON public.belief_redactions USING btree (source_id, field_hash)",
"belief_redactions_pkey": "CREATE UNIQUE INDEX belief_redactions_pkey ON public.belief_redactions USING btree (id)",
"belief_redactions_subject": "CREATE INDEX belief_redactions_subject ON public.belief_redactions USING btree (source_id, subject_key, field)",
"belief_retier_manifest_pkey": "CREATE UNIQUE INDEX belief_retier_manifest_pkey ON public.belief_retier_manifest USING btree (summary_event, subject_kind, subject_key)",
"calibration_profiles_bias_tags_gin": "CREATE INDEX calibration_profiles_bias_tags_gin ON public.calibration_profiles USING gin (active_bias_tags)",
"calibration_profiles_holder_recent_idx": "CREATE INDEX calibration_profiles_holder_recent_idx ON public.calibration_profiles USING btree (source_id, holder, generated_at DESC)",
"calibration_profiles_pkey": "CREATE UNIQUE INDEX calibration_profiles_pkey ON public.calibration_profiles USING btree (id)",
"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)",
"config_pkey": "CREATE UNIQUE INDEX config_pkey ON public.config USING btree (key)",
"content_chunks_pkey": "CREATE UNIQUE INDEX content_chunks_pkey ON public.content_chunks USING btree (id)",
"content_chunks_stale_idx": "CREATE INDEX content_chunks_stale_idx ON public.content_chunks USING btree (page_id, chunk_index) WHERE (embedding IS NULL)",
"context_volunteer_events_pkey": "CREATE UNIQUE INDEX context_volunteer_events_pkey ON public.context_volunteer_events USING btree (id)",
"context_volunteer_events_src_slug_idx": "CREATE INDEX context_volunteer_events_src_slug_idx ON public.context_volunteer_events USING btree (source_id, slug)",
"context_volunteer_events_src_time_idx": "CREATE INDEX context_volunteer_events_src_time_idx ON public.context_volunteer_events USING btree (source_id, volunteered_at DESC)",
"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)",
"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",
"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)",
"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)",
"idx_access_tokens_hash": "CREATE INDEX idx_access_tokens_hash ON public.access_tokens USING btree (token_hash) WHERE (revoked_at IS NULL)",
"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_to": "CREATE INDEX idx_code_edges_symbol_to ON public.code_edges_symbol USING btree (to_symbol_qualified, edge_type)",
"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_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_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_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_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_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_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_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_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_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_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_timeline_date": "CREATE INDEX idx_timeline_date ON public.timeline_entries USING btree (date)",
"idx_timeline_dedup": "CREATE UNIQUE INDEX idx_timeline_dedup ON public.timeline_entries USING btree (page_id, date, md5(summary), source)",
"idx_timeline_event_dedup": "CREATE UNIQUE INDEX idx_timeline_event_dedup ON public.timeline_entries USING btree (event_page_id, date) WHERE (event_page_id IS NOT NULL)",
"idx_timeline_event_page": "CREATE INDEX idx_timeline_event_page ON public.timeline_entries USING btree (event_page_id) WHERE (event_page_id IS NOT NULL)",
"idx_timeline_page": "CREATE INDEX idx_timeline_page ON public.timeline_entries USING btree (page_id)",
"idx_versions_page": "CREATE INDEX idx_versions_page ON public.page_versions USING btree (page_id)",
"ingest_log_pkey": "CREATE UNIQUE INDEX ingest_log_pkey ON public.ingest_log USING btree (id)",
"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)",
"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_inbox_pkey": "CREATE UNIQUE INDEX minion_inbox_pkey ON public.minion_inbox USING btree (id)",
"minion_jobs_pkey": "CREATE UNIQUE INDEX minion_jobs_pkey ON public.minion_jobs USING btree (id)",
"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_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_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_generation_clock_pkey": "CREATE UNIQUE INDEX page_generation_clock_pkey ON public.page_generation_clock USING btree (id)",
"page_projection_jobs_pkey": "CREATE UNIQUE INDEX page_projection_jobs_pkey ON public.page_projection_jobs USING btree (source_incarnation, slug)",
"page_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_coalesce_date_idx": "CREATE INDEX pages_coalesce_date_idx ON public.pages USING btree (COALESCE(effective_date, updated_at))",
"pages_deleted_at_purge_idx": "CREATE INDEX pages_deleted_at_purge_idx ON public.pages USING btree (deleted_at) WHERE (deleted_at IS NOT NULL)",
"pages_generation_idx": "CREATE INDEX pages_generation_idx ON public.pages USING btree (generation)",
"pages_links_extracted_at_idx": "CREATE INDEX pages_links_extracted_at_idx ON public.pages USING btree (source_id, links_extracted_at)",
"pages_pkey": "CREATE UNIQUE INDEX pages_pkey ON public.pages USING btree (id)",
"pages_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_pkey": "CREATE UNIQUE INDEX persistence_effects_pkey ON public.persistence_effects USING btree (id)",
"persistence_effects_request_id_kind_key": "CREATE UNIQUE INDEX persistence_effects_request_id_kind_key ON public.persistence_effects USING btree (request_id, kind)",
"persistence_host_bindings_pkey": "CREATE UNIQUE INDEX persistence_host_bindings_pkey ON public.persistence_host_bindings USING btree (worktree_id, host_id)",
"persistence_local_writers_credential_hash_key": "CREATE UNIQUE INDEX persistence_local_writers_credential_hash_key ON public.persistence_local_writers USING btree (credential_hash)",
"persistence_local_writers_pkey": "CREATE UNIQUE INDEX persistence_local_writers_pkey ON public.persistence_local_writers USING btree (id)",
"persistence_requests_pending": "CREATE INDEX persistence_requests_pending ON public.persistence_requests USING btree (worktree_id, sequence) WHERE (state = ANY (ARRAY['queued'::text, 'running'::text, 'recovering'::text]))",
"persistence_requests_pkey": "CREATE UNIQUE INDEX persistence_requests_pkey ON public.persistence_requests USING btree (id)",
"persistence_requests_principal": "CREATE INDEX persistence_requests_principal ON public.persistence_requests USING btree (principal_kind, principal_id, sequence DESC)",
"persistence_requests_principal_kind_principal_id_request_id_key": "CREATE UNIQUE INDEX persistence_requests_principal_kind_principal_id_request_id_key ON public.persistence_requests USING btree (principal_kind, principal_id, request_id)",
"persistence_requests_recovery": "CREATE INDEX persistence_requests_recovery ON public.persistence_requests USING btree (worktree_id, sequence) WHERE (recovery IS NOT NULL)",
"persistence_requests_sequence_key": "CREATE UNIQUE INDEX persistence_requests_sequence_key ON public.persistence_requests USING btree (sequence)",
"persistence_source_bindings_pkey": "CREATE UNIQUE INDEX persistence_source_bindings_pkey ON public.persistence_source_bindings USING btree (source_id)",
"persistence_topology_changes_pkey": "CREATE UNIQUE INDEX persistence_topology_changes_pkey ON public.persistence_topology_changes USING btree (id)",
"persistence_topology_changes_principal_id_request_id_key": "CREATE UNIQUE INDEX persistence_topology_changes_principal_id_request_id_key ON public.persistence_topology_changes USING btree (principal_id, request_id)",
"persistence_topology_recovering": "CREATE INDEX persistence_topology_recovering ON public.persistence_topology_changes USING btree (created_at) WHERE (state = 'recovering'::text)",
"persistence_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)",
"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)",
"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)",
"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)",
"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)",
"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_grade_cache_applied_idx": "CREATE INDEX take_grade_cache_applied_idx ON public.take_grade_cache USING btree (take_id, applied)",
"take_grade_cache_pkey": "CREATE UNIQUE INDEX take_grade_cache_pkey ON public.take_grade_cache USING btree (take_id, prompt_version, judge_model_id, evidence_signature)",
"take_grade_cache_wave_idx": "CREATE INDEX take_grade_cache_wave_idx ON public.take_grade_cache USING btree (wave_version, graded_at DESC)",
"take_nudge_log_pkey": "CREATE UNIQUE INDEX take_nudge_log_pkey ON public.take_nudge_log USING btree (id)",
"take_nudge_log_proposal_cooldown_idx": "CREATE INDEX take_nudge_log_proposal_cooldown_idx ON public.take_nudge_log USING btree (proposal_id, nudge_pattern, fired_at DESC) WHERE (proposal_id IS NOT NULL)",
"take_nudge_log_take_cooldown_idx": "CREATE INDEX take_nudge_log_take_cooldown_idx ON public.take_nudge_log USING btree (take_id, nudge_pattern, fired_at DESC) WHERE (take_id IS NOT NULL)",
"take_nudge_log_wave_idx": "CREATE INDEX take_nudge_log_wave_idx ON public.take_nudge_log USING btree (wave_version, fired_at DESC)",
"take_proposals_idempotency_idx": "CREATE UNIQUE INDEX take_proposals_idempotency_idx ON public.take_proposals USING btree (source_id, page_slug, content_hash, prompt_version, md5(claim_text))",
"take_proposals_pending_idx": "CREATE INDEX take_proposals_pending_idx ON public.take_proposals USING btree (source_id, status, proposed_at DESC) WHERE (status = 'pending'::text)",
"take_proposals_pkey": "CREATE UNIQUE INDEX take_proposals_pkey ON public.take_proposals USING btree (id)",
"take_proposals_run_id_idx": "CREATE INDEX take_proposals_run_id_idx ON public.take_proposals USING btree (proposal_run_id)",
"take_purges_pkey": "CREATE UNIQUE INDEX take_purges_pkey ON public.take_purges USING btree (source_id, subject, claim_hash)",
"think_ab_results_pkey": "CREATE UNIQUE INDEX think_ab_results_pkey ON public.think_ab_results USING btree (id)",
"think_ab_results_recent_idx": "CREATE INDEX think_ab_results_recent_idx ON public.think_ab_results USING btree (source_id, ran_at DESC)",
"timeline_entries_pkey": "CREATE UNIQUE INDEX timeline_entries_pkey ON public.timeline_entries USING btree (id)",
"uniq_minion_attachments_job_filename": "CREATE UNIQUE INDEX uniq_minion_attachments_job_filename ON public.minion_attachments USING btree (job_id, filename)",
"uniq_minion_jobs_idempotency": "CREATE UNIQUE INDEX uniq_minion_jobs_idempotency ON public.minion_jobs USING btree (idempotency_key) WHERE (idempotency_key IS NOT NULL)",
"uniq_subagent_messages_idx": "CREATE UNIQUE INDEX uniq_subagent_messages_idx ON public.subagent_messages USING btree (job_id, message_idx)",
"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",
"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",
"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",
"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=-",
"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",
"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_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",
"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_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",
"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",
"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",
"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_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"
],
"flags": "relkind=r rls=true force_rls=false"
},
"belief_commit_marks": {
"columns": [
"1 publication_id uuid/uuid NOT NULL",
"2 observed_at timestamp with time zone/timestamptz NOT NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"belief_events": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('belief_events_id_seq'::regclass)",
"2 event_key bytea/bytea NOT NULL",
"3 source_id text/text NOT NULL",
"4 source_incarnation uuid/uuid NOT NULL",
"5 page_lifetime uuid/uuid NULL",
"6 slug text/text NOT NULL",
"7 subject_kind text/text NOT NULL",
"8 subject_key text/text NOT NULL",
"9 event_type text/text NOT NULL",
"10 origin text/text NOT NULL DEFAULT 'live'::text",
"11 trust_tier text/text NOT NULL",
"12 writer_tier text/text NULL",
"13 tier_basis text/text NOT NULL DEFAULT 'row'::text",
"14 visibility text/text NOT NULL",
"15 publication_id uuid/uuid NOT NULL",
"16 ord integer/int4 NOT NULL",
"17 recorded_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",
"18 source_time timestamp with time zone/timestamptz NULL",
"19 valid_from timestamp with time zone/timestamptz NULL",
"20 valid_until timestamp with time zone/timestamptz NULL",
"21 value jsonb/jsonb NULL",
"22 value_hash text/text NULL",
"23 prior_hash text/text NULL",
"24 state_hash text/text NOT NULL",
"25 cause jsonb/jsonb NOT NULL",
"26 claim_fp text/text NULL",
"27 purged boolean/bool NOT NULL DEFAULT false",
"28 redacted_fields ARRAY/_text NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"belief_page_lifetimes": {
"columns": [
"1 page_lifetime uuid/uuid NOT NULL",
"2 source_id text/text NOT NULL",
"3 source_incarnation uuid/uuid NOT NULL",
"4 slug text/text NOT NULL",
"5 page_id integer/int4 NULL",
"6 started_at timestamp with time zone/timestamptz NOT NULL DEFAULT clock_timestamp()",
"7 ended_at timestamp with time zone/timestamptz NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"belief_redactions": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('belief_redactions_id_seq'::regclass)",
"2 source_id text/text NOT NULL",
"3 subject_key text/text NOT NULL",
"4 field text/text NOT NULL",
"5 purge_request uuid/uuid NOT NULL",
"6 field_hash text/text NOT NULL",
"7 released_by uuid/uuid NULL",
"8 released_hash text/text NULL",
"9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"belief_retier_manifest": {
"columns": [
"1 summary_event bigint/int8 NOT NULL",
"2 source_id text/text NOT NULL",
"3 subject_kind text/text NOT NULL",
"4 subject_key text/text NOT NULL",
"5 from_tier text/text NULL",
"6 to_tier text/text NOT NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"calibration_profiles": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('calibration_profiles_id_seq'::regclass)",
"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=false 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=false 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=false force_rls=false"
},
"code_edges_chunk": {
"columns": [
"1 id integer/int4 NOT NULL DEFAULT nextval('code_edges_chunk_id_seq'::regclass)",
"2 from_chunk_id integer/int4 NOT NULL",
"3 to_chunk_id integer/int4 NOT NULL",
"4 from_symbol_qualified text/text NOT NULL",
"5 to_symbol_qualified text/text NOT NULL",
"6 edge_type text/text NOT NULL",
"7 edge_metadata jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
"8 source_id text/text NULL",
"9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=false force_rls=false"
},
"code_edges_symbol": {
"columns": [
"1 id integer/int4 NOT NULL DEFAULT nextval('code_edges_symbol_id_seq'::regclass)",
"2 from_chunk_id integer/int4 NOT NULL",
"3 from_symbol_qualified text/text NOT NULL",
"4 to_symbol_qualified text/text NOT NULL",
"5 edge_type text/text NOT NULL",
"6 edge_metadata jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
"7 source_id text/text NULL",
"8 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=false force_rls=false"
},
"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 '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"
],
"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=false 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=false 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=false 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=false 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=false 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=false force_rls=false"
},
"dream_synthesis_completions": {
"columns": [
"1 source_id text/text NOT NULL",
"2 idempotency_key text/text NOT NULL",
"3 completed_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=false force_rls=false"
},
"dream_verdicts": {
"columns": [
"1 file_path text/text NOT NULL",
"2 content_hash text/text NOT NULL",
"3 worth_processing boolean/bool NOT NULL",
"4 reasons jsonb/jsonb NULL",
"5 judged_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"6 score double precision/float8 NULL",
"7 content_type text/text NULL",
"8 segments jsonb/jsonb NULL",
"9 entities jsonb/jsonb NULL",
"10 model text/text NULL",
"11 triage_version integer/int4 NULL",
"12 expires_at timestamp with time zone/timestamptz NOT NULL DEFAULT (now() + '30 days'::interval)"
],
"flags": "relkind=r rls=true force_rls=false"
},
"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"
],
"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=false 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=false 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=false 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"
},
"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=false force_rls=false"
},
"mcp_request_log": {
"columns": [
"1 id integer/int4 NOT NULL DEFAULT nextval('mcp_request_log_id_seq'::regclass)",
"2 token_name text/text NULL",
"3 agent_name text/text NULL",
"4 operation text/text NOT NULL",
"5 latency_ms integer/int4 NULL",
"6 status text/text NOT NULL DEFAULT 'success'::text",
"7 params jsonb/jsonb NULL",
"8 error_message text/text NULL",
"9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=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=false force_rls=false"
},
"minion_attachments": {
"columns": [
"1 id integer/int4 NOT NULL DEFAULT nextval('minion_attachments_id_seq'::regclass)",
"2 job_id integer/int4 NOT NULL",
"3 filename text/text NOT NULL",
"4 content_type text/text NOT NULL",
"5 content bytea/bytea NULL",
"6 storage_uri text/text NULL",
"7 size_bytes integer/int4 NOT NULL",
"8 sha256 text/text NOT NULL",
"9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=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()"
],
"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"
],
"flags": "relkind=r rls=true force_rls=false"
},
"oauth_codes": {
"columns": [
"1 code_hash text/text NOT NULL",
"2 client_id text/text NOT NULL",
"3 scopes ARRAY/_text NULL",
"4 code_challenge text/text NOT NULL",
"5 code_challenge_method text/text NOT NULL DEFAULT 'S256'::text",
"6 redirect_uri text/text NOT NULL",
"7 state text/text NULL",
"8 resource text/text NULL",
"9 expires_at bigint/int8 NOT NULL",
"10 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"oauth_grant_audit": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('oauth_grant_audit_id_seq'::regclass)",
"2 client_id text/text NOT NULL",
"3 actor text/text NOT NULL",
"4 action text/text NOT NULL",
"5 revision integer/int4 NOT NULL",
"6 before_grant jsonb/jsonb NULL",
"7 after_grant jsonb/jsonb NOT NULL",
"8 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=false force_rls=false"
},
"oauth_tokens": {
"columns": [
"1 token_hash text/text NOT NULL",
"2 token_type text/text NOT NULL",
"3 client_id text/text NOT NULL",
"4 scopes ARRAY/_text NULL",
"5 expires_at bigint/int8 NULL",
"6 resource text/text NULL",
"7 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"op_checkpoint_paths": {
"columns": [
"1 op text/text NOT NULL",
"2 fingerprint text/text NOT NULL",
"3 path text/text NOT NULL",
"4 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=false force_rls=false"
},
"op_checkpoints": {
"columns": [
"1 op text/text NOT NULL",
"2 fingerprint text/text NOT NULL",
"3 completed_keys jsonb/jsonb NOT NULL DEFAULT '[]'::jsonb",
"4 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=false force_rls=false"
},
"open_loops": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('open_loops_id_seq'::regclass)",
"2 source_id text/text NOT NULL",
"3 dedup_key text/text NOT NULL",
"4 loop_type text/text NOT NULL",
"5 counterparty_slug text/text NULL",
"6 counterparty_email text/text NULL",
"7 summary text/text NOT NULL",
"8 evidence jsonb/jsonb NOT NULL DEFAULT '[]'::jsonb",
"9 thread_id text/text NULL",
"10 page_slug text/text NULL",
"11 due_at timestamp with time zone/timestamptz NULL",
"12 status text/text NOT NULL DEFAULT 'open'::text",
"13 detector text/text NOT NULL",
"14 confidence real/float4 NOT NULL DEFAULT 1.0",
"15 fact_id bigint/int8 NULL",
"16 opened_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"17 last_activity_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"18 closed_at timestamp with time zone/timestamptz NULL",
"19 closed_by text/text NULL",
"20 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"21 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=false force_rls=false"
},
"page_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=false 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=false force_rls=false"
},
"page_generation_clock": {
"columns": [
"1 id integer/int4 NOT NULL",
"2 value bigint/int8 NOT NULL DEFAULT 0"
],
"flags": "relkind=r rls=false force_rls=false"
},
"page_projection_jobs": {
"columns": [
"1 source_incarnation uuid/uuid NOT NULL",
"2 slug text/text NOT NULL",
"3 revision uuid/uuid NOT NULL",
"4 reason text/text NOT NULL",
"5 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=false force_rls=false"
},
"page_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=false 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 NOT NULL",
"4 frontmatter jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
"5 snapshot_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"6 knowledge_revision uuid/uuid NULL",
"7 timeline text/text NULL",
"8 title text/text NULL",
"9 type text/text NULL",
"10 tags jsonb/jsonb NULL",
"11 is_deleted boolean/bool NULL",
"12 source_path text/text 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=false force_rls=false"
},
"pages": {
"columns": [
"1 id integer/int4 NOT NULL DEFAULT nextval('pages_id_seq'::regclass)",
"2 source_id text/text NOT NULL DEFAULT 'default'::text",
"3 slug text/text NOT NULL",
"4 type text/text NOT NULL",
"5 page_kind text/text NOT NULL DEFAULT 'markdown'::text",
"6 title text/text NOT NULL",
"7 compiled_truth text/text NOT NULL DEFAULT ''::text",
"8 timeline text/text NOT NULL DEFAULT ''::text",
"9 frontmatter jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
"10 content_hash text/text NULL",
"11 emotional_weight real/float4 NOT NULL DEFAULT 0.0",
"12 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"13 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"14 deleted_at timestamp with time zone/timestamptz NULL",
"15 effective_date timestamp with time zone/timestamptz NULL",
"16 effective_date_source text/text NULL",
"17 import_filename text/text NULL",
"18 salience_touched_at timestamp with time zone/timestamptz NULL",
"19 last_retrieved_at timestamp with time zone/timestamptz NULL",
"20 links_extracted_at timestamp with time zone/timestamptz NULL",
"21 database_only_reason text/text NULL",
"22 contextual_retrieval_mode text/text NULL",
"23 corpus_generation text/text NULL",
"24 generation bigint/int8 NOT NULL DEFAULT 1",
"25 search_vector tsvector/tsvector NULL",
"26 knowledge_revision uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
"27 text_projection_revision uuid/uuid NULL"
],
"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"
],
"flags": "relkind=r rls=false 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"
],
"flags": "relkind=r rls=false force_rls=false"
},
"persistence_counters": {
"columns": [
"1 key text/text NOT NULL",
"2 outstanding_count bigint/int8 NOT NULL DEFAULT 0",
"3 intent_bytes bigint/int8 NOT NULL DEFAULT 0",
"4 lifetime_ids bigint/int8 NOT NULL DEFAULT 0",
"5 terminal_bytes bigint/int8 NOT NULL DEFAULT 0",
"6 recovery_bytes bigint/int8 NOT NULL DEFAULT 0"
],
"flags": "relkind=r rls=false force_rls=false"
},
"persistence_effects": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('persistence_effects_id_seq'::regclass)",
"2 request_id uuid/uuid NOT NULL",
"3 kind text/text NOT NULL",
"4 revision uuid/uuid NULL",
"5 data jsonb/jsonb NOT NULL",
"6 state text/text NOT NULL DEFAULT 'queued'::text",
"7 execution_token uuid/uuid NULL",
"8 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=false force_rls=false"
},
"persistence_host_bindings": {
"columns": [
"1 worktree_id uuid/uuid NOT NULL",
"2 host_id uuid/uuid NOT NULL",
"3 local_path text/text NOT NULL",
"4 coordination_path text/text NOT NULL",
"5 git_durability text/text NULL"
],
"flags": "relkind=r rls=false force_rls=false"
},
"persistence_local_writers": {
"columns": [
"1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
"2 lane text/text NOT NULL",
"3 credential_hash text/text NOT NULL",
"4 grant_ceiling jsonb/jsonb NOT NULL",
"5 revoked_at timestamp with time zone/timestamptz NULL",
"6 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=false force_rls=false"
},
"persistence_requests": {
"columns": [
"1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
"2 principal_kind text/text NOT NULL",
"3 principal_id text/text NOT NULL",
"4 request_id uuid/uuid NOT NULL",
"5 operation text/text NOT NULL",
"6 source_id text/text NOT NULL",
"7 source_incarnation uuid/uuid NOT NULL",
"8 page_id integer/int4 NULL",
"9 slug text/text NOT NULL",
"10 worktree_id uuid/uuid NULL",
"11 topology_generation bigint/int8 NULL",
"12 digest text/text NOT NULL",
"13 intent jsonb/jsonb NULL",
"14 authority jsonb/jsonb NOT NULL",
"15 sequence bigint/int8 NOT NULL DEFAULT nextval('persistence_requests_sequence_seq'::regclass)",
"16 state text/text NOT NULL DEFAULT 'queued'::text",
"17 execution_token uuid/uuid NULL",
"18 claim_expires_at timestamp with time zone/timestamptz NULL",
"19 recovery jsonb/jsonb NULL",
"20 recovery_bytes bigint/int8 NOT NULL DEFAULT 0",
"21 intent_bytes bigint/int8 NOT NULL",
"22 terminal_reservation bigint/int8 NOT NULL",
"23 outcome jsonb/jsonb NULL",
"24 error_code text/text NULL",
"25 error_message text/text NULL",
"26 blocked_reason text/text NULL",
"27 compacted boolean/bool NOT NULL DEFAULT false",
"28 publication_started boolean/bool NOT NULL DEFAULT false",
"29 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"30 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"31 completed_at timestamp with time zone/timestamptz NULL",
"32 target_kind text/text NOT NULL DEFAULT 'page'::text",
"33 protocol_version integer/int4 NOT NULL DEFAULT 1"
],
"flags": "relkind=r rls=false force_rls=false"
},
"persistence_source_bindings": {
"columns": [
"1 source_id text/text NOT NULL",
"2 source_incarnation uuid/uuid NOT NULL",
"3 worktree_id uuid/uuid NOT NULL",
"4 relative_path text/text NOT NULL DEFAULT ''::text",
"5 topology_generation bigint/int8 NOT NULL DEFAULT 1"
],
"flags": "relkind=r rls=false force_rls=false"
},
"persistence_topology_changes": {
"columns": [
"1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
"2 principal_id uuid/uuid NOT NULL",
"3 request_id uuid/uuid NOT NULL",
"4 digest text/text NOT NULL",
"5 operation text/text NOT NULL",
"6 source_id text/text NOT NULL",
"7 source_incarnation uuid/uuid NULL",
"8 worktree_ids ARRAY/_uuid NOT NULL DEFAULT '{}'::uuid[]",
"9 state text/text NOT NULL",
"10 recovery jsonb/jsonb NULL",
"11 recovery_bytes bigint/int8 NOT NULL DEFAULT 0",
"12 intent_bytes bigint/int8 NOT NULL DEFAULT 0",
"13 terminal_bytes bigint/int8 NOT NULL DEFAULT 2048",
"14 outcome jsonb/jsonb NULL",
"15 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"16 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=false force_rls=false"
},
"persistence_worktree_refreshes": {
"columns": [
"1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
"2 worktree_id uuid/uuid NOT NULL",
"3 source_ids ARRAY/_text NOT NULL",
"4 principal_id uuid/uuid NOT NULL",
"5 owner_epoch bigint/int8 NOT NULL",
"6 topology_generation bigint/int8 NOT NULL",
"7 state text/text NOT NULL",
"8 old_head text/text NOT NULL",
"9 target_head text/text NOT NULL",
"10 upstream_ref text/text NOT NULL",
"11 preserved_uncommitted ARRAY/_text NOT NULL DEFAULT '{}'::text[]",
"12 outcome jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
"13 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"14 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"15 completed_at timestamp with time zone/timestamptz NULL"
],
"flags": "relkind=r rls=false force_rls=false"
},
"persistence_worktrees": {
"columns": [
"1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
"2 owner_host_id uuid/uuid NULL",
"3 owner_epoch bigint/int8 NOT NULL DEFAULT 0",
"4 topology_generation bigint/int8 NOT NULL DEFAULT 1",
"5 state text/text NOT NULL DEFAULT 'active'::text",
"6 manifest jsonb/jsonb NULL",
"7 heartbeat_at timestamp with time zone/timestamptz NULL",
"8 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=false force_rls=false"
},
"persistence_writer_protocols": {
"columns": [
"1 worktree_id uuid/uuid NOT NULL",
"2 host_id uuid/uuid NOT NULL",
"3 owner_epoch bigint/int8 NOT NULL",
"4 protocol_version integer/int4 NOT NULL",
"5 registered_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"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"
},
"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"
},
"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=false 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=false 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=false 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=false 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=false force_rls=false"
},
"session_context_state": {
"columns": [
"1 source_id text/text NOT NULL",
"2 client_id text/text NOT NULL DEFAULT 'local'::text",
"3 session_id text/text NOT NULL",
"4 standing_entities jsonb/jsonb NOT NULL DEFAULT '[]'::jsonb",
"5 surfaced_slugs jsonb/jsonb NOT NULL DEFAULT '[]'::jsonb",
"6 checkpoint_manifest jsonb/jsonb NOT NULL DEFAULT '[]'::jsonb",
"7 last_wake_at timestamp with time zone/timestamptz NULL",
"8 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"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=false force_rls=false"
},
"shared_skill_delivery_batches": {
"columns": [
"1 token uuid/uuid NOT NULL",
"2 installation_id uuid/uuid NOT NULL",
"3 epoch bigint/int8 NOT NULL",
"4 sequence bigint/int8 NOT NULL",
"5 view_token text/text NOT NULL",
"6 authority_digest text/text NOT NULL",
"7 revisions jsonb/jsonb NOT NULL",
"8 issued_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"9 acknowledged_at timestamp with time zone/timestamptz NULL",
"10 evidence jsonb/jsonb NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"shared_skill_heads": {
"columns": [
"1 source_id text/text NOT NULL",
"2 source_incarnation uuid/uuid NOT NULL",
"3 pack_id text/text NOT NULL",
"4 name text/text NOT NULL",
"5 revision uuid/uuid NOT NULL",
"6 metadata jsonb/jsonb NOT NULL",
"7 deleted boolean/bool NOT NULL DEFAULT false",
"8 policy_epoch text/text NOT NULL",
"9 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"shared_skill_members": {
"columns": [
"1 installation_id uuid/uuid NOT NULL",
"2 principal_kind text/text NOT NULL",
"3 principal_id text/text NOT NULL",
"4 adapter text/text NOT NULL",
"5 brain_id uuid/uuid NOT NULL",
"6 epoch bigint/int8 NOT NULL DEFAULT 1",
"7 active boolean/bool NOT NULL DEFAULT true",
"8 follow_policy jsonb/jsonb NOT NULL",
"9 issued_sequence bigint/int8 NOT NULL DEFAULT 0",
"10 acknowledged_sequence bigint/int8 NOT NULL DEFAULT 0",
"11 desired_view text/text NULL",
"12 acknowledged_view text/text NULL",
"13 joined_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"14 last_seen_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"15 join_window timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"16 join_count integer/int4 NOT NULL DEFAULT 1"
],
"flags": "relkind=r rls=true force_rls=false"
},
"shared_skill_packs": {
"columns": [
"1 source_id text/text NOT NULL",
"2 source_incarnation uuid/uuid NOT NULL",
"3 pack_id text/text NOT NULL",
"4 revision uuid/uuid NOT NULL",
"5 manifest jsonb/jsonb NOT NULL",
"6 manifest_hash text/text NOT NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"shared_skill_policies": {
"columns": [
"1 source_id text/text NOT NULL",
"2 source_incarnation uuid/uuid NOT NULL",
"3 epoch uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
"4 policy jsonb/jsonb NOT NULL",
"5 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"shared_skill_policy_audit": {
"columns": [
"1 id uuid/uuid NOT NULL DEFAULT gen_random_uuid()",
"2 source_id text/text NOT NULL",
"3 source_incarnation uuid/uuid NOT NULL",
"4 principal_kind text/text NOT NULL",
"5 principal_id text/text NOT NULL",
"6 previous_epoch text/text NOT NULL",
"7 epoch uuid/uuid NOT NULL",
"8 policy jsonb/jsonb NOT NULL",
"9 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"shared_skill_revision_leases": {
"columns": [
"1 lease_kind text/text NOT NULL",
"2 lease_id uuid/uuid NOT NULL",
"3 source_id text/text NOT NULL",
"4 source_incarnation uuid/uuid NOT NULL",
"5 pack_id text/text NOT NULL",
"6 name text/text NOT NULL",
"7 revision uuid/uuid NOT NULL",
"8 principal_kind text/text NOT NULL",
"9 principal_id text/text NOT NULL",
"10 expires_at timestamp with time zone/timestamptz NOT NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"shared_skill_revisions": {
"columns": [
"1 source_id text/text NOT NULL",
"2 source_incarnation uuid/uuid NOT NULL",
"3 pack_id text/text NOT NULL",
"4 name text/text NOT NULL",
"5 revision uuid/uuid NOT NULL",
"6 metadata jsonb/jsonb NOT NULL",
"7 files jsonb/jsonb NOT NULL",
"8 deleted boolean/bool NOT NULL DEFAULT false",
"9 policy_epoch text/text NOT NULL",
"10 request_id uuid/uuid NOT NULL",
"11 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"12 stored_bytes bigint/int8 NULL"
],
"flags": "relkind=r rls=true force_rls=false"
},
"shared_skill_state": {
"columns": [
"1 singleton integer/int4 NOT NULL",
"2 token_secret text/text NOT NULL DEFAULT (replace((gen_random_uuid())::text, '-'::text, ''::text) || replace((gen_random_uuid())::text, '-'::text, ''::text))",
"3 serving_epoch uuid/uuid NOT NULL DEFAULT gen_random_uuid()"
],
"flags": "relkind=r rls=true force_rls=false"
},
"source_ingestion_receipts": {
"columns": [
"1 id uuid/uuid NOT NULL",
"2 source_id text/text NOT NULL",
"3 source_incarnation uuid/uuid NOT NULL",
"4 approved_revision text/text NOT NULL",
"5 profile text/text NOT NULL",
"6 schema_fingerprint text/text NOT NULL",
"7 extractor_version text/text NOT NULL",
"8 revision integer/int4 NOT NULL DEFAULT 1",
"9 phase text/text NOT NULL DEFAULT 'ADMITTED'::text",
"10 outcome text/text NOT NULL DEFAULT 'incomplete'::text",
"11 counts jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
"12 lifecycle_request_ids ARRAY/_uuid NOT NULL DEFAULT '{}'::uuid[]",
"13 checkpoint_refs jsonb/jsonb NOT NULL DEFAULT '[]'::jsonb",
"14 diagnostic text/text NULL",
"15 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"16 updated_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"17 completed_at timestamp with time zone/timestamptz NULL",
"18 discarded_at timestamp with time zone/timestamptz NULL",
"19 policy_fingerprint text/text NULL"
],
"flags": "relkind=r rls=false force_rls=false"
},
"sources": {
"columns": [
"1 id text/text NOT NULL",
"2 name text/text NOT NULL",
"3 local_path text/text NULL",
"4 last_commit text/text NULL",
"5 last_sync_at timestamp with time zone/timestamptz NULL",
"6 config jsonb/jsonb NOT NULL DEFAULT '{}'::jsonb",
"7 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"
],
"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=false 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=false 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=false force_rls=false"
},
"tags": {
"columns": [
"1 id integer/int4 NOT NULL DEFAULT nextval('tags_id_seq'::regclass)",
"2 page_id integer/int4 NOT NULL",
"3 tag text/text NOT NULL",
"4 tag_source text/text NULL"
],
"flags": "relkind=r rls=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_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"
},
"think_ab_results": {
"columns": [
"1 id bigint/int8 NOT NULL DEFAULT nextval('think_ab_results_id_seq'::regclass)",
"2 source_id text/text NOT NULL",
"3 wave_version text/text NOT NULL DEFAULT 'v0.36.1.0'::text",
"4 ran_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()",
"5 question text/text NOT NULL",
"6 baseline_answer text/text NOT NULL",
"7 with_calibration_answer text/text NOT NULL",
"8 preferred text/text NOT NULL",
"9 model_id text/text NULL",
"10 notes text/text NULL"
],
"flags": "relkind=r rls=false force_rls=false"
},
"timeline_entries": {
"columns": [
"1 id integer/int4 NOT NULL DEFAULT nextval('timeline_entries_id_seq'::regclass)",
"2 page_id integer/int4 NOT NULL",
"3 date date/date NOT NULL",
"4 source text/text NOT NULL DEFAULT ''::text",
"5 summary text/text NOT NULL",
"6 detail text/text NOT NULL DEFAULT ''::text",
"7 event_page_id integer/int4 NULL",
"8 created_at timestamp with time zone/timestamptz NOT NULL DEFAULT now()"
],
"flags": "relkind=r rls=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": {
"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()",
"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()",
"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_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()",
"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_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.trg_pages_search_vector": "CREATE TRIGGER trg_pages_search_vector BEFORE INSERT OR UPDATE OF title, timeline ON public.pages FOR EACH ROW EXECUTE FUNCTION update_page_search_vector()",
"persistence_brain.gbrain_protocol_activation": "CREATE TRIGGER gbrain_protocol_activation BEFORE UPDATE ON public.persistence_brain FOR EACH ROW EXECUTE FUNCTION gbrain_guard_protocol_activation()",
"persistence_effects.gbrain_effect_protocol": "CREATE TRIGGER gbrain_effect_protocol BEFORE INSERT OR DELETE OR UPDATE ON public.persistence_effects FOR EACH ROW EXECUTE FUNCTION gbrain_guard_effect_protocol()",
"persistence_requests.gbrain_request_protocol": "CREATE TRIGGER gbrain_request_protocol BEFORE INSERT OR DELETE OR UPDATE ON public.persistence_requests FOR EACH ROW EXECUTE FUNCTION gbrain_guard_request_protocol()",
"shared_skill_delivery_batches.shared_skill_delivery_lease": "CREATE TRIGGER shared_skill_delivery_lease AFTER INSERT OR UPDATE OF revisions ON public.shared_skill_delivery_batches FOR EACH ROW EXECUTE FUNCTION gbrain_lease_shared_skill_delivery()",
"shared_skill_heads.gbrain_skill_publication": "CREATE TRIGGER gbrain_skill_publication BEFORE INSERT OR DELETE OR UPDATE ON public.shared_skill_heads FOR EACH ROW EXECUTE FUNCTION gbrain_guard_skill_publication()",
"shared_skill_packs.gbrain_skill_publication": "CREATE TRIGGER gbrain_skill_publication BEFORE INSERT OR DELETE OR UPDATE ON public.shared_skill_packs FOR EACH ROW EXECUTE FUNCTION gbrain_guard_skill_publication()",
"shared_skill_revisions.gbrain_skill_publication": "CREATE TRIGGER gbrain_skill_publication BEFORE INSERT OR DELETE OR UPDATE ON public.shared_skill_revisions FOR EACH ROW EXECUTE FUNCTION gbrain_guard_skill_publication()",
"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.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()",
"timeline_entries.managed_writer_guard": "CREATE TRIGGER managed_writer_guard BEFORE INSERT OR DELETE OR UPDATE ON public.timeline_entries FOR EACH ROW EXECUTE FUNCTION gbrain_require_managed_writer()"
},
"viewColumns": {},
"views": {}
},
"normalizer": "schema-catalog-lines-v1"
}