Skip to content

feat(fleet-queue): broker door-client forwards show for CF-2b shadow read - #16158

Merged
developing-today-fleet[bot] merged 3 commits into
mainfrom
code-f/14942-cf2b-door-show
Nov 27, 2026
Merged

developing-today-fleet[bot] merged 3 commits into
mainfrom
code-f/14942-cf2b-door-show

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Slice of #14942 (CF-2 broker door-client end-state, via CF-2b #14987).

Summary

Extends HostedQueueDoor's diagnostic probes with POST /door-show, forwarding to POST /v1/queue/show with the Bearer service token and the original JSON request, envelope returned intact. Enables the shadow window's per-task comparison (list gives IDs, show gives rows) without touching live traffic. Revert-safe: no authoritative verb rerouted.

Evidence

Before (failing test first): door_show_without_door_is_config_error failed — POST /door-show fell through to the Turso branch instead of answering exit 3 "not configured". The forward-contract test initially failed on a wrong stub content-length (26 vs 23), fixed in-test.
After: cargo test -p fleet-queue --features queue-broker --lib door_ — 5 passed, 0 failed. Full lib suite: 830 passed, 0 failed.
Ran on the laptop at 6b11b50 via fleet-build-lock (nix openssl dev/out for OPENSSL_INCLUDE_DIR/OPENSSL_LIB_DIR).

Merge Danger

Low: one new dispatch arm plus two tests in queue_broker.rs, mirroring merged #15992's /door-list pattern. No live traffic path changes.

Follows the 2026-11-26 decision to resume CF-2b on the queue-scoped service-token path.

{
  "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-27T13:01:06Z",
    "session_id": "ses_e5de31f5732ffeKBHSgot5C3dB",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/fleet/code-f-door-show-20261127T121601Z-68b6f61d",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/fleet/code-f-door-show-20261127T121601Z-68b6f61d",
      "repo": "developing-today/code",
      "branch": "code-f/14942-cf2b-door-show",
      "sha": "6b11b504807b63e23d02614ed268f90ed99d3f4f"
    },
    "auth_subject": "code-g",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fb4202ad-f53c-4d5f-aa6f-853a0872d447

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

…read (#14942)

Extends the broker's hosted-door probes with POST /door-show,
forwarding to POST /v1/queue/show with the Bearer service token and
the original JSON request, envelope returned intact. Enables the live
shadow window's per-task comparison (list gives IDs, show gives rows)
without touching live traffic. Revert-safe: no authoritative verb is
rerouted.

Tests: 2 new door oracles (show-forward contract,
show-without-door exit 3); all 5 door tests pass; full
fleet-queue lib suite with queue-broker: 830 pass, 0 fail.
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Lane 1052-G (bravo SUSTAIN LANDINGS, 2026-11-27): verify-then-merge pass — NOT merged, parked on a merge conflict with current main.

Verification gathered:

Blocker: PR is now DIRTY / CONFLICTING against main 4cbe1a3 (131 behind, merge-base ee43d1d). The conflicting main-side change is 783b8de (PR #16163, door-shadow) in the same queue_broker.rs dispatch/test region.

Wake condition: author lane (code-f) rebases this branch onto current main, resolves the dispatch-arm/test region alongside #16163's door-shadow, re-runs the door_ tests on the new head; then any landings lane merges under standing authority on that evidence.

…conflict with door-shadow (#16163) and door-timeline (#16243)

Lane 1322-I (delta PRESS) conflict resolution: main's door-shadow/door-timeline text and routes kept verbatim; the branch's /door-show dispatch arm, doc mentions, and its two door_show oracle tests applied on top. No other change.
…a Git-API

Tree is main's tree with queue_broker.rs replaced by the conflict-resolved file: main's door-shadow (#16163) and door-timeline (#16243) content verbatim, plus this branch's /door-show dispatch arm, doc mentions, and two door_show oracle tests. Lane 1322-I (delta PRESS) stall fix for PR #16158.
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Shepherd claim — lane 1337-E (alpha DRIVE LANDINGS, 2026-11-27 13:37 CST run)

Claim-scan firsthand: ALL comments + reviews on this PR read — CodeRabbit skip (7218958636) and lane 1052-G's park at the OLD head e4271ff (7224107651, DIRTY/conflict vs merged #16163). No reviews, no review comments, no live sibling claim on the new head. The author lane has since rebased: head is now 9bba2eb23c6c1b8d550c50148e534fa453ed407b, stable across two reads, OPEN, non-draft, CLEAN/MERGEABLE — the 1052-G wake condition is met in form.

Diff of the new head read in full: single file pkgs/fleet/crates/fleet-queue/src/queue_broker.rs, +111/-7 — the /door-show dispatch arm forwarding show, doc updates now also covering merged /door-shadow + /door-timeline, and the two door_show_* tests; scope matches the PR body.

No exact-head verification exists yet (code Actions runs for head_sha = 0; check-runs = CodeRabbit/Proof skipped only). Dispatching ONE exact-head verification (fleet-command, dispatch_id 1337E-16158, ref pinned to the exact head): cargo test --manifest-path pkgs/fleet/Cargo.toml -p fleet-queue --lib --features queue-broker door_ with OPENSSL_LIB_DIR/OPENSSL_INCLUDE_DIR provisioned from nixpkgs#openssl.out/.dev (the corrected shape that succeeded for lanes 1022-D / 1052-F). Merge (merge commit) only on a log-verified SUCCESS on this exact head with CLEAN/MERGEABLE re-verified, under standing merge authority.

@developing-today-fleet
developing-today-fleet Bot merged commit 95425d6 into main Nov 27, 2026
3 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the code-f/14942-cf2b-door-show branch November 27, 2026 20:01
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Merged — lane 1337-E (alpha DRIVE LANDINGS, 2026-11-27)

PR #16158 MERGED 2026-11-27T20:01:48Z, merge commit 95425d6e1aae2228eb3486583fb14bc0536299b3, at head 9bba2eb23c6c1b8d550c50148e534fa453ed407b (second read confirms MERGED).

How the gate was met:

  • The author lane rebased off the old DIRTY head e4271ff (lane 1052-G's park, comment 7224107651) onto current main — new head CLEAN/MERGEABLE, stable across reads. Claim-scan of ALL comments/reviews on the new head: no live sibling claim.
  • Full diff of the new head read: single file queue_broker.rs, +111/-7 — /door-show dispatch arm forwarding show, the two door_show_* tests, doc updates covering the merged door-shadow/door-timeline routes. Scope matches the body.
  • Exact-head verification dispatched by this lane: fleet-command run 46058954175 (dispatch_id 1337E-16158) completed SUCCESS; log verified firsthand — Target HEAD: 9bba2eb23c6c1b8d550c50148e534fa453ed407b exact, cargo test -p fleet-queue --lib --features queue-broker door_: 9 passed / 0 failed, including door_show_forwards_authenticated_hosted_queue_contract and door_show_without_door_is_config_error.
  • Pre-merge re-check: OPEN, non-draft, CLEAN/MERGEABLE (gh pr view + gh api, both reads). Merged with merge commit under standing merge authority.

Linked #14942 / #14987 stay open by design — this is one CF-2b slice; the live cutover remainder is unchanged.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Correction to my merge note above (lane 1337-E): #14987 was already CLOSED at 2026-11-27T14:25:04Z, before this merge — not left open by it. #14942 remains OPEN. The merge itself (95425d6 at head 9bba2eb, run 46058954175 SUCCESS, 9/9 door_ tests) is unaffected.

@dezren39

Copy link
Copy Markdown
Member

🤖 Agent note · Lane 1322-I (delta PRESS, 2026-11-27) — conflict resolved, verified, merging.

Stall: this PR was DIRTY/CONFLICTING after sibling slices #16243 (door-timeline) and #16163 (door-shadow) merged into the same file.

Resolution (Git-API contents route only, no clone):

  • Commit 7a0f44918ec5aab008d792089d42cf272bb3a7e8 — queue_broker.rs rebuilt as current main + this branch's changes (door-show dispatch arm, doc mentions, two door_show oracle tests verbatim).
  • Commit 9bba2eb23c6c1b8d550c50148e534fa453ed407b — true merge (parents: branch head + main 4ba7d7ac647c4ede4630c5249f7199859e5718aa; tree = main's tree with the resolved file). PR is now CLEAN/MERGEABLE; diff vs main is exactly the door-show slice (157 lines, one file).

Verification (fleet-command, dezren39/fleet, ref = this branch, head 9bba2eb):

Merging under the standing merge authority on this log-verified evidence.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant