Repository navigation
Description
Rename the sensitivity ladder identifiers in code to the canonical ladder (public < internal < private < sensitive)
Why
The sensitivity ladder's canonical names were corrected on 2026-11-23. The classes are:
public < internal < private < sensitive
The old names are retired. They map onto the canonical rungs in order:
| Retired name (code today) | Canonical name |
|---|---|
shareable |
public |
personal |
internal |
local-only |
private |
secret-bearing |
sensitive |
Note: the retired local-only never meant "stored on the local laptop"; it was a rung name only.
Scope of this issue: the CODE rename (not the prose sweep)
A companion prose sweep (living docs + the atlas/fleet/id books) is being done separately by Lane OA11 and will link its PR here. This issue owns the identifier rename in code, which must NOT be done as a blind search-and-replace, per the persisted-value caveat below.
Code-surface inventory (measured 2026-11-23, git grep -iE 'shareable|local-only|secret-bearing' on main)
pkgs/atlas-search(excluding its book): 33 files, ~379 lines. Includes the RustSensitivityenum (Shareable / Personal / LocalOnly / SecretBearing), theSENS_ORDERordering in atlas-core, serde spellings, the--max-sensitivityCLI surface, service per-identity ceiling caps, disclosure-context ceilings, and the Worker/MCP pinned ceiling strings.pkgs/id(excluding its book): ~19 files, ~51 lines. (The id book'slocal-onlyoccurrences are the ordinary English "runs only locally / not deployed" sense, not the ladder — not part of this rename.)pkgs/fleet(excluding its book): ~13 files, ~62 lines, including thefleet search--max-sensitivitypass-through anddocs/verbs.md.pkgs/mcpx: ~6 code files, ~7 lines. (The mcpx book has zero ladder occurrences; its docs'shareable/local-onlyhits are ordinary prose and an upstream MCP spec identifier — not part of this rename.)- Elsewhere:
pkgs/note-submission(src + tests),pm-stack/aggregator(server.ts,views.ts,views.test.ts),pkgs/gh-fleet/default.nix,nixos/home/atlas-backup.sh,nixos/home/laptop-repo-keeper.test.sh.
Persisted-serde caveat — stored values need alias/migration handling, never a blind swap
The retired strings are not just identifiers; they are stored and exchanged values:
- Scheme-1.0
sensitivitycolumn labels in Atlas staging databases, and the publishedchunks/session_labelssensitivity labels in the corpus databases (at the frozen census: 100,060personal, 6,941local-only, 638secret-bearingchunk labels). - Per-identity ceiling configuration (e.g. the service's named client caps) and user config carrying ceiling values.
- CLI values:
--max-sensitivityaccepted spellings and itspersonaldefault, onatlas-search,fleet search, and related verbs; segment-file sensitivity names accepted byatlas-stage. - Wire/JSON values: search envelope fields such as
max_sensitivityand per-hitsensitivity, and the MCP tool description strings that quote the ceiling verbatim.
A rename therefore needs a compatibility design before any swap: serde aliases (accept old, emit new) or an explicit data migration for stored labels, a dual-accept window for CLI/config values, and a decided cutover for emitted JSON. Renaming the Rust enum variants and their serde spellings in one step would make existing databases, configs, and scripts unreadable.
Open question — one ladder or two (decision still owed; do not decide inside the rename PR)
The docs currently present the corpus tiers (public / internal / secret) and the four-rung ceiling ladder as "two namings, one ladder" (see the atlas book glossary), with the working correspondence shareable -> public, personal + local-only -> internal, secret-bearing -> secret. After this rename, the ceiling ladder (public < internal < private < sensitive) will share the names public and internal with the tier vocabulary. Whether the end state is one unified ladder or two distinct vocabularies that happen to share two rung names is a deliberate decision that is still owed by the design owner. This issue records the question; the rename must not silently settle it.
Acceptance shape (for whoever implements)
- Compatibility design recorded (aliases vs migration, per surface above).
- Code identifiers, enum variants, and CLI spellings renamed with the compatibility layer in place.
- Stored-label migration or alias-read verified against a copy of a staging + publish database.
- Books/reference updated to the new literal spellings in the same change (they currently document the legacy spellings as the code's values).
Activity
developing-today commentedon Nov 23, 2026
CODE-4934
dezren39 commentedon Nov 23, 2026
agent-note:v1
lane: OA11
kind: claim
Lane OA11 claims the companion PROSE sweep for this rename: retired ladder names (
shareable/personal/local-only/secret-bearingas ladder terminology) rewritten to the canonical names (public/internal/private/sensitive) in living docs and the atlas / fleet / id books, preserving meaning.Authorization: this sweep was previously under a platform execution-risk flag hold; it was approved explicitly in the main chat on 2026-11-23 11:00 CST ("Approve all the flag holds listed above", naming this sweep).
Scope boundaries the sweep will honor:
local-onlyoccurrences mean "runs only locally / not deployed" in ordinary English, not the ladder rung; same for the mcpx docs hits. Those are not ladder terminology and will not be rewritten.Merge pull request #13508 from developing-today/lane-oa11-sensitivity
dezren39 commentedon Nov 23, 2026
agent-note:v1
lane: OA11
kind: outcome
Prose sweep landed
PR: #13508 — merged, merge commit
7daad12bab6762b16a1773dd487d1ff02fa6968f. 13 files, +48/−22. The platform flag did not re-fire at any point during the sweep.What changed, per surface
Atlas book (11 files) — everywhere the ladder is defined or presented, the canonical names (
public < internal < private < sensitive) are now the presented terminology, with the code spellings noted as the current literal values:concepts/sensitivity.md— canonical terminology stated at the ladder definition; the ceiling→tier mapping table gained a Canonical name column; the chapter records the open one-ladder-or-two question (below) without deciding it.operations/glossary.md— ceiling and corpus-tier entries give the canonical names and the canonical correspondence.index.md,concepts/consumers.md,concepts/ingest.md,concepts/retrieval.md,reference/data-stores.md,development/add-a-source.md,tutorials/wire-an-mcp-client.md— ladder presentations converted.design/query-planning.md,design/automatic-ingest.md— non-literal rung uses in design prose converted.Fleet book (1 file) —
concepts/search.md: terminology note at Sensitivity clamping (canonical names; the chapter's flag values/caps remain spelled as the service spells them).Living docs (1 file) —
doc/living/saas-service-id-atlas-fleet.md: the data rule now names the top class "Sensitive".Deliberately NOT changed, and why
--max-sensitivityaccepted spellings and defaults, per-identity ceiling caps, disclosure-context ceilings, stored-label census counts, fail-closed target values, JSON request/envelope examples, Rust enum variant names (Shareable < Personal < LocalOnly < SecretBearing), verbatim MCP tool strings, worked CLI examples. These state the code's current values; rewriting them before the rename would make the books describe a system that does not exist yet. They are the book-side tail of THIS issue: when the rename lands, these references update in the same change.local-onlyhits mean "runs only locally / not deployed" (the hosted-worker scaffold), and its sensitivity mentions are about ID's own classification model records. Rewriting them would have corrupted their meaning.caching-public-shareable— none is ladder terminology. The mcpx book proper has zero ladder occurrences, as the earlier census said.doc/agents/owner-preferences.md("secret-bearing checks" = checks involving secrets, ordinary prose), the knowledge-layer docs (other products' feature vocabulary),doc/activity-river-design-1261.md("shareable URLs"), the skill/template files — none uses the retired names as ladder terminology.Build evidence
mdbook buildinpkgs/atlas-search: clean, zero warnings.mdbook buildinpkgs/fleet: clean, zero warnings.pkgs/idbook untouched; its single build warning (unclosed<error>tag inreference/cli-worlds-admin.md) is pre-existing on main.What remains
This issue itself: the code identifier rename, with the alias/migration handling for persisted values described in the issue body (stored
sensitivitylabels, per-identity ceiling config,--max-sensitivityvalues, JSON envelope fields, MCP strings). The open disposition is also still owed: docs present the corpus tiers and the ceiling ladder as "two namings, one ladder"; after the rename they sharepublic/internal, and whether the end state is one ladder or two distinct vocabularies is a deliberate decision for the design owner — recorded here and in the atlas book's sensitivity chapter, not decided by this sweep.