GeezerVison is showing github.com — impl(atlas): recurring ingestion sweep runner + guardrail monitor + plan-headroom reporting (#6019) · Issue #7969 · developing-today/code
impl(atlas): recurring ingestion sweep runner + guardrail monitor + plan-headroom reporting (#6019) #7969DescriptionImplementation 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. Activitydeveloping-today commented on Nov 9, 2026 dezren39 commented on 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).
- Issue impl(atlas): recurring ingestion sweep runner + guardrail monitor + plan-headroom reporting (#6019) #7969 OPEN, no hard-stop labels. Work kind: implementation (small_fix packet class), priority/normal (default band), effort/l — labels applied with this note (kind/feature, priority/normal, effort/l added; the issue previously carried only epic/atlas-program).
- Gate check (fresh gh, this shift): design(atlas): secret-tier local embedder — model selection and fleet-hardware evaluation (secret text never leaves the fleet) #6059 (secret-tier hold) CLOSED, design(atlas): staging-shard ingest gate — write → classify → dedup → provenance-check → publish #6057 (promotion gate) CLOSED, design(atlas): delta-only ingestion + offset embeds — land only changes; span-anchored chunks with non-doubling joins #6028 (delta protocol) CLOSED, design(atlas): semi-automated ingestion operations — source set, usefulness filter, disk/IO + plan-spend guardrails #6019 (parent design, PR doc(atlas): parent ingestion-operations design record for #6019 #7968) CLOSED. The build is unblocked.
- One gate remains, and it binds only the last step: creating or enabling any production schedule needs Drew's explicit go-ahead on this issue first (per the issue body). That does not block building and testing the runner.
- First concrete step for the follow-on: verify the live Turso usage fields for read/write deltas (design S8 open question a), then build the sweep runner skeleton with per-(source class, host) locking and the S2 usefulness filter with rejection logging. Acceptance: the design record's runner + guardrail monitor + reporting behavior, tested, with no schedule enabled.
- Follow-on: implementation packet enqueued as task 20051 (queue repo-health-code-pilot, dedupe repo-health:v1:fix:developing-today/code:issue:7969), carrying the schedule-enablement gate in its body. Completing task 18557 as triaged naming task 20051.
dezren39 commented on Nov 17, 2026
Agent note — task 20051 picked up (lane any-l, 2026-11-17)
State: claimed / in-progress — revalidated fresh this claim.
- Issue impl(atlas): recurring ingestion sweep runner + guardrail monitor + plan-headroom reporting (#6019) #7969 OPEN, effort/l, no hard-stop labels. All named gates verified CLOSED by triage task 18557 and re-confirmed in the packet: design(atlas): secret-tier local embedder — model selection and fleet-hardware evaluation (secret text never leaves the fleet) #6059, design(atlas): staging-shard ingest gate — write → classify → dedup → provenance-check → publish #6057, design(atlas): delta-only ingestion + offset embeds — land only changes; span-anchored chunks with non-doubling joins #6028, design(atlas): semi-automated ingestion operations — source set, usefulness filter, disk/IO + plan-spend guardrails #6019 (design record on main: doc/2026-11-09T05-12-00Z_design_atlas_ingestion_operations/).
- The one Drew gate binds only schedule enablement: no production schedule will be created or enabled in this work.
- Scope for this claim (the triage note's first concrete step, built as the runner core in atlas-core): a
sweep module 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 an atlas-sweep CLI bin over it and tests.
- Follow-on after this core: live source adapters (boot/session/chat/statistics/reports discovery), the §8(a) live Turso usage-field verification, and embedding-ledger (design(atlas): embedding cost ledger — per-batch token/$ accounting with a delta reuse-ratio alert #6058) integration — to be enqueued as a named follow-on task when this task completes as pr_opened.
dezren39 commented on Nov 22, 2026
Parked task 20732 with the per-result Turso metering transport slice pushed to canonical draft PR #12301 at 7949968ad2. The optional PipelineTransport::pipeline_metered returns unknown meters for transports without support; HttpTransport parses documented integer rows_read/rows_written fields while preserving existing row/error behavior and result alignment. Verification: atlas-core library tests 157/157, format check and diff check pass; PR remains OPEN/DRAFT and GitHub reports no checks.
Resume when sweep execution has a concrete Turso-owned statement path to attribute to Measurements, or a real source-range run contract identifies the target statements. Until then, do not sum general retrieval/manifest traffic into sweep metrics. No production schedule, promotion, or live writes. dezren39 commented on Nov 24, 2026 Lane any-n (task 20732) re-verified the Turso usage field as the sweep's measurement input.
Live check (read-only token minted via turso db tokens create atlas --read-only -e 1d, one SELECT COUNT(*) FROM sqlite_master through /v2/pipeline, 2026-11-24): each result carries rows_read and rows_written as per-statement counters next to affected_row_count, query_duration_ms and replication_index. Observed: rows_read=1, rows_written=0. The field names match parse_pipeline_response in turso.rs.
Design S8(a) is closed for field names. Per-run attribution still needs a sweep-owned statement call site that sums those counters per run; none exists yet (see PR #12301). No production schedule was created or enabled. developing-today-fleet commented on Nov 26, 2026 🤖 Agent note · handed off
- Agent: fleet monitor
- Session / ID: task 20732 · repo-fleet-monitor run 2026-11-26 05:14 CST
- Found via: monitor reconciliation
- Task: Claim evaporated — the holding run ended without complete/park/block and the lease expired; task 20732 is queued unclaimed. Checkpoint stage named in task progress: resume-investigate. Labels reset to the truth: queue/queued + status/needs-triage.
- Expectation: next claiming lane resumes from the named checkpoint stage
- Links: task 20732
developing-today-fleet commented on Nov 26, 2026 dezren39 commented on Nov 26, 2026
Lane DE (task 20732) shepherd re-verification, 2026-11-26:
- Issue impl(atlas): recurring ingestion sweep runner + guardrail monitor + plan-headroom reporting (#6019) #7969 OPEN; labels kind/feature, status/parked, queue/parked, priority/normal — no held/user/do-not label, no live competing claim (prior lanes parked/handed off; fleet monitor bound this task to PR feat(atlas): add sweep discovery adapters and staging #12301 as pr-bound-shepherd: review CI, merge when green, do NOT re-implement).
- PR feat(atlas): add sweep discovery adapters and staging #12301: OPEN/DRAFT, head 7949968, 8 files +1993/-51, 10 commits. Compare vs main: diverged — ahead 10, behind 5332. Mergeable UNKNOWN. Only check: Proof SKIPPED — no green CI. Not mergeable under verify-then-merge; do not merge in this state.
- Prior verified evidence on this PR stands (atlas-core lib tests 157/157, fmt/diff checks pass, five fixture adapters through staging, Turso per-statement rows_read/rows_written field names verified live read-only 2026-11-24, S8(a) closed for field names).
- Blocker unchanged: no sweep-owned Turso statement path exists (staging is local SQLite; sweep Measurements are caller-supplied), so per-run Turso attribution cannot be established and S5 percentages cannot be relied on yet.
Parked task 20732 with non-person resume condition: a sweep-owned Turso pipeline call or a source-range run contract identifies the exact target statements; then wire only those per-result meters into run Measurements, add tests, rebase/refresh PR #12301 onto current main, and shepherd to green CI before merge. No production schedule, promotion, or live writes.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|