Repository navigation
feat(fleet): queue domain — repo-queue client + broker roles in pkgs/fleet (step 2, #5430) - #5478
Merged
Merged
Conversation
…fleet (step 2, #5430) Port the broker family (sandbox ~/tools/fleet-brokers, code#5362) into pkgs/fleet as crates/fleet-queue: the repo-queue client, the queue-broker and secrets-broker serve roles, and packet validation, refactored onto the platform crates — credentials resolve by name through fleet-secrets (the queue-broker source is a SecretSource over the secrets-broker HTTP API; the secrets-broker refresh runs bws through the CommandRunner seam), and all three programs share one structured logging facility (src/log.rs) with the domain as a field, byte-identical stderr to the ad-hoc prefixes it replaces. Wire behavior is preserved: same HTTP surface, envelopes, framing, exit codes, and stdout shapes (serde_json preserve_order where the consumers read key order). repo-queue gains the surface the census found missing: --help renders from the fleet registry and --version reports the release through the argv0 route (fleet queue equally). The brokers keep building as standalone artifacts (the fleet-brokers package: repo-queue / queue-broker / secrets-broker from src/bin shims over the same library) — the migration rollback inventory. A fleet-static (full profile, musl) artifact joins the variant set for non-nix install contexts. The broker systemd user units land in home/common/default.nix as fleet serve <role> definitions — the dezren39/nix PR #1459 module pattern ported into this tree per ruling D1, consuming this flake's own packages. Live migration evidence (per-flip round-trips, rollback exercise) is recorded on #5430.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 27 minutes. View limit details
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. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fleet epic step 2 (#5430): the queue domain lands in
pkgs/fleet, and the laptop's live queue stack migrates onto it, one verified flip at a time.crates/fleet-queue— the broker family (sandbox~/tools/fleet-brokers, code#5362) gets its first source home in this repo: the repo-queue client, the queue-broker and secrets-broker serve roles, and packet validation, refactored onto the platform crates. Credentials resolve by name throughfleet-secrets(the queue-broker's source is aSecretSourceover the secrets-broker HTTP API; the secrets-broker refresh runsbwsthrough theCommandRunnerseam); one structured logging facility (src/log.rs) with the domain as a field replaces the ad-hoc prefixes, byte-identical stderr. Wire behavior preserved: HTTP surface, envelopes, framing, exit codes, stdout shapes (preserve_orderwhere consumers read key order).--helprenders from the fleet registry;--versionreports the release through the argv0 route.fleet queue …is the same surface.fleet-brokerspackage builds repo-queue / queue-broker / secrets-broker fromsrc/binshims over the same library: the migration's rollback inventory.fleet-static— full profile, musl static, for non-nix install contexts (linkage is a per-context choice, refinement B). The sandbox'srepo-queueflip installs this artifact.home/common/default.nixgainssecrets-broker/queue-brokeruser units runningfleet serve <role>(one unit per role), the dezren39/nix PR ops(dashboard): daily backups of dashboard/orchestration logs + stores — laptop, Google Drive, R2 #1459 pattern ported into this tree per ruling D1, consuming this flake's ownpkgs/fleet(atlas-search toolchain pattern). Hand-installed unit files converge on the next activation.Live migration (all verified 2026-11-04, evidence on #5430)
fleet serve secrets-broker— health +/secretshape + round-trip on credentials it served (task 9546).fleet serve queue-broker— round-trip from the sandbox consumer client (task 9547); production-queue reads verified from the laptop claimant's path.~/tools/bin/repo-queuesymlink → fleet-static artifact — round-trip task 9548;--help/--versionlive.fleet-brokersstack ran a full scratch round-trip (task 9549); pre-flip unit files kept as*.pre-fleet-step2; original binaries untouched in~/fleet-brokers/bin.Verification
cargo test --workspacegreen; clippy clean (rustup 1.99.0 toolchain bin first in PATH,RUSTC_WRAPPER=— the laptop's clippy-driver/sccache trap).nix buildof all six outputs green (check phases run the per-package test suites).pkgs/fleet/smoke.sh: 42 passed, 0 failed (step-1 suite plus queue-domain sections: roles bind and answer on scratch ports, client surface, client→broker wiring).Notes for reviewers
SecretValue::from_resolvedis a new public constructor infleet-secrets: sources outside the crate could not otherwise construct the newtype (step 1 shipped it without one).CommandRunnercontract carries exit status only, never output. Deliberate: errors carry names/status, never values.repo_queue_healthview intermittently timing out platform-wide, identical on the pre-fleet broker).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.