Commit 8914915
`recordPackageCommit`'s bare `catch` answered `null` for every reason with
nothing logged. The publish really had succeeded — but the commit row is the
only record of the turn's revert plan (`existedBefore`/`prevVersion` per
artifact), so a failed insert left live artifacts, `success: true` with
`commitId` merely absent, a turn that can never be reverted, and no line
anywhere saying so.
Discriminated by error TYPE through the shared `isMissingTableError`
predicate: an unprovisioned commit store is informational and said once per
protocol instance; every other failure logs at `error` per turn with the
package, the operation, the item count, the driver's reason, the consequence
and the fix. Publish semantics are untouched — the catch still returns `null`
and no response field was added.
The insert moves behind a named `persistPackageCommitRow` so the seam can be
declared in `DURABILITY_CRITICAL_CALLEES`; `check:durability-log-level` now
fails if this catch is ever quieted again.
Claude-Session: https://claude.ai/code/session_01NTKPDRoynY8i3HmdSFUxFj
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2ad91c3 commit 8914915
4 files changed
Lines changed: 547 additions & 7 deletions
File tree
- .changeset
- packages/metadata-protocol/src
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments