Skip to content

fleet search surface disagreements: serve routing, the mirroring claim, get-chunk delegation, = spelling (book survey, #13251) #13281

Closed

Description

@dezren39

Found by the Atlas book survey (#13251, survey A §7). Disagreements inside the fleet search surface over Atlas.

  1. fleet search serve: help, error string, and behaviour disagree. fleet help search lists serve as a domain command. cli.rs::run() contains a branch rejecting serve as "not part of the fleet search client surface". Live behaviour: fleet search serve starts the service (routes to fleet serve search before the client parser runs, as cli.rs's own header states). The rejection branch is unreachable for serve (still live for init/fetch-model, exit 2), and its error text incorrectly lumps serve with them.
  2. fleet search help says "mirroring atlas-search search" — it is a subset, and two validations differ. The atlas-search search flags absent from fleet's parser are enumerated in the book (20 names verified against parse_search_args; the survey text says 21 in one place — the count itself needs pinning). --expand is validated 0..=100 by atlas-search but only >= 0 by fleet's via-service path; --hydrate is capped at 1000 by atlas-search, only >= 0 by fleet. Help also abbreviates the model default to Snowflake arctic-embed-m-v2.0; the parser's actual default is Snowflake/snowflake-arctic-embed-m-v2.0.
  3. fleet search get-chunk help understates its real surface. The verb documents only --neighbors and --text, but parses nothing: every argument delegates verbatim, so atlas-search get-chunk's --context, --backend, --db, --vecdb, --via-service and --service-url all work through it undocumented — and a mistyped fleet-level flag fails at the artifact with atlas-search's wording, not fleet's.
  4. fleet serve search accepts --flag=value; fleet search does not. The serve role's hand parser splits on =; the search client parser has no = handling (--k=5 is an unknown-option usage error). The standalone clap binaries accept both spellings throughout.

Book chapter: pkgs/atlas-search/book/reference/fleet-search.md.

{
  "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-23T12:54:45Z",
    "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. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Lane XF claiming #13281 (fleet search surface disagreements: serve routing, the mirroring claim, get-chunk delegation, = spelling). Premise check first on current main; fix in a laptop worktree off main; book chapter updated per the docs-sync contract.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Done — Lane XF. All four disagreements resolved in PR #13326 (merged 6314507fe076):

    1. serve routing — cli.rs::run() gives serve its own arm naming the routed shape (fleet search serve is routed to fleet serve search by the binary); init/fetch-model keep the rejection, no longer lumping serve in.
    2. Mirroring claim — help names the surface as the wire-translating subset; the --model default is spelled in full; --expand validated 0..=100 (atlas-core MAX_EXPAND_NEIGHBORS) and --hydrate at most 1000 (atlas-proto request validation) in the request builder. The omitted-flag count is pinned at 20, verified name-by-name against atlas-search's clap parser (BackendArgs + VectorArgs + SearchArgs): backend, db, vecdb, vec-table, shards, context, parameters_version, shard_top_k, global_top_k, fts_weight, vector_weight, jaccard_depth, jaccard_threshold, rrf_k, planner_enabled, spell_enabled, query_class_hint, variant, raw, wait. The survey's "21" was the miscount; its own enumeration is 20.
    3. get-chunk delegation — both usage texts document the verbatim forwarding and atlas-search get-chunk's delegated flags (--context, --backend, --db, --vecdb, --via-service, --service-url).
    4. = spelling — parse_search_args splits --flag=value like the serve role's parser; switches reject an attached value (--text=true is a usage error).

    Books updated per the docs-sync contracts (atlas chapter records the aligned state; fleet chapter drops the resolved discrepancy note).

    Verification: cargo test -p fleet-search 98 passed / 0 failed on the laptop (incl. 3 new tests: = spelling parity, expand/hydrate caps, service-verb answers); nix build .#atlas-docs and .#fleet-docs both build. Remote dispatch (run 45184929990) failed at the Execute step with cargo: command not found (exit 127) — the fleet-build container gap (#13159 family), an environment failure, not a test result; the laptop run is the verifying route.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions