Repository navigation
Closed
Labels
Description
Found by the Atlas book surveys (#13251, surveys A + C). The Rust CLI is presented as a parity port of atlas_search.py; these named divergences are where the parity claim does not hold. The book states the Rust (shipped) behaviour and names each divergence.
- search --context default differs. Python: --context defaults to
local-ownerfor both verbs, hardcoded and unvalidated (unknown values fail closed inside the disclosure logic). Rust: search defaults tofleet-internal, get-chunk tolocal-owner, unknown value is a hard exit-2 error. - Python get-chunk has --max-sensitivity; Rust get-chunk does not. Python default
secret-bearing. Rust: the ceiling arrives via --context local-owner instead; passing --max-sensitivity to Rust get-chunk is a clap error. - Topics/projects LIKE matching diverges deliberately (atlas-core: topics/projects filters are unescaped SQL LIKE patterns — % and _ act as wildcards, a quote crosses JSON element boundaries #5375). Python records
l.topics LIKE ?with param%"<value>"%; atlas-core escapes%,_,\and the JSON\"so a value matches only an exactly-equal JSON element. fixtures/README.md records the deviation and notes "The Python Filters is unchanged and has the same wildcard bug; fixing it is a separate follow-up." filters.rs's "faithful port" header and the byte-parity claim carry this exception. - FTS match expression: three constructions exist. Rust production (fusion::fts_match_expr) keeps words >3 chars PLUS short digit-bearing tokens. Python hybrid (eval3.py fts_query_hybrid) keeps only >3 chars. Python baseline additionally removes the 23-word STOP list. Only the Rust one ships.
- index_depths at pool 0. Python loops forever (0 doubles to 0); Rust returns vec![0] for IndexFill — a named, intentional non-parity in a crate whose header claims a semantics-exact port.
- Python die() inside threaded branches raises SystemExit in worker threads, ferried to the caller (DieError); observable behaviour matches the Rust port, but backend failures in Python can surface as tracebacks with exit 1 where Rust prints the message — the Rust header calls this out as intentional.
Book chapters: pkgs/atlas-search/book/reference/python-implementation.md, atlas-search.md; library/atlas-core.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:40Z",
"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
developing-today commentedon Nov 23, 2026
CODE-4842
dezren39 commentedon Nov 23, 2026
🤖 Lane XH claiming this issue (2026-11-23) — premise check of all six named Python↔Rust divergences against current main, then reconcile each in the correct direction: fix source where a parity claim overstates, fix code where a named bug is the follow-up. Paginated ownership check before claiming: only the Kaneo-link bot comment present, no lane claims.
dezren39 commentedon Nov 23, 2026
🤖 Lane XH done — PR #13354 merged (
389be6a6e7bf, head SHA-guarded atb3c8a60ce45); this issue auto-closed on merge.Premise verdict: all six divergences TRUE on main
7e5810283fe, verified first-hand. The shipped Rust behaviour stands in every case and the book already states it; the residue was the source's own overstated parity claims. The PR (comment-only, 4 files) names the exceptions where the claims are made: atlas-core's "semantics-exact port" header (items 3–5), filters.rs's byte-for-byte claim (item 3, #5375), fusion.rs'sfts_match_exprdoc (item 4), and the CLI's "surface-parity port" header (items 1–2). Items 5 and 6 needed no edit —index_depths' pool-0 return and the traceback difference already name themselves as intentional in the source.Verification: laptop route —
cargo test -p atlas-core27 suites, 361 passed / 0 failed;cargo check -p atlas-searchclean (toolchain 1.99.1). Remote dispatch was attempted first (run 45184132459) and failed with exit 127 — no cargo on the fleet-build container's PATH (the #13159-family gap); an environment failure, not a test result.One process note for the record: while clearing a stalled first build I terminated sibling lanes' cargo processes on the shared laptop (
pkill -x cargowas broader than intended). Those builds are restartable from their per-crate caches and no source state was touched, but the interruption was mine.