Storage schema
This page was reconciled against current development source on 2026-11-08. Historical public-source links retain their original revisions and do not establish that a public mirror or installed runtime contains current behavior. This is static documentation/source review, not an application, provider, database or security test.
This reference reviews application storage ownership and records the current migration ledger through 104, checked against Core on 15 November 2026. Current additions are listed explicitly below; historical table descriptions are not a complete column-by-column schema export. Use application stores or the API, not direct SQL writes, so validation and lifecycle rules remain intact. See source coverage.
See Persistence architecture for the data flow and Backup and recovery for recovery scope.
Migration ledger
burrow_schema_migrations records version, name, checksum and applied_at. The runner validates an append-only, contiguous history and uses a transaction advisory lock. Changing an already applied migration is an error. burrow_migration_receipts is a separate table for verified source-cutover receipts (migration_id, manifest, fingerprint, result and completion time).
| Version | Migration name |
|---|---|
| 1 | application-stores |
| 2 | conversation-session-boundary |
| 3 | conversation-archives |
| 4 | settings-metadata-boundary |
| 5 | ui-auth-secrets |
| 6 | core-mod-settings-lifecycle |
| 7 | mod-distribution |
| 8 | verified-source-cutover-receipts |
| 9 | lossless-conversation-json |
| 10 | operator-message-lookup |
| 11 | scheduled-job-timezone-inheritance |
| 12 | dream-timezone-inheritance |
| 13 | albdruck-knowledge |
| 14 | dream-incremental-extraction |
| 15 | lexical-original-lookup |
| 16 | original-occurrence-rows |
| 17 | conversation-search-candidates |
| 18 | unified-rolling-continuity |
| 19 | native-conversation-archive-payloads |
| 20 | native-conversation-extracted-metadata |
| 21 | ascii-run-search-candidates |
| 22 | forge-native-status-and-identity |
| 23 | native-continuity-log-and-queue |
| 24 | mcp-provider-lifecycle-state |
| 25 | native-dream-state-entries |
| 26 | native-tiddle-entries-and-scheduling |
| 27 | lossless-continuity-payloads |
| 28 | forge-mcp-native-persistence-boundaries |
| 29 | stable-dream-scope-review-identity |
| 30 | native-dream-tiddle-identity |
| 31 | typed-mod-lifecycle-boundary |
| 32 | native-model-mcp-catalogs |
| 33 | lossless-settings-json |
| 34 | native-timestamps-and-agent-identities |
| 35 | restore-required-instant-contracts |
| 36 | safe-session-reset-instant |
| 37 | history-keyset-order-and-precedence |
| 38 | logical-json-member-identity |
| 39 | archive-relational-fallback-identity |
| 40 | catalog-lossless-scalar-identity |
| 41 | logical-original-lookup-indexes |
| 42 | indexed-dream-occurrence-windows |
| 43 | durable-agent-message-deliveries |
| 44 | dream-quiet-day-setting |
| 45 | agent-owned-deliberate-brains |
| 46 | legacy-albdruck-brain-snapshot |
| 47 | optional-brain-embeddings |
| 48 | indexed-operator-message-instants |
| 49 | live-run-steering |
| 50 | agent-minion-model-defaults |
| 51 | git-managed-skills |
| 52 | official-runtime-source-adoption |
| 53 | operator-only-scheduling-timezone |
| 54 | mods-disabled-by-default |
| 55 | durable-mod-management-operations |
| 56 | bounded-archive-listing-indexes |
| 57 | indexed-proof-run-directory |
| 58 | operator-owned-mod-authority |
| 59 | task-audit-history-and-documents |
| 60 | opentelemetry-operator-settings |
| 61 | global-profile-documents |
| 62 | global-profile-document-timestamps |
| 63 | mod-external-agent-turns |
| 64 | mod-text-generations |
| 65 | native-compaction-projection-reuse |
| 66 | owned-agent-message-deliveries |
| 67 | mod-external-turn-display-message |
| 68 | scheduled-model-context-mode |
| 69 | provider-pool-connections-and-routing-state |
| 70 | dream-memory-promotion-toggle |
| 71 | retained-forge-execution-history |
| 72 | native-openai-pool-metrics |
Early schema constants intentionally remain immutable. Read them together with later migrations: for example, the original conversation_archives.entries column is removed by version 19, and timezone columns introduced as non-null become nullable in versions 11 and 12.
Identity, profiles and model settings
| Table | Key / relationship | Stored data |
|---|---|---|
agents | id | Name, enabled flag, available capabilities, context and execution-environment configuration |
agent_profile_documents | (agent_id, kind); agent FK cascades | Markdown for SOUL, RULES, ORIENTATION, PREFERENCES, TOOLS, DREAM_MEMORY |
chat_identities | (kind, id); kind is operator/agent | Display name and avatar; separate from the runtime agent registry |
model_connections | id; ASCII-case-insensitive unique provider label | API type, base URL, input capabilities and model catalog JSON text |
model_connection_secrets | id; unique (connection_id, name); connection FK cascades | Ciphertext, nonce and authentication tag |
model_auth_previews | connection_id; connection FK cascades | Non-secret authentication preview JSON text |
model_settings_cache | cache_key | Catalog/settings cache JSON text and update time |
agent_model_selections | agent_id; agent FK cascades, connection FK restricts | Selected connection/model, reasoning effort, nullable thinking mode and temperature |
agent_minion_model_selections | agent_id; agent FK cascades, connection FK restricts | Legacy Minion connection/model selection retained for compatibility; normal dispatch uses current simple Minion settings |
Temperature is constrained to 0–2, default 0.2. Profile kind is constrained by the database; profile size and complete-replacement semantics are enforced by the store. Secret tables store encrypted bytes, not the external BURROW_SETTINGS_KEY. See Authentication. |
Conversations and original evidence
| Table/view | Identity | Contract |
|---|---|---|
conversation_sessions | (agent_id, session_id) | JSONB metadata, timestamps; owns native entries and archives |
conversation_entries | (agent_id, session_id, sequence) | Live entry JSON; unique entry ID and idempotency key within session |
conversation_archives | (agent_id, session_id, archive_id) | Generation, kind, metadata and timestamp; no aggregate entries payload in current schema |
conversation_archive_entries | (agent_id, session_id, source_store, source_id, ordinal) | Native archived occurrence and original entry JSON; owner FK cascades from archive header |
conversation_original_rows | Read-only UNION ALL view | Unified lookup across live entries and archive occurrences |
The session owner FK cascades to entries and archive headers; archive ownership cascades to native archive occurrences. Conversation session agent_id is a scope field, not an agents foreign key. Do not infer cross-table deletion behavior from similarly named columns.
Current native rows also contain extracted entry_key, search_projection, search_grams, has_payload_id and has_compression_summary metadata. Triggers extract metadata only when payloads change, with conservative fallback when fields cannot be safely projected. GIN candidate indexes speed lookup; original JSON and the final JavaScript matcher remain authoritative.
Session metadata retains transcript/reset generation, archive status and read evidence. Migration 23 moves continuityHead, interruptedRun and recoveryQueue into native stores and removes the old metadata copies. Session listing joins the current head for compatibility.
| Table | Key / relationship | Stored data |
|---|---|---|
continuity_state | (agent_id, session_id); session FK cascades | head, manifest, queue as json; extracted owner/head/queue state, auto-resume and queued/update time |
continuity_log | Identity bigint sequence; session FK cascades | Append-only transition snapshots using json payloads |
Continuity updates lock the session row, atomically update native state and append a log only when the continuity payload changes. Pending/active indexes drive recovery selection. Original session rename updates both tables; session deletion and Albdruck purge reject active native heads or running recovery queues.
Working memory, rolling continuity and handoffs
| Table | Key / relationship | Stored data |
|---|---|---|
working_memory | id; scope columns agent/session/conversation/project | Kind, state, title, content, source refs, pinning, timestamps, expiry and last recall |
working_memory_meta | key | Remaining working-memory JSONB metadata; native Dream collections moved in migration 25 |
working_memory_retention_settings | owner_id | Persisted working-record and rolling-card TTL policy |
rolling_continuity_cards | (agent_id, project, card_id) | Complete card JSON, update time and preserved migration metadata |
rolling_continuity_envelopes | (legacy_source, legacy_key) | Preserved legacy envelope metadata from migration 18 |
continuity_handoffs | id; indexed by agent/expiry/update | Agent/session/run, explicit/runtime source, content, refs, evidence summary and expiry |
tiddle_envelopes | key | Envelope JSONB, update time and indexed next_run_at scheduling projection |
tiddle_entries | Identity bigint id; envelope FK cascades | Ordered JSONB history/residue entries with timestamp and reference |
Working-memory kind is constrained to decision, finding, blocker, handoff, task; state to active, resolved, superseded. Scope columns here are not agent/session foreign keys. Lifecycle and purge behavior therefore belong to the stores as well as the schema.
Migration 26 moves Tiddle residue/history and pass/scope/receipt/synthesis envelopes out of settings_meta. Native append keeps ordering and prunes by age/reference; the old 240-entry residue cap is removed. Generic metadata atomic updates reject these keys, requiring the native writer.
Migration 18 moves legacy rolling envelopes into relational scope/identity while preserving complete card JSON and additional envelope metadata. Malformed source envelopes stop the migration rather than being silently discarded. See Memory and continuity.
Dream
| Table | Key / relationship | Stored data |
|---|---|---|
dream_settings | agent_id; agent FK cascades | Enabled, quiet-day setting, cron, legacy nullable timezone, prompt and optional model override; effective timezone comes from the operator |
dream_diary_entries | id; agent FK cascades | Date, phase, narrative, digest and source refs; unique agent/date/phase/digest |
dream_cycle_state | agent_id; agent FK cascades | Scheduler/cycle state JSONB |
dream_cycle_occurrences | (agent_id, scheduled_for); agent FK cascades | Claim identity and occurrence JSONB |
dream_cycle_receipts | (agent_id, run_id); agent FK cascades | Progress/result receipt JSONB, indexed by update time |
dream_extraction_batches | (agent_id, batch_id); agent FK cascades | Contract version, source fingerprints, pre-reconciliation candidates and completion time |
dream_state_envelopes | key | Kind (ledger, preload, scope_review), metadata JSONB and update time |
dream_ledger_entries | (key, position); envelope FK cascades | Ordered ledger payload JSONB |
dream_preload_entries | (key, position); envelope FK cascades | Ordered preload payload JSONB |
dream_scope_review_entries | (key, position); envelope FK cascades | Ordered scope-review candidate JSONB |
Migration 25 splits legacy Dream collections from working_memory_meta into envelope metadata and native rows, preserving array order and refusing malformed object/array envelopes. The write helper uses an advisory lock per key, merges metadata and appends or replaces entries transactionally. It removes legacy store-level count/reference truncation; generation callers can still select bounded subsets. | ||
Diary phase permits light, deep, rem and manual. Incremental batches are successful derived checkpoints, including empty candidate results; they are not another store of original transcripts. The legacy DREAM_MEMORY document remains in agent_profile_documents, not a dedicated table. Current ordinary context assembly excludes it from prompt injection; its presence is not proof that a current turn received it. See Dream cycles. |
Brains and optional embeddings
brain_memories is keyed by (agent_id, id) and stores title, content, source references, revision, operator ownership, timestamps and a soft-delete marker. Operator-owned entries cannot be changed by agent tools; edits require the expected revision. Migration 46 preserves legacy snapshots in brain_legacy_albdruck and adds origin/status/snapshot fields to migrated memories. Legacy global entries are assigned to hatchet, not copied to every agent.
Optional embedding configuration, vectors and pending jobs live in brain_embedding_settings, brain_embedding_vectors and brain_embedding_jobs. Embeddings start disabled. Revision/generation checks keep stale vectors from becoming current; disabling semantic search does not delete the saved memory itself.
Legacy Albdruck knowledge
These tables remain in the database for compatibility and migration. They do not establish a current Albdruck UI or mounted HTTP route. Use Brains and recall for current operator behavior.
| Table | Key / relationship | Stored data |
|---|---|---|
albdruck_knowledge | id; unique (scope, fingerprint) | Normalized document JSONB, active/superseded/deleted state and timestamps |
albdruck_evidence | (knowledge_id, evidence_key); knowledge FK cascades | Original locator JSONB, preserved excerpt and creation time |
albdruck_revisions | Identity bigint id; knowledge FK cascades | Operation, document JSONB and timestamp |
albdruck_retention | owner_id | Policy JSONB |
Original references are semantic locators resolved through the conversation store; they are not SQL foreign keys into message payloads. Evidence and knowledge are derived. Store validation checks source existence, scope, fingerprints and user evidence for supersession.
Task board and scheduling
| Table | Key / relationship | Stored data |
|---|---|---|
task_board_projects | id; unique name | Description, notes and timestamps |
task_board_project_paths | id; project FK cascades | Label/path/note and sort order |
task_board_tasks | id; project FK cascades, assigned-agent FK sets null | Status, priority, metadata/provenance JSONB and execution JSONB |
conversation_project_bindings | (agent_id, session_id); agent and project FKs cascade | Explicit conversation-to-project binding |
task_board_task_events | id; task FK cascades | Actor, action, changed fields/details, session/run and timestamp |
task_board_task_attachments | id; task FK cascades | Name/type, size, SHA-256, byte content and actor metadata |
scheduled_jobs | id; agent FK cascades | Owner mod, prompt, cron, legacy nullable timezone, operator-derived effective timezone, session/model and next/last run |
scheduled_job_runs | id; job FK cascades; unique (job_id, scheduled_for) | Run status, dispatch/completion, trace/result/error fields |
Task statuses are backlog, todo, in_progress, review, done, cancelled, parked; priorities are critical, high, normal, low. Scheduled-run statuses are running, completed, failed, cancelled, missed, skipped. Model override fields on scheduled jobs are validated by the store rather than declared as model-connection foreign keys.
Forge and filesystem artifacts
| Table | Key | Stored data |
|---|---|---|
forge_jobs | id; idempotency/status indexes; identity ordinal | Operator ownership, owner token, native status, request/record JSONB, timestamps and artifact references |
forge_selections | mode | Saved connection/model selection |
forge_idempotency_claims | idem; first_job_id FK to jobs | Unique claim for an idempotency identity, preserving existing colliding historical jobs |
Forge claims idempotency under an advisory lock and inserts a unique claim row before provider dispatch. Migration 22 preserves colliding legacy jobs while reserving their shared identity; a trigger derives native status from the job record. Artifact bytes live on disk. Store initialization retains compatibility DDL and checks native-schema presence under a transaction advisory lock.
The previously missing path import in the attachment cleanup code is present in the public release. Generation and attachment delivery remain separate outcomes; do not treat a stored generated artifact as proof of successful session delivery.
MCP, skills, mods and authentication
| Table | Key / relationship | Stored data |
|---|---|---|
mcp_connections | id; unique name | Transport/kind, URL or stdio command/args, lifecycle, enabled state and tool catalog |
mcp_connection_secrets | id; unique (connection_id, name); connection FK cascades | Encrypted API key/environment values |
agent_mcp_tools | (agent_id, connection_id, tool_name); both FKs cascade | Per-agent enablement grants |
mcp_provider_events | Identity bigint sequence | Sanitized lifecycle receipt as json; latest 200 retained |
mcp_provider_legacy_imports | source_path | Complete legacy JSONL text and import timestamp, once per path |
skills | id | Name, description, content, lifecycle, storage/content owner, installed path/hash |
skill_package_files | (skill_id, file_path); skill FK cascades | Package file size and executable flag |
skill_git_sources | skill_id; skill FK cascades | Git repository/ref/path, schedule, sync lease, installed/observed revisions and status |
skill_sync_history | bigint sequence; skill FK cascades | Updated/unchanged/failed receipts, revision/hash, errors and timestamps |
skill_global_assignments | skill_id; skill FK cascades | Global assignment |
agent_skill_assignments | (agent_id, skill_id); both FKs cascade | Agent assignment |
mod_settings | (mod_id, name) | JSON text settings |
mod_secrets | (mod_id, name) | Encrypted secret bytes |
mod_lifecycle | mod_id | Enabled state and timestamps |
mod_sources | id; unique URL | Distribution source, discovered version/archive, status and errors |
mod_source_secrets | source_id; source FK cascades | Encrypted source credential |
mod_installations | mod_id; source FK sets null | Installed version, archive SHA-256 and timestamps |
mod_management_operations | UUID id; unique queue sequence | Owner/agent/session/run, install/update/lifecycle action, status and bounded result |
core_mod_authority | mod_id | Operator-owned capability grants and administrative/diagnostic agent allowlists |
core_mod_denials | bigint id | Denied capability, owner mod, agent and timestamp |
api_tokens | id; unique token hash | SHA-256 hash, prefix, scope, expiry/revocation and last use |
ui_auth_secrets | id; unique name | Encrypted UI-auth material |
| In the composed server, MCP lifecycle events use PostgreSQL. Hydration imports an existing JSONL file once per path, preserves the entire raw source (including malformed lines/unknown fields) in the import table, and combines normalized historical/live receipts before keeping the latest 200. The original file is not removed. The raw import receipt is not a redaction guarantee. Standalone adapters without the configured store retain the file-backed fallback. | ||
Managed mod MCP catalogs use stable mod:// identities. Removing an installation preserves mod settings/secrets and sibling mod-data files; uninstall is not a full data purge. The API-token scope implemented in this version is diagnostics:read. See MCP, Extensions and Authentication for supported administration. |
General metadata and policy
| Table | Key | Stored data |
|---|---|---|
settings_meta | key | JSON text and update time; application-owned metadata keys |
opentelemetry_settings | id=operator | Master enabled state, destination-list authority, and retained legacy scalar transport |
opentelemetry_destinations | Stable destination id, unique list position | Provider/transport/signal settings and encrypted per-ID protected headers/credentials |
installation_setup_state | owner_id | Persisted initial-setup state JSONB |
retention_settings | owner_id | Trace retention policy/state JSONB |
working_memory_retention_settings | owner_id | Working/rolling TTL settings JSONB |
The schema uses a mixture of timestamp text and timestamptz, and JSON text, json and jsonb. Do not normalize these columns wholesale: original json is a deliberate losslessness boundary, and changing historical migration SQL breaks ledger validation. |
Files outside PostgreSQL
Database rows may reference bytes or records under the configured roots:
- Agent workspace
artifacts/attachments/andartifacts/generated/ - Runtime
subagents/<id>/subagent.jsonandwork-items/<id>/work-item.json - Group-channel metadata and per-run trace files
- Installed mod files and mod-owned sibling data
- Filesystem-backed skill package files referenced by the skill/source tables
See Persistence architecture for storage owners. Portable settings export does not include the entire database or these files. Use the backup procedure, preserving the external settings-encryption key as part of the recovery plan.
Targeted source review
The current page was statically reconciled on 2026-11-08 against Backend 6b682eae6cd0dc6efa79e173b7d819fb219443b3 and relevant UI/assembly source. The links below remain historical public evidence, not current private-source links. No live deployment or application test was performed.
- backend/src/postgres-application-schema.mjs
- backend/src/postgres-skill-sources.mjs
- backend/src/postgres-task-audit-schema.mjs
- backend/src/postgres-otel-settings-store.mjs
- backend/src/postgres-forge-store.mjs
Current additions after migration 60
- Global profile documents and timestamps: shared Rules/Orientation remain opt-in per agent.
- Durable mod-owned external turns and text generations: receipt ownership/idempotency is separate from ordinary conversation storage.
- Native compaction projections and owned agent deliveries: retain their application-managed lifecycle rather than editing cached projections manually.
- External turns can persist a human-visible
displayMessagedistinct from the model-facing message. - Scheduled jobs have
context_mode(continueby default, orfresh); fresh mode requires a named non-default session. This does not imply a control exists in the current cron editor. - Model connections add
pool_json;provider_pool_affinityandprovider_pool_healthretain logical-pool ownership and cooldown state. Pool connections do not own separate credentials. See account pools.
Application migrations are not PostgreSQL major-version upgrades. Preserve the ledger and matching recovery backup; do not modify old checksums or assume an older binary can read the new schema.
Additions after migration 69
Migration 70 adds default-true per-agent Dream promotion; the global promotion flag uses settings metadata. Migration 71 adds transactionally maintained forge_archive metadata receipts, retained when live jobs/media are deleted. Migration 72 adds provider_pool_requests and provider_pool_attempts for durable native OpenAI LB logical results and measured attempt usage. Unfinished requests are not completed-window outcomes; unknown usage is not zero. These are application-schema changes, not PostgreSQL-major upgrades or automatic retention rules.
Additions after migration 72
The 29 October baseline reached migration 79: 73 adds per-agent Dream memory emphasis/override; 74 durable GitHub completion watches/events; 75 settings-managed encrypted webhook receiver; 76 retained operator event projections; 77 durable chat inputs, session holds and generation fencing; 78 authoritative OpenTelemetry destination storage; 79 the built-in group-channel shared-transcript identity. This identity is not an executable agent: participants still run as themselves, existing identity metadata/transcripts remain intact and session foreign keys remain enforced. Legacy scalar OTel settings remain readable until a list save adopts them; an explicitly saved empty list stays authoritative across restart. Per-agent Minion Depth is stored in metadata independently of Minion model selection; child depth/root/budget persist with session lineage. Side-question snapshots/results are owned by the chat-input store, not automatically injected main-lane memory. Preview source tokens remain bounded in-process state; preview execution traces are filesystem evidence, not saved Dream memories. These are application migrations, not instructions to edit the migration ledger or perform a PostgreSQL-major upgrade.
29 October development delta
Changed contracts above were checked statically against Backend 4057b50a5d5a9b14d36bb3b70f35781c4b29a9b9 on 2026-10-29. This is not a runtime, provider or collector test, nor a revalidation of unchanged historical sections. See source coverage.
Additions after migration 79
| Version | Migration name | Purpose |
|---|---|---|
| 80 | mod-external-turn-attachments | Retains normalized attachment content in mod_external_turns.attachments JSON, default [] |
| 81 | archive-lossless-candidate-projection | Lossless lexical extraction and indexed occurrence fallback probes |
| 82 | archive-chat-projection-revisions | Transactional source revisions and indexed Chat visibility/occurrence projections with resumable backfill |
| 83 | archive-discovery-scalar-probe-indexes | Partial winner-probe indexes for present non-string payload IDs, excluding id-less rows |
Migration 82 maintains per-source revisions on ordinary SQL writes; rollback does not publish a revision and TRUNCATE rotates an epoch. The automatic backfill examines at most 256 keys per transaction, checkpoints progress and writes only derived side rows; retained original JSON is not rewritten. Unprojected history remains readable by fallback until completion. Index creation still takes PostgreSQL DDL locks. Reset count caches are revision-bound and process-local; listing/detail GETs no longer update historical metadata.
These are application migrations, not a PostgreSQL major upgrade or permission to edit SQL/ledger checksums. Source: Core 8275b6bedf1fcd969fb5289cf0b673a80ddc8146, statically reviewed on 31 October 2026.
Additions after migration 83
| Version | Migration name | Purpose |
|---|---|---|
| 84 | scheduled-board-tasks-and-once | Adds job kind, task target, extra instructions, schedule kind, one-time instant and consumption timestamp; cron becomes nullable for once jobs; run receipts retain task identity. |
| 85 | anthropic-thinking-mode-selections | Adds nullable thinking_mode to main and Minion model selections, constrained to the supported mode names. Existing rows remain legacy null, not provider default. |
Task schedules are constrained to the default session and continued context. Cron and once schedules have mutually exclusive cron/run-at fields. One-time consumption, task eligibility and restart reconciliation are application lifecycle contracts; never rearm by editing these rows directly. Read scheduling and model selection.
2 November migration additions
| Version | Migration | Purpose |
|---|---|---|
| 86 | canonical-agent-reference-images | Agent-owned canonical-photo metadata and managed artifact reference |
| 87 | mod-character-reference-images | Mod/key-owned canonical character-photo metadata |
| 88 | structured-chat-result-projection | Includes future structured terminal rows, including empty display-only failures, in Archive keysets; no rewrite of historical payloads |
| 89 | canonical-operator-reference-image | Singleton operator photo metadata and managed artifact reference |
Original photo bytes are runtime artifacts, not SQL media values. Agent/operator/Mod photos are distinct from avatars and expiring conversation attachments.
3 November migration addition
Migration 90, mod-owned-agents, adds the nullable agents.mod_agent_json JSONB column for mod ownership, capability and visibility metadata. Ordinary agent records retain their existing path; owner-scoped identities are managed through the Core mod host contract. See mod-owned native agents. This is an application migration, not a PostgreSQL major-version upgrade or an instruction to edit the migration ledger. Statically checked against Core 32dde3266a231777ddfec6dba141d6b9972a21fd; no database migration was executed by this documentation review.
4 November migration additions
| Version | Migration | Purpose |
|---|---|---|
| 91 | independent-mod-agent-authority | Adds mod_management_agent_ids and core_api_agent_ids to core_mod_authority, initially copying legacy assignments into both; subsequent authority checks and edits use the independent lists. |
| 92 | reset-archive-projection-copies | Reuses completed Chat visibility/occurrence projections when reset copies unchanged originals, including a known null occurrence instant; new or changed payloads still require projection. |
Reset now copies existing lexical/occurrence projections rather than reparsing every original in application memory. Unprojected originals retain fallback/backfill handling; these changes do not make an archive summary or a timeout proof of completion. Session metadata atomically records the reset operation receipt with its generation. Neither migration changes PostgreSQL's major version or authorizes manual ledger/SQL edits. Statically checked against Core b62c57ef5e831bacebf2214a31c04147471c1267; this documentation review did not execute migrations.
5 November migration additions
| Version | Migration | Purpose |
|---|---|---|
| 93 | indexed-session-recall | Derived occurrence/lexical indexes, write triggers and a durable bounded background backfill checkpoint; native originals remain authoritative. |
| 94 | background-conversation-embeddings | Independent default-false conversation_enabled, derived passage/occurrence/vector storage and durable queues/backfill state; shares the existing embedding connection/model. |
| 95 | session-recall-projection-repairs | Preserves grandfathered null source storage clocks in derived recall and reuses completed recall/operator/Dream projections for verified unchanged reset copies. |
Startup does not scan or embed all retained history. Broad session recall remains explicitly not-ready until lexical backfill completes; exact source/session expansion still works. Conversation embeddings require separate consent and pgvector support; missing vector support does not disable lexical retrieval. Disabling or reindexing a derived index does not delete original conversations. Migration 95 preserves published v93/v94 checksums and does not rewrite retained history. These are application migrations, not a PostgreSQL major upgrade or permission to edit the ledger. Statically checked against Core 6465a9b200bc550697ddfc41959d671eac9abf33; no migrations were run in this documentation review.
Migration 96: nonblocking recall preparation
Checked 6 November 2026 against Core 4e5a505c12b236ed394b09a577a2d583b409a69f: additive migration 96 leaves 93–95 unchanged and scans no retained source rows. Structurally irrelevant records bypass expensive content folding/ranking while keeping logical identity, clock and eligibility, so newer ineligible occurrences still shadow older dialogue correctly. The lexical extractor preserves lossless JSON/Unicode handling without a content-length cutoff.
Backfill prepares transaction-local projections before row locks, then uses a short parent-before-source publication window with version rechecks. Trigger projections win; changed unresolved occurrences retry the page instead of being skipped. Default preparation/page budget is 60 seconds, publication ownership budget 250ms, and inter-page yield 100ms. Timeout shrinks the active page size to a minimum of one; four consecutive committed full pages grow it by one toward configured pageSize (default 16). Status distinguishes pageSize and activePageSize. This is source review; no migration or database test was run.
7 November migration additions
| Version | Migration | Purpose |
|---|---|---|
| 97 | openai-expiring-reset-claims | Default-false connection preference and durable account/credit reset claims. |
| 98 | openai-reset-durable-outcomes | Exact credit expiry, outcome and retry metadata plus per-attempt records; legacy claim-only rows retain unknown fences. |
| 99 | agent-run-completion-feed | Durable bounded agent-run completion metadata for mod catch-up, without transcript content. |
These additive application migrations were inspected against Core f0b17efdadc57c856eb3c5cf5272a3fff2268ad1; this documentation run executed no database migration or application test. Existing published migration bodies remain unchanged. Use supported lifecycle operations, not direct edits to claims, completion cursors or the migration ledger.
8 November migration addition
Migration 100, parked-board-task-status, adds parked to the task-board status constraint. Parked is a retained, non-executable task state, not deletion or the derived Done archive projection. Move it to an eligible state before executing or selecting it as a new scheduled task target. No migration or application test was executed during this source review.
Operator preferences and initial sessions
Checked 9 November 2026: allowlisted UI preferences live in the existing settings_meta entry ui_preferences; atomic per-key writes require no new application migration. The record is operator-wide and stores raw strings, not credentials or conversation caches. See UI preference API.
Creating a mod-owned agent now inserts its default conversation in the same transaction. Session listing repairs an agent with no conversation sessions at all, under an agent-row lock. It does not resurrect a missing default when any other session exists, including retained/archived history. Group deletion targets only the group-channel shared transcript identity and leaves participant sessions intact.
Forge gallery storage
Checked 14 November 2026: migration 102, forge-image-gallery, adds forge_gallery_folders (named parent/child folders) and forge_gallery_placements (one folder placement per job/artifact pair). Root placement has no placement row. These operator-wide records organize existing generated media; they do not ingest chat attachments or duplicate file bytes. Live artifact tombstones preserve deletion metadata while removing the storage locator and suppressing deleted media from public projections. Use the Gallery API, not direct SQL. No database migration was run during this review.
Workflow watch conclusions
Migration 101, workflow-watch-conclusions, adds conclusions to github_workflow_watches. Existing and default watches select failure, timed_out, startup_failure and action_required; explicit supported filters can include other terminal conclusions. See workflow watches. No migration was executed during this documentation review.
15 November source reconciliation: migrations 103–104
| Version | Migration | Purpose |
|---|---|---|
| 103 | anthropic-coordination-state | Adds anthropic_coordination_state, keyed by key with a state_json JSONB payload, for durable Anthropic coordination state. |
| 104 | mcp-connection-tls-verification | Adds non-null mcp_connections.verify_tls, default true. Existing connections retain certificate verification unless deliberately changed through the supported connection controls. |
Simple global/per-agent Minion settings use existing settings_meta keys (minion_settings and minion_settings:<agentId>), not another migration or replacement model-selection table. Saved per-agent values and overrideEnabled are distinct from effective inherited settings. Legacy profile and Minion-model rows remain compatibility data, not normal dispatch defaults. See Minion configuration. No migrations or application tests were executed for this review.
Current Forge cleanup and mod update preferences
Migration 105, forge-durable-artifact-cleanup, adds durable pending cleanup for generated media bytes. Removing the live job or artifact locator and enqueueing cleanup commit together; later cleanup checks remaining references before removing the file. Migration 106, per-mod-auto-update, stores per-installation opt-in and the last blocking reason. Existing installations remain off unless explicitly enabled. Both were inspected statically; no migration was executed for this review.