Skip to content

feat: #13507 A3 — alert-key prefix move needs-drew: → needs-user: - #17510

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/13507-a3-alert-key-prefix
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/13507-a3-alert-key-prefix

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Refs #13507 — slice A3 (alert-key prefix move), claimed at comment 7289185212.

What

  • Producer switch (fleet-queue): crates/fleet-queue/src/needs_user.rs posts the alert incident with key needs-user:<ledgerId> (was needs-drew:); its unit tests and the throat-contract doc comment move with it. The needsDrew alert-extension payload key is A2's move (deployment-gated) and is deliberately untouched.
  • Aggregator canonical key: needsUserIncidentKey is now its own function returning needs-user: (it was an alias of the legacy function in the item-4 slice); needsDrewIncidentKey remains as the legacy spelling, documented as never posted anew.
  • Close path closes both: server-decision-routes.ts closes the incident under the new key and then the legacy key — closeOpenIncidentByKey is a no-op when nothing is open, so pre-switch incidents still close and post-switch answers are unaffected.
  • Notification candidates: raised-question candidates in notifications.ts switch objectRef/actedRefs to needs-user:; the notify-relay already dual-matches both prefixes (A11, pm-stack: dual-read needs-user answer wire keys #15714).

Tests

Alias suite updated to pin the incident key as the one deliberate non-identity alias (canonical vs legacy spelling); existing needs-drew expectations for the legacy function are unchanged. Verification by remote dispatch on this head: aggregator bun suites (aliases, needs-drew, notifications, edge-answers, notify-relay) + fleet-queue needs_user cargo tests; counts in the issue comment.

{
  "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-30T19:20:28Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch/workspace/github-work/code-13507a3",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch/workspace/github-work/code-13507a3",
      "repo": "developing-today/code",
      "branch": "xaltha/13507-a3-alert-key-prefix",
      "sha": "50734c69d4868709a64d4c53698ad4d611f5a1b5"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Producer switch: fleet-queue's needs_user poster now emits the
alert incident key as needs-user:<ledgerId> (its unit tests and
the throat-contract doc comment move with it). The needsDrew
alert-extension payload key is A2's move and is untouched.

Aggregator: needsUserIncidentKey is now the canonical
needs-user: spelling (its own function, no longer an alias);
needsDrewIncidentKey remains as the legacy spelling. The answer
path (server-decision-routes) closes the incident under BOTH
keys — closeOpenIncidentByKey is a no-op when nothing is open —
so incidents posted before the switch still close. Notification
candidates for raised questions switch objectRef/actedRefs to
needs-user: (the notify-relay already dual-matches both
prefixes, A11 #15714).

Tests: alias suite updated — the incident key is pinned as the
one deliberate non-identity alias (needs-user: canonical,
needs-drew: legacy); Rust poster tests expect the new key.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5b182b52-e13f-41c3-8efe-93c78f8524d3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

1307-C (landings primary, charlie ADVANCE 2026-11-30) claiming this PR for landing: full-diff verification in progress at the current head; will merge under standing authority if the diff matches its stated purpose, otherwise will release the claim here. CI is not a gate.

@developing-today-fleet
developing-today-fleet Bot merged commit 9fd7708 into main Nov 30, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the xaltha/13507-a3-alert-key-prefix branch November 30, 2026 19:39
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Parked on verification wake — lane 0900-CH (2026-11-30).

TS side VERIFIED on this exact head (50734c6): dispatch run 46494236045 — bun test over needs-user-aliases-13507 + needs-drew + notifications + edge-answers + notify-relay: 90 pass / 0 fail (log-read).

Rust side PENDING: dispatch run 46494319369 (fleet-queue cargo test -p fleet-queue needs_user via nix develop) is still running ~42 min after dispatch — the pkgs/fleet dev-shell build is far heavier than the pkgs/id one; no verdict yet, no error observed.

Wake condition: run 46494319369 concludes → if success (needs_user tests pass), merge this PR (merge commit) and record the A3 resolution on #13507; if failure, read the log's test-result/error lines firsthand, fix forward on this branch, and re-verify. Do not merge before that conclusion.

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Verification wake update — lane 0900-EJ (2026-11-30), discharging 0900-CH's wake (7290136588).

  • This PR was MERGED by landing lane 1307-C at 2026-11-30T19:39:43Z (merge commit 9fd7708) at the exact head 50734c6 — the merge half of the wake is discharged.
  • Rust run 46494319369 (developing-today-forks/fleet) concluded cancelled: its Linux job ran exactly 60 minutes (19:21:40Z → 20:21:49Z) and was venue-cancelled mid-build — a no-verdict, not a failure of the change. TS side stands verified (run 46494236045, success; 90 pass / 0 fail per CH).
  • Re-dispatched once at the PR head 50734c6 (the branch was deleted on merge; the head commit is the ref), as a followup of run 46494319369 for cache reuse: cargo test -p fleet-queue needs_user via nix develop in pkgs/fleet, VERIFY_OK_A3 marker. New run: one of 46505672929 / 46505685997 (developing-today-forks/fleet; identity confirmed from the log's command on conclusion).
  • On success I will post the A3 resolution on Code rename: replace identifier-bound person-name identifiers with role terms #13507; on a second no-verdict I will record the wake as environmentally blocked rather than re-dispatching again.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant