style(13-03): apply Prettier formatting across repo

Mechanical reformat — no logic changes. 398 files changed, 19125
insertions(+), 16457 deletions(-). Prettier 3.8.4 with .prettierrc
(singleQuote:true, semi:true, tabWidth:2, trailingComma:all,
printWidth:100). Isolated per D-13-08 for reviewability.
This commit is contained in:
Lucas Berger
2026-06-11 20:35:18 -04:00
parent 4bc0445173
commit 982438dc10
398 changed files with 19050 additions and 16382 deletions
@@ -3,7 +3,7 @@ phase: 03-event-write-back-pwa-install
plan: 11
type: tdd
wave: 3
depends_on: ["03-10"]
depends_on: ['03-10']
gap_closure: true
autonomous: true
requirements: [CAL-05, CAL-06]
@@ -13,17 +13,17 @@ files_modified:
must_haves:
truths:
- "An edit-as-move delete row never dispatches until its paired create row has reached status='done' — durably, across separate drain cycles"
- "Two overlapping drain cycles never both dispatch the same outbox row"
- "A same-calendar update re-reads the freshest etag from calendarEvents just before PUT, so rapid successive edits do not spuriously 412"
- 'Two overlapping drain cycles never both dispatch the same outbox row'
- 'A same-calendar update re-reads the freshest etag from calendarEvents just before PUT, so rapid successive edits do not spuriously 412'
artifacts:
- path: apps/api/src/broker/outboxWorker.ts
provides: "Durable create-before-delete gating, drain concurrency guard (single-process), fresh-etag-before-PUT"
contains: "isDraining"
provides: 'Durable create-before-delete gating, drain concurrency guard (single-process), fresh-etag-before-PUT'
contains: 'isDraining'
key_links:
- from: "runOutboxDrain"
to: "calendarOutbox status machine"
via: "in-flight claim / blocked-delete gate persisted in DB, not an in-memory Set"
pattern: "isDraining|processing|blocked"
- from: 'runOutboxDrain'
to: 'calendarOutbox status machine'
via: 'in-flight claim / blocked-delete gate persisted in DB, not an in-memory Set'
pattern: 'isDraining|processing|blocked'
---
<objective>
@@ -105,6 +105,7 @@ gated by querying its sibling create's status, not enqueued as a new enum value)
silently rely on it.
Commit RED then GREEN.
</action>
<verify>
<automated>cd apps/api && npx vitest run tests/broker/outboxWorker.test.ts</automated>
@@ -144,6 +145,7 @@ gated by querying its sibling create's status, not enqueued as a new enum value)
etag still reflects the last synced server state, so a real external edit still 412s (D-08 intact).
Commit RED then GREEN.
</action>
<verify>
<automated>cd apps/api && npx vitest run tests/broker/outboxWorker.test.ts</automated>