fabro/lib/foundation/fabro-db/migrations
Bryan Helmkamp 18a3c4741e
Run agent stages, Ask Fabro, and fabro exec on pebble's CodingAgent
Replace fabro's hand-written agent loop with pebble's `CodingAgent` and
delete the `fabro-agent` crate.

Workflow: `PebbleBackend` builds one agent per stage over `RunSandbox`,
binds the stage's hooks as tool middleware, the interviewer as the
human-input provider, and a durable `EventSink` that writes every agent
event through the run event log before the agent goes on. Full-fidelity
threads continue across stages through `export`/`resume_from_export`.
Model failover takes the session record after the failed prompt and
continues it on the next route with `ResumeMode::UseModel`, so no tool
effect repeats. The steering hub targets pebble's control handle, with
a steering lease holding completion open while a human is paired.

Events: `EventBody::Agent` carries pebble's `CodingAgentEvent` envelope;
the per-variant bodies, the transcript projection, and the fabro-only
context-window, tool-summary, and skill types are gone in favor of
pebble's. The OpenAPI schemas, generated Rust and TypeScript clients,
and web readers follow.

Ask Fabro: the session runs a `CodingAgent` under a read-only permission
policy and a system prompt transform. Its conversation lives in a new
`run_session_records` table and resumes on the recorded model with the
event cursor advanced past the run log.

`fabro exec` builds the same agent over a local sandbox with pebble's
permission middleware and an interactive approval service.

The catalog fills in `metadata.agent.profile` for operator providers
that declare none, so pebble's lookup is the one resolution path.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-11 14:19:15 -06: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