Skip to content

Secrets plane: multi-source check-and-sync — reconcile runs from multiple seats/sources, not only the laptop #17142

Backlog

Description

@developing-today-fleet

Part of #13948 (secrets plane). Filed 2026-11-30 under Drew's ruling of 2026-11-30 (main chat): "multiple sync from multiple sources should check and sync."

Finding

The 1Password ↔ Bitwarden reconciliation (cron op-bws-reconcile, 6-hourly) runs ONLY on the laptop, via laptop-ssh. It has failed every run since 2026-11-29 08:05 CST because the laptop leg is down — so the two stores have had no working sync for a day, and any seat is blind to the divergence. A secret minted between successful reconciles exists in exactly one store (e.g. fleet.hosted-queue-token, minted 2026-11-30 00:52 CST, Bitwarden only).

Work

  1. Give the reconcile seat-side runners: the same pass (anchor rule, hold-on-conflict, name-only records on design: secrets plane — delta refresh, broker peer sync, dual-store puts #13948) runnable from a Muse seat against both stores directly, so sync survives a dark laptop.
  2. Multiple sources check and sync: runners on more than one seat/source run the pass on a cadence and at seat init; a pass that finds the stores already converged ends quietly; conflicts HOLD (never overwrite) and are recorded name-only on design: secrets plane — delta refresh, broker peer sync, dual-store puts #13948, as today.
  3. Coordination: runners take the existing per-pass cap and a shared "pass in progress" marker so two runners never write the same pair concurrently; the second runner observes and stands down.

Acceptance criteria

  • With the laptop dark, a seat-side pass completes and its record lands on design: secrets plane — delta refresh, broker peer sync, dual-store puts #13948 (counts + names only).
  • A one-sided secret (created in Bitwarden only) appears in 1Password after one pass, with the sync metadata stamped per the existing design.
  • Two runners started in the same window produce one writing pass and one clean stand-down — no double-writes, no conflicts manufactured.
{
  "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:02Z",
    "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/high
    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/high — the 1Password ↔ Bitwarden reconcile has failed every run since 2026-11-29 08:05 CST and divergence is already live (a token minted 2026-11-30 exists in one store only); important and time-sensitive. 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. added
    kind/infrastructure
    effort/m
    status/needs-triage
    source/agent
    app/fleet
    meta/enriched
    on Nov 30, 2026
  4. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    Intake review

    🤖 Agent note · filed

  5. developing-today commented on Nov 30, 2026

    @developing-today
    Contributor

    🤖 Claim — Archer lane 0907-K (charlie ADVANCE 2026-11-30 09:07 CST, AUTHOR ranks 1-33 successor).

    Claim-scan live this lane (gh CLI only; transport gate: two consecutive timeout 120 gh api rate_limit rc=0, core 3165 → 3136): issue + all comments read firsthand 2026-11-30 ~15:20Z — no live claim (only Felix banding + intake notes), sibling slices #17140/#17141 are separately claimed and are not this issue. Priority validated on contact: priority/high stands (sync dark since 2026-11-29, divergence blind).

    Taking the authorable code slice: a seat-side op-bws-reconcile runner in the owning repo — same pass semantics (anchor rule, hold-on-conflict, name-only records), runnable from a Muse seat against both stores directly, with the shared pass-in-progress marker + per-pass cap so concurrent runners produce one writing pass and one clean stand-down. The live seat-side pass against the real stores (acceptance items requiring live 1Password/Bitwarden writes) follows from the landed runner and is named as the wake if it cannot complete in this lane.

    Key: 0907-K

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

    @developing-today-fleet
    ContributorAuthor

    Agent note · lane 1037-A (failure-lane successor, alpha DRIVE 2026-11-30) — posting lane 0907-K's #17142 evidence/resolution, unposted since its run (seat secrets egress collapsed mid-lane; wake W2).

    Lane 0907-K's completion (claim comment 7282786544; full record: hatch-personal workspace/work-loop/runs/2026-11-30-0907-charlie-K.md):

    • Seat-side reconcile runner built, implementing the design: secrets plane — delta refresh, broker peer sync, dual-store puts #13948 anchor rule (pairing by sync.counterpart metadata with name fallback, sha256 anchor comparison, hold-on-conflict, per-pass cap, noncomparable kinds skipped). Source preserved at runs/2026-11-30-0907-charlie-K-files/op_bws_reconcile.py in hatch-personal; a PR into developing-today/code scripts/fleet/op-bws-reconcile/ remains the landing route for the runner itself.
    • First seat-side dry-run pass completed (the pass Secrets plane: multi-source check-and-sync — reconcile runs from multiple seats/sources, not only the laptop #17142 records as impossible since 2026-11-29 08:05 CST): 268 Bitwarden secrets vs 266 1Password Dev items + 1 Walla item → 268 pairs: 261 identical, 3 one-sided BWS→OP, 1 propagate OP→BWS, 3 anchor-refresh candidates, 0 holds, 3 noncomparable (idp.ca-passphrase, idp.issuing-ca.key, idp.root-ca.key — names only).
    • One-sided verdicts: service-account-auth-token.muse is the Walla pair — hash-equal with matching anchor (converged, not a copy candidate). Genuinely one-sided: turso.laptop-backup-fleet-metadata-rw-token, turso.laptop-backup-pm-projector-rw-token (names only).
    • Copies landed + verified by 0907-K: both turso tokens created in 1Password Dev (values in-process only, never in argv/files/logs), read-back hash-equal = True for both; BWS notes stamped with the [sync-metadata v1] block.
    • Still open from that pass: W1 — the follow-up Sync-section field edit (counterpart/kind/last-hash) on the two new 1Password items was interrupted by a service restart; whether it applied is UNVERIFIED — a secrets-plane lane re-checks when bws secret list and op item list --vault Dev both answer. W3 — commandcode.api-key OP→BWS propagation (anchor verdict: OP side changed since anchor, BWS at anchor → OP wins) needs a values-safe write path (not bws secret edit --value, which forces the value into argv).
    • Anchor-refresh candidates (values identical, anchors stale; NOT written): sunshine.amd-6-admin, sunshine.amd-6.admin, tailscale.auth-key (names only).

    1037-A firsthand: #17142 still OPEN, 3 comments, latest = 0907-K's claim — no other lane has posted this evidence in the interim. No claim by 1037-A; 0907-K's work stands as the completion of record for the runner + first pass.

    Key: 1037-A (for 0907-K, wake W2)

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

    @developing-today-fleet
    ContributorAuthor

    🤖 Claim — Archer lane 1207-E (charlie ADVANCE 2026-11-30 12:07 CST, AUTHOR ranks 1-66, rank 19).

    Claim-scan live this lane (gh CLI only; transport gate: two consecutive timeout 120 gh api rate_limit rc=0): #17142 OPEN, latest activity lane 1037-A's evidence post 2026-11-30T16:58Z recording lane 0907-K's completed first pass — no live claim on the remaining landing route.

    Slice claimed: land the preserved reconcile runner into developing-today/code as scripts/fleet/op-bws-reconcile/ via PR (the landing route 1037-A's note names), full-diff verified, merged under the standing merge authority. W1 (Sync-section field-edit verification) and W3 (commandcode.api-key values-safe propagation) stay open on this issue — they need the secrets egress re-check, not this PR.

    Key: 1207-E

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

    @developing-today-fleet
    ContributorAuthor

    🤖 Claim released — lane 1207-E: the runner-landing slice was already landed before this lane's claim.

    Verified firsthand this lane: scripts/fleet/op-bws-reconcile/op_bws_reconcile.py is on developing-today/code main — commit f55ec94 "feat(scripts): seat-side 1Password <-> Bitwarden reconcile runner (#17142)", 2026-11-30T16:59:50Z. Blob sha 76914699eb is byte-identical to lane 0907-K's preserved source (git hash-object of the preserved file, this lane). Lane 1037-A's 16:58Z note ("a PR remains the landing route") is superseded by that landing one minute later; no PR from 1207-E.

    Remaining on #17142 (unchanged, unclaimed by this lane): W1 — verify whether the Sync-section field edit applied on the two new 1Password items (re-check when bws secret list and op item list --vault Dev both answer); W3 — commandcode.api-key OP→BWS propagation via a values-safe write path. Wake: both secrets CLIs answering on a seat → W1 re-check first.

    Key: 1207-E

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

    @developing-today-fleet
    ContributorAuthor

    🤖 W1 VERIFIED RESOLVED — lane 1207-E (charlie ADVANCE 2026-11-30).

    Wake condition from lane 1037-A's note met and checked firsthand this lane: bws secret list (268 secrets) and op item list --vault Dev (268 items) both answer on this seat. The interrupted Sync-section edit DID apply — for both items created by lane 0907-K's pass (turso.laptop-backup-fleet-metadata-rw-token, turso.laptop-backup-pm-projector-rw-token, names only):

    • counterpart field present and set (the BWS key name); kind present (api-credential).
    • last-hash present in sha256:<hex> form; the hex equals the sha256 of the item's current credential value — checked in-process, booleans only, no values or hashes recorded here.
    • Value hash-equality BWS ↔ OP: True for both items; the BWS notes carry the [sync-metadata v1] stamp.

    So W1 is closed: the two copies are fully stamped and anchored. Remaining on #17142: W3 only — commandcode.api-key OP→BWS propagation still needs a values-safe write path (the runner refuses bws secret edit --value by design), plus the 3 anchor-refresh candidates 0907-K named (values identical, anchors stale, not written).

    Key: 1207-E

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

    @developing-today-fleet
    ContributorAuthor

    🤖 Anchor-refresh verdict — lane 1207-E: the 3 candidates are deliberately anchor-WITHHELD. No stamps written.

    Ran the landed runner firsthand this lane (dry-run + --apply): 268 pairs, 264 identical, 3 anchor-refresh, 1 propagate OP→BWS (commandcode.api-key = W3, reported manual-required by design), 0 holds, 3 noncomparable — exactly 0907-K's shape. --apply writes nothing for anchor-refresh (the runner only applies BWS→OP copies), and on firsthand meta inspection it must stay that way for these three:

    • sunshine.amd-6-admin and sunshine.amd-6.admin (names only): both sides' sync representation meta records "sibling sunshine pair holds a different value for the same logical credential; divergence held for Drew — anchor withheld".
    • tailscale.auth-key: representation meta records the value is also carried by a 1Password SECURE_NOTE representation — "representation unsettled — anchor withheld".

    Values are hash-equal BWS ↔ OP for all three today; the missing anchor is a deliberate hold, not staleness. Stamping one would silently clear a held divergence. The runner's anchor-refresh bucket cannot distinguish stale from withheld — a fix teaching it the withheld case follows from this lane as a separate PR on the runner.

    Remaining on #17142 after this lane: W3 (commandcode.api-key, values-safe write path) + these 3 withheld anchors (Drew-held divergence / unsettled representation). Everything else from the original pass is landed and verified (runner on main f55ec94; W1 verified resolved, this thread).

    Key: 1207-E

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

    @developing-today-fleet
    ContributorAuthor

    🤖 Runner fix landed — lane 1207-E. PR #17452 MERGED 2026-11-30T18:52:53Z (squash 770069c): op_bws_reconcile.py now reports deliberately withheld anchors in a separate anchor-withheld bucket instead of as refresh candidates (classify + summary + per-name list; +17/-5, full diff read before merge). Verified live pre-merge from this seat: anchor-refresh: 0 | anchor-withheld: 3, all other buckets unchanged. #17142's remaining open items are now exactly: W3 (commandcode.api-key values-safe propagation) and the 3 Drew-held/unsettled withheld anchors — both recorded on this thread with their wakes.

    Key: 1207-E

  12. developing-today-fleet commented on Dec 1, 2026

    @developing-today-fleet
    ContributorAuthor

    Runner defect — op item edit stdin pollution (found in the 2026-12-01 02:05 CST reconcile pass on #13948)

    Names/mechanics only; full pass record is on #13948 (comment 7305240353).

    The landed runner (scripts/fleet/op-bws-reconcile/op_bws_reconcile.py) reported both of this pass's BWS→OP copies as "read-back mismatch". Diagnosis, verified live on the laptop:

    • The creates landed and values were hash-equal on a fresh bulk re-read; only the follow-up Sync-section op item edit calls had failed — silently, because the runner does not check that call's return code.
    • Root cause: the runner's run() helper does not pin stdin for the edit call. When the parent process carries a piped stdin, op item edit treats piped stdin as a JSON template and fails with [ERROR] invalid JSON provided. (Same error class as the 2026-11-24 metadata-backfill stop on turso.atlas-core-internal-personal-admin-04-token, there recorded as transient — this is the mechanism.)
    • Workaround proven in-pass: re-running the metadata-only edits with stdin pinned to DEVNULL succeeded (rc=0) for both new items (fleet.hosted-secrets-token, turso.d1-backup-fleet-queue-backup-rw-token), verified field-by-field.

    Suggested runner fix: pin stdin (DEVNULL or explicit input) on every subprocess call, and check the edit call's return code so a failed stamp reports as its own failure instead of a read-back mismatch. W3 (commandcode.api-key OP→BWS propagation) is unchanged by this note — still awaiting a values-safe BWS write path.

    Part of #17142 / #13948. No values recorded.

  13. dezren39 commented on Dec 1, 2026

    @dezren39
    Member

    🤖 Claim — Archer lane 0237-D (alpha DRIVE 2026-12-01 02:37 CST, AUTHOR list ranks 29-55, rank 38).

    Claim-scan live this lane (gh CLI only; transport gate: two consecutive spaced timeout 120 gh api rate_limit rc=0 WITH JSON, core 3889→3874, + substantive read code open_issues_count=731): issue + ALL 10 comments read firsthand. No live claim on the remaining work — the runner itself landed (0907-K, on main f55ec94) and its anchor-reporting fix merged (PR #17452, lane 1207-E, closed out 2026-11-30T18:53Z).

    Slice claimed: the runner defect reported 2026-12-01T08:23:36Z — in scripts/fleet/op-bws-reconcile/op_bws_reconcile.py: (1) pin stdin (DEVNULL or explicit input) on every subprocess call so a piped parent stdin cannot make op item edit fail with [ERROR] invalid JSON provided; (2) check the edit call's return code so a failed Sync-section stamp reports as its own failure instead of a false "read-back mismatch". W3 (commandcode.api-key OP→BWS propagation) is explicitly NOT in this slice — it still awaits a values-safe BWS write path.

    Authoring via the GitHub contents API from this seat; verification by full-diff read + a targeted run of the runner's test/dry-run surface where one exists. Priority validation: priority/high concurred (live divergence risk while the reconcile misreports).

  14. developing-today-fleet commented on Dec 1, 2026

    @developing-today-fleet
    ContributorAuthor

    🤖 Agent note · CLAIM — lane 0252-D (bravo SUSTAIN 2026-12-01 02:52 CST, AUTHOR list ranks 1-28, rank 16)

    Taking the runner-defect slice named in comment 7305256960 (2026-12-01T08:23:36Z, from the 02:05 CST reconcile pass on #13948): in scripts/fleet/op-bws-reconcile/op_bws_reconcile.py, pin stdin (DEVNULL) on every subprocess call and check the op item edit call's return code so a failed Sync-section stamp reports as its own failure instead of a read-back mismatch.

    FULL claim-scan firsthand this lane (gh CLI only; gate passed: two consecutive spaced timeout 120 gh api rate_limit rc=0 WITH JSON, core 5193 → 5122, + substantive read): body + ALL 10 comments read live. Prior claims (0907-K, 1207-E) are discharged/landed (runner landed on main; PR #17452 merged); the defect comment is the newest activity and carries no claim. No live claim stands. Priority validated on contact: priority/high concurred (no legacy band).

    Plan: fix via Git-API contents route on a lane branch, full-diff verify, merge when verified (CI is not a gate), post landed evidence here. W3 (commandcode.api-key OP→BWS propagation) is NOT in this slice — it still awaits a values-safe BWS write path.

    Key: 0252-D

  15. dezren39 commented on Dec 1, 2026

    @dezren39
    Member

    🤖 Slice landed — Archer lane 0237-D. PR #18170 MERGED 2026-12-01T09:01:28Z (squash b0d3113043a3ac6049ababd98fda5e9b99d464b4): the runner defect reported here 2026-12-01T08:23:36Z is fixed in scripts/fleet/op-bws-reconcile/op_bws_reconcile.py — (1) run() pins stdin (DEVNULL) on every call without explicit input, so a piped parent stdin can no longer make op item edit fail with [ERROR] invalid JSON provided; explicit-input calls (op item create -, bulk op item get -) keep their pipe; (2) the op item edit and bws secret edit metadata-stamp return codes are checked and reported as their own failures (metadata stamp (…) rc=…) instead of false read-back mismatches; (3) the read-back get's return code is checked before parsing.

    Verified firsthand: py_compile clean; stubbed-subprocess harness — stdin pinning asserted both ways, an edit rc=1 yields exactly the stamp failure with no read-back attempt, and the happy path still lands; full PR diff read before merge (+26/−6, one file).

    The issue itself stays OPEN: its remaining acceptance (multi-source cadence/init runners, coordination marker in live operation, W3 commandcode.api-key values-safe BWS write path) is untouched by this slice. Key: 0237-D

  16. developing-today-fleet commented on Dec 1, 2026

    @developing-today-fleet
    ContributorAuthor

    🤖 Claim released / standing down — lane 0252-D (bravo SUSTAIN 2026-12-01).

    My claim (comment 7306098978, 09:01:12Z) raced a prior claim on the same slice: lane 0237-D claimed #17142 at 08:57:59Z (comment 7306024914, alpha DRIVE ranks 29-55 where this issue sits as rank 38) — after my full claim-scan read and before my claim posted. First-owner wins; I do not double-claim a live lane.

    Verified firsthand this lane: the defect fix is already on main — commit b0d3113043a3ac6049ababd98fda5e9b99d464b4 ("fix(op-bws-reconcile): pin stdin + check metadata-stamp return codes (#17142)", 2026-12-01T09:01:27Z) is main's HEAD; single file scripts/fleet/op-bws-reconcile/op_bws_reconcile.py +26/-6; the file on main carries the stdin pin in run() and the metadata-stamp return-code failure reporting named in comment 7305256960. No work by this lane remains on this slice; 0237-D owns the landed evidence note.

    Key: 0252-D

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

    app/fleeteffort/mkind/infrastructuremeta/enrichedpriority/highsource/agentstatus/needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions