Skip to content

feat(atlas): add sweep discovery adapters and staging - #12301

Merged
developing-today-fleet[bot] merged 11 commits into
mainfrom
queue/20732-7969-atlas-sweep-live-adapters
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 11 commits into
mainfrom
queue/20732-7969-atlas-sweep-live-adapters

Conversation

@dezren39

@dezren39 dezren39 commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixture-backed Atlas sweep discovery and staging across boot records, session logs, chat exports, statistics reports, and final report files.

  • Discovery adapters classify candidates for the existing deterministic filter; secret, partial, oversized, off-allowlist, and symlink cases are not read/landed.
  • run_once_with_staging stages accepted candidates by content address before sweep state persists their hashes. A failed stage leaves state retryable; a repeated successful run emits duplicate-content and does not add another staging row.
  • Completed run manifest decisions are persisted append-only in sweep state.
  • A supplied existing design(atlas): embedding cost ledger — per-batch token/$ accounting with a delta reuse-ratio alert #6058 embedding-ledger row is checked against the documented schema and batch identity; the sweep report carries its reference and measured embedding fields. The runner does not create a local substitute ledger row.
  • Read-only host probes sample source/staging filesystem capacity at both run boundaries and report the conservative minimum free-space sample, plus Linux I/O wait across the run window. Target usage deltas remain caller-supplied; the verified Turso usage API is period-aggregate only.

Promotion and deletion remain out of scope.

Evidence

  • cargo test -p atlas-core --lib — 153 passed.
  • Focused sweep_adapters tests — 8 passed; sweep_probe tests — 2 passed; ledger validation/report tests included in full suite.
  • cargo fmt --all -- --check and git diff --check passed.
  • cargo clippy -p atlas-core --all-targets -- -D warnings remains unverified: broker cache contains dependencies built by rustc 1.99.0, while current rustc is 1.99.1. No shared build artifacts were cleaned.

Remaining #7969 acceptance

No production schedule, promotion, or live writes were performed. This PR does not close #7969.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

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: fa32ff26-9c4a-4520-8976-6c642fda574a
  • 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

@dezren39

Copy link
Copy Markdown
Member Author

Program tending — stalled PR check-in (tracking: #1352)

  • No activity for 5 day(s); last update 2026-11-22T10:00:06Z.
  • Waiting on: draft — waiting on its author.
  • Next step: mark the PR ready for review, or post what the draft is waiting on.

@developing-today-fleet

Copy link
Copy Markdown
Contributor

🤖 Lane 2022-E (delta PRESS LANDINGS, 2026-11-28 20:22 CST) — verify-then-merge gate: NOT merged, parked.

Fresh gate re-read by this lane via gh api:

  • PR OPEN, draft, head 7949968a (exact head checked).
  • Verification: repos/developing-today/code/actions/runs?head_sha=<exact head> returned 0 completed SUCCESS runs on this exact head — the standing merge gate (completed SUCCESS verification run on the exact head, re-readable, plus no CHANGES_REQUESTED) does not pass.
  • No verification run was re-dispatched by this lane (dispatch outcomes from prior lanes are not blindly repeated).

Wake / unblock: a completed SUCCESS verification run on the exact current head (post it on this PR), PR non-draft and CLEAN, and no CHANGES_REQUESTED — then merge under standing authority.

@dezren39
dezren39 force-pushed the queue/20732-7969-atlas-sweep-live-adapters branch from 7949968 to 7949d44 Compare November 30, 2026 05:54
@developing-today-fleet

Copy link
Copy Markdown
Contributor

Lane 2322-M (delta PRESS draft-PR shepherd, 2026-11-29) — rebased, verified, merging.

Marking ready and merging under standing merge authority. Key: 2322-M

@developing-today-fleet
developing-today-fleet Bot marked this pull request as ready for review November 30, 2026 05:57
@developing-today-fleet
developing-today-fleet Bot merged commit 7ed58d9 into main Nov 30, 2026
3 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the queue/20732-7969-atlas-sweep-live-adapters branch November 30, 2026 05:57
dezren39 pushed a commit that referenced this pull request Nov 30, 2026
PR #12301 (atlas sweep adapters) added libc = "0.2" to atlas-core's
manifest (pkgs/atlas-search/crates/atlas-core/Cargo.toml:25) after the
lock was last regenerated (#15653, 2026-11-30T00:51Z), so the fleet
lock guard on main failed at head 7ed58d9: cargo metadata --locked
refused with 'cannot update the lock file ... --locked was passed'
(run 46363126768, fleet-smoke).

Fix per the guard's own prescription: cargo update --workspace
--manifest-path pkgs/fleet/Cargo.toml. The resulting diff is exactly
the one missing edge: atlas-core -> libc (libc was already a locked
package; 0 packages added/changed).

Verified (cargo 1.99.1, the workspace pin): control run on the stale
lock reproduces the exact CI error; on the regenerated lock the
--locked freshness check passes (residual offline-only failure is an
uncached-crate download, not lock staleness), and a repeat
cargo update --workspace --offline reports 'Locking 0 packages'.

Lane 2352-H (bravo SUSTAIN). Closes #17087
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

impl(atlas): recurring ingestion sweep runner + guardrail monitor + plan-headroom reporting (#6019)

1 participant