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 — feat(atlas): ingestion sweep runner core — filter, guardrails, headroom, runbook state (#7969) by dezren39 · Pull Request #11210 · developing-today/code

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

First implementation slice for #7969 (design: doc/2026-11-09T05-12-00Z_design_atlas_ingestion_operations, parent #6019). The issue stays open: live source adapters, staging-shard landing, and the §8(a) Turso verification are the follow-on slice (enqueued as a separate queue task).

What this PR builds

A new atlas_core::sweep module plus the atlas-sweep operator CLI — the deterministic core of the sweep runner:

  • §2 usefulness filter: the source-class table (boot-records, session-logs, chat-logs, statistics, reports, code-repo) with each class's trigger and question; candidates are accepted / rejected / held with manifest-shaped records {batch_id, source_class, source_ref, reason_code, bytes, at} and the closed reason-code set (no-question, duplicate-content, oversize, secret-tier-held, superseded-version). Evaluation order follows the design: oversize is never partially read, secret-tier items are held (never staged, never sent to a hosted embedder), duplicates reject against the landed content-address set, off-allowlist chat is absence (skip, no record), partial boot segments and unfinished sessions are held for re-offer.
  • §4 guardrail monitor: evaluation over the run's measurement points at the design's initial-slot thresholds — source space low (pause, guardrail/src-space) and critical (abort, guardrail/src-space-critical), I/O pressure throttle with the guardrail/src-io alert on the second consecutive throttled run, staging space (guardrail/stg-space), and target write burst (guardrail/tgt-burst, pauses the class). No guardrail deletes data, skips the manifest, or promotes a partial batch.
  • §5 plan-headroom accounting: the full report-row shape (run/batch/class, item and byte counts, embedding-ledger reference fields, target usage deltas, envelope percentages, projected days to ceiling, guardrail events, pause state). Alert rules are the design's complete set: 70%-within-180-days projection surfacing, plan/headroom-80, plan/ceiling-stop at 95% or a ≤30-day projected crossing (pauses the runner's class; resuming is a human decision), and plan/spend-anomaly at 2× the trailing median. Envelope quotas and projections are caller-supplied inputs — this code invents no plan numbers (the plan is a human-set constant; design(atlas): storage growth model — churn × retention simulation calibrating v1 retention defaults #6061 owns the growth model).
  • §6 runbook state: one lock per (source class, host) with overlap-skip and stale-lock takeover after 2 h; operator actions pause-class, resume-class, run-once, dead-letter list|retry|drop (3 failure strikes across runs dead-letters an item), and report --run|--cycle over persisted report rows. Landing is idempotent by content address; the runner never promotes (the design(atlas): staging-shard ingest gate — write → classify → dedup → provenance-check → publish #6057 gate's job) and never deletes.

Not in this PR (follow-on)

Live discovery adapters per class, landing into the staging shard via stage.rs, the #6058 ledger-row reference at embed time, host measurement probes, and §8(a) — verifying the live Turso usage fields for read/write deltas before §5 percentages are relied on. No schedule is created or enabled (Drew-gated on #7969).

Tests

  • 8 new unit tests: filter order + closed reason set, the per-class design table, guardrail thresholds (each rule), the headroom alert set, run-once end-to-end (records, counts, report row, duplicate on re-run), pause/overlap/dead-letter behavior, ceiling-stop pausing the class, lock staleness takeover.
  • Full cargo test -p atlas-core: all suites pass (137 lib tests + integration suites).
  • CLI smoke-tested: pause-class/resume-class, run-once over a JSON request (sparse candidate objects accepted via serde defaults), report --run returns the persisted row.

Task 20051, lane any-l.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
repo-worker-tmp-code-b
feat(atlas): ingestion sweep runner core — filter, guardrails, headro…
f6af76e
…om, runbook state (#7969)

Implements the deterministic core of the #6019 design record (doc/2026-11-09T05-12-00Z_design_atlas_ingestion_operations) in atlas-core::sweep, with the atlas-sweep operator CLI:

- S2 source-class table + usefulness filter emitting manifest-shaped records with the closed reason-code set; secret-tier items held (never staged), oversize rejected unread, duplicates rejected against the landed set, per-class tests (boot/session/chat/statistics/reports/code-repo).

- S4 guardrail evaluation at the design initial-slot thresholds (src space pause/abort, io throttle with second-run alert, staging space, write burst) with named alerts.

- S5 plan-headroom accounting: full report-row shape; 70% projection surfacing, 80% alert, 95%/30-day ceiling stop, spend anomaly — envelope and projections are caller-supplied (no invented plan quotas).

- S6 runbook state: per-(class,host) lock with overlap-skip and stale takeover, pause/resume, 3-strike dead-letter with retry/drop, cycle report rows; run-once over adapter-supplied candidates. The runner never promotes, never deletes, and creates/enables no schedule (Drew-gated on #7969).

Follow-on (separate task): live source adapters, S8(a) live Turso usage-field verification, staging-shard landing via stage.rs, and the #6058 ledger reference.
@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 10:13
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T10:13:46.984685Z
We couldn’t complete this review. Comment @codex review to try again.
f6af76e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 790cee41-467f-495a-ac97-0f73783337f9
Commits

Reviewing files that changed from the base of the PR and between 19bccbd and f6af76e.

Files selected for processing: 3

  • pkgs/atlas-search/crates/atlas-core/src/bin/atlas-sweep.rs
  • pkgs/atlas-search/crates/atlas-core/src/lib.rs
  • pkgs/atlas-search/crates/atlas-core/src/sweep.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 merged commit d94dfed into main Nov 17, 2026
1 check passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/20051-7969-atlas-sweep-runner branch November 17, 2026 10:15
@dezren39 dezren39 mentioned this pull request Nov 17, 2026
impl(atlas): recurring ingestion sweep runner + guardrail monitor + plan-headroom reporting (#6019) #7969
Open
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
@dezren39 dezren39 mentioned this pull request Nov 24, 2026
AUDIT-7 Lane 4 — MERGED-PR-AUDIT: merged PRs since 2026-10-23 vs their spawning issues #13879
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.