Repository navigation
test(plugins): canonicalize native resolver fixtures - #118174
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 2, 2026, 4:19 PM ET / 20:19 UTC. ClawSweeper reviewWhat this changesThis PR canonicalizes the temporary root used by Plugin SDK native-resolver fixtures so macOS assertions use the same real filesystem path as the resolver. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 3 items remain The one-line fixture change matches the native resolver’s existing canonical filesystem-identity contract and introduces no code-level defect. Keep this PR open under its protected Priority: P3 Review scores
Verification
How this fits togetherThe Plugin SDK native resolver maps imports from approved plugin and OpenClaw package roots to local SDK and internal-package files. Its tests construct fake OpenClaw package roots, then verify alias scanning, cache reuse, host isolation, and lifecycle invalidation. flowchart LR
A[Temporary test fixture] --> B[Fake OpenClaw package]
B --> C[Native resolver host-root identity]
C --> D[Internal package alias scan]
D --> E[Cache and lifecycle assertions]
Before merge
Agent review detailsSecurityNone. PR surfaceTests 0. Total 0 across 1 file. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve production resolver behavior and land the fixture-only canonicalization after a redacted macOS terminal transcript shows the original focused failure and the repaired focused run. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: on macOS the resolver canonicalizes the fake host root while the current fixture and spy expectation retain the lexical temporary path. A direct current-main run requires a macOS host. Is this the best way to solve the issue? Yes: canonicalizing the fixture at its path producer mirrors the resolver’s real-path boundary, preserves production behavior, and avoids weakening assertions that protect cache identity. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3a2337ece4f9. LabelsLabel changes:
Label 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
|
|
Exact-head landing proof for
Ready to land through the repository-native merge gate. |
|
Merged via squash.
|
* origin/main: feat(gateway): track event-loop degradation persistence and add concurrency benchmark (#118193) fix(config): preserve secret ownership when configuration rows move (#118149) fix(cron): deliver failure alerts after persistence (#118200) chore(lint): clear 172 lint:all baseline violations in five batches (#118098) perf(gateway): remove streaming hot-path rescans (#118192) test(gateway): use in-memory task registry (#118191) test(macos): fix three races in the bounded process suites (#118196) refactor(migrate-hermes): consolidate test fixtures (#118182) test(android): share Wear transport fixtures (#118177) test(ui): deduplicate control UI e2e setup (#118180) fix(plugins): unblock prerelease validation (#118103) test(cli): reduce redundant process launches (#118141) test(gateway): compact terminal observer fixtures (#118179) fix(agents): make requested threads sidebar-visible (#118073) test(plugins): canonicalize native resolver fixtures (#118174) test: deduplicate agent runner fixtures (#118176) refactor(policy): consolidate doctor test fixtures (#118173) fix(plugins): remove disabled channel plugin configuration on uninstall (#118127) refactor(matrix): consolidate monitor test fixtures (#118175)
* origin/main: feat(gateway): track event-loop degradation persistence and add concurrency benchmark (openclaw#118193) fix(config): preserve secret ownership when configuration rows move (openclaw#118149) fix(cron): deliver failure alerts after persistence (openclaw#118200) chore(lint): clear 172 lint:all baseline violations in five batches (openclaw#118098) perf(gateway): remove streaming hot-path rescans (openclaw#118192) test(gateway): use in-memory task registry (openclaw#118191) test(macos): fix three races in the bounded process suites (openclaw#118196) refactor(migrate-hermes): consolidate test fixtures (openclaw#118182) test(android): share Wear transport fixtures (openclaw#118177) test(ui): deduplicate control UI e2e setup (openclaw#118180) fix(plugins): unblock prerelease validation (openclaw#118103) test(cli): reduce redundant process launches (openclaw#118141) test(gateway): compact terminal observer fixtures (openclaw#118179) fix(agents): make requested threads sidebar-visible (openclaw#118073) test(plugins): canonicalize native resolver fixtures (openclaw#118174) test: deduplicate agent runner fixtures (openclaw#118176) refactor(policy): consolidate doctor test fixtures (openclaw#118173) fix(plugins): remove disabled channel plugin configuration on uninstall (openclaw#118127) refactor(matrix): consolidate monitor test fixtures (openclaw#118175)
Summary
Root cause and fix
The test fixture retained the lexical
/var/...path returned bymkdtemp, while the production resolver canonicalizes the loader package root to/private/var/...before scanning internal package aliases. Three spy expectations therefore compared different spellings of the same source files.The fixture now resolves its temporary root once before creating the fake package. Production delta is 0 lines.
Closes #118172
Proof
Exact candidate head:
48714e7eb80e2e3b21545d8354912c0c32ea799enode scripts/run-vitest.mjs src/plugins/plugin-sdk-native-resolver.test.ts— 15/15 passed after final rebasenode scripts/check-changed.mjs -- src/plugins/plugin-sdk-native-resolver.test.ts— passed on Blacksmith Testboxtbx_01kz217pdg6671tfqv64fw9trm(run)macOS before/after terminal proof
Host: Darwin, macOS 27.0. Only the random per-user temporary-directory component is redacted below.
The candidate and current
origin/mainare byte-identical in the resolver surface except for this fixture line. Restoring the exact current-main line on the candidate checkout reproduces the defect:Restoring the candidate line on the same checkout and host fixes all three path-identity assertions:
Changelog
Not required: test-only reliability fix with no runtime behavior change.