Repository navigation
Done
Labels
app/atlasAtlas search (pkgs/atlas-search)effort/lLarge: multi-day or open-ended; expect staged check-insepic/atlas-programReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)queue/parkedQueue task is parked (waiting on CI, time, or an event)source/queue-workerFiled or worked by the queue/worker pilotstatus/parkedDeliberately paused with a recorded resume condition
Milestone
Description
Implementation follow-on to the #6019 parent design record (PR #7968, doc/2026-11-09T05-12-00Z_design_atlas_ingestion_operations/). Parent program: #6018.
Scope
Build the recurring Atlas ingestion sweep per the design record:
- Sweep runner: per-(source class, host) locking, event-driven drain + scheduled class slots (§6), discovery via the design(atlas): delta-only ingestion + offset embeds — land only changes; span-anchored chunks with non-doubling joins #6028 delta protocol, §2 usefulness filter with rejection logging (closed reason-code set), secret-tier hold until design(atlas): secret-tier local embedder — model selection and fleet-hardware evaluation (secret text never leaves the fleet) #6059 lands.
- Landing: content-addressed staging per atlas: provenance registry (chunk occurrences), content-addressed extracts, multi-DB vector resolution #3125/atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core #5669; promotion stays with the design(atlas): staging-shard ingest gate — write → classify → dedup → provenance-check → publish #6057 gate — the runner never promotes and never deletes.
- Guardrail monitor (§4): source/target measurement points, initial-slot thresholds, throttle/pause/abort behaviour, named alerts.
- Reporting (§5): per-run/per-source rows against the Turso scaler plan envelope, embedding spend referenced from the design(atlas): embedding cost ledger — per-batch token/$ accounting with a delta reuse-ratio alert #6058 ledger (emit ledger rows in its schema if the ledger is not yet built), 70%-projection surfacing (design(atlas): storage growth model — churn × retention simulation calibrating v1 retention defaults #6061 rule), 80% alert, 95% ceiling stop.
- Operator actions (§6): pause-class, resume-class, run-once, bounded backfill, dead-letter handling, run/cycle reports.
Gates
- Creating or enabling any production schedule from this issue needs Drew's explicit go-ahead in this issue first (the design record creates no schedule).
- Verify the live Turso usage fields for read/write deltas before relying on §5 percentages (design §8 open question a).
Refs #6019 (design), #6018 (program). Filed by queue task 14270's follow-up audit (lane code-l): title search found no existing ticket for the sweep runner; sibling designs carry their own follow-ons.
Acceptance criteria
- The recurring ingestion sweep runner, guardrail monitor, and plan-headroom reporting are built per the design(atlas): semi-automated ingestion operations — source set, usefulness filter, disk/IO + plan-spend guardrails #6019 design sections 3-6 and linked here.
- The runner never promotes and never deletes; promotion stays with the design(atlas): staging-shard ingest gate — write → classify → dedup → provenance-check → publish #6057 gate.
- No production schedule is created or enabled without Drew's explicit go-ahead recorded on this issue (design gate, preserved).
Metadata
Metadata
Assignees
Labels
app/atlasAtlas search (pkgs/atlas-search)effort/lLarge: multi-day or open-ended; expect staged check-insepic/atlas-programReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)queue/parkedQueue task is parked (waiting on CI, time, or an event)source/queue-workerFiled or worked by the queue/worker pilotstatus/parkedDeliberately paused with a recorded resume condition
Activity
developing-today commentedon Nov 9, 2026
CODE-2359
dezren39 commentedon Nov 17, 2026
agent-note:v1
state: triaged
task: 18557 (queue repo-health-code-pilot, worker repo-worker-code, lane code-d)
Triage verdict for issue #7969: TRIAGED — implementation-ready; every named gate verified fresh this shift (2026-11-17).
dezren39 commentedon Nov 17, 2026
Agent note — task 20051 picked up (lane any-l, 2026-11-17)
State: claimed / in-progress — revalidated fresh this claim.
sweepmodule implementing the design's deterministic core — §2 source-class table + usefulness filter emitting manifest-shaped records with the closed reason-code set (secret-tier items held, never staged), §6 per-(source class, host) locking with overlap-skip, §4 guardrail evaluation (initial-slot thresholds, pause/abort/throttle, named alerts), §5 plan-headroom accounting (report-row shape, 70% projection surfacing, 80% alert, 95% ceiling stop, spend anomaly) as pure functions over supplied envelope numbers (no invented plan quotas), §6 operator actions (pause-class / resume-class / run-once / dead-letter) with persistent state — plus anatlas-sweepCLI bin over it and tests.Merge pull request #11210 from developing-today/queue/20051-7969-atla…
164 remaining items
developing-today-fleet commentedon Nov 30, 2026
Atlas sweep — scheduled-classes run, 2026-11-30 08:14:25 CST (14:15Z).
Classes run: chat-logs, statistics — both NOT RUN. Items seen/accepted/rejected/held: 0/0/0/0 per class; rollup 0. No batch, no manifest, no cursor advance. No promotion, no deletion, no operator actions.
Blocker (unchanged, deployment only): PR #12301 (sweep discovery adapters + staging) is MERGED on main (verified this run: mergedAt 2026-11-30T05:57:38Z), and the atlas_core::sweep core (PR #11210) is merged — but no built
atlas-sweepbinary is deployed on this seat (~/tools/binhas only atlas-search / atlas-search-py), so no discovery, staging, or cursor work can execute. Chat allowlist not read; off-allowlist channels not read at all (absence, not rejection). No sweep-owned Turso statement path ran → per-run Turso deltas and envelope percentages unavailable (§5), not inferred from aggregates. No secret-tier items encountered; nothing sent to a hosted embedder.Section 4 guardrails (this seat, sampled this run): src free 315,598,540,800 B (~65% free) — above pause/abort slots; io_wait 13.77% (2 s sample) — below >25% throttle slot; staging free same volume — above <10 GiB / batch×3 (projected 0). No guardrail events; no class paused by this run. tgt rows unavailable (no statement path).
Next unblock: deploy the atlas-sweep binary built from main (post-#12301) to this seat. Full run record: ~/workspace/atlas-sweep/runs/2026-11-30T08-14-25-CST_scheduled-classes-run.md. No live production ingestion is claimed — none happened.
developing-today-fleet commentedon Nov 30, 2026
Atlas sweep — event-driven drain run 2026-11-30T08:21:39 CST (14:22:20Z), htch-runtime
Classes (boot-records, session-logs, reports): seen 0 / accepted 0 / rejected 0 / held 0 — not run.
Blocker persists (deployment only, unchanged): PR #12301 verified MERGED 2026-11-30T05:57:38Z (merge commit 7ed58d9) and PR #11210 MERGED, so adapters/staging/core are on main, but no
atlas-sweepbinary is deployed on this seat (~/tools/bin/atlas*= atlas-search only). No discovery, manifest, cursor advance, promotion, or deletion occurred; no live production ingestion is claimed.Guardrails: src_free/stg_free 315,525,398,528 bytes (~65% free, no src-space/stg-space event); io_wait 1.0% single 2s sample (below 25% throttle, no src-io event); tgt rows unavailable — no sweep-owned Turso statement path ran, so §5 envelope % unavailable (not fabricated). Unclosed boot segments >24h scan not performed (requires deployed binary).
Next unblock: deploy the atlas-sweep binary built from main (post-#12301) to this seat.
Full run record: ~/workspace/atlas-sweep/runs/2026-11-30T08-21-39-CST_drain-run.md
developing-today-fleet commentedon Nov 30, 2026
Atlas sweep drain — 2026-11-30 08:51 CST run (job atlas-sweep-drain): blocker persists, deployment only. Verified firsthand this run via fleet gh: PR #12301 MERGED 2026-11-30T05:57:38Z (merge commit 7ed58d9, adapters + staging on main), PR #11210 MERGED, this issue CLOSED. Still no atlas-sweep binary on this seat (~/tools/bin holds only atlas-search / atlas-search-py; ~/workspace/atlas-sweep/ holds only runs/) — no discovery, staging, manifest, or cursor work ran; boot-records / session-logs / reports all 0 seen / 0 accepted / 0 rejected / 0 held. Guardrails nominal: src/stg free 315,436,527,616 B (~65.3%), io_wait 2.49% single sample, no pause/throttle/abort events. Turso per-run deltas and envelope % unavailable — no sweep-owned SQL-over-HTTP statement path ran (§5/§8(a); not fabricated). No promotion, deletion, or production-write workaround. Next unblock: deploy the atlas-sweep binary built from main (post-#12301) to this seat. Run record: ~/workspace/atlas-sweep/runs/2026-11-30T08-51-39-CST_drain-run.md
developing-today-fleet commentedon Nov 30, 2026
Atlas sweep drain run 2026-11-30 09:06 CST (15:07Z) — blocker persists (deployment only), no ingestion.
atlas-sweepbinary deployed on this seat (onlyatlas-searchpresent); no deployed runner/state-dir, so no lock taken and no live discovery could execute. No local build attempted (CI-first / remote-build rule).atlas-sweepbinary built from main (post-feat(atlas): add sweep discovery adapters and staging #12301) to this seat.~/workspace/atlas-sweep/runs/2026-11-30T09-06-39-CST_drain-run.mdon the seat.developing-today-fleet commentedon Nov 30, 2026
Atlas sweep — weekly cycle report (§5), first cycle — Mon 2026-11-30 09:11 CST. Full record:
~/workspace/atlas-sweep/cycle-reports/2026-11-30_cycle-report.mdon the seat; per-run rows:~/workspace/atlas-sweep/runs/(63 records).Cycle window: Sun 2026-11-29 20:21 CST → Mon 2026-11-30 09:06 CST (~12.75 h — first cycle; schedules created 2026-11-29, not a full week). Runs rolled up: 51 drain + 12 scheduled-classes, host htch-runtime.
Per-class totals vs Turso scaler envelope ($24.92/mo yearly): every class — boot-records, session-logs, reports, chat-logs, statistics — 0 seen / 0 accepted / 0 rejected / 0 held, 0 bytes read/staged, $0 embed spend. Envelope percentages (storage/reads/writes/db), tgt_read_rows/tgt_write_rows, and db_count_after are UNAVAILABLE: no sweep-owned Turso SQL-over-HTTP statement path ran in any run (§5/§8(a)); nothing derived from period aggregates or cumulative counters, nothing fabricated. Which source is eating the plan: none — zero ingestion ran.
Alert rules: 70%-in-180d headroom warning — not evaluable (no envelope position/projection exists). plan/headroom-80 — not triggered (no line has a measurement). plan/ceiling-stop — not evaluable, no pause taken, no schedule edited. plan/spend-anomaly — embed $0 all runs, no anomaly; write side not computable (also guardrail/tgt-burst).
Guardrails (§4): no events. src/stg free 69.5% → 65.3% across the cycle (always above pause/abort slots); io_wait samples mostly 0.5–21% with two transient single samples >25% (26.43%, 28.86%) that were not sustained and do not count as throttled runs; oversize rejects 0. Pause state: no (class, htch-runtime) pair paused.
Blocker: code side cleared mid-cycle — PR #12301 MERGED 2026-11-30T05:57:38Z (7ed58d9), #7969 CLOSED, PR #11210 core merged 2026-11-17 (all re-verified firsthand this run via fleet gh). Sole remaining blocker is deployment: no
atlas-sweepbinary on this seat (only atlas-search/atlas-search-py in ~/tools/bin). Next unblock: deploy the binary built from main (post-#12301) to this seat. No live production ingestion is claimed — none happened. No promotion, deletion, plan change, or schedule edit performed.developing-today-fleet commentedon Nov 30, 2026
Atlas sweep — scheduled-classes run 2026-11-30 09:14 CST: blocker unchanged (deployment only).
developing-today-fleet commentedon Nov 30, 2026
Atlas sweep drain run — 2026-11-30 09:21:39 CST (event-driven classes: boot-records, session-logs, reports)
Outcome: NOT RUN — no ingestion. 0 seen / 0 accepted / 0 rejected / 0 held across all three classes; no batch, no manifest, no cursor advance, no promotion, no deletion.
Verified firsthand this run (fleet gh, rc=0):
Sole remaining blocker (deployment, unchanged): no
atlas-sweepbinary on this seat (htch-runtime) —~/tools/binholds onlyatlas-search/atlas-search-py; no deployed runner/state-dir under~/workspace/atlas-sweep/. No local build attempted (CI-first rule).Guardrails this run: src_free_bytes 315,367,464,960 (~65.3% free) — no src-space event; src_io_wait_pct 19.77% single 2s sample — below the >25% sustained throttle slot, no throttle; stg_free same volume — no stg-space event; tgt_read/write rows UNAVAILABLE (no sweep-owned Turso SQL-over-HTTP statement path ran) — tgt-burst not computable, envelope % unavailable per §5/§8(a), nothing fabricated.
Next unblock: deploy the
atlas-sweepbinary built from main (post-#12301, 7ed58d9) to this seat. Full run record: ~/workspace/atlas-sweep/runs/2026-11-30T09-21-39-CST_drain-run.mddeveloping-today-fleet commentedon Nov 30, 2026
Atlas sweep drain follow-up — 2026-11-30T10:06:39 CST run (atlas-sweep-drain)
Blocker persists (deployment only): PR #12301 is MERGED (2026-11-30T05:57:38Z, merge commit 7ed58d9) so discovery adapters + staging are on main, but no atlas-sweep binary is deployed on this seat (htch-runtime) — only atlas-search / atlas-search-py in ~/tools/bin. No live ingestion ran: boot-records / session-logs / reports all 0 seen / 0 accepted / 0 rejected / 0 held; no manifest, no cursor advance, no promotion, no deletion. No sweep-owned Turso statement path ran, so per-run Turso deltas and envelope percentages are unavailable per design §5/§8(a) (not fabricated).
Guardrails this run: src/stg free 315,320,500,224 bytes on /home/hatch volume (483,165,974,528 total, ~65.3% free) — no src-space / stg-space events; single-sample io_wait ~21.3% — below the >25% sustained throttle slot, no throttle (not a sustained window, no ingestion ran); tgt rows unavailable.
Next unblock: deploy the atlas-sweep binary built from main (post-#12301) to this seat. Full run record: ~/workspace/atlas-sweep/runs/2026-11-30T10-06-39-CST_drain-run.md on the seat.
developing-today-fleet commentedon Nov 30, 2026
Atlas sweep drain — update for 10:21, 10:36 (owed) and 10:51 CST runs, 2026-11-30
Blocker persists (deployment only, unchanged):
atlas-sweepbinary on this seat (htch-runtime): onlyatlas-search/atlas-search-pyin ~/tools/bin; ~/workspace/atlas-sweep holds only runs/ + cycle-reports/, no runner/state-dir. No local build attempted (CI-first / remote-build rule).developing-today-fleet commentedon Nov 30, 2026
Atlas sweep drain run 2026-11-30 11:06 CST (htch-runtime): NOT RUN — deployment blocker persists. No atlas-sweep binary on this seat (only atlas-search/atlas-search-py in ~/tools/bin; no deployed runner/state-dir). Classes boot-records/session-logs/reports: seen 0, accepted 0, rejected 0, held 0; no batch/manifest/cursor advance; no promotion/deletion. Guardrails: src/stg free 313,696,186,368 B (~64.9% free), io_wait sample 12.2% — no events; tgt rows UNAVAILABLE (no sweep-owned Turso statement path ran, §5/§8a). PR #11210 MERGED and #7969 CLOSED re-verified this run; PR #12301 re-check hit fleet-gh egress errors (MERGED verified firsthand in the 10:51 run, merge commit 7ed58d9). Next unblock: deploy atlas-sweep binary built from main to this seat. Full record: ~/workspace/atlas-sweep/runs/2026-11-30T11-06-39-CST_drain-run.md
developing-today-fleet commentedon Nov 30, 2026
Atlas sweep drain run — 2026-11-30 11:21 CST (17:22Z), seat htch-runtime.
Blocker persists (deployment only, unchanged): no
atlas-sweepbinary deployed on this seat (~/tools/binhas onlyatlas-search/atlas-search-py);~/workspace/atlas-sweep/holds onlyruns/+cycle-reports/, no deployed runner/state-dir. No live ingestion ran; no production writes, promotion, or deletion performed.Re-verified firsthand this run via fleet gh: PR #12301 MERGED (mergedAt 2026-11-30T05:57:38Z, merge commit 7ed58d9); PR #11210 MERGED 2026-11-17T10:15:05Z.
Classes (event-driven): boot-records / session-logs / reports — seen 0, accepted 0, rejected 0, held 0 (not run — deployment gap). Unclosed boot segments >24h scan not performed (requires deployed binary). Guardrails: src/stg free 312,426,684,416 B (~64.7% of volume) — no src-space/stg-space events; io_wait sample 0.25% — no throttle; tgt rows + envelope % unavailable (no sweep-owned Turso statement path ran; not fabricated).
Next unblock: deploy the
atlas-sweepbinary built from main (post-#12301) to this seat. Full run record:~/workspace/atlas-sweep/runs/2026-11-30T11-21-39-CST_drain-run.mdon the seat.developing-today-fleet commentedon Nov 30, 2026
Atlas sweep drain run — 2026-11-30 11:36 CST (17:37Z), seat htch-runtime.
Blocker persists (deployment only, unchanged): no
atlas-sweepbinary deployed on this seat (~/tools/binhas onlyatlas-search/atlas-search-py; no deployed runner/state-dir in~/workspace/atlas-sweep/). No local build attempted (CI-first rule).Verified firsthand this run (fleet gh):
Run outcome: NOT RUN for all event-driven classes (boot-records, session-logs, reports) — seen 0 / accepted 0 / rejected 0 / held 0, no batch, no manifest, no cursor advance, no promotion, no deletion. Unclosed boot segments >24h scan not performed (requires deployed binary).
Guardrails: src_free_bytes 312,139,821,056 (~64.6% free of 483,165,974,528) — no src-space event; src_io_wait_pct 1.61% (2s sample) — no throttle; stg_free_bytes same volume — no stg-space event; tgt_read/write rows UNAVAILABLE (no sweep-owned Turso SQL-over-HTTP statement path ran; §5/§8(a) — not fabricated). Envelope % unavailable, #6058 ledger ref none invented.
Next unblock: deploy the atlas-sweep binary built from main (post-#12301, 7ed58d9) to this seat.
Full run record: ~/workspace/atlas-sweep/runs/2026-11-30T11-36-39-CST_drain-run.md
developing-today-fleet commentedon Nov 30, 2026
Atlas sweep drain run 2026-11-30 11:51:39 CST (17:52Z): NOT RUN — deployment blocker persists. Verified firsthand this run: PR #12301 MERGED 2026-11-30T05:57:38Z (merge commit 7ed58d9, adapters + staging on main); PR #11210 core MERGED; but no atlas-sweep binary is deployed on this seat (~/tools/bin holds only atlas-search / atlas-search-py; no runner/state-dir under ~/workspace/atlas-sweep/). Classes boot-records / session-logs / reports: seen 0 / accepted 0 / rejected 0 / held 0; no batch, manifest, cursor advance, promotion, or deletion. Guardrails: src_free 309,522,366,464 B (~64.1% free) — no src-space event; stg_free same volume — no stg-space event; src_io_wait ELEVATED (three consecutive 2s samples 52.96/49.12/47.61%) but no sweep load running, so no throttle applied and not a throttled run — src-io alert not triggered; tgt rows UNAVAILABLE (no sweep-owned Turso statement path ran; §5/§8(a) — envelope % unavailable, not fabricated). Next unblock: deploy the atlas-sweep binary built from main (post-#12301) to this seat. Full report: ~/workspace/atlas-sweep/runs/2026-11-30T11-51-39-CST_drain-run.md
developing-today-fleet commentedon Nov 30, 2026
Atlas sweep drain — 2026-11-30 12:06:39 CST run: NOT RUN, deployment blocker persists.
atlas-sweepbinary on this seat (htch-runtime):~/tools/binholds onlyatlas-search/atlas-search-py; no deployed runner/state-dir under~/workspace/atlas-sweep/(runs/ + cycle-reports/ only). No local build attempted (CI-first / remote-build rule).atlas-sweepbinary built from main (post-feat(atlas): add sweep discovery adapters and staging #12301) to this seat.developing-today-fleet commentedon Nov 30, 2026
Atlas sweep — scheduled-classes run, Mon 2026-11-30 12:14:25 CST (atlas-sweep-scheduled-classes)
Outcome: NOT RUN — no live ingestion. Classes chat-logs / statistics: 0 seen / 0 accepted / 0 rejected / 0 held each; no batch, no manifest, no cursor advance, no promotion, no deletion, no operator actions. Chat allowlist not read (discovery did not run; off-allowlist channels not read at all — absence, not rejection). This comment also covers the 11:14 CST scheduled-classes run, whose follow-up was owed after its fleet-gh egress failure.
Blocker (deployment only, unchanged), verified firsthand this run:
atlas-sweepbinary on this seat (htch-runtime): ~/tools/bin holds only atlas-search / atlas-search-py; ~/workspace/atlas-sweep/ holds only runs/ + cycle-reports/ — no deployed runner/state-dir, so no lock taken (not an overlap-skip). No local build attempted (CI-first / remote-build rule).Guardrails (§4, this seat): src_free 309,532,721,152 B (~64.1% free of 483,165,974,528 B) — no src-space / src-space-critical event; io_wait 7.89% / 14.47% / 7.07% (three 2 s samples) — below the >25% sustained throttle slot, no throttle, no src-io event; stg_free same volume — no stg-space event; oversize rejects 0; no class paused.
Turso (§5): no sweep-owned Turso SQL-over-HTTP statement path ran → per-run rows_read/rows_written deltas and envelope percentages UNAVAILABLE (not derived from period/cycle aggregates). Secret-tier: no items encountered; nothing sent to a hosted embedder; #6059 local-embedder route not exercised.
Next unblock: deploy the
atlas-sweepbinary built from main (post-#12301, 7ed58d9) to this seat, then the next scheduled-classes run can execute the merged adapters.Full record: ~/workspace/atlas-sweep/runs/2026-11-30T12-14-25-CST_scheduled-classes-run.md (seat-local).