Repository navigation
fix(auth): main does not build after the identity path lookup moved - #200242
Conversation
openclaw#200203 moved resolveIdentityPathViaExistingAncestor from src/infra/boundary-path.ts to src/infra/path-existence.ts. openclaw#200192, merged just before it, added a new import of that function from boundary-path.js in oauth-refresh-peers.ts, so main has failed to typecheck and bundle since 9e66164. Import it from path-existence.js, as openclaw#200203 did for the other callers.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
|
Codex review: needs maintainer review before merge. What this changesThis PR imports the OAuth peer identity resolver from its new canonical module. Example: Typechecking main after the identity resolver moved in commit 9e66164.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review This PR fixes a confirmed missing-export error on main with the smallest complete change; no actionable defects were found. Priority: P1 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherOAuth peer discovery canonicalizes the owner database path before excluding it from candidate credential stores; this change repairs only the module supplying that resolver. flowchart LR
A[OAuth refresh] --> B[Peer discovery]
B --> C[Path existence resolver]
C --> D[Canonical owner path]
D --> E[Filter candidate stores]
E --> F[Existing peer transitions]
Technical reviewBest possible solution: Use the existing path-existence export without restoring the retired export or changing resolver behavior. Do we have a high-confidence way to reproduce the issue? The pinned main imports a symbol that boundary-path.ts no longer exports, while path-existence.ts exports it; the PR supplies matching compiler and bundler failure traces, but this read-only review executed no target code. Is this the best way to solve the issue? The import correction completes the intentional relocation and preserves the existing async resolver, peer filtering, and credential lifecycle. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 800bd59c1a3a. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0. Total 0 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 16, 2026, 3:18 PM ET / 20:18 UTC. |
|
Merged via squash.
|
Includes 0879f3e (#200242), which fixes the inherited missing export blocking this PR CI. Co-authored-by: VACInc <[email protected]>
…penclaw#200242) openclaw#200203 moved resolveIdentityPathViaExistingAncestor from src/infra/boundary-path.ts to src/infra/path-existence.ts. openclaw#200192, merged just before it, added a new import of that function from boundary-path.js in oauth-refresh-peers.ts, so main has failed to typecheck and bundle since 8ecc0fc. Import it from path-existence.js, as openclaw#200203 did for the other callers.
What Problem This Solves
Fixes:
mainhas not typechecked or bundled since 9e66164.User Impact
User impact: none for released versions. On
main, the build and any test that needs the compiled bundle fail; this restores them.Why This Change Was Made
Two PRs that each passed alone conflict once both are on
main:resolveIdentityPathViaExistingAncestorfromsrc/infra/boundary-path.jsinoauth-refresh-peers.ts.src/infra/path-existence.tsand updated the callers that existed on its base.This change imports it from
path-existence.js, the same edit #200203 made to the other callers. The function is the same one; behavior is unchanged.Evidence
Red, unmodified main at 4dfa434
pnpm tsgo:all: exit 2, with the single TS2724 error above.node scripts/run-vitest.mjson a set that needs the compiled subprocess bundle: "Build failed with 1 error", theMISSING_EXPORTabove. The same failure occurs on 9e66164.Green, this change
pnpm tsgo:all: no errors.node scripts/run-vitest.mjson thesrc/agents/auth-profiles/oauth*.test.tsfiles: 12 files, 165 tests passed.oxfmt --checkon the file: clean.Not run: the full suite; CI covers it. No test file changed, so none was audited. The autoreview helper cannot run on this machine; the change is one import line.