Skip to content

design(atlas): chunk-boundary policy v2 — structural-first splitting per source type #6037

Closed

Description

@dezren39

Parent: #6028 (delta-only ingestion + offset embeds). Research source: prior-art doc ~/workspace/scratch/atlas-ingestion-brief-2026-11-04/prior-art-research.md (2026-11-04). Follow-up 4 (Cluster 1).

Finding (research, in substance)

RAG chunking evidence: fixed-size 256–512 tokens with 10–20% overlap is the baseline, but structural splitting (markdown headings, code definitions, log-entry boundaries) beats fixed and semantic splitting on technical corpora — authors already segmented the text. Recursive (paragraph→sentence→token) is the strong cheap default; semantic chunking costs an extra embedding pass, over-fragments, and benchmarks below recursive in comparison guides. Overlap past ~20% is mostly waste (index inflation + near-duplicate hits deduped at retrieval anyway). Sources: https://dev.to/dishant_sethi/rag-pipeline-chunking-strategies-split-documents-for-better-retrieval-aoe

Scope

  • Per-source-type policy: markdown/docs (heading structure), code (definition boundaries), logs (entry boundaries), chat/session stores (message/turn boundaries), fixed-window fallback where no structure exists.
  • Overlap defaults per type (structural boundaries need less), and how policy interacts with span reuse (a policy change re-chunks → which spans survive?).

Done looks like

A policy table per source type with splitter, size targets, overlap, and the migration note for existing chunks.

Activity

  1. added
    area/infraInfrastructure, deployment, and operations
    kind/designA design proposal (design-architect): multi-step, phased, decision-bearing
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor
  3. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

    Triage findings (verified fresh 2026-11-05)

  5. added
    status/triagedTriaged and routed (see agent note)
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 5, 2026
  6. 71 remaining items

  7. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · design record added

    The policy proposal is recorded in the dated design document and PR #7902.

    Decision: split by authored structure first (headings/paragraphs, code definitions, log records, and chat turns), aiming for 256–512 embedder tokens (aim 384, cap 512). Structural splitters use a 0–5% whole-unit overlap cap; the unstructured fixed-window fallback uses 10%. Do not default above 20%. The 10% fixed-window value is supported by #6039's experiment (200-word fixed windows, BM25, provisional golden set); 20% added about 12% index/embed cost over 10% without measured coverage gain. The lower structural cap, and code/chat size/overlap values, are proposals pending source-specific evaluation.

    Migration: keep current chunks immutable, build/evaluate a new generation before cutover, and do not assume old chunks/spans survive a policy change. #6038 supports vector reuse only when the full embedding-window text is byte-identical. Span identity, version anchoring, and old-to-new span mapping remain provisional pending open parent #6028 (and #6035); this record does not settle them.

    The cited scratch research brief was unavailable; the qualitative prior-art finding is preserved from this issue's body, with measured claims taken from landed #6038/#6039 reports. No chunker code or live data was changed.

  8. added this to the Atlas program milestone on Nov 12, 2026
  9. added a commit that references this issue on Nov 14, 2026
  10. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Triaged — already resolved: queue task 18429 (bulk-intake triage of issue #6037), Muse lane code-b, 2026-11-17.

    Fresh verification this shift: issue #6037 OPEN with status/triaged (triage of record already exists; no status/needs-triage, no hard-stop labels). Its deliverable — the chunk-boundary policy v2 design record (per-source-type policy table, migration note, span-reuse flagged provisional against parent #6028) — was produced by task 13045 and landed in PR #7902, MERGED 2026-11-14T21:43:42Z. Parent issue #6028 is now CLOSED, so the provisional flag's gate has also resolved on its own track.

    Verdict: the design work this issue asked for is done and merged; no follow-on packet is needed from this triage. Closing issue #6037 as completed with this evidence.

  11. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    status/triagedTriaged and routed (see agent note)
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/infraInfrastructure, deployment, and operationsepic/atlas-programReprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingstatus:donetask/fixhas a fix task queuedtask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions