Skip to content

Rename sensitivity ladder identifiers in code to canonical public/internal/private/sensitive (aliases/migration, not a blind swap) #13506

Open

Description

@dezren39

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 Rust Sensitivity enum (Shareable / Personal / LocalOnly / SecretBearing), the SENS_ORDER ordering in atlas-core, serde spellings, the --max-sensitivity CLI 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's local-only occurrences 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 the fleet search --max-sensitivity pass-through and docs/verbs.md.
  • pkgs/mcpx: ~6 code files, ~7 lines. (The mcpx book has zero ladder occurrences; its docs' shareable/local-only hits 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 sensitivity column labels in Atlas staging databases, and the published chunks / session_labels sensitivity labels in the corpus databases (at the frozen census: 100,060 personal, 6,941 local-only, 638 secret-bearing chunk labels).
  • Per-identity ceiling configuration (e.g. the service's named client caps) and user config carrying ceiling values.
  • CLI values: --max-sensitivity accepted spellings and its personal default, on atlas-search, fleet search, and related verbs; segment-file sensitivity names accepted by atlas-stage.
  • Wire/JSON values: search envelope fields such as max_sensitivity and per-hit sensitivity, 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

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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-bearing as 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:

    • Dated historical records keep their original wording (no rewriting history).
    • Literal code/persisted values documented in the books (CLI accepted spellings and defaults, enum variant names, per-identity caps, JSON examples, verbatim MCP strings) are code-surface documentation: they stay spelled as the code spells them until the rename in this issue lands, and each such surface is inventoried on this issue in the outcome record. Terminology prose around them is converted to the canonical names with the legacy spelling noted where a literal is quoted.
    • The id book's local-only occurrences 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.
    • This issue (the code rename itself) stays open; the sweep PR must not close it.
  3. added a commit that references this issue on Nov 23, 2026
  4. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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

    • Literal code/persisted values documented in the books (~70 remaining occurrences, all in this class): --max-sensitivity accepted 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.
    • Dated historical records — untouched, per the sweep rules.
    • ID book: zero changes. Verified first-hand: it contains no ladder terminology at all. All 22 of its local-only hits 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.
    • mcpx docs: zero changes. Its 5 hits are ordinary prose ("shareable, reusable scripts"), an operational "Local-only:" note, and the upstream MCP spec identifier caching-public-shareable — none is ladder terminology. The mcpx book proper has zero ladder occurrences, as the earlier census said.
    • Other living docs checked and left: 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 build in pkgs/atlas-search: clean, zero warnings.
    • mdbook build in pkgs/fleet: clean, zero warnings.
    • pkgs/id book untouched; its single build warning (unclosed <error> tag in reference/cli-worlds-admin.md) is pre-existing on main.
    • Every edit was applied by exact-anchor match (each anchor found exactly once) and the full diff was reviewed before commit.

    What remains

    This issue itself: the code identifier rename, with the alias/migration handling for persisted values described in the issue body (stored sensitivity labels, per-identity ceiling config, --max-sensitivity values, 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 share public/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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions