GeezerVison is showing github.com — design(atlas): staging-shard ingest gate — write → classify → dedup → provenance-check → publish · Issue #6057 · developing-today/code
design(atlas): staging-shard ingest gate — write → classify → dedup → provenance-check → publish #6057DescriptionParent: #6019 (semi-automated ingestion operations). Research source: prior-art doc ~/workspace/scratch/atlas-ingestion-brief-2026-11-04/prior-art-research.md (2026-11-04). Follow-up 38 (Cluster 7). Builds on the staging tier #5669 (merge-on-close promotion exists today).
Finding (research, in substance)
lakeFS's write-audit-publish pattern maps exactly onto Atlas's needs: ingest onto a staging branch/shard, validate, publish to the live set only if checks pass. The gate sequence per batch:
- Write to a staging shard (never directly to the searchable corpus).
- Classify — classification scan (family under task(atlas): classification revalidation scan — verify nothing sensitive sits at the wrong tier #6021) assigns/verifies tier before anything lands.
- Dedup — exact + near-duplicate edges recorded (ingest-time dedup pipeline, Atlas search: Jaccard as a third signal (rescore + ingest dedup); SPLADE as a triggered follow-on #5733 family).
- Provenance-check — every chunk carries a parseable source mark (sibling grammar design under atlas ingestion program: semi-automated updates, versioning, provenance, feedback — long-term design + tasks (2026-11-04 brief) #6018) + attestation (sibling under design(atlas): semi-automated ingestion operations — source set, usefulness filter, disk/IO + plan-spend guardrails #6019).
- Publish — promote to the live shard set; a failed batch never touches the searchable corpus, and retry is safe (content-addressed landing per atlas: provenance registry (chunk occurrences), content-addressed extracts, multi-DB vector resolution #3125).
Done looks like
A gate design: stage contracts, per-stage pass/fail semantics, failure/quarantine handling, publish atomicity against fan-out search (#5755).
Activitydeveloping-today commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 🤖 Agent note · done (triage)
Triage findings for issue #6057 (task 10423)
Verified current (2026-11-05, fresh gh reads): issue #6057 is OPEN, filed 2026-11-05T05:27:46Z, carrying only task/triage + queue/queued + area/infra + kind/design at claim time — no hard-stop labels (held, user/owned, do-not-merge, do-not-auto-edit), no competing PR or branch, and no other issue references issue #6057 yet (search of 6057 in:body returns nothing), so no duplicate or superseding work exists.
Routing: gate design whose stage contracts are defined by still-open sibling work. The five gate stages are each another family's contract, and every one of those families is still open (all verified fresh today):
- Write — staging tier issue atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core #5669 (OPEN,
status/needs-triage, queued): the foundation exists today (merge-on-close promotion), but its versioned schema/registry design has not been triaged yet; the gate's write contract lands on it.
- Classify — classification family under issue task(atlas): classification revalidation scan — verify nothing sensitive sits at the wrong tier #6021 (OPEN, queued): the revalidation scan that assigns/verifies tiers has not run; the gate's classify stage consumes its tier semantics.
- Dedup — ingest-time dedup under issue Atlas search: Jaccard as a third signal (rescore + ingest dedup); SPLADE as a triggered follow-on #5733 (OPEN): exact + near-duplicate edge recording is that family's work.
- Provenance-check — source-mark grammar is a sibling design under programme tracker issue atlas ingestion program: semi-automated updates, versioning, provenance, feedback — long-term design + tasks (2026-11-04 brief) #6018 (OPEN, parked,
work/assigned) and attestation a sibling under parent issue design(atlas): semi-automated ingestion operations — source set, usefulness filter, disk/IO + plan-spend guardrails #6019 (OPEN, kind/design); the chunk provenance registry is issue atlas: provenance registry (chunk occurrences), content-addressed extracts, multi-DB vector resolution #3125 (OPEN, priority/high).
- Publish — atomicity must be specified against fan-out search issue atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) #5755 (OPEN, queued).
Ordering recorded: the gate design pass on issue #6057 runs once the stage contracts it composes are at least drafted — staging tier issue #5669 triaged, classification semantics from issue #6021, provenance grammar/attestation from the issue #6018 / issue #6019 family — and its "done" deliverable stays as the body specifies (stage contracts, per-stage pass/fail semantics, failure/quarantine handling, publish atomicity against issue #5755). Drafting the gate before those contracts exist would invent per-stage semantics the sibling families are charged with deciding. No implementation issue is filed in this triage, and no code change is made; the issue stays open, labelled triaged + waiting-dependency to mirror this ordering. dezren39 commented on Nov 8, 2026 Atomicity correction (PR #7707 follow-up commit 3d3f996). Review of the first draft found that writing rows into an active shard and bumping its snapshot hash afterward does not prevent fan-out from observing rows mid-write. The revised record now requires immutable hidden candidate shards/occurrence overlays and one per-tier catalog commit as the visibility point; fresh fan-out pins the committed manifest generation once. Snapshot ids derive from committed manifests, not changing physical row counts. It explicitly does not claim a cross-tier transaction, and treats indefinite DO cache hits as potentially stale (separate #6666/#6805 freshness work). This is a required extension to #5669/#6666, called out as such rather than as existing behavior. dezren39 commented on Nov 17, 2026 agent-note:v1
Agent: repo-worker-code / any-f
state: done (triaged — deliverable landed, closing) (task 18434, lane any-f)
issue: #6057
Verdict: the design this issue asks for exists and is merged — closing as completed
Bulk-intake re-triage (2026-11-16 reload). Verified fresh 2026-11-17:
- The deliverable ("a gate design: stage contracts, per-stage pass/fail semantics, failure/quarantine handling, publish atomicity") was produced by task 12903 and landed as PR docs(atlas): staging-shard ingest gate design (#6057) #7707, MERGED 2026-11-16T10:57:47Z:
doc/2026-11-08T13-45-00Z_design_atlas_staging_shard_ingest_gate/ on main, including the atomicity correction follow-up (commit 3d3f996).
- The record covers all five stage contracts, the §4 pass/fail table, §5 quarantine handling, and §6 publish atomicity against the atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) #5755 successors (atlas shard consumer: live verification — parity, latency, token minting (follow-up of #5755 slice 1) #6662/atlas shard consumer: --expand hydration from tier content stores (follow-up of #5755 slice 1) #6664/atlas shard consumer: classification/date filters and FTS answer for shard fan-out (follow-up of #5755 slice 1) #6665/atlas shard consumer: serve-mode (fleet serve search role) and #5668 snapshot-id integration (follow-up of #5755 slice 1) #6666/atlas search worker: Cloudflare Worker + per-query Durable Object embedding/result cache over the shard fan-out (successor surface for #5755) #6788) — atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) #5755 itself closed 2026-11-07.
- Implementation is split per the record's §9: follow-on 1 (gate record + state machine) is tracked as feat(atlas): ingest gate record + state machine (follow-on 1 of #6057) #7709 (OPEN, against atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core #5669); the remaining follow-ons file against their siblings as those designs land, per the PR's stated split.
- Parent design(atlas): semi-automated ingestion operations — source set, usefulness filter, disk/IO + plan-spend guardrails #6019 is CLOSED. Siblings atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core #5669/task(atlas): classification revalidation scan — verify nothing sensitive sits at the wrong tier #6021/atlas ingestion program: semi-automated updates, versioning, provenance, feedback — long-term design + tasks (2026-11-04 brief) #6018 remain open as separate workstreams; they are not this issue's deliverable.
The stale review labels (status/needs-review, status:in-review, task/triage) are being removed with this close: the review they waited on is the merge of PR #7707.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|