Repository navigation
refactor: canonicalize aliases and classify test suites - #122407
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 12, 2026, 12:05 AM ET / 04:05 UTC. ClawSweeper reviewWhat this changesThe PR removes selected internal re-export aliases and recognizes imported Merge readinessKeep open. Current main still has the ambiguous Gateway re-export and does not classify Priority: P3 Review scores
Verification
How this fits togetherGateway callers read persisted session state through a shared accessor barrel, and CI path classifiers decide whether changed files require build artifacts or focused test work. The PR clarifies the accessor name and routes suite-support files through test-only policy. flowchart LR
A[Changed repository path] --> B[Shared path facts]
B --> C[Build impact decision]
B --> D[Changed test planner]
E[Gateway caller] --> F[Session accessor barrel]
F --> G[Read-only session store]
C --> H[CI build work]
D --> I[Focused test entry]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +21, Tests +23, Other -2. Total +42 across 63 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge after the exact-head checks and any latest ClawSweeper Rank-up moves are satisfied; retain the canonical accessor export and classify suite files as test support rather than standalone test entries. Do we have a high-confidence way to reproduce the issue? Not applicable as a user bug: source inspection establishes the current classifier and accessor aliases, while the PR body provides after-fix terminal evidence for the internal tooling behavior. Is this the best way to solve the issue? Yes. Renaming consumers at the Gateway barrel and treating AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2a1eba771342. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
Resolves two maintainer-tooling problems: selected re-export aliases hid their defining symbol names from repository search, and imported Gateway
*.suite.tstest sources were classified as production by CI and max-lines governance.Why This Change Was Made
The Gateway session read and workspace migration receipt paths now use their defining-module names through every caller. Deliberate filesystem, media-kind, and transcript domain aliases remain, with each re-export explicitly marked as sanctioned.
The existing
*.suite.tsconvention remains intact: three Gateway auth suites are imported by thin*.test.tsentry files, and Knip/dynamic-import/topology tooling already recognizes the suffix. Shared path facts, CI build-impact classification, and oxlint now consistently treat it as imported test support without making it a directly runnable Vitest entry.server.auth.control-ui.suite.tsremains above the test-side 1,000-line budget, so its existing grandfathered max-lines debt still needs a separate split. This PR adds no suppression or baseline entry.User Impact
No product behavior changes. Maintainers get truthful symbol searches, test-only CI routing for
*.suite.ts, and the correct test-side max-lines policy.Evidence
server.auth.control-ui.suite.tsreportedbuildArtifact: true,isChangedLaneTest: false, andisTestOnly: false; after the fix it reportsfalse,true, andtruerespectively while changed-test planning still selectsserver.auth.control-ui.test.ts.pnpm lint:tmp:export-name-collisionspassed; the two verified misleading aliases are gone and sanctioned aliases remain informational with inline triage comments.pnpm check:wrapper-shadowingpassed.pnpm plugin-sdk:surface:checkpassed.pnpm check:max-lines-ratchet --base origin/mainpassed with 934 grandfathered entries and no growth.node scripts/check-changed.mjspassed all stages through deprecated API usage, then stopped on the existing unrelated plugin-boundary compatibility debt (eligibleForRemoval=1); this diff does not change that registry or compatibility surface.Raw numstat classification: production
+108/-87(net+21, formatter reflow from the longer canonical identifier; semantic production LOC net0), tests/test-support+59/-37(net+22), tooling/config+19/-21(net-2). Total: 61 files,+186/-145.