fabro/lib/apps/fabro-server/src
Scott Werner 13f3ff867b Simplify on-demand run projection loading
Drop the unreachable active-run mismatch guard that was copied into
load_run_projection: the active-runs map is only ever inserted under the
handle's own run ID, so the check could never fire. Remove it from the two
pre-existing sites too and delete matches_run.

Trim install_in_memory_state to take only the committed projection, since
the event envelope duplicated last_seq and the inner scope only existed to
release the lock before the now-removed shared cache update. Add a From
impl so RunDatabase::build no longer hand-builds EventProjectionCache, and
rename projected_state_locked to match its projection_snapshot sibling.

In fabro-server, have reject_if_archived and ensure_run_exists read the
run summary row instead of replaying the full event history for inactive
runs; the summary is written in the same transaction as the event.

Fold the repeated store-reopen fixtures in fabro-store and fabro-server
tests into helpers, and fix a stale comment about the deleted shared
projection cache.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-02 11:43:17 -04:00
..
auth Keep auth code store naming consistent 2026-08-24 17:26:17 -04:00
demo Record tool output byte counts 2026-08-24 12:46:27 -04:00
prompts Render the run title prompt with Jinja instead of string replacement 2026-07-27 17:23:16 -04:00
server Simplify on-demand run projection loading 2026-09-02 11:43:17 -04:00
worker_control refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
automation_materializer.rs Tighten automation Git validation types 2026-08-31 18:02:08 -04:00
canonical_host.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
canonical_origin.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
csp.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
diagnostics.rs refactor(search): select backend from available credentials 2026-08-21 20:09:52 -04:00
error.rs Make pull request creation durable and asynchronous 2026-08-01 19:28:52 -04:00
git_checkout.rs Tighten automation Git validation types 2026-08-31 18:02:08 -04:00
github_webhooks.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
install.rs Request Packages read permission in the GitHub App manifest 2026-08-21 14:12:32 -04:00
interp.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
jwt_auth.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
lib.rs Register the SQLite blob activation bridge as a server migration 2026-08-24 14:02:35 -04:00
manifest_validation.rs Simplify local RunIntent producer support 2026-08-31 14:08:35 -04:00
migrations.rs Share activation backup helpers and trim run-history residue 2026-08-28 17:20:05 -04:00
principal_middleware.rs Unify blob hash vocabulary 2026-08-17 13:56:19 -04:00
request_id.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
run_compiler.rs Harden automation workflow source handling 2026-08-31 13:45:08 -04:00
run_files.rs Load inactive run projections on demand 2026-09-01 16:06:54 -04:00
run_files_security.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
run_intent.rs Simplify local RunIntent producer support 2026-08-31 14:08:35 -04:00
run_manifest.rs Add local RunIntent producer support 2026-08-31 14:08:35 -04:00
run_selector.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
run_title_generation.rs Warn when run title generation fails 2026-08-26 13:18:39 -04:00
run_tool_manifest.rs Remove run IDs from create manifest producers 2026-08-01 11:47:11 -04:00
security_headers.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
serve.rs Load inactive run projections on demand 2026-09-01 16:06:54 -04:00
server.rs Simplify on-demand run projection loading 2026-09-02 11:43:17 -04:00
server_secrets.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
spawn_env.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
startup.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
static_files.rs feat(web): tell open tabs when a new build ships 2026-07-25 14:45:26 -04:00
test_support.rs Move automation runs to workflow versions 2026-08-27 15:24:07 -04:00
web_auth.rs Serve CLI auth sessions from SQLite 2026-07-26 00:00:15 -04:00
worker_runtime.rs refactor: simplify cancellation lifecycle code from review 2026-07-23 21:15:35 -04:00
worker_token.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00