Skip to content

fleet-queue: split placement session store into placement/store.rs (#16255 slice 19) - #16995

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
felix/16255-placement-store-split
Nov 29, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
felix/16255-placement-store-split

Conversation

@developing-today-fleet

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

Copy link
Copy Markdown
Contributor

Slice 19 of the #16255 production-line-guard track (one file per PR).

pkgs/fleet/crates/fleet-queue/src/placement.rs re-crossed the limit — 2593 production lines in the fresh guard listing (run 46314343859, 2026-11-29) — after earlier slices (gh.rs, coordinator.rs, adapters.rs, remote.rs) brought it under. This PR moves the session-store cluster (state paths, StoreLock/with_store_lock, load/save store, session-record construction, handle RNG, submitted_by, registry_without_surfaces) into placement/store.rs, following the placement/gh.rs split pattern already in that file. Shared helpers stay in placement and are imported via super::; entry points are re-exported so all call paths are unchanged. Pure code motion, no behavior change.

Guard on the branch tree: placement.rs no longer over the limit.

Remote verification (fleet-queue tests, full broker feature set) dispatched against this branch; run id + verdict will be posted here and on #16255.

{
  "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-29T22:01:22Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "010b47d1c4cecdcd1b7d6ea260b7c9b0a61fb89e"
    },
    "auth_subject": "felix",
    "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 29, 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: cc6463e2-11d0-458c-a5df-60ee7fc9cb16

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

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Verification dispatched (Felix lane 0640-DT): fleet-command run 46315413708 against this branch — cd pkgs/fleet && cargo test -p fleet-queue --features queue-broker,secrets-broker,client with the realised nixpkgs OpenSSL env (full broker feature set, so the placement tests inside the lib actually compile). Verdict from the full log read will be posted here.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Verification run 46315413708 verdict (Felix lane 0640-DT, full log read firsthand): RED — my split missed the cross-module surface, zero tests executed. 13 errors, all placement of items relative to the new module: state_dir/state_file actually lived inside the moved block (so store.rs cannot import them from super::), home_dir was not imported, commit_new_session needs the remote module path, adapters.rs and placement.rs both reach rand_source through placement, and the moved functions need pub(crate) (registry_without_surfaces stays pub). All fixed in amended head 3445b36; re-verification dispatched.

@developing-today-fleet
developing-today-fleet Bot force-pushed the felix/16255-placement-store-split branch from 3445b36 to 17f83d5 Compare November 29, 2026 22:18
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Verification run 46316473181 verdict (Felix lane 0640-DT, full log read firsthand): RED — a patching slip, zero tests executed. My visibility patch double-prefixed one function (pub pub(crate) fn failed_session_record) — a syntax error at store.rs:104. The 13 semantic errors from run 46315413708 were all resolved (none recurred). Fixed in amended head; third verification dispatched.

…16255 slice 19)

placement.rs re-crossed the 2500 production-line limit (2593 in the
2026-11-29 guard run 46314343859) after earlier splits brought it
under. Move the session-store cluster — state_dir/state_file,
StoreLock + with_store_lock, load_store/save_store/sort_json_keys,
failed_session_record, commit_new_session, new_handle + rand_source,
submitted_by, registry_without_surfaces — into placement/store.rs,
following the placement/gh.rs split already in that file. Shared
helpers stay in placement and are imported via super::; entry points
are re-exported so every call path (including session reconcile and
the placement tests) is unchanged. Pure code motion.
@developing-today-fleet
developing-today-fleet Bot force-pushed the felix/16255-placement-store-split branch from 17f83d5 to e6c0350 Compare November 29, 2026 22:24
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Verification run 46317094278 verdict (Felix lane 0640-DT, full log read firsthand): RED — down to 2 errors, zero tests executed. mod rand_source and fn state_file inside store.rs also need pub(crate) for the placement re-exports to see them (E0603 ×2). Fixed in amended head; fourth verification dispatched. Note for reviewers: these iterations are the cost of a first split in a file whose items are reached from four sibling modules — each run has strictly shrunk the error set (13 → 2 syntax → 2 visibility).

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Verification run 46317655743 verdict (Felix lane 0640-DT, full log read firsthand): GREEN — PR #16995 is merge-ready. At head e6c0350, cargo test -p fleet-queue --features queue-broker,secrets-broker,client executed 1060 passed / 0 failed across 10 test targets (placement tests present throughout the log), marker FLEET-QUEUE-TEST-EXIT=0. Guard passes for placement.rs on the branch tree. Felix: ready to merge.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Lane 1622-C (delta PRESS landings) claiming this PR for merge. Verification: author lane 0640-DT run 46317655743 GREEN at head e6c0350 (1060 passed / 0 failed, full log read by author); my own full-diff read confirms pure code motion (session-store cluster → placement/store.rs) with the pub(crate) visibility fixes from the iteration history and no behavior change. Merging under standing authority (CI is not a gate).

@developing-today-fleet
developing-today-fleet Bot merged commit 58d1184 into main Nov 29, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the felix/16255-placement-store-split branch November 29, 2026 22:31
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Merged by lane 1607-J (charlie ADVANCE) under standing merge authority on the GREEN verdict of verification run 46317655743 (Felix lane 0640-DT, full log read, head e6c0350, fleet-queue full broker feature set) + fresh CLEAN/MERGEABLE. Pure code-motion split of the placement session store into placement/store.rs (#16255 slice 19). Merge commit 58d1184.

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.

0 participants