GeezerVison is showing github.com — Atlas boundary remediation: secret-bearing rows still live in the production monolith and a local replica (#6021 wave 1) · Issue #8479 · developing-today/code
Atlas boundary remediation: secret-bearing rows still live in the production monolith and a local replica (#6021 wave 1) #8479DescriptionAtlas boundary remediation: secret-bearing rows still live in the production monolith and a local replica (from #6021 wave 1)
Filed from the #6021 wave-1 revalidation scan (2026-11-11, queue task 10513; counts/classes/locations only — no content reproduced).
Finding
The tier boundary inside the sharded corpus is clean: across all 29 internal Atlas DBs (107,001 chunks + 70,987 content-store messages), the number of rows labeled secret-bearing is 0, and the secret tier holds exactly its labeled set (atlas-core-secret-main-01: 638/638 chunks secret-bearing; atlas-core-secret-content: 564 messages, all in secret-bearing sessions).
But the standing rule — secret material exists ONLY in the 2 secret DBs — does not hold outside the shard set:
- Production libSQL monolith (
atlas, the shards' source_db): 107,639 chunks, of which 638 are labeled secret-bearing (100,060 personal + 6,941 local-only + 638 secret-bearing) — the full secret set, co-resident with the whole internal corpus in one database.
- Local replica
~/atlas/turso-atlas/data/atlas-publish-v2-2026-10-31.db (laptop): a full monolith copy carrying the same 638 secret-bearing chunks / 90 secret-bearing sessions.
- Pre-tiering local snapshots (
~/atlas/atlas-2026-10-26.db, eval snapshots, staged-laptop DBs, sandbox archive copy): full/partial corpus copies from before the sensitivity column existed; labels are not carried in-file, so secret-bearing presence cannot be label-verified — treat as unclassified copies of a corpus that contained the secret set.
Remediation decision needed
Pick and implement one, under parent #6018 (relate to the classification manifest work, #5410):
- (a) Purge: delete the secret-bearing rows from the monolith (post-restore it is a source of record, not a serving tier) and delete/replace the local replicas; shards remain the only live corpus. Requires an ingestion story for how new secret-class content reaches the secret shards without landing in the monolith first (see staging path atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core #5669).
- (b) Reclassify: formally declare the monolith (and any retained replica) secret-tier storage, with access controls and handling to match, and amend the standing rule so the boundary statement is true as written.
Until one lands, the #6021 boundary statement must be reported as: boundary holds inside the shard set; does not hold for the monolith or local replicas.
Acceptance
Activitydeveloping-today commented on Nov 11, 2026 dezren39 commented on Nov 17, 2026 agent-note:v1
state: triaged
task: 18677 (queue repo-health-code-pilot, worker repo-worker-code, lane code-d)
Triage verdict for issue #8479: DECIDED — Purge. The decision this issue asks for already exists; it had simply never been recorded on the issue. Recorded here now (2026-11-17).
- The pending-decisions ledger item
atlas-secret-remediation-8479 ("Atlas secret-bearing rows (Atlas boundary remediation: secret-bearing rows still live in the production monolith and a local replica (#6021 wave 1) #8479): purge or reclassify the 638 rows in monolith + replica?") is status answered: "Purge the secret-bearing rows from the monolith and the replica." — answered 2026-11-16T02:00:33-06:00 via orchestrator-audit-2026-11-16. Acceptance item 1 (decision recorded with rationale, linked from task(atlas): classification revalidation scan — verify nothing sensitive sits at the wrong tier #6021 and atlas ingestion program: semi-automated updates, versioning, provenance, feedback — long-term design + tasks (2026-11-04 brief) #6018) is met by that ledger record plus this note; the standing rule it restores is the one stated in the issue: secret material exists only in the 2 secret DBs.
- Fresh state this shift: issue Atlas boundary remediation: secret-bearing rows still live in the production monolith and a local replica (#6021 wave 1) #8479 OPEN, no hard-stop labels and no user/escalated label; task(atlas): classification revalidation scan — verify nothing sensitive sits at the wrong tier #6021 OPEN; atlas ingestion program: semi-automated updates, versioning, provenance, feedback — long-term design + tasks (2026-11-04 brief) #6018 OPEN. No comment on this issue recorded the decision before this note — the escalation had been delivered and answered in the ledger, but the answer never reached the issue (the 2026-11-11 audit failure mode, caught here).
- Remaining work is implementation, not decision: purge the 638 secret-bearing chunks from the production monolith and the 638 chunks / 90 sessions in the local replica, disposition the pre-tiering snapshots named in the body, and re-verify with the wave-1 scan (counts/classes only — no content is ever reproduced). Pre-delete checks for the implementer: the secret shards hold the full labeled set (atlas-core-secret-main-01 638/638; atlas-core-secret-content 564 messages), and the ingestion story for new secret-class content runs via the atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core #5669 staging path (atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core #5669 is still OPEN, so sequencing against it is part of the implementation task).
- Follow-on: implementation packet enqueued as task 20156 (dedupe repo-health:v1:fix:developing-today/code:issue:8479, priority 20, risk flagged destructive-data-op / counts-only reporting). Completing task 18677 as triaged naming task 20156.
dezren39 commented on Nov 17, 2026
🤖 Agent note · blocked on dependency — purge NOT executed this run (task 20156, lane any-g)
- Agent: queue worker (repo-worker-code), lane any-g · assignment: direct (fix(queue): single-session by default — launch-on-handoff, lane works, inline triage (reverses #8097 Rule 3) #8187)
- Decision (unchanged): Purge — ledger
atlas-secret-remediation-8479, answered 2026-11-16. This note is about the packet's own pre-delete checks, which do not all pass yet.
- Pre-delete check 1 — shard completeness: PASS, verified this run (counts only). Production monolith
atlas today: 107,639 chunks = 6,941 local-only + 99,926 personal + 772 secret-bearing. Secret shard atlas-core-secret-main-01: 772 chunks, all secret-bearing — the shards hold the monolith's full current secret chunk set. Secret content store atlas-core-secret-content: 570 messages.
- The set is still growing: the secret-bearing count was 638 at filing (2026-11-11) and in the 2026-11-15 Layer-1 revalidation; it is 772 today (personal fell by exactly the same 134; total unchanged). Classification/reclassification is actively writing to the monolith, and every store moved in lockstep (the local publish copy
atlas-publish-v2-2026-10-31.db also reads 772 secret-bearing today). The monolith is a live publish surface fed from the canonical store (atlas-search: canonical store → published hot copy to Turso), not a frozen artifact — a row purge that leaves the pipeline and the canonical store untouched is undone by the next publish/classification cycle.
- Pre-delete check 2 — atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core #5669 staging path: FAIL. Issue atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core #5669 (atlas staging tier: schema, registry, aggregator with merge-on-close promotion) is OPEN and unbuilt (effort/l, queue/queued). Until it lands, new secret-class content still reaches the corpus through the canonical store — the exact gap issue Atlas boundary remediation: secret-bearing rows still live in the production monolith and a local replica (#6021 wave 1) #8479's purge option (a) names as a requirement ("an ingestion story for how new secret-class content reaches the secret shards without landing in the monolith first, see staging path atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core #5669").
- Coordination collision: the 47-candidate secret-tier review, issue Atlas Layer 1 follow-on: secret-tier review of 47 candidate chunks (67 findings) + 45 candidate messages from the 2026-11-15 revalidation scan (#6021) #10412, performs confirmed moves as "move + re-embed at secret tier, purge from internal incl. replicas" — the same operation, incrementally. Issue Atlas Layer 1 follow-on: secret-tier review of 47 candidate chunks (67 findings) + 45 candidate messages from the 2026-11-15 revalidation scan (#6021) #10412 is currently OPEN with status/blocked + user/escalated (its queue task 17341 is done; the issue gate is Drew's). A bulk purge now would collide with that stalled review and with the still-moving 772 set.
- Action taken: task 20156 is dependency-blocked on issue atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core #5669 (
fleet queue block --reason-class dependency --blocked-by-issue developing-today/code#5669, max TTL 7d, broker rechecks every 15 min). When atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core #5669 closes, the task returns to the pool by itself; the implementer then re-runs the counts-only verification above (expect the secret count to have moved again), confirms the publish pipeline no longer reintroduces secret rows into the monolith, and purges monolith + replica + publish copies, with snapshot disposition per the issue body.
- No content was read or reproduced at any point — counts and class labels only, per the packet.
dezren39 commented on Nov 17, 2026
Fresh revalidation (2026-11-17): no production or local-replica data was read or changed during this pickup. The previous checkpoint documented a growing secret set (638 to 772) and 772/772 shard completeness, with #10412 blocked/escalated. Fresh GitHub state still shows #10412 OPEN with status/blocked and user/escalated. The #5669 staging implementation PR #11317 is now MERGED (2026-11-17T22:03:35Z), but merge alone does not establish that the ingestion path is live for this purge.
Purge remains paused. Resume only after #10412 receives an authorized disposition and the #5669 staging ingestion path is verified for new secret-class content, then re-verify shard completeness/counts (counts/classes only) immediately before any deletion. No secret content in reports; no deletion performed. dezren39 commented on Nov 17, 2026
🤖 Agent note · escalated to user — destructive purge not executed (task 20156, lane any-n)
dezren39 commented on Nov 24, 2026 AUDIT-7 Lane 3 — decision restated in plain words (2026-11-23)
This issue is genuinely blocked on a decision, and the body already states the options well. Restating in the plainest form for whoever decides:
The problem: the Atlas production monolith (and local replicas) still contain rows that carry secrets, even though the standing boundary rule says secret-bearing content lives only in the secret shards. Until this is fixed, the boundary statement has to be reported as not holding for the monolith.
The decision — pick one:
Lane 3 recommendation (not a decision — this disposes of production secret-bearing data, so it stays with Drew): (a) Purge. It makes the existing boundary statement true instead of amending the rule to fit the leak, and it leaves exactly one place where secret-bearing rows live. (b) is less work but permanently widens the secret-bearing surface.
No labels or queue state changed by this comment. Tracking: #13875 dezren39 commented on Nov 24, 2026
🤖 Agent counts-only revalidation · purge NOT executed (task 20156, lane any-n, 2026-11-24T04:30Z)
Counts/classes/locations only, no content:
- Prod monolith
atlas (libsql): chunks total 107639; by sensitivity personal 99860, local-only 6941, secret-bearing 838. messages 71551, sessions 18325.
- Local replica
atlas-publish-v2-2026-10-31.db: chunks total 107639 (personal 99860 / local-only 6941 / secret-bearing 838); messages 122124, sessions 18325.
- Canonical
~/atlas/turso-atlas/data/atlas.db: chunks 107439, messages 122115, sessions 18325; no sensitivity column (classification at publish time).
- Secret shard
atlas-core-secret-main-01: chunks 838 (838/838 vs monolith secret-bearing). Secret shard atlas-core-secret-content: messages 573, sessions 97 (no chunks table).
- Monolith has no staging tables (
staging_units, merge_manifests absent) — staging registry lives elsewhere per stage_registry_v1.sql.
- Trend: secret-bearing 638 (packet) → 772 (prior checkpoint) → 838 (now). Shard main tracks monolith exactly, indicating continued ingestion of secret-class rows into the monolith.
- Gates fresh: Atlas boundary remediation: secret-bearing rows still live in the production monolith and a local replica (#6021 wave 1) #8479 OPEN status/blocked queue/blocked; Atlas Layer 1 follow-on: secret-tier review of 47 candidate chunks (67 findings) + 45 candidate messages from the 2026-11-15 revalidation scan (#6021) #10412 now CLOSED (2026-11-23, was OPEN/blocked); atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core #5669 CLOSED, PR Add Atlas staging merge manifests #11317 merged 2026-11-17. Merge ≠ live-ingestion proof; growth to 838 supports decision:v1 — do not purge until staging path verified live.
- Destructive action: none. Next: park 20156 with ready-condition (staging ingestion verified live + shard completeness revalidated immediately before any purge).
dezren39 commented on Nov 25, 2026
Purge NOT executed this run (task 20156, lane oc-code-02). No data read or changed; no destructive action taken.
Fresh verification this run: the #5669 staging ingest path is NOT live in production, so the monolith would re-accumulate after any purge. Evidence (code only, counts/classes only):
- pkgs/atlas-search/book/design/high-level-roadmap.md:24 — atlas_stage v1 aggregator, embedder and session-close hook are explicitly not built.
- pkgs/atlas-search/book/concepts/ingest.md:9 — the production corpus is still extended by scripts outside this repo (hatch-personal atlas-ingest.py).
- PR Add Atlas staging merge manifests #11317 only added staging merge manifests; merge is not deployment (Atlas ships in a bundled deploy, never alone).
- Counts trend 638 (packet) -> 772 -> 838 secret-bearing chunks confirms continued accumulation through the old path.
Fresh gate state: #10412 CLOSED, #5669 CLOSED. Task parked with a 4h timer and a technical ready-condition (staging ingest live via the #5670 migration + unbuilt hooks), not a person-wait. Next picker: re-verify staging-live evidence and counts-only shard completeness immediately before any purge. developing-today-fleet commented on Nov 26, 2026
🤖 Agent note · purge NOT executed — staging gate still not met (task 20156, lane DK, 2026-11-26)
Counts/classes/locations only; no secret content read or reproduced; no production or local-replica data read or changed; no destructive action taken.
Fresh verification this run (GitHub state + code on main):
Conclusion: the 2026-11-22 decision gate on this issue still applies — do not execute the purge until the production ingestion path is verified to route new secret-class content without reintroducing it into the monolith. That condition is not met. Prior counts trend 638 → 772 → 838 secret-bearing chunks (last counts-only revalidation 2026-11-24) shows re-accumulation through the old path; a purge now would be undone by the next ingest cycle.
Blocker worked check: the blocker is the #5670 migration plus the unbuilt aggregator/embedder/session-close hooks — programme-scale work owned under the Atlas programme, not a slice completable within this task's timebox or safely as a side-effect of a destructive purge lane.
Task 20156 parked with a time-based (non-person) ready condition. Next picker: re-verify staging-live evidence (in-repo ingest live, hooks built, #5670 closed or equivalent proof) and re-run counts-only shard completeness immediately before any deletion. developing-today commented on Nov 27, 2026
Revalidation (oc-code-06, 2026-11-27): purge not executed. #10412 is CLOSED, but #5670 remains OPEN (latest update 2026-11-27 00:48Z): the production ingestion path still runs from out-of-repo hatch-personal scripts. Current origin/main docs continue to state the atlas_stage aggregator/embedder/session-close hook is not built (pkgs/atlas-search/book/design/high-level-roadmap.md, Item 8), and the corpus is still extended by atlas-ingest.py outside this repo (pkgs/atlas-search/book/concepts/ingest.md). Purging before the new path is live would allow immediate re-accumulation. Counts were not re-read this pickup; no production/local data was read or changed, no content inspected, no destructive action.
Disposition: keep #8479 open and park task 20156 until #5670's ingestion path is implemented and verified live; then resume with fresh counts-only shard completeness checks before any purge. No owner decision gate; the recorded purge decision remains, technical prerequisite is unmet. developing-today-fleet commented on Nov 27, 2026 🤖 Agent progress note · lane code-f (queue task 20156, attempt 8)
Fresh recheck 2026-11-27 ~19:15Z: staging gate still unmet — no destructive action taken, no data read or changed.
Disposition: checkpoint + park on the technical prerequisite (staging live via #5670), resume on staging-live evidence. Counts/classes only, never content — nothing secret reproduced here. developing-today-fleet commented on Nov 27, 2026 🤖 Agent note · escalated
- Agent: fleet monitor
- Session / ID: repo-fleet-monitor cron run 2026-11-27 16:14 CST
- Found via: monitor reconciliation (Duty 4 protocol check)
- Task: Protocol gap: this item carries work/queue claim labels but NO comment contains the required agent-note:v1 footer (protocol §2/§6). The holding agent did not leave the required agent note. This gap needs a human/Muse review of why the protocol was not followed; the holder should post a proper agent note (pickup/checkpoint) or hand the item off.
- Expectation: holder posts an agent-note:v1 note or releases the item.
- Links: protocol ~/workspace/goals/keep-the-four-repos-healthy/files/agent-lifecycle-protocol-2026-10-25.md
developing-today-fleet commented on Nov 28, 2026
Revalidation (oc-code-01, 2026-11-28T04:40Z): purge not executed.
Fresh read-only staging-gate recheck, no DB access, no destructive action, counts/classes only:
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|