• v0.11.1 9ba68a5c34

    v0.11.1
    All checks were successful
    / secrets-scan (gitleaks 8.28.0, all refs, redacted) (pull_request) Successful in 7s
    / test (linux/amd64, full suite) (pull_request) Successful in 1m58s
    / alias (re-point latest, main pushes only) (pull_request) Has been skipped
    / build darwin/amd64 (pull_request) Successful in 53s
    / build linux/amd64 (pull_request) Successful in 47s
    / build windows/amd64 (pull_request) Successful in 46s
    / build darwin/arm64 (pull_request) Successful in 54s
    / build linux/arm64 (pull_request) Successful in 53s
    / build windows/arm64 (pull_request) Successful in 46s
    / release (six binaries + checksums.txt, tag pushes only) (pull_request) Has been skipped
    / image (the release container, tag pushes only) (pull_request) Has been skipped
    / secrets-scan (gitleaks 8.28.0, all refs, redacted) (push) Successful in 7s
    / test (linux/amd64, full suite) (push) Successful in 1m42s
    / build darwin/amd64 (push) Has been skipped
    / build linux/amd64 (push) Has been skipped
    / build windows/amd64 (push) Has been skipped
    / build darwin/arm64 (push) Has been skipped
    / build linux/arm64 (push) Has been skipped
    / build windows/arm64 (push) Has been skipped
    / release (six binaries + checksums.txt, tag pushes only) (push) Has been skipped
    / image (the release container, tag pushes only) (push) Has been skipped
    / alias (re-point latest, main pushes only) (push) Successful in 7s
    Stable

    assistant released this 2026-11-20 20:28:58 +01:00 | 244 commits to dev since this release

    v0.11.1 — The lost writes: the server's commit basis

    A one-bug patch, and the dogfood loop at full speed: the flip's
    first production casualty, caught, diagnosed and fixed within
    eighty minutes of its filing. On the board's first afternoon in
    server mode — 2026-11-20 17:30 UTC, hours after this repo's own
    backlog flipped onto skuld.gijoe88.com — the board's agents watched
    concurrent commits on distinct facts evaporate with ok to every
    caller
    (concurrent-mutations-silent-loss, ft6eyx). The production
    wave, as fired: five concurrent item set --status done --evidence … on distinct items — one survived, four still todo with zero
    receipts; seven seconds later, five concurrent comments on the same
    items — two survived; a sequential write immediately after landed
    whole, and the lost closes re-applied strictly sequentially all
    landed. Concurrency the trigger, no rejection ever fired, every
    command returning its post-write state as if accepted. The damage
    was repaired the same day; the mechanism took until the evening.

    The investigator's diagnosis (17:46 UTC, on the item) localized it
    exactly: a whole-bucket lost update in boltstore's commit path.
    The engine's Tx freezes its basis at open, and the server opens one
    per request («per-request transactional commit», server-mode.md);
    at commit, apply() landed the open-time snapshot ⊕ staged overlay
    as the whole-bucket desired state — so a key another request had
    committed after that snapshot was deleted, overwritten to stale
    bytes, or resurrected. The guards are per-key and could not see the
    cross-key interference: the commit answered ok truthfully, the last
    write-lock acquirer's stale basis reverting whatever its snapshot
    predated. The CLI was exonerated — httpstore posts only its staged
    ops, retry-free; nothing was masked, nothing client-side to fix.
    What broke was the flip's own premise, one location many writers,
    with «strict exclusivity across clients» (server-mode.md) quietly
    false: a same-fact race must reject typed naming the winner, and
    distinct-fact concurrent writes are no conflict at all — here the
    loser vanished with ok.

    The remedy was ruled before it was coded (the architect's
    indications; ADR-020 point 4 and ADR-021 L1/L3 had already ruled
    the contract — the implementation violated it, so no new ADR):
    the commit basis is the write transaction's fresh view. The
    rejected alternative is on record too — a bucket-freshness guard
    would have rejected the divergence, but distinct-fact concurrency
    is the board's normal traffic and no conflict at all; the guard
    would have spuriously rejected the exact production shape. The
    contract in one line: keys a transaction did not stage are never
    written — a concurrent commit on a distinct fact survives by
    construction, and a same-fact race stays the guards' typed
    arbitration.

    Upgrading: the bug is server-mode only — local boards never had
    it (filestore serializes whole transactions under its flock; the
    new clauses confirm it green by construction) — so local mode is a
    drop-in: no behavior change, no new verbs, no removed verbs, no
    store-format change, no migration, no dependency changes. Operators
    running serve: upgrade the server — pinned image tag or
    binary, and the CLI with it (the wire is internal, server and
    clients the same binary). One caution to carry forward: a board
    that ran a pre-v0.11.1 serve under concurrent load may hold
    silently-lost writes, and the audit ledger is the forensic
    instrument — audit.db carries a row for every ok'd commit, the
    vanished writes included (they committed, then were reverted), so a
    row whose facts read back absent names exactly what should be
    there. The audit path itself is untouched by the fix.

    What shipped

    • fresh-commit-basis — the engine commits against the write
      transaction's fresh view
      — the whole-bucket lost update
      eliminated at the root (merge a1082ca, PR #70): apply() applies
      this transaction's own staged entries, per key, and nothing
      else — finalBucket() and the whole-bucket merge walk are
      deleted, the snapshot a read basis only. The aggregate operations
      (hard delete, recode) keep read-your-writes at stage time but
      land as boundary intents re-enumerated from the write
      transaction at commit — half the fix, not polish: a delete
      intent sweeps every live key under the code (a competitor's
      post-snapshot sub-fact is swept, never orphaned); a recode intent
      moves every live key to its mapped target carrying the live
      bytes
      — the stale-bytes trap closed, a competitor's
      post-snapshot edit travels inside the move — while keys the
      transaction's own view had deleted are swept, never resurrected
      at the target, and entries staged after the intent land after the
      sweep. Order at commit: guards → boundary intents → per-key
      entries. No guard changes, no widening — the fix commit
      touches no guard file; same-key races stay the guards' typed
      arbitration, unguarded single-key writes last-writer-wins under
      the serialized write lock, exactly as before. The pin: five
      conformance clauses — tx/both-land-distinct-facts (the production
      put+receipt shape), tx/both-land-distinct-comments,
      tx/both-land-agent-and-version, tx/boundary-sweep-delete,
      tx/boundary-sweep-recode — run by all three engines on the
      existing interference dialect pointed at distinct identifiers
      (the gap was clause-level: nobody asserted the both-land
      outcome), demonstrably red on the unfixed engine (2bee41b,
      clauses staged, engine untouched — the production signature,
      zero-value facts back) and green with the fix (cc1a23b). The
      boundary half is load-bearing, shown against the hazard
      intermediate in a throwaway experiment: overlay-only without the
      intents, the item survives its own delete and the old code reads
      back after a recode. One honesty note from the red leg:
      boundary-sweep-delete was green on the old engine by accident
      of the bug
      — the deleted merge walk's collateral deletion
      swept the competitor's sub-fact; the clause bites the hazard
      state, which is its job. The mechanism's precision lives in
      components/boltstore.md (Transactions), updated with the
      analysis.
    • wire-distinct-key-pin — the production shape pinned on the
      wire
      (merge ceb5a93, PR #71, test-only) — the second gap the
      diagnosis named: the two-client wire tests raced one key, and the
      conformance harness's sequential interleave cannot reach an
      engine race over the wire (the wire's engine Tx opens
      per-request, at commit time). Two pins, sibling of the two-client
      tests: the deterministic interleave — client A opens its Tx
      (snapshot taken), client B commits a distinct key in a full
      round-trip, then A commits; the backbone is the explicit
      sequence, never a timing race — both write-sets read back whole
      through both handles, no rejection, audit rows for all four
      landed facts. And the production wave, the item's own recipe
      verbatim: five independent client handles — five CLI invocations,
      the production composition — each staging the exact
      item set --status done put+receipt shape (target status,
      evidence pointer, actor, fresh ULID), five concurrent distinct-key
      commits: every commit answers ok, ALL FIVE items read back
      done each with exactly its own evidence receipt, and an audit row
      for every ok'd commit (ten facts). Zero sleeps anywhere — the
      wave fires on a closed start channel and asserts per-commit
      outcomes. Teeth, first-hand: on the archived pre-fix engine the
      wave fails ten runs out of ten with the production signature —
      the test that would have caught the bug — and on the fix it is
      green through a -count=10 -race flake hunt.
    • The proof in production shape — 25/25 against 14/25 — the
      tester's first-hand repro, every number gathered independently:
      a throwaway server-mode project, five fresh items, five
      concurrent closes per round, five rounds. The fixed build: 25/25
      done, nothing lost. The pre-fix build: 14/25 — eleven silently
      lost across the rounds, every caller answered ok with status done
      and receipts:1, the read-back showing todo and receipts:0. The
      incident's exact signature, reproduced at will — and closed by
      construction.

    The round, in brief

    One bug, the round's sole scope: concurrent-mutations-silent-loss
    (ft6eyx, high, core/server-mode). The timeline, which git can
    witness: caught 17:30 UTC on 2026-11-20, filed 17:33, diagnosed by
    the investigator 17:46 (mechanism localized, CLI exonerated, both
    suite gaps named), scoped by the PM 17:50, the architect's analysis
    on dev 17:55 (70464e3 — remedy ruled, tasks decomposed,
    components/boltstore.md updated). One lane (v0.11.1), two tasks
    sequential: fresh-commit-basis (e6wzqa, PR #70, merge a1082ca —
    2bee41b the red clauses, cc1a23b the fix) then wire-distinct-key-pin
    (tw7rww, PR #71, merge ceb5a93 — 8d0a50c), the second linked to the
    first by need; the lane retired on merge, ft6eyx closed with its
    implementations. Tester acceptance 5/5 and 6/6 first-hand, the red
    legs independently re-run from an archived tree; reviewer clean at
    the root both times, the non-blocking notes on record (the retired
    merge walk's incidental whole-bucket layout scan — corruption stays
    pinned at read; chained boundary intents in one Tx
    known-unexercised). Every gate green: full suite (22 packages),
    gofmt, vet, -race over everything touched. No new ADRs — the
    ruling predated the code; the violation was implementation-side.
    One corollary filed, non-blocking: same-id-interference-pin (ptzsan)
    — the same-id-edit variant of the stale-bytes trap is covered in
    mechanism but cannot be pinned in the shared conformance catalog
    until the interference dialect rules it; it waits in the backlog.
    And the shape of the day: flip 13:53 UTC, casualty 17:30, remedy
    merged 18:38, the production wave pinned 18:53 — the project's own
    board both the casualty and the instrument, the dogfood loop closed
    tight.

    Downloads