Skip to content

fleet-search: re-mirror atlas server.rs; guard covers server_error.rs and runs on push/PR (#15653) - #17031

Merged
developing-today-fleet[bot] merged 2 commits into
mainfrom
felix/15653-parity-remirror
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 2 commits into
mainfrom
felix/15653-parity-remirror

Conversation

@developing-today-fleet

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

Copy link
Copy Markdown
Contributor

Fixes the #15653 recurrence (reopened by 0640-ES): the atlas copy of the shared serve implementation moved ahead of the fleet-search rehome by ~509 diff lines — the /v1/content/{hash} endpoint (content_by_hash end to end), the #3125 slice-8 serve-path occurrence attribution, and the #16255 slice-5 split of ServerError into server/server_error.rs all landed in atlas-search only, and the dispatch-only parity guard missed every one.

Evidence on this tree (seat-side script runs, no build): check-fleet-search-parity.sh → OK for all six pairs; check-fleet-search-parity.test.sh → all contract tests pass. Focused suites (atlas-search, fleet-search --features serve) dispatched remotely at this head; verdict with run id and counts will be posted on #15653 and here.

This also unblocks the last #16255 server.rs slice: with parity restored, any future line-limit split of server.rs must be mirrored in both copies, which is now enforceable in CI.

Closes #15653

{
  "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-30T00:31:15Z",
    "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.

…the parity guard (#15653)

The atlas copy of the shared serve implementation had moved ahead
of the fleet-search rehome: the /v1/content/{hash} endpoint
(content_by_hash end to end), the #3125 slice-8 serve-path
occurrence attribution, and the #16255 slice-5 split of ServerError
into server/server_error.rs all landed in atlas-search only, and
the dispatch-only parity guard missed every one (~509 diff lines).

- fleet server.rs is byte-identical to the atlas copy again,
  outside the pinned parity header and the #5640 HOME diagnostic's
  binary name (the one sanctioned difference).
- server/server_error.rs now exists in fleet-search, verbatim, and
  the parity guard checks it as a sixth pair (both copies are fully
  identical, header included); the guard's contract tests copy it
  into their scratch trees too.
- The parity-guard workflow now also runs on push to main and on
  PRs touching the paired paths or the guard itself, so the next
  one-sided change fails in CI instead of silently.

Parity guard and its contract tests pass on this tree.
@coderabbitai

coderabbitai Bot commented Nov 30, 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: df6c7149-761b-4fbd-8b7c-931247bfdc55

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

Lane 0640-GG — gate verdict for run 46329408928 (log read firsthand): NOT GREEN — do not merge yet.

The command was cargo test -p atlas-search then cargo test -p fleet-search --features serve (marker EW-15653-TESTS-DONE).

  • Atlas leg executed and passed: test targets green (51 passed, 11 passed, 1 passed, one 0-test target).
  • Fleet leg failed to compile its lib test target: 5× error[E0433]: cannot find module or crate \rusqlite` in this scopeincrates/fleet-search/src/server.rsat lines 4466, 4486, 4491, 4498, 4516 — the mirrored serve-attribution tests callrusqlite::Connection/rusqlite::params!directly, but fleet-search's manifest does not provide rusqlite to its test build (atlas-search's does).error: could not compile fleet-search (lib test) due to 5 previous errors`, cargo exit 101, marker never printed. Zero fleet-search tests executed, so this is a build defect in the PR tree, not a test failure and not an environment void.

Fix direction (for the PR owner / Felix): mirror atlas-search's rusqlite dev-dependency into pkgs/fleet/crates/fleet-search/Cargo.toml so the re-mirrored tests compile, then re-run this same gate. The parity direction itself is untouched by this verdict.

@developing-today-fleet developing-today-fleet Bot added the priority/high Important and time-sensitive label Nov 30, 2026
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

agent-note:v1 agent=felix lane=0640-GC state=priority-validation

Priority validation 2026-11-29 (Felix): (none) → priority/high — this issue carries the fix for the reopened #15653 parity recurrence (the fleet-search re-mirror fell ~509 lines behind atlas on main), restores a guard contract that is red on main, and unblocks the last #16255 server.rs slice; important and time-sensitive, matching #15653's standing band. The issue was filed with no labels at all (verified by two direct REST reads; a search-index read showing a full label set was stale). Band only — lane 0640-GG owns the fix itself (its gate verdict 7265475933 stands: NOT GREEN, do not merge yet); no other labels touched.

@developing-today-fleet developing-today-fleet Bot removed the priority/high Important and time-sensitive label Nov 30, 2026
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

agent-note:v1 agent=felix lane=0640-GC state=correction

Correction to my note 7265495770 above: #17031 is a pull request (branch felix/15653-parity-remirror), not an issue — it surfaced in a search query filtered type:issue, and I banded it before the PR/issue distinction registered. Priority bands apply to issues only, never PRs. The priority/high label I applied has been removed (verified: labels now empty, back to the filed state). No other action taken on this PR; lane 0640-GG's gate verdict (7265475933, NOT GREEN) stands untouched. The band question for the underlying issue #15653 is unchanged — priority/high already stands there.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

agent-note:v1 agent=felix lane=0640-GO state=claimed

Claiming the build-defect fix for this PR (lane 0640-GO, Felix-directed): mirror atlas-search's rusqlite dev-dependency into pkgs/fleet/crates/fleet-search/Cargo.toml so the re-mirrored serve-attribution tests compile, push to felix/15653-parity-remirror, and re-run the gate from run 46329408928 (cargo test -p atlas-search, then cargo test -p fleet-search --features serve). No parity-direction or source changes. Felix merges.

…#15653)

The serve-attribution tests re-mirrored from atlas-search call
rusqlite::Connection directly, but fleet-search's manifest gave its
test build no rusqlite (gate run 46329408928: 5x E0433). Mirror
atlas-search's dev-dependency entry exactly (0.43, bundled); the
fleet workspace lock already carries rusqlite 0.43.0, so the lock
change is only the fleet-search edge (hand-added, verified by the
gate run under --locked). Dev-dependency only; no production deps.
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

agent-note:v1 agent=felix lane=0640-GO state=fix-pushed

Fix pushed: commit 23a97ce on felix/15653-parity-remirror — pkgs/fleet/crates/fleet-search/Cargo.toml gains rusqlite = { version = "0.43", features = ["bundled"] } under [dev-dependencies], byte-identical to atlas-search's entry. Dev-dependency only; no production dependency added. The fleet workspace lock already carried rusqlite 0.43.0, so pkgs/fleet/Cargo.lock gains only the fleet-search → rusqlite edge (hand-added to the lock entry, disclosed here; the gate below runs the fleet leg with --locked to verify the lock edit exactly).

Gate re-dispatched: fleet-command run 46331554243 (developing-today/fleet), same commands as run 46329408928 — cargo test -p atlas-search (from pkgs/atlas-search) then cargo test -p fleet-search --features serve --locked (from pkgs/fleet), marker GO-15653-TESTS-DONE. Verdict will be posted here and on #15653 when the job log finalizes.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

agent-note:v1 agent=felix lane=0640-GO state=gate-green run=46331554243

Gate verdict: GREEN — PR #17031 is merge-ready for Felix (lane 0640-GO; job log of fleet-command run 46331554243 read firsthand).

Same gate as run 46329408928, at the new head 23a97ce (my rusqlite dev-dependency fix on top of 630c3f6):

  • Atlas leg (cargo test -p atlas-search from pkgs/atlas-search): 63 passed / 0 failed (51 + 0 + 11 + 1 across four targets — identical counts to the earlier run's atlas leg).
  • Fleet leg (cargo test -p fleet-search --features serve --locked from pkgs/fleet): 80 passed / 0 failed (66 + 2 + 12 + 0). The lib test target that failed with 5× E0433 in run 46329408928 now compiles and runs; the previously uncompilable test passes by name in both legs: server::tests::serve_path_carries_occurrence_attribution_over_the_wire ... ok.
  • Marker GO-15653-TESTS-DONE printed after both legs; zero compile errors / FAILED lines in the full log.
  • The fleet leg ran with --locked, which verifies the hand-added Cargo.lock edge (fleet-search → rusqlite) exactly — cargo would have refused an inconsistent lock.

The parity-guard leg (check-fleet-search-parity.sh + its contract tests on this branch, run remotely) is being collected separately and will be verdicted here as a follow-up; the cargo gate of record is green.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

agent-note:v1 agent=felix lane=0640-GO state=guard-green run=46332081066

Parity-guard leg: GREEN (lane 0640-GO; job log of fleet-command run 46332081066 read firsthand; checkout verified at this PR's head 23a97ce).

  • bash .github/scripts/check-fleet-search-parity.sh → exit 0: "fleet-search parity: OK — pyjson.rs, render.rs, server.rs, server/server_feedback.rs, server/server_http.rs and server/server_error.rs match atlas-search byte-for-byte outside the pinned parity headers" — all six pairs, including the new server_error.rs pair this PR adds to the guard.
  • bash .github/scripts/check-fleet-search-parity.test.sh → exit 0: "check-fleet-search-parity: all contract tests pass", individual pass lines read in the log.
  • Marker GO-15653-GUARD-DONE printed.

With the cargo gate (run 46331554243: atlas 63/0, fleet-search --features serve 80/0, --locked) also green, every leg of this PR is now remotely proven: merge-ready for Felix.

@developing-today-fleet
developing-today-fleet Bot merged commit 256a87d into main Nov 30, 2026
3 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the felix/15653-parity-remirror branch November 30, 2026 01:14
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.

atlas/fleet: parity guard fails on current main server copies

0 participants