GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — atlas: provenance registry (chunk occurrences), content-addressed extracts, multi-DB vector resolution · Issue #3125 · developing-today/code

atlas: provenance registry (chunk occurrences), content-addressed extracts, multi-DB vector resolution #3125

New issue
Copy link
New issue
Copy link
In progress
In progress
atlas: provenance registry (chunk occurrences), content-addressed extracts, multi-DB vector resolution#3125
Copy link
Labels
area/infraInfrastructure, deployment, and operationseffort/lLarge: multi-day or open-ended; expect staged check-insepic/atlasEpic: atlas - all issues of this effort carry itepic/atlas-programReprioritization program epic (2026-11-12)kind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/humanFiled directly by a humanstatus/in-progressQueue worker lifecycle statetask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state
Milestone
Atlas program

Description

@dezren39
dezren39
opened on Oct 31, 2026
Issue body actions

Direction (Drew, 2026-10-31)

Atlas moves from a single canonical DB + one Turso publish to provenance-first, scalable infrastructure. Design doc: hatch-personal workspace/turso-atlas/docs/atlas-provenance-and-scale-design-2026-10-31.md.

Rules:

  1. Keep ALL data — nothing stripped from atlas.db or publishes to save space; only byte-identical dupes are cleaned, backups kept.
  2. Backups AND plain extracts for every corpus.
  3. Every chunk records EVERY place it was found: chunk_occurrences (chunk → array of source locators with spans, observed_at). Today dedup silently drops occurrences (~127K at first ingest); 6,344 canonical sessions own zero chunks for exactly this reason and their occurrences are unrecorded.
  4. Every import is interned content-addressed (laptop extracts CAS / R2, registry maps CA hash → normal paths) or pinned as repo@commit:path. Registry also holds line numbers / dates / spans for extracts.
  5. Retrieval: vector/FTS search across multiple Turso shard DBs (collection × month) returns IDs; a catalog/registry resolves an ID to a file, a chunk, or a start–end section — including a member of a tar in R2 (sidecar index, range fetch) or a local file.

Verified state feeding this (2026-10-31): canonical 18,325 sessions / 122,124 messages / 107,639 chunks; local-only = 6,941 chunks of personal-client TEXT held back from Turso by policy (not missing embeddings); Turso atlas 1.0 GB / 100,698 chunks; laptop ~/atlas 12 GB contains NO consequential byte-identical duplicates (hash-verified) — it is distinct versions/working sets, so no cleanup windfall exists.

Phases

  1. Add chunk_occurrences + cas_registry to canonical atlas.db; ingest writes occurrences from now on (no re-embed, no republish).
  2. Laptop extracts dir + CAS; atlas-backup covers it; backfill extracts for sources still on disk.
  3. Occurrence backfill from CAS extracts; document the local-only publish predicate in the publish script.
  4. Catalog DB + shard layout at next publish growth (or full message-archive ingest); resolution as MCP tools (search → ids → resolve → fetch span).

Acceptance criteria

  • A chunk_occurrences provenance registry exists: every chunk records every source locator it was found at (with spans and observed_at), including occurrences previously dropped by dedup.
  • Backups AND plain extracts exist for every corpus; imports are interned content-addressed (CAS hash → path registry) or pinned as repo@commit:path, with line numbers / dates / spans recorded for extracts.
  • Retrieval works across multiple Turso shard DBs (collection × month): vector/FTS search returns IDs and the catalog/registry resolves an ID to a file, chunk, or start–end section (including a tar member in R2 via sidecar index + range fetch, or a local file).
  • No data is stripped to save space; only byte-identical duplicates are cleaned, with backups kept.

Activity

Next
  1. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    Update — privacy model changed (Drew, 2026-10-31)

    The local-only publish gate is lifted: everything in canonical publishes to Turso, including the six personal clients (6,941 chunks). Privacy moves to query-time classification filters: scheme-1.0 labels (already complete for all 18,325 sessions in classification-full-v1.json: personal 16,009 / local-only 2,226 / secret-bearing 90) ship inside the publish with a denormalized sensitivity column on chunks + sessions for pre-filtering, and Turso access stays restricted to trusted workers (per-DB tokens). secret-bearing is deny-by-default for any caller not explicitly granted that tier.

    Publish v2 build is in flight on the laptop: all 18,325 sessions / 122,124 messages / 107,639 chunks + labels + FTS + bge-small vectors for the previously held-back 6,941 chunks. It stops before the live Turso replacement, which waits on Drew's go with the v2 size + secret-bearing footprint reported. Design doc updated: hatch-personal workspace/turso-atlas/docs/atlas-provenance-and-scale-design-2026-10-31.md.

  2. github-actions
    assigned
    dezren39
    on Oct 31, 2026
  3. dezren39
    added
    kind/enhancement
    source/humanFiled directly by a human
    status/needs-triageNot yet triaged; needs a first look
    priority/highImportant and time-sensitive
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    area/infraInfrastructure, deployment, and operations
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 31, 2026
  4. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    Intake review

    Fleet monitor intake pass (2026-10-31).

    Related: design doc referenced in the body (hatch-personal workspace/turso-atlas/docs/atlas-provenance-and-scale-design-2026-10-31.md). No merged PR or commit found that implements this — verified live, not already solved.

    Notes: This is a Drew-directed design/epic, not a single fix: the five rules in the body are the spec. It arrived with no labels and no acceptance criteria; both are now set (criteria derived from the body's own rules).

    Risks: Scope is large (registry schema, CAS interning, multi-DB retrieval) — a single queue task should not try to land it whole. Backfill of ~127K dropped occurrences touches the canonical atlas data; rule 1 (keep all data, backups kept) must gate any migration.

    Suggested approach: Split into implementation phases under this issue (registry + occurrence backfill first, then CAS interning, then multi-shard retrieval), each routed as its own task; keep this issue as the tracking epic (consider meta/epic).

  5. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    atlas-search CLI shipped (hatch-personal PR https://github.com/dezren39/hatch-personal/pull/9, merged 2026-10-31): hybrid FTS+vector search + get-chunk over the live v2 publish, turso and local backends, sensitivity ceiling default personal. Verified on both backends with programmatic asserts (gold-chunk paraphrase rank 1, filter correctness, sensitivity gate, provenance).

    Findings for the v3 (fused-rerank) publish, from building against the live DB:

    1. vector_top_k does not work on the current plain-BLOB vec table (no libsql vector index) — the CLI uses ORDER BY vector_distance_cos(vec, vector32(?)) (~4s unfiltered full scan). If v3 wants indexed search, publish the vec column with a libsql vector index (diskann) and the CLI can switch.
    2. The publish schema has NO secondary indexes: any chunk->message->session join chain costs 20-60s over Turso. The CLI works around it (denormalized chunks.sensitivity + IN-subquery, ~3-15s), but v3 should add an index on messages(session_id) and denormalize session_id onto chunks.
    3. The CLI is already stage-1-ready for fused rerank: --model/--vec-table/--embedder/--trunc configurable (Snowflake ST path with prompt_name='query' smoke-tested against vec-snowflake.db), results carry rank_sources + stage-1 scores for the future RRF rerank step.
  6. dezren39
    added
    queue/queuedHas a queued queue task
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  7. developing-today commented on Nov 3, 2026

    @developing-today
    developing-todayBot
    on Nov 3, 2026 – with developing.today
    Contributor
    More actions

    agent-note:v1
    state: reviewed (coverage loop-back)
    Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 7378 (triage, queued, priority 50) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
    Found via: coverage loop-back 2026-11-03

  8. dezren39
    removed
    status/needs-triageNot yet triaged; needs a first look
    on Nov 4, 2026
  9. 114 remaining items

  10. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Agent note — openchamber lane oc-code-03, queue task 22882 (2026-11-24)

    state: parked (resumable)
    Slice 8 is an end-to-end serve-path check on a booted serve with shards and a source registry. The laptop shell transport leg is down in this run (fleet agent enroll reported shell ok:false, broker connection refused), so the serve cannot be built or booted from this lane. No code changed. Resume from a lane with a working shell transport.

  11. developing-today-fleet
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 24, 2026
  12. dezren39
    added a commit that references this issue on Nov 24, 2026

    feat(atlas-search): serve-path proof of occurrence-to-root attribution (

    c836290
  13. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Slice 8 evidence: serve-path proof of occurrence-to-root attribution

    PR: #14545 — new test server::tests::serve_path_carries_occurrence_attribution_over_the_wire (all green: atlas-search bin 45 passed, atlas-core full suite green).

    How the proof is built (mirrors a real boot)

    • Fixture shard atlas-core-internal-work-01.db (internal tier): chunks + chunk_occurrences + atlas_manifest, the DDL the aggregator writes.
    • File-backed catalog built through the same open_source_registry entry point the serve verb uses: root repo (repo@abc:) + registered locator repo@abc:infra/dns/a.yaml.
    • Two serves booted over loopback HTTP (start_server, real TCP wire): one with the catalog attached via with_source_registry, one without. FTS job submitted, then GET /v1/search/jobs/{id}/chunk/7.

    Wire excerpts (observed served JSON)

    Wired serve — root_id travels over the wire:

    {
      "chunk_id": 7,
      "occurrences": [
        {
          "shard": "atlas-core-internal-work-01",
          "tier": "internal",
          "canonical_hash": "<sha256 of chunk text>",
          "source": "repo@abc:infra/dns/a.yaml",
          "span_start": 0,
          "span_end": 17,
          "observed_at": "2026-11-24T00:00:00Z",
          "root_id": "repo"
        }
      ]
    }

    Unwired serve — same row, unattributed; no root_id key anywhere in the served body (wire shape unchanged, asserted on the serialized body string).

    Commands: cargo test -p atlas-search --bin atlas-search serve_path_carries_occurrence_attribution (from pkgs/atlas-search).

    Note: a full atlas-search serve binary boot was not used because cmd_serve builds a Turso-backed monolith requiring remote credentials — not hermetic. The proof boots the same start_server + CoreSearchEngine + ShardedBackend stack cmd_serve assembles, over real HTTP.

  14. developing-today-fleet
    marked this as blocking 2 issues on Nov 25, 2026
    • task(atlas): audit existing embeds for provenance/path correctness against the marking standard #6029
    • task(atlas): first-pass corpus ingestion — all code repos, all findable docs, dezren39/cairn #6025
  15. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 26, 2026 – with developing.today fleet
    Contributor
    More actions

    🤖 Triage refresh — task 24898 (oc-code-03), 2026-11-26

    #3125 remains the Atlas provenance programme tracker; implementation is active across its existing workstreams, so no duplicate packet is warranted.

    • Phase 1 is landed in dezren39/hatch-personal#58; phase 2 tooling/backfill landed through Update Rust crate console to 0.15.7 #67, but staged laptop DBs and live session stores are explicitly still outside that completed slice (Dependency Dashboard #24 remains open).
    • Phase 3 occurrence backfill remains open in Bump build/buck/preludes/buck2-prelude from d956689 to ad0d082 #25; phase 4 catalog/shards/resolver is contingent in chore(deps): update checkmarx/ast-github-action digest to 12fb485 #26.
    • Code-repo slices 6 and 7 are merged (feat(atlas-core): attribute occurrences to registered source roots (#3125 slice 6) #14036 and feat(atlas-search): wire source registry into serving paths (#3125 slice 7) #14204). Slice 8 has evidence recorded on PR feat(atlas-search): serve-path proof of occurrence-to-root attribution (#3125 slice 8) #14545, which is still OPEN. Its latest verification dispatch was cancelled (reported 2026-11-26); current PR checks show only skipped checks, so this is not verified/merged yet. Keep the tracker open and let that PR’s existing lineage own the fresh verification and merge.

    No labels or implementation state changed.

  16. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    🤖 Agent note (lane code-j, 2026-11-27, triage task 25417): concur with the 23:50Z oc-code-03 verdict — active tracker, no duplicate packet.

    • Phase 1/2 landed; phase 3 Bump build/buck/preludes/buck2-prelude from d956689 to ad0d082 #25 remains open; phase 4 chore(deps): update checkmarx/ast-github-action digest to 12fb485 #26 contingent. Code slices feat(atlas-core): attribute occurrences to registered source roots (#3125 slice 6) #14036/feat(atlas-search): wire source registry into serving paths (#3125 slice 7) #14204 merged.
    • Slice 8 PR feat(atlas-search): serve-path proof of occurrence-to-root attribution (#3125 slice 8) #14545 remains OPEN (fresh check); existing PR lineage owns verification/merge. Keep atlas: provenance registry (chunk occurrences), content-addressed extracts, multi-DB vector resolution #3125 open for active work. Refs Queue reprioritization programme 2026-11-24: full census, reorder, unblock #14158.
  17. developing-today commented on Nov 27, 2026

    @developing-today
    developing-todayBot
    on Nov 27, 2026 – with developing.today
    Contributor
    More actions

    1937-H — Triage (queue task 25986): active programme tracker; slice 8 PR held on fresh evidence

    Premise + ownership check: read #3125 and all 67 comments. OPEN, labels include epic/atlas, epic/atlas-program, priority/high, effort/l — a programme tracker, not a single slice. No held/user/* labels, no Drew gate.

    State concurred with the two most recent triages (task 24898, 2026-11-26T23:50Z; task 25417, 2026-11-27T00:49Z):

    • Phases 1–2 landed (hatch-personal chore(deps): bump rustix from 0.38.3 to 0.38.21 in /build/nix/setup #58/chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to f7dfb08 #60/shipping-rust-binaries-with-goreleaser #63/Update Rust crate console to 0.15.7 #67); phase 3 occurrence backfill remains open in hatch-personal#25; phase 4 (chore(deps): update checkmarx/ast-github-action digest to 12fb485 #26) contingent; staged laptop DB / live-store work is explicitly outside the completed slices.
    • Code slices 6+7 merged (PR feat(atlas-core): attribute occurrences to registered source roots (#3125 slice 6) #14036, PR feat(atlas-search): wire source registry into serving paths (#3125 slice 7) #14204) — this lane independently closed their book-status follow-up today (task 25061, PR docs(atlas): update source registry serving status #15818 merged, atlas docs run 45923122416 success).

    Slice 8 — PR #14545 checked fresh, NOT merged by this lane:

    • PR feat(atlas-search): serve-path proof of occurrence-to-root attribution (#3125 slice 8) #14545 is OPEN, non-draft, mergeable=true / mergeable_state=clean (gh api, this pass), single file pkgs/atlas-search/crates/atlas-search/src/server.rs +285/-0 (test-only), head 540071d7c5703f9c6161e5dff29ac480bee16953.
    • The new test serve_path_carries_occurrence_attribution_over_the_wire is NOT on main (grep of main's server.rs = 0 hits), so the slice is genuinely unlanded.
    • Blocker: the only passing evidence is the PR body's 2026-11-24 laptop run (atlas-search bin 45 passed, atlas-core green) against a pre-docs(atlas): update source registry serving status #15818-era base; there are zero Actions runs for the current head SHA. Merging a test-only change on stale evidence risks breaking main's build if the test's APIs drifted.
    • Unblock (exact): dispatch a fleet-command run on ref=pull/14545/merge running cargo test -p atlas-search --bin atlas-search serve_path_carries_occurrence_attribution_over_the_wire (or the full bin suite), post the run link on the PR, then merge under standing authority and tick slice 8 here.

    #3125 stays open for the programme. No duplicate packet filed.

  18. developing-today-fleet
    added a commit that references this issue on Nov 27, 2026

    Merge pull request #14545 from developing-today/item-work-1/3125-slic…

    de7a873
  19. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    Slice 8 serve-path proof is merged in PR #14545 (de7a873235c081303f274da8e5db60a93a9ec434). The targeted test passed on the final refreshed head via Fleet run 45929070341: cargo test --manifest-path pkgs/atlas-search/Cargo.toml -p atlas-search serve_path_carries_occurrence_attribution_over_the_wire.

    The test boots loopback HTTP serves over a production-shaped shard and file-backed source registry, submits an FTS-only job, then GETs /v1/search/jobs/{job_id}/chunk/7. Wired JSON asserts occurrences[0].root_id == "repo", source == "repo@abc:infra/dns/a.yaml", and shard atlas-core-internal-work-01. With the same shard and no registry, the same occurrence is returned with no root_id key (including nowhere in the serialized body).

    Verification run: https://github.com/dezren39/fleet/actions/runs/45929070341 (1 passed, 0 failed). PR was refreshed against current main and reported CLEAN/MERGEABLE immediately before merge.

  20. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    🤖 Agent note · triage revalidated — phase 1 slice merged; programme remains active

    • Agent: repo-worker-code, lane code-f; queue task 25986
    • Fresh checks (2026-11-27): atlas: provenance registry (chunk occurrences), content-addressed extracts, multi-DB vector resolution #3125 remains OPEN. Slice-8 PR feat(atlas-search): serve-path proof of occurrence-to-root attribution (#3125 slice 8) #14545 is MERGED (merge commit de7a873235c081303f274da8e5db60a93a9ec434, 02:41Z). Hatch-personal phase issues Dependency Dashboard #24 (phase 2) and Bump build/buck/preludes/buck2-prelude from d956689 to ad0d082 #25 (phase 3) remain OPEN; chore(deps): update checkmarx/ast-github-action digest to 12fb485 #26 (contingent phase 4) remains OPEN.
    • Verdict / route: atlas: provenance registry (chunk occurrences), content-addressed extracts, multi-DB vector resolution #3125 remains the Atlas programme tracker; the concrete phases are correctly tracked in dezren39/hatch-personal. No duplicate code-repo implementation task is warranted. Keep atlas: provenance registry (chunk occurrences), content-addressed extracts, multi-DB vector resolution #3125 open until the remaining phases are resolved; re-check phase 4 against its contingency before treating it as required.
    • Evidence: fleet gh pr view 14545 --repo developing-today/code; fleet gh issue view 24/25/26 --repo dezren39/hatch-personal; doc/fleet-schedule-registry.md is unrelated.
  21. dezren39
    removed
    queue/claimedQueue worker lifecycle state
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/infraInfrastructure, deployment, and operationseffort/lLarge: multi-day or open-ended; expect staged check-insepic/atlasEpic: atlas - all issues of this effort carry itepic/atlas-programReprioritization program epic (2026-11-12)kind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/humanFiled directly by a humanstatus/in-progressQueue worker lifecycle statetask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      • Atlas programNo due date

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.