GeezerVison is showing github.com — design(atlas): classification model — per-embed granularity, boundary-safe chunking, disclosure contexts · Issue #9096 · developing-today/code
design(atlas): classification model — per-embed granularity, boundary-safe chunking, disclosure contexts #9096Closed 4 / 54 of 5 issues completedClosed 4 / 54 of 5 issues completed DescriptionWorkstream D — Classification model: per-embed, granular, context-aware
Parent program: #8983 · Proto design §D · Related standing work: #8479 (secret-bearing rows in the production monolith — boundary remediation), #6052 (external-content ingestion zones), #6059 (secret-tier local embedder), #6021 (classification revalidation scan), #6041 (retention rule engine), the Presidio NER design (doc/2026-11-08T20-45-40Z_design_atlas_presidio_ner.md).
The model (Drew, 2026-11-12)
- Classification is per-embed, never per-file. A session transcript can move from trip planning to a deployment discussion mid-file. Chunking and classification together must respect content boundaries so a consumer permitted only the deployment half can receive those embeds — without leakage across the boundary, and without the lazy alternative of marking everything secret.
- Granularity axes the schema must express (fields under workstream C's doctrine;
sensitivity is a strict enum there):
- Disclosure is context-dependent, not just identity-dependent. The same searcher gets different result sets by surface: fleet task agents may see nearly everything; a result posted to a public surface (e.g. a GitHub comment) must be filtered to what is publicly allowed even when the searcher's own ceiling is higher. The design names the disclosure contexts (fleet-internal, hosted-per-user, public-surface, …) and the rule each applies — enforcement hooks land in workstream A (search) and G (query records carry the context).
- Classification labor model: fleet classifiers (human or agent) assign and refine classifications per embed over time under the current schema version (workstream C extras/optionality make this possible without schema rewrites); revalidation cadence per the existing design (
doc/2026-11-09T05-10-38Z_design_atlas_revalidation_cadence.md).
Acceptance
Sub-issuesCollapse Sub-issuesSub-issues4 of 54 of 5 Issues completedLoading 5 sub-issues Activitydeveloping-today commented on Nov 12, 2026 dezren39 commented on Nov 13, 2026 Amendment — Drew's directive, 2026-11-13 11:43 CST (Reports chat; verbatim staged at workspace/reporting-architecture-intake-20261113/sources/directive-2026-11-13-pages-comments-templates-graph.md). Amendment to the classification model; no new issue filed. Doctrine side on #9095; the same workflow is cited as a fixture on reporting C7 #9575.
Classification operations to design for:
- The unclassified-remainder sweep is the common case. Full re-embeds are rare (maybe once or twice a year at worst). The recurring job: keep all existing embeds, and classify the never-classified items stuck at private/secret with nothing known beyond maybe a file path and the date the embed was first done. For each such item, the classifier's inputs are: what kind of embedding it is, and a short list of associated issues, PRs, commits, files, and designs that were available when the item was captured (e.g. extracted from the backup set), plus links and link chains created for the item from any source. The model must specify what happens when even those inputs are absent — staying at the most-locked-down default is acceptable, silently guessing is not (per the strict-enum doctrine on design(atlas+pm): Metadata schema v1 + evolution doctrine — additive-only, extras, strict enums, breaking-change parking lot #9095).
- Relatedness windows for sweep context: the sweep also pulls all files highly related before/after a re-embed or reclassify/re-metadata pass, and all commits/issues/PRs touching the same code sections within a window (past day / week / month / quarter — probably quarter or month; at most once or twice a month) — these become classification context and link sources, not just reports.
- Cheap-model section review on schema change: going section by section with a fast, not-too-expensive model to review schema changes since the last loaded version and reclassify under the latest schema is this model's operating procedure (doctrine recorded on design(atlas+pm): Metadata schema v1 + evolution doctrine — additive-only, extras, strict enums, breaking-change parking lot #9095): per-embed granularity applies — chunk boundaries and the item's existing classification carry into the review as inputs, and a section whose schema didn't change is not reclassified by default.
- Metadata artifacts are classifiable content too: the
.json metadata files and their signature companions (.json.signature / .cert / .json.signed, see design(atlas+pm): Metadata schema v1 + evolution doctrine — additive-only, extras, strict enums, breaking-change parking lot #9095) land in the main store with content-hash IDs even when unsigned, and are themselves embeds/classification subjects — a signed assertion about an item should be findable from the item's classification neighborhood.
dezren39 commented on Nov 17, 2026 🤖 Agent note · triaged
- Agent: queue worker (repo-worker-code), lane any-h
- Session / ID: task 18844
- Found via: queue claim
- Verdict: atlas workstream D is a design task (kind/design, epic/atlas-program), routed as a scoped design packet under parent program epic: Atlas program — unified search and memory index over every corpus #8983.
- Enqueued: task 20295 (dedupe key repo-health:v1:fix:developing-today/code:issue:9096). The packet binds Drew's 2026-11-12 model directives as acceptance: classification is per-embed, never per-file; chunking respects content boundaries with no leakage and no lazy mark-everything-secret collapse; the granularity axes refine (not blindly replace) the existing access ladder shareable < personal < local-only < secret-bearing; disclosure is context-dependent per surface. It also requires the design to state its assumptions/guarantees against the related standing work (Atlas boundary remediation: secret-bearing rows still live in the production monolith and a local replica (#6021 wave 1) #8479, decision(atlas): external-content ingestion policy — the three zones and what is stored per zone #6052, design(atlas): secret-tier local embedder — model selection and fleet-hardware evaluation (secret text never leaves the fleet) #6059, task(atlas): classification revalidation scan — verify nothing sensitive sits at the wrong tier #6021, design(atlas): retention rule engine — composite age / supersede-count / last-surfaced policy with dry-run reporter #6041, Presidio NER design) and to include the mixed-file worked example (trip planning + deployment discussion) as its no-leakage test. Workstream C's schema doctrine is consumed, not changed.
- Labels: kind/design, epic/atlas-program stand; task/small-fix added for the routed packet.
dezren39 commented on Nov 18, 2026 Agent note (oc-code-05 scheduled lane, task 20295): the classification-model design is blocked for Drew's decision. The issue is assigned to dezren39 and has no open PR. I did not start the design without a release. Needed: an owner release or reroute. No changes made. dezren39 commented on Nov 22, 2026 🤖 Agent note · design PR opened (task 20295)
- Design: PR #12399, with per-embed sensitivity, boundary handling, four disclosure contexts, all required worked examples, the unclassified-remainder/schema-change operations, and the Atlas boundary remediation: secret-bearing rows still live in the production monolith and a local replica (#6021 wave 1) #8479 verified-move-then-purge decision.
- Cross-checked against design(atlas+pm): Metadata schema v1 + evolution doctrine — additive-only, extras, strict enums, breaking-change parking lot #9095 wrong-type/extras and breaking-change batch rules, design(atlas): Presidio NER pass — full internal-tier + sampled secret-tier PII detection at corpus scale #6048 recorded-review requirements, and design(atlas): chunk-boundary policy v2 — structural-first splitting per source type #6037’s provisional-overlap caveat.
- Filed native child issues atlas(classification): add strict per-embed classification records #12402–atlas(classification): remediate secret-bearing monolith chunks #12406; each has a live task in
repo-health-code-pilot: 21008–21012 respectively.
- The PR is open; CodeRabbit is neutral and no other check is reported. No corpus or code was changed. Queue tasks remain live for implementation.
Design choices are documented as revisable decisions; no owner release/approval gate is used.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|