fabro/lib/components/fabro-store/src
Scott Werner 7f55dd87b5 Harden artifact capture writes
- The store checks that captured bytes match their digest in every build,
  hashing on a blocking thread, and the upload handler relies on that
  check instead of hashing a second time.
- Capture bytes travel as `Bytes` from the hooks through the client and
  the store, so uploads and retries share one buffer.
- The artifact writer takes the run ID from the hooks, so objects are
  stored under the run their records name.
- Concurrent captures of the same file and content wait on one another,
  so the file is uploaded and recorded once.
- When a record append fails, the hooks re-read the run's captures and
  treat a record that did land as done, so a lost response does not
  record the capture twice.
- An upload that finishes after its run was deleted removes itself,
  instead of leaving an object nothing references.
- Listing a run's stage artifacts skips everything under `captures/`, so
  an unexpected object there cannot fail the listing or the ZIP.
- The capture record derives its `digest` key from its source instead of
  storing it twice, still writing and checking it on the wire.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 14:30:36 -04:00
..
fixtures Pin pebble a39f43e and refuse an older stored session record clearly 2026-09-14 12:58:31 -06:00
test_support Drop the run_events table and narrow the runs row 2026-09-18 14:37:18 -04:00
artifact_store.rs Harden artifact capture writes 2026-09-28 14:30:36 -04:00
auth_code_store.rs Keep auth code store naming consistent 2026-08-24 17:26:17 -04:00
auth_session_store.rs Simplify SQLite authorization-code cutover 2026-08-24 17:25:38 -04:00
blob_store.rs Delete the legacy run event log, its reducer and its types 2026-09-18 14:09:17 -04:00
database.rs Delete the legacy run event log, its reducer and its types 2026-09-18 14:09:17 -04:00
error.rs Harden artifact capture writes 2026-09-28 14:30:36 -04:00
keyed_mutex.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
lib.rs Delete the legacy run event log, its reducer and its types 2026-09-18 14:09:17 -04:00
platform_records.rs Harden artifact capture writes 2026-09-28 14:30:36 -04:00
run_session_event_store.rs Give Ask Fabro sessions their own event log 2026-09-18 12:47:43 -04:00
run_session_record_store.rs Pin pebble a39f43e and refuse an older stored session record clearly 2026-09-14 12:58:31 -06:00
run_sessions.rs Give Ask Fabro sessions their own event log 2026-09-18 12:47:43 -04:00
run_summary.rs Delete the legacy run event log, its reducer and its types 2026-09-18 14:09:17 -04:00
run_summary_store.rs Build the run's display graph from Petri's admission 2026-09-19 11:41:58 -04:00
serializable_projection.rs refactor: organize crates into three layers 2026-07-23 17:59:34 -04:00
sqlite_row.rs Simplify SQLite authorization-code cutover 2026-08-24 17:25:38 -04:00