Skip to content

fix(auth): main does not build after the identity path lookup moved - #200242

Merged
fuller-stack-dev merged 1 commit into
openclaw:mainfrom
fuller-stack-dev:fix/oauth-refresh-peers-identity-path-import
Nov 16, 2026
Merged

fuller-stack-dev merged 1 commit into
openclaw:mainfrom
fuller-stack-dev:fix/oauth-refresh-peers-identity-path-import

Conversation

@fuller-stack-dev

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: main has not typechecked or bundled since 9e66164.

src/agents/auth-profiles/oauth-refresh-peers.ts(2,10): error TS2724: '"../../infra/boundary-path.js"' has no exported member named 'resolveIdentityPathViaExistingAncestor'.
[MISSING_EXPORT] "resolveIdentityPathViaExistingAncestor" is not exported by "src/infra/boundary-path.ts".
   ╭─[ src/agents/auth-profiles/oauth-refresh-peers.ts:2:10 ]

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:

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.mjs on a set that needs the compiled subprocess bundle: "Build failed with 1 error", the MISSING_EXPORT above. The same failure occurs on 9e66164.

Green, this change

  • pnpm tsgo:all: no errors.
  • node scripts/run-vitest.mjs on the src/agents/auth-profiles/oauth*.test.ts files: 12 files, 165 tests passed.
  • The update-service test set that failed to build on main now runs: 24 files, 418 passed, 16 skipped.
  • oxfmt --check on 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.

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.
@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 98da788a1115db89de99db8bfb6f91ae71135fa5
  • Maintainer: @fuller-stack-dev
  • Repository role: maintain

These security sensitive changes were made:

  • src/agents/auth-profiles/oauth-refresh-peers.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 16, 2026
@clawsweeper

clawsweeper Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR imports the OAuth peer identity resolver from its new canonical module.

Example: Typechecking main after the identity resolver moved in commit 9e66164.

  • Before: oauth-refresh-peers.ts imports a removed boundary-path export, producing TS2724 and a bundler MISSING_EXPORT error.
  • After: The import resolves to the existing export in path-existence.ts.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-verified repair with reported red/green validation and no findings; the supplied exact-head CI snapshot is still pending.
Proof confidence 🐚 platinum hermit (4/6) This build-only import repair has no intended user-visible runtime change; the supplied typecheck and affected-suite results support the source analysis.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Developers on main cannot typecheck or build bundle-dependent workflows because an auth module imports a removed export.
Reason: The maintainer-authored change restores a defined build contract without adding behavior, configuration, or a competing owner.

Regression provenance

Possible 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
Reviewed head: 98da788a1115db89de99db8bfb6f91ae71135fa5

Before merge

None.

Findings

None.

Agent review details

How this fits together

OAuth 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]
Loading

Technical review

Best 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

  • OAuth peer identity resolver import keeps the original intent (9323fb9: Prepare owner-path identity asynchronously so cold credential reads avoid synchronous filesystem probes.)
  • Canonical identity resolver module keeps the original intent (9e66164: Keep identity lookups passive by moving unchanged resolvers into the existing path-existence owner.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit b824b72 adds src/agents/auth-profiles/oauth-refresh-peers.ts:1 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b824b72ce284; files: src/agents/auth-profiles/oauth-refresh-peers.ts)

PR surface

Source 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 1 0

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P1: The current-main missing export breaks typechecking and bundle-dependent workflows; released versions are reported unaffected.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P1: The current-main missing export breaks typechecking and bundle-dependent workflows; released versions are reported unaffected.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 16, 2026, 3:18 PM ET / 20:18 UTC.

@fuller-stack-dev
fuller-stack-dev merged commit 0879f3e into openclaw:main Nov 16, 2026
125 checks passed
@fuller-stack-dev

Copy link
Copy Markdown
Member Author

Merged via squash.

@fuller-stack-dev
fuller-stack-dev deleted the fix/oauth-refresh-peers-identity-path-import branch November 16, 2026 20:22
roboclaw-bot added a commit that referenced this pull request Nov 17, 2026
Includes 0879f3e (#200242), which fixes the inherited missing export blocking this PR CI.

Co-authored-by: VACInc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 17, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. security-sensitive-changed size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant