fabro/lib/foundation/fabro-db/migrations
Bryan Helmkamp abbc7ca11d
Add platform records and the Petri projection tables
A Petri run's own Fabro facts (its lifecycle before and after the
engine, a checkpoint commit, a pull request, a notification, a pairing)
are platform records in a table beside Petri's records, one typed enum
of kinds tagged on the wire, each keyed to a Petri stage where it
belongs to one and carrying the operation identity of the effect it
records. The run summary store derives the lifecycle kinds from the
legacy run events a Petri run still appends, in the event's
transaction, and calls a hook after the commit so the run's projector
can wake up.

Two more tables serve the projection that follows: the per-run
projection document with its committed positions, and the ordered
stream of everything the view consumed. The run summary store reads the
Petri projection back for the API and writes the narrowed runs row from
it without touching the legacy concurrency guard.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-17 21:46:21 -04:00
..
2026063001_variables.sql refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
2026063002_environments.sql refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
2026071101_secrets.sql refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
2026071102_mcp_servers.sql refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
2026071103_automations.sql refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
2026071104_runs.sql refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
2026072501_auth_sessions.sql Add SQLite-backed AuthSessionStore 2026-07-25 23:42:14 -04:00
2026081301_blobs.sql Add SQLite blob store foundation 2026-08-18 17:41:29 -04:00
2026082201_oauth_authorization_codes.sql Move pending CLI authorizations to SQLite 2026-08-24 17:25:19 -04:00
2026082601_automation_run_targets.sql Simplify automation run-target plumbing 2026-08-26 18:17:22 -04:00
2026082701_run_events.sql Add inactive SQL run storage foundation 2026-08-27 13:32:01 -04:00
2026082801_automation_environments.sql Require a server-managed environment for automations 2026-08-30 09:58:13 -04:00
2026082802_run_history_activation.sql Harden SQLite activation and run history consistency 2026-08-31 12:19:16 -04:00
2026082803_automation_workflow_sources.sql Align remote workflow selectors with run targets 2026-08-31 17:13:20 -04:00
2026083101_run_event_session_owner.sql Index session ownership from creation events 2026-08-31 14:16:58 -04:00
2026090901_environment_provider_kinds.sql Open sandbox provider identity to plugin kinds 2026-09-09 15:17:32 -06:00
2026091101_run_session_records.sql Run agent stages, Ask Fabro, and fabro exec on pebble's CodingAgent 2026-09-11 14:19:15 -06:00
2026091701_petri_records.sql Implement Petri's run store over Fabro's SQLite database 2026-09-17 19:30:30 -04:00
2026091801_petri_projection.sql Add platform records and the Petri projection tables 2026-09-17 21:46:21 -04:00