Skip to content

Atlas repo docs and design archive disagreements: README index, who serves, CI triggers, census freshness, endpoint table (book survey, #13251) #13285

Closed

Description

@dezren39

Found by the Atlas book survey (#13251, survey D). Disagreements in the repo's own Atlas documentation and design archive. The book (pkgs/atlas-search/book/) now carries the reconciled account; these are the stale sources.

  1. doc/README.md indexes 6 Atlas records; doc/ contains 38 Atlas entries. Most of the design archive — including the design of record, scaler revision, staging gate, classification, metadata, D1-cache and embedded-replica records — has no README entry, while one README entry (the lawyer packet) has no "atlas" in its directory name. A reader navigating by the README misses ~85% of the archive. (The book's roadmap chapter now maps all 38.)
  2. Design-of-record layout vs the package as built. Design §4 proposes pkgs/atlas-search/ with a package-local doc/ and exactly four crates + fixtures/. The built package has docs/ (plural, three files), no package-local doc/, and substantial extra top-level surface the design tree does not show (atlas_search.py, worker/, eval/, schema/, tools/, tests/, test-vectors/, onnxruntime/).
  3. atlas_search.py points at a README that was not there; Python line count drift. The Python header says "(see README.md in this directory)" — pkgs/atlas-search/ had no README.md (the book PR adds one, so the pointer now resolves). The design of record describes the Python as 1,177 lines (true of the hatch-personal copy); the in-repo copy is 1,629 lines. The two copies are not the same file version; "the Python reference" needs a which-copy qualifier.
  4. Who serves: design + unit name say atlas-search serve; the live ExecStart is fleet serve search (fleet search serve role: rehome the atlas service into fleet serve search + re-point the atlas user unit #5604, atlasSearchServeViaFleet = true). The Worker README's deploy note ("a binary refresh of the laptop's atlas-search.service") is unit-accurate but binary-silent on this point.
  5. CI headers/names vs CI triggers (three workflows). atlas-search-pr.yml is named for PRs but triggers on nightly schedule + dispatch only (deliberate policy; the name is the stale part). atlas-search-worker-tests.yml's header says it runs "on pushes to main that touch pkgs/atlas-search/worker/ and on dispatch"; its on: block is dispatch + nightly only. fleet-search-parity-guard.yml presents as a drift guard for a byte-parity contract but triggers on workflow_dispatch only — nothing runs it automatically, and the two server.rs copies already differ in size (151,924 vs 151,913 bytes), so "verbatim copy" in fleet-search/src/lib.rs reads as a maintained copy under parity discipline, not byte-identity.
  6. Program record names a package that does not exist. The program investigation record describes "pkgs/atlas-search/, pkgs/atlas-core surfaces" — there is no pkgs/atlas-core; atlas-core is a crate inside pkgs/atlas-search/crates/.
  7. Two caches, opposite TTL stories, both called "the Atlas cache". The service temp store: in-memory, 10-minute TTL / 60-minute hard cap, nothing survives restart by requirement (a security property). The Worker cache (Atlas search Worker cache: eviction & invalidation policy (follow-up to #6788) #6805): Durable-Object-persisted, indefinite, no TTL/eviction in v1 (a cost property). Documents that do not name which store a TTL claim belongs to mislead; the book names them separately throughout.
  8. Embedding endpoint 18791 (memory design) vs in-process ONNX (everything else). The memory-integration design routes ingestion embeddings through "the openclaw-embedding service, fixed loopback port 18791" or atlas-embed. No code, nix, or other doc in the Atlas estate references 18791; the built embedding is in-process ONNX resident in the serve process, and the service's outward embedding surface is POST /v1/embed on :18760 (atlas search worker: Cloudflare Worker + per-query Durable Object embedding/result cache over the shard fan-out (successor surface for #5755) #6788). The memory design's slice 2 does not describe the pipeline the service runs.
  9. Ingest: two generations described as current in different homes. The turso-atlas README presents the collect→normalize→index→publish→access atlas-ingest.py pipeline as THE pipeline, present tense. The in-repo machinery describes per-unit staging DBs, a registry, classification-at-staging, an M6-gated promote and a five-stage batch gate; the scaler design's migration table says the aggregator path replaces direct-to-core ingest. The 2026-11-23 program record sides with the README on current practice (manual/script-driven; migrate all Atlas/search/embedder scripts into developing-today/code + fleet binary; retire outside copies #5670 migration open) and with the in-repo design on target shape. The book states the generation labels once, early.
  10. Census freshness: the headline numbers are a 2026-10-31 snapshot repeated as present tense. 18,325 / 122,124 / 107,639 appears in the design of record (2026-11-04) as current shape and is still the ground-truth line in the 2026-11-23 program record — which itself flags the store has grown (~7.3 GB monolith) without a verified recount. The design of record's "107,639 chunks in a Turso database" (monolith framing) and the program record's "monolith plus 29 topic shards" describe the same census at different physical-layout generations. The book dates the census 2026-10-31 everywhere.
  11. Design endpoint table vs the implemented route table. Design §2's table has seven rows; the implemented server.rs dispatch adds POST /v1/embed, POST/GET /v1/feedback (+ unversioned aliases) and GET /v1/search/jobs. None contradicts the design, but an API chapter built from the design table alone would omit three live surfaces — including the one the Worker depends on.

Book chapters: pkgs/atlas-search/book/design/roadmap-and-issue-map.md (archive map), reference/service-api.md, concepts/ingest.md, operations/backup-and-census.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:59Z",
    "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 claim — Lane XN (archer), 2026-11-23

    Taking #13285 — Atlas repo docs and design archive disagreements (book survey, #13251). Ownership check: full comment read (per_page=100, count confirmed against the issue total) — only the Kaneo link comment present, no competing claim.

    Plan: verify each of the 11 survey points first-hand on current main, reconcile the living documents (doc/README index, workflow names/headers, Worker README, atlas_search.py header, program record), and disposition any point that lives in a frozen dated record with the correction recorded rather than history rewritten. The book (pkgs/atlas-search/book/) already carries the reconciled account and follows its docs-sync contract for anything the fix touches there.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Done — Lane XN (archer), 2026-11-23. PR #13334 merged (ba7ea99e9fec, head SHA-guarded at c435a01c457); this issue auto-closed as completed and the fix is confirmed on main. All 11 survey points were verified first-hand on main a9f95bdb6b7 before editing.

    Landed in the PR (8 files, +71/−12): items 1, 3, 4, 5, 8 in living documents; items 2, 6, 10, 11 as corrections on the doc/README.md index entries for the design of record and the program record — the dated records themselves are not rewritten. Item 1 detail: 33 missing Atlas entries added; the README now indexes all 38 Atlas records in doc/ (link check: 121 links, 0 broken).

    Dispositioned here, no in-repo change:

    • Item 7 (two caches, opposite TTL stories): verified no living in-repo document conflates them — the Worker README names its own indefinite, no-TTL cache (lines 8, 71); the service temp store's 10-minute TTL lives in the design of record's §2 (frozen); the book names the two stores separately throughout.
    • Item 9 (ingest generations): the stale present-tense source is the turso-atlas README at ~/atlas/turso-atlas/README.md on the laptop (line 7: "The pipeline, in five plain steps (this is the whole design)", collect via scripts/atlas-ingest.py) — outside this repo, so no repo PR can carry its fix; the book's ingest chapter states the generation labels. Flagging it here as the record: the laptop README still presents the aggregator pipeline as current.

    Verification: parity guard + its contract tests on the exact PR head — remote dispatch run 45186690759 succeeded, and the same scripts pass locally on the laptop; workflow edits are comment-only (triggers/jobs untouched).

    Also this pass: queue task 5823 (code#3818) was served to this lane first — stand-down recorded on #3818 (comment 7102772350): all three bridge legs are merged and its sole remainder is #13036's live round-trip slice, owned by oc-code-g under that task.

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