Skip to content

Code rename: replace identifier-bound person-name identifiers with role terms #13507

Open

Description

@dezren39

Code rename: replace identifier-bound person-name identifiers with role terms

Why

The prose sweep in #13392 replaced person-name references in the books and living references with role terms ("the user's X", "needs user", "needs decision", "needs orchestrator", "needs operator"). A set of names could not be rewritten in prose because they are literal code identifiers and quoted runtime strings — the books must keep matching the shipped surface until the code itself is renamed. This issue covers that code side.

Identifier-bound names (from the #13392 census)

  • drew-cli — CLI identity name, and the bridge address drew
  • "Needs-drew payload" label
  • needs_drew — field / module / payload name
  • drew_decision — reason class
  • The quoted phrase "awaiting drew"
  • Atlas requester kind drew — a stored enum value, distinct from user (weights in the census record: drew 1.0, user 1.0, agent 0.25, anonymous 0.1)
  • Atlas reference/mcp.md verbatim MCP instruction strings that name these identifiers

Warning: persisted values — alias / migration, never a blind swap

Several of these are stored / persisted values, not just source identifiers:

  • The atlas requester kind drew is a stored enum in persisted data.
  • needs_drew, drew_decision, and the payload label appear in serialized payloads and stored records.
  • The bridge address drew and the drew-cli identity may appear in configuration, stored sessions, and external references.

Renaming therefore needs an alias / migration plan for each name: accept the old value on read, write the new value, and migrate or dual-read stored data until the old values are gone. A blind find-and-replace in source will break stored data, in-flight payloads, and any external caller still using the old names.

Scope

Out of scope

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T17:14:27Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Acceptance criteria

  • Delivered: Code rename: replace identifier-bound person-name identifiers with role terms — the outcome named in the title is demonstrably in place.
  • The implementation matches the scope, design record, and constraints stated in this issue body; no stated scope is silently dropped.
  • Verification evidence is recorded on this issue (tests run, commands executed, or measurement output), naming what was checked.
  • Any follow-on gaps found during the work are filed as their own issues and linked from this issue.

Activity

  1. developing-today commented on Nov 23, 2026

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

    @dezren39
    MemberAuthor

    Claimed by lane 7, 2026-11-25T22:29Z

    First slice: the inventory and a proposed role-term mapping per identifier (scope items 1 and 2), as a doc. No code renamed in this slice.


    Generated by Claude Code

  3. dezren39 commented on Nov 25, 2026

    @dezren39
    MemberAuthor

    Slice 1 landed: inventory and proposed role terms, PR #15315 (merged as 6057e90), doc doc/2026-11-25T22-29-42Z_inventory_person-name-identifiers/.

    What it found:

    • About two thirds of the ~940 non-Markdown lines are source-only names (one mechanical rename per package).
    • Eleven wire or stored values need read-old, write-new handling. The ones with the most risk: the orchestration tier is a CHECK constraint in an applied shared-schema migration, drew_decision is in fleet migration 0021, alert keys needs-drew:<ledgerId> are the throat's dedupe key, and answer links already sent point at /api/needs-drew/....
    • Free-text matchers in person_wait.rs should keep the old phrases.
    • Proposed terms: needs-user family for needs-drew, user_decision, and owner for the Atlas kind, the search client and the bridge address (Atlas user is already a different kind; the bridge already aliases drew with owner).

    Next slices, in order: aggregator plus notify-relay dual-read, shared-schema tier migration, fleet queue, Atlas and search aliases, bridge default address, then the books.


    Generated by Claude Code

  4. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    Slice progress (lane 7):

    • Merged message-bridge: show owner as the default reply address (#13507 A9) #15347: message-bridge now shows owner as the default reply address in wake payloads, replyAddress, ADDRESS_HELP, MCP tool text and the README. drew and central stay accepted aliases. Stored values (user:drew, fixture senders) are unchanged. The node suite passed 134 of 134 remotely, and message-bridge-deploy is running from main.
    • Open fleet-queue: rename needs_drew module and items to needs_user (#13507 C) #15355, Section C Rust slice: renames needs_drew.rs to needs_user.rs and its items (NeedsUserOption, BlockNeedsUser, post_needs_user, maybe_raise_needs_user). Wire keys (needs_drew, needsDrew, needs-drew:) are left for a later compatible-read slice. Fleet Rust workspace tests are running remotely.

    Generated by Claude Code

  5. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    Triage complete (lane code-h, task 23928). Issue is NOT held (hold check exit 0, no hold label). Live triage work is underway on the identifier rename (#13507): slice 1 inventory merged as PR #15315, bridge default-address rename merged as PR #15347, Section C Rust slice merged as PR #15355. No queue hold; next slices continue the packet plan (aggregator/notify-relay dual-read, shared-schema migration, fleet queue/Atlas/search aliases, then books). No further triage action needed from this lane; issue stays open tracking the remaining slices.

  6. added
    queue/claimed
    status/in-progress
    work/assigned
    on Nov 26, 2026
  7. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    Triage follow-on complete (lane VN, queue task 24225, follow-on from task 23928).

    Premise/ownership check (2026-11-26): read the issue and all comments.

    • Premise valid: identifier-bound person-name identifiers remain in code after the Books and living references: replace person-name references with role terms #13392 prose sweep; the issue's warning stands — several are persisted/wire values (drew Atlas requester kind, needs_drew/drew_decision payloads, bridge address drew, drew-cli), so alias/migration, never a blind swap.
    • No hold: labels are status/in-progress, queue/claimed, work/assigned only — no held/user label, no Drew-decision gate in any comment, no laptop/physical dependency.
    • Prior lane-7 claim (2026-11-25T22:29Z) is not a live competing claim on this triage: its slices are landed and its progress is recorded on this issue.

    Verified slice state (checked via gh this lane):

    Verdict: NOT a small fix — this is a multi-slice migration exceeding a triage edit. Triage task 24225 completes with this verdict; the issue stays open for the remaining real work, in the order already recorded on this issue: aggregator + notify-relay dual-read (incl. the needs_drew/needsDrew/needs-drew: wire keys left by #15355), shared-schema tier migration, fleet queue, Atlas + search aliases, then the books/living references that quote the old identifiers.

  8. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    Slice landed: PR #15714 merged at 8fdb18058f296df4343508122c48eec0856dcf25. The notify relay now reads both needsDrew / needs-drew:<id> and needsUser / needs-user:<id>, answer pages post to the role-term path, and the aggregator keeps both answer routes working. The old link and wire forms remain accepted.

    Fleet run 45888232384 passed 12 aggregator edge-answer tests and 23 notify-relay answer tests on the refreshed branch.

    After this PR, cd pm-stack/aggregator && PM_AGG_SOURCE=fixtures PM_AGG_DEV=1 bun test test/alert-extension-compat.test.ts should show POST /api/alerts accepts needsUser alongside legacy needsDrew and rejects a request that supplies both. The upstream writer and needs-drew state-file migration stay for later slices. Follow-on queue task #24369 is queued for this next slice; #13507 remains open.

  9. removed
    queue/claimed
    on Nov 26, 2026
  10. 77 remaining items

  11. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Item-4 remainder sub-slice landed — lane 0900-FN (2026-11-30).

    PR #17688 MERGED (merge commit 27a637b, head ab9ea17): pm-stack/aggregator/src/notifications.ts now imports type NeedsUserQuestion from ./needs-drew.ts in place of NeedsDrewQuestion (import + the needsDrewRaised field's element type; 2 lines). Snapshot field names untouched per the claim.

    Verification firsthand: run 46518831635 — aliases suite 9 pass / 0 fail and bunx tsc --noEmit clean (VERIFY_OK_13507_NOTIF); run 46518912969 — test/notifications.test.ts 32 pass / 0 fail (VERIFY_OK_NOTIF_SUITE). Both on the exact merged head.

    Lane 0900-FN item-4 tally this wave: digest (PR #17663), alerts (PR #17673), actions-exec-apply (PR #17683), notifications (PR #17688) — four consumer files migrated. Remaining consumers at last grep: server-contexts.ts / source.ts / sources/live.ts (census plumbing), render.ts (needsDrewCensusHtml is render-attention's export, already migrated by FR), scripts/collect-fleet-feed.ts + generate-digest.ts (field-name uses), and the needs-drew module's own internals — for the next lanes.

  12. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Fix-forward note — lane 0900-EJ (2026-11-30): a test defect from my sub-slice 2 (#17620), found during sub-slice 3 verification.

    The identity oracle I added to needs-user-aliases-13507.test.ts in #17620 statically imports ../src/server-decision-routes.ts. That module pulls in server-wiring, whose top-level loadConfig() throws when PM_AGG_SOURCE is unset outside dev mode — the exact load-time landmine the edge-answers suite documents in its own comment. In combined-suite runs the static import errors the aliases file's module load and poisons the edge-answers token-gate test (PM_AGG_SOURCE=null, deterministic in runs 46517036315 + 46518903141 on the sub-slice-3 branch: 154 pass / 1 real fail + 1 load error); the same set passed on current main in run 46517863291 by load-order luck, which is why 1352-D's full-diff merge of #17620 did not surface it.

    Fix (own PR, following): the decision-routes identity check uses a dynamic import under the same PM_AGG_DEV guard pattern the edge-answers suite itself uses, restoring the environment afterwards. No production code changes.

  13. added 2 commits that reference this issue on Nov 30, 2026
  14. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Item-4 remainder sub-slice landed — lane 0900-FR (2026-11-30).

    PR #17693 MERGED (merge commit 4baa005, head 095eccd): pm-stack/aggregator/src/sources/live.ts now consumes the canonical identifiers — createNeedsUserSweeper / needsUserSweepTtlMs / NeedsUserCensus (the #17480 aliases) in place of the needsDrew* spellings. The needsDrew() source-method name and the tiers.needsDrew data shapes deliberately stay (interface/data surfaces, per the claim).

    Verification (log-read firsthand): dispatch run 46520040219 (developing-today-forks/fleet) on the exact head — bun test over needs-user-aliases-13507 / needs-drew / source-gate-1195 / activity-live-3321: 47 pass / 0 fail across 4 files, bunx tsc --noEmit clean, VERIFY_OK marker printed.

    Claim 7292659907 discharged. Issue stays OPEN (item-4 remainder continues).

  15. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Claim — lane 0900-FR (xaltha, wave 0900), 2026-11-30: a further bounded sub-slice of the item-4 remainder (consumer identifier migration).

    Premise checked firsthand against the FULL claim traffic on this issue today (scan repeated immediately before this claim; latest comment is my own live-source resolution 7292996486): landed or claimed item-4 files are needs-drew-answer (EJ), server-decision-routes (EJ), render-attention (FR), digest (FN), alerts (FN), server-alert-routes (EJ, claim 7292420834), actions-exec-apply (FN), notifications (FN), server-contexts (FR), sources/live (FR). pm-stack/aggregator/src/server.ts appears in no claim or landing note.

    Bounded scope: migrate ONE consuming file — pm-stack/aggregator/src/server.ts — onto the canonical identifiers: its import from the needs-drew module uses listOpenNeedsUser (the #17480 alias) in place of listOpenNeedsDrew, with call sites updated. This module exports no Drew-named public symbol, so no new alias is added. Deliberately NOT touched: its needs-drew-answer.ts import (applyEdgeAnswer carries no person-name identifier), the needsDrewFile-family config fields it passes through, prose, and every other consumer file. Old spellings stay until close-out (item 6).

    Verification: remote dispatch on the exact head — bun test over the aggregator needs-*/server suites (with the suite's PM_AGG_SOURCE/PM_AGG_DEV fixtures env) + bunx tsc --noEmit; merge on my own read of the diff + green run.

  16. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    A1 wake — final harvest for this lane — lane 0900-EM (xaltha, wave 0900), 2026-11-30. Follows my interim note 7291508446.

    Verdict: still NO-VERDICT — and now evidenced as a venue-form problem, not a test problem.

    • Run 46498682966: completed/cancelled 20:45Z (~60 min). Job log 142130457777 read firsthand: Execute spent the entire window in the nix build; zero test output, zero from_block_request tests executed.
    • Re-dispatch 46510029441 (handle fp_44e0cc55e525bcc1679f28a2e0c95dd2), exact same form at current main, followup of the cancelled run for cache reuse: completed/cancelled 21:49Z (~62 min). Job log 142170592665 read firsthand: identical shape — zero test output, zero tests executed. The followup did not warm the target enough to fit the build inside the venue window on the fleet-forks surface.

    So the nix + --features client form is correct (it is the only form that can execute these tests) but does not fit the ~60-minute venue ceiling on this surface from a cold/warm-ish start. Next attempt should change the venue budget, not the form: dispatch with --timeout-minutes 120 (the fleet queue dispatch supports 5–120; the original PR-head attempt survived ~87 min before its venue cancel, so a >60-min budget exists on some surfaces), or run on a surface with a pre-warmed nix store for pkgs/fleet. PASS bar unchanged: firsthand log read showing ≥5 from_block_request tests passed / 0 failed. Do not re-run the default-timeout form on fleet-forks — two consecutive firsthand-evidenced cancellations say it cannot finish there.

    This lane's one re-dispatch is spent; the wake is re-armed here for the next verification lane with the remedy above. A1's code remains merged (PR #17392, e29cee1 / 6bd3988) on the sweep's verification; no red has ever been observed for it — every failure in this saga is venue/build-time, never a test failure.

    Key: 0900-EM

  17. added a commit that references this issue on Nov 30, 2026
  18. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Lane 0900-GM (xaltha, wave 0900) claiming the A1 verdict wake re-armed by lane 0900-EM at comment 7293018453. Executing exactly ONE dispatch at current main (e960bd2) in EM exact nix form with the one untried lever: --timeout-minutes 120, followup of run 46510029441 for cache reuse. PASS bar unchanged: firsthand log read showing >=5 from_block_request tests passed / 0 failed. If this also returns no-verdict, I post the venue evidence and stop — no third dispatch in this lane.

    Key: 0900-GM

  19. added 2 commits that reference this issue on Nov 30, 2026
  20. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Item-4 remainder sub-slice landed — lane 0900-FR (2026-11-30).

    PR #17709 MERGED (merge commit 2c3a81b, head 1ed0ee4): pm-stack/aggregator/src/server.ts now consumes the canonical identifier — listOpenNeedsUser (the #17480 alias) in place of listOpenNeedsDrew, import and call site. The cfg.needsDrewFile field deliberately stays (config surface, per the claim).

    Verification (log-read firsthand): dispatch run 46521335425 (developing-today-forks/fleet) on the exact head — bun test over needs-user-aliases-13507 / needs-drew / alerts: 94 pass / 0 fail across 3 files, bunx tsc --noEmit clean, VERIFY_OK marker printed.

    Claim 7293015935 discharged. Lane 0900-FR closes its wave with four clean item-4 sub-slices landed (render-attention #17654, server-contexts #17684, sources/live #17693, server #17709). Issue stays OPEN (item-4 remainder continues with other lanes).

  21. added a commit that references this issue on Nov 30, 2026
  22. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Item-4 remainder sub-slice #3 landed — lane 0900-EJ (2026-11-30), plus the fix-forward for sub-slice #2's test defect.

    PR #17675 MERGED (merge commit 3db9fc4, head b8d03e6 after a clean merge of current main): pm-stack/aggregator/src/server-alert-routes.ts now consumes raiseNeedsUser / validateNeedsUser in place of the needsDrew* spellings. Verification (log-read firsthand): dispatch run 46522176554 on the exact head — 164 pass / 0 fail across 9 files, bunx tsc --noEmit clean, VERIFY_OK_17675.

    Fix-forward landed in the same pass: PR #17699 MERGED (ade789e) — the dynamic-import repair of the decision-routes alias oracle (defect note 7292918669), verified green in run 46520775174 (164 pass / 0 fail) before merging, and a prerequisite for this slice's green run after main was merged in.

    Updated slice map: item-4 consumer migrations landed via this lane: needs-drew-answer (#17589), server-decision-routes (#17620), server-alert-routes (#17675); sibling lanes have since landed alerts, digest, server-contexts, notifications, actions-exec-apply, render-attention. Remaining on #13507: A2 producer switch (deployment-gated on #15721), item-4 file rename under a distinct name + any last consumers (server.ts / server-pages / needs-user type imports), books + living references, alias-window close-out, and the recorded A3 Rust-verification gap (resolution 7292393541). My claims released. Issue stays OPEN.

  23. developing-today-fleet commented on Dec 1, 2026

    @developing-today-fleet
    Contributor

    A1 wake — verdict attempt with the 120-minute lever — lane 0900-GM (xaltha, wave 0900), 2026-11-30. Follows my claim 7293069944 and lane 0900-EM re-arm at 7293018453.

    Verdict: NO-VERDICT — third consecutive venue cancellation for A1, now at the maximum budget, in the strongest form available. This lane does not dispatch again; per the wake terms the next attempt must change the venue, not the budget or the form.

    • Dispatch: run 46521639464 (handle fp_51c5c082b783e5c000bd01ef2e6e9e8e, developing-today-forks/fleet), at main e960bd2, EM exact nix form (cargo test -p fleet-queue --features client from_block_request), with --timeout-minutes 120 and --followup of EM run 46510029441 — i.e. both untried levers combined: max budget + the warmest cache chain this surface offers.
    • Outcome: completed/cancelled. Linux job 142211776461 ran 21:54:55Z → 23:59:56Z (125 minutes — the full budget plus overhead). The Execute step was still in_progress at cancellation; its post-steps never ran.
    • Firsthand evidence: the job log blob was never uploaded (jobs/142211776461/logs returns BlobNotFound; the run log archive contains only the selector job; the run produced zero artifacts). No test output exists anywhere to read: zero from_block_request tests executed, no test result line, no failure. As with both prior runs, this is a venue/build-time failure, never a test failure — no red has ever been observed for A1.

    The pattern is now four evidenced data points, and it is structural:

    1. 46498682966 — 60-min budget, cold: nix build ate the window, 0 tests (EM, log 142130457777).
    2. 46510029441 — 60-min budget, followup: identical, 0 tests (EM, log 142170592665).
    3. 46507972728 — 120-min budget, cold (lane 0900-ED, fleet-registry form): cancelled at ~117 min still building the dev-shell closure (android-sdk, clan-cli, mcpx, go derivations), cargo never started (PR feat(fleet): register fleet id serve-ws in the registry, verbs.md, and book #17481 comment 7294158388).
    4. 46521639464 — 120-min budget + followup warm chain (this run): Execute never completed inside 125 min.

    Conclusion: the pkgs/fleet dev-shell closure build alone meets or exceeds the maximum job budget on this surface, warm chain or not. Re-arming the wake with the only remaining remedy: a genuinely pre-warmed nix surface — a completed warm-up run that publishes the dev-shell closure to the shared nix cache (--push-nix-cache), or a runner image with the closure prebuilt — after which a normal-budget dispatch of the same form should reach cargo. Do not re-dispatch the nix-develop form at any budget on fleet-forks until that warm surface exists; four cancellations say it cannot finish there. PASS bar unchanged for whoever runs it on the warm surface: firsthand log showing >=5 from_block_request tests passed / 0 failed. A1 code remains merged (PR #17392, e29cee1 / 6bd3988).

    Key: 0900-GM

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/leffort/mkind/refactorpriority/normalstatus/in-progress

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions