Skip to content

test(pm-aggregator): #13507 — dynamic-import the decision-routes alias oracle - #17699

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/13507-alias-test-dynamic-import
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/13507-alias-test-dynamic-import

Conversation

@developing-today-fleet

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

Copy link
Copy Markdown
Contributor

Refs #13507. Test-only fix-forward for a defect introduced by #17620 (my sub-slice 2, merged by the landing sweep on full-diff verification).

The identity oracle for afterNeedsUserAnswered in needs-user-aliases-13507.test.ts statically imported ../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 load-time landmine the edge-answers suite documents in its own test comment. In combined-suite runs the static import errors this file's module load and poisons the edge-answers token-gate test: deterministic failure in runs 46517036315 + 46518903141 (154 pass / 1 fail + 1 load error, PM_AGG_SOURCE=null), while the identical set passed on main in run 46517863291 by load-order luck.

Fix: the oracle now dynamic-imports the routes module under the same PM_AGG_DEV guard pattern the edge-answers suite uses, restoring the environment afterwards. No production code changes; the identity assertion is unchanged.

Verification: pending remote dispatch on this exact head — the same 9-file aggregator suite set that failed deterministically, + bunx tsc --noEmit. Merge on green.

{
  "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-30T21:49:12Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch/workspace/github-work/code-13507-ej4",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch/workspace/github-work/code-13507-ej4",
      "repo": "developing-today/code",
      "branch": "xaltha/13507-alias-test-dynamic-import",
      "sha": "50687fccf35de2579fb571ab32c4ca1e4370401e"
    },
    "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.

@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: 7aa2c667-0125-4da4-ae84-5b7cdc5ca126

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
developing-today-fleet Bot merged commit ade789e into main Nov 30, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the xaltha/13507-alias-test-dynamic-import branch November 30, 2026 21:56
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