Title: atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core · Issue #5669 · developing-today/code · GitHub
Open Graph Title: atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core · Issue #5669 · developing-today/code
X Title: atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core · Issue #5669 · developing-today/code
Description: Implementation of §4 of the Scaler-era data architecture revision (design doc PR #5667, doc/2026-11-04T21-27-34Z_design_atlas_scaler_revision/). Scope: atlas_stage v1 schema DDL (items, chunks_raw, notes, kv, _schema_version) + one provi...
Open Graph Description: Implementation of §4 of the Scaler-era data architecture revision (design doc PR #5667, doc/2026-11-04T21-27-34Z_design_atlas_scaler_revision/). Scope: atlas_stage v1 schema DDL (items, chunks_raw,...
X Description: Implementation of §4 of the Scaler-era data architecture revision (design doc PR #5667, doc/2026-11-04T21-27-34Z_design_atlas_scaler_revision/). Scope: atlas_stage v1 schema DDL (items, chunks_raw,...
Opengraph URL: https://github.com/developing-today/code/issues/5669
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core","articleBody":"Implementation of §4 of the Scaler-era data architecture revision (design doc PR #5667, `doc/2026-11-04T21-27-34Z_design_atlas_scaler_revision/`).\n\n**Scope:**\n- `atlas_stage` v1 schema DDL (`items`, `chunks_raw`, `notes`, `kv`, `_schema_version`) + one provisioning tool that creates a staging DB per work unit (queue task / session / epic / notes batch) and applies the schema.\n- Registry (internal core tier): unit id → staging DB, owner, sensitivity level, state (open/closing/merged), schema version. (Design §6 proposes the registry be born as a TursoDB `--tursodb` pilot DB once the account toggle is enabled — sequencing note, not a blocker for the libSQL version.)\n- Aggregator (`fleet serve` role, laptop): on unit close, embed new chunks with the resident Snowflake model, promote survivors into core in bounded batches (≤500 rows/txn), write the merge manifest (unit id, rows in/promoted, content hash), bump the core snapshot id per batch (consumed by the §3 result cache), branch the staging DB as archive, deregister. Partial periodic promotion for long-lived units (epics).\n- Core stores per design: exactly three physical sensitivity levels (public / internal-default / secret — separate DBs + credentials); within a level, scan stores per corpus + one content store per level; reclassification = verified mechanical row move (counts + hash) with a manifest log entry.\n- Session-close extraction hook as the canonical staging producer (sessions write staging only; core never sees session-rate writes).\n\n**Acceptance:** an end-to-end demo unit (one session) flows staging → close → promotion → searchable in core with correct ceiling behavior per level; a reclassification move round-trips counts/hashes; promotion never holds a core writer > seconds (batch bound enforced); core DDL only via maintenance path. PBT/MBT per the testing doctrine (schema-version invariants, manifest hash oracle).\n\nDesign: #5667 §4 (+ §5 sizing, §6 pilot). Parent context: hatch-personal#21.\n\n## Acceptance criteria\n\n- [ ] `atlas_stage` v1 schema DDL exists (`items`, `chunks_raw`, `notes`, `kv`, `_schema_version`) and one provisioning tool creates a per-unit staging DB and applies it.\n- [ ] Internal registry records unit id -> staging DB, owner, sensitivity level, state (open/closing/merged), and schema version, and is the lookup the aggregator uses.\n- [ ] Aggregator promotion on unit close embeds new chunks, promotes survivors into core in bounded batches (\u003c=500 rows/txn), writes a merge manifest (unit id, rows in/promoted, content hash), and bumps the core snapshot id per batch.\n- [ ] Long-lived units (epics) get partial periodic promotion; closed units are branched as archive and deregistered.\n- [ ] Behaviour matches design PR #5667 section 4; deviations are recorded on this issue.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-04T23:00:43Z","url":"https://github.com/developing-today/code/issues/5669"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b96ff1c6-2112-7729-f661-bf2c3845f13e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B73E:39588:2CA61B:3BD981:6B06168F |
| html-safe-nonce | 000eea47a3baed445b9e969b7d677e3322d6a2f1aedf0fd98a069181290a0565 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzNFOjM5NTg4OjJDQTYxQjozQkQ5ODE6NkIwNjE2OEYiLCJ2aXNpdG9yX2lkIjoiMzY1MDgxNjQxMzUwMzE5ODg2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 41fa0862b82dda2478b1d19f00ba0009cadc1d3bdc3dc96d2667f7b69accd5b9 |
| hovercard-subject-tag | issue:6213032542 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/5669/issue_layout |
| twitter:image | https://opengraph.githubassets.com/acf59547f7b352abdeb0546f68d63a791c588b008b81073c721c0c1727855b52/developing-today/code/issues/5669 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/acf59547f7b352abdeb0546f68d63a791c588b008b81073c721c0c1727855b52/developing-today/code/issues/5669 |
| og:image:alt | Implementation of §4 of the Scaler-era data architecture revision (design doc PR #5667, doc/2026-11-04T21-27-34Z_design_atlas_scaler_revision/). Scope: atlas_stage v1 schema DDL (items, chunks_raw,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width