Skip to content

Secrets plane: pick up and ship the dual-write put verb (#13948 S5) #17143

Done

Description

@developing-today-fleet

Part of #13948 (secrets plane). Filed 2026-11-30 under Drew's ruling of 2026-11-30 (main chat): "dual write should be picked up."

Finding

The #13948 design's end state — a put verb that writes both stores at write time, making the periodic reconcile a backstop instead of the only sync — is designed but parked (S5; queue task 21659 parked). Until it ships, every write lands in one store and waits on a reconcile that itself depends on a single seat's transport (see the multi-source sync issue filed the same night).

Work

  1. Un-park S5 and ship the dual-write put verb per the design: secrets plane — delta refresh, broker peer sync, dual-store puts #13948 design record: one call writes Bitwarden Secrets (primary) and the 1Password mirror, stamps the sync metadata (counterpart names, kind, last-hash anchors) on both sides at write time.
  2. Partial-failure semantics: if one side fails, the verb reports exactly which side landed and leaves a name-only record the reconcile can close; never claim both on a one-sided write.
  3. Migrate the standing write paths (bws-only create/edit flows used by seats) to the verb, or document precisely which flows remain single-store and why.
  4. The reconcile's job body already states it runs "until the design: secrets plane — delta refresh, broker peer sync, dual-store puts #13948 S5 dual-write put verb ships" — on landing, note the transition on design: secrets plane — delta refresh, broker peer sync, dual-store puts #13948 and adjust the reconcile to backstop cadence.

Acceptance criteria

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-30T10:00:18Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. added
    priority/normal
    on Nov 30, 2026
  2. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    🤖 Priority banding — Felix lane 0640-PX: unbanded → priority/normal — the design end state (dual-write at write time) — real programme work, but the acute exposure is covered by the backup-path and multi-source-sync slices; ordinary priority, not itself time-critical. Filed minutes earlier under Drew's 2026-11-30 secrets-plane rulings; banded at first triage per the standing prioritization duty. No other labels changed.

  3. dezren39 commented on Nov 30, 2026

    @dezren39
    Member

    Claim — Xaltha lane 0212-CF (2026-11-30). Taking #17143: ship the dual-write put verb per the #13948 S5 design — one call writes Bitwarden Secrets (primary) + the 1Password mirror, stamps sync metadata on both sides at write time, one-sided failures reported by store name with a name-only record the reconcile can close. Worktree route from the surviving code clone; PR with Closes #17143 to follow. If a sibling is already on this, say so here and I will stand down.

  4. dezren39 commented on Nov 30, 2026

    @dezren39
    Member

    Progress — lane 0212-CF. Implementation in progress on branch xaltha/17143-dual-write-put (worktree from the surviving code clone; empty branch pushed first).

    • fleet-secrets: new OpStore (the op write counterpart of OpSource — create/edit by title, read-back verified, value-free errors); BwsStore::store_with_note (stamp carried in the secret's note, verified on read-back); SecretStore trait over both; sync_stamp (fleet-sync/1 counterpart=<store>:<name> kind=secret hash=<truncated SHA-256 anchor>); dual_put — primary (Bitwarden) first as commit point, then mirror, one-sided mirror failure reported by store name + a name-only pending record (fleet-sync.pending.<name>) left in the primary for the reconcile to close; primary failure lands nothing and never touches the mirror.
    • fleet secrets put <name> verb (value on stdin, both stores must be configured or it exits 3 naming the missing one — never a silent single-store write); set --store 1password now writes through OpStore (fleet secrets scoping S4: scoped fleet secrets set verb #15433's refusal retired).
    • Book: reference gains set + put sections; verbs.md table completed.
    • Local check so far: cargo check -p fleet-secrets clean; cargo test -p fleet-secrets 81 passed. Fleet-crate check + CLI tests running; remote verification via repo CI on the pushed branch to follow.
  5. added 2 commits that reference this issue on Nov 30, 2026
  6. dezren39 commented on Nov 30, 2026

    @dezren39
    Member

    Landed — lane 0212-CF. PR #17167 MERGED (merge commit 9c7d483); this issue auto-closed on the merge.

    Verification: cargo check -p fleet-secrets + cargo check -p fleet clean; cargo test -p fleet-secrets 81 passed (7 new: OpStore create/edit/error hygiene, cross-side stamp agreement, dual-put both-landed / one-sided+pending-record / primary-failure isolation). CLI test-profile build was still compiling on this seat at merge time (wake: local run log /tmp/test-fleet-cli.log on the xaltha seat; fix-forward if it surfaces anything).

    Recorded remainder (not silently dropped): acceptance 1's live leg — a real put resolvable from both stores — needs a dual-provisioned seat (this seat: no configured op account, no Bitwarden write project in a plain shell). First dual-provisioned seat runs: fleet secrets put <canary-name> with a throwaway value, then fleet secrets get through each store chain, and records the result here. The reconcile premise transition is recorded on #13948 (comment 7276500829).

  7. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    🤖 Lane 0900-G (xaltha, 2026-11-30) — 0212-CF wake RE-PARKED with a named blocker: cargo test -p fleet --bin fleet secrets @ 9c7d483 still has no verdict; both execution routes are blocked by other packages' failures, not by the secrets tests.

    Attempts (all logs read firsthand):

    1. Run 46444629882 — died at checkout: the short ref 9c7d48358 was treated as a branch name. Dispatch error, no verdict. (Lesson: fleet-run refs must be full SHAs.)
    2. Run 46446099299 at full SHA 9c7d483, standard nix-develop form with pipefail set — failure before cargo ran: building the pkgs/fleet dev shell failed because the mcpx-0.1.0 derivation's check phase fails: FAIL …/pkgs/mcpx/internal/sdnotify 1800.111s (test hung to the 1800s timeout; all other mcpx packages ok), then Cannot build '…nix-shell-env.drv'. Filed as mcpx derivation check fails: internal/sdnotify test hangs to 1800s timeout — blocks pkgs/fleet nix dev shell #17255.
    3. Run 46457667129 — direct-cargo route (image cargo, no nix shell): dies at openssl-sys ("Could not find directory of OpenSSL installation… pkg-config could not be found"). The fleet crates genuinely need the nix shell's OpenSSL, so there is no cargo route around the mcpx blocker today. (An earlier attempt, run 46456532373, also showed the runner CARGO_HOME cache is not writable by the test user; worked around with CARGO_HOME=/tmp.)

    Wake state: OPEN, blocked on #17255 (mcpx sdnotify check hang). The moment the mcpx derivation builds again, one standard dispatch (cargo test -p fleet --bin fleet secrets in the pkgs/fleet nix shell at or after 9c7d483) discharges this wake. No secrets test has run yet, so nothing here is evidence for or against PR #17167's CLI test module.

  8. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    🤖 Blocker cleared — lane 0900-CK (xaltha, wave 0900 wake lane gen-3), 2026-11-30. (This is the unblock note lane 0900-AZ was to post on landing; posting it now so the wake state is unambiguous.)

    The blocker named in lane 0900-G's re-park (comment 7284266946) is fixed: issue #17255 (mcpx internal/sdnotify check-phase hang) is CLOSED — PR #17350 MERGED 2026-11-30T17:33:09Z, merge commit 1ee20e843adb31f1d6815e441ee129bb0aabf569. Root cause (0900-AZ, firsthand): the dialed unixgram fd could be in blocking mode with no netpoller, so a 7-byte READY=1 write parked in the kernel past every deadline; the fix bounds the whole send by its context.

    Per G's recipe, I am discharging this wake now: one standard dispatch of cargo test -p fleet --bin fleet secrets in the pkgs/fleet nix shell at current main (fb747faf4ce19d5c7bc67025104087c3b6f842fe, which contains the #17255 fix and PR #17167's merge 9c7d48358). The verdict will be read from the test-result lines in the run log (pipefail set; the run label alone is not the verdict) and posted here.

  9. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    🤖 Wake re-dispatch round 1 — lane 0900-CK (xaltha, wave 0900), 2026-11-30. NO-VERDICT (venue ceiling); wake stays open, round 2 in flight.

    Run 46477330052 — G's recipe exactly (cargo test -p fleet --bin fleet secrets, pkgs/fleet nix shell, pipefail) at current main fb747faf4ce19d5c7bc67025104087c3b6f842fe (Target HEAD confirmed in log; this head carries both PR #17167's merge and the #17255 fix merge 1ee20e843a) — concluded CANCELLED at 2026-11-30T18:48:31Z: the Execute step ran 58 minutes and was killed by the job's 60-minute timeout. Log read firsthand: the command produced zero output in that span (the dev-shell build never finished), there is no mcpx derivation failure anywhere in the log, and no test ran. This is a provisioning-time wall, not a regression and not evidence about the secrets tests — the #17255 hang is gone; what remains is that a cold dev-shell build at this head does not fit in the default 60-minute job.

    Round 2 (in flight): run 46492191336, same command and head, --timeout-minutes 120, followup of the cancelled run for cache reuse. Its log-read test counts discharge this wake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/normal

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions