Repository navigation
test(pm-aggregator): #13507 — dynamic-import the decision-routes alias oracle - #17699
Merged
developing-today-fleet[bot] merged 1 commit intoNov 30, 2026
Merged
Conversation
…s oracle (loadConfig landmine)
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
developing-today-fleet
Bot
deleted the
xaltha/13507-alias-test-dynamic-import
branch
November 30, 2026 21:56
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
afterNeedsUserAnsweredinneeds-user-aliases-13507.test.tsstatically imported../src/server-decision-routes.ts. That module pulls in server-wiring, whose top-levelloadConfig()throws whenPM_AGG_SOURCEis 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-botwith what you need.