Repository navigation
fix: restore unique PR wrapper extraction inventory - #169547
Conversation
|
🦞👀 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 changesRemoves three duplicate paths from the trusted PR wrapper extraction inventory. Example: The extraction test reads src/chat/sender-identity.ts and the two duplicated session metadata paths.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a current-main inventory defect while preserving every extracted source path; no actionable correctness or security findings. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe PR wrapper reads a source inventory to select trusted repository files for isolated extraction; extraction tests consume that same inventory and check dependency closure. flowchart LR
A[Trusted repository revision] --> B[Wrapper source inventory]
B --> C[PR wrapper extraction]
C --> D[Verified extracted sources]
B --> E[Extraction regression tests]
D --> F[PR operations]
Technical reviewBest possible solution: Land the focused inventory repair while retaining the existing uniqueness and extracted dependency-closure checks. Do we have a high-confidence way to reproduce the issue? Current-main inventory contains the three repeated paths, and the unchanged test explicitly rejects them; the PR also supplies a matching before-and-after test report. Is this the best way to solve the issue? Removing duplicate inventory data fixes its producer directly and preserves the complete extracted file set without adding deduplication machinery or weakening coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 734d5b57f146. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceOther -3. Total -3 across 1 file. Added test files: 0. View PR surface stats
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 October 11, 2026, 10:45 PM ET / October 12, 2026, 02:45 UTC. |
## What Problem This Solves Fixes the PR wrapper extraction regression that makes `test/scripts/eager-import-closure.test.ts` fail on main. ## User Impact No application behavior changes. The trusted wrapper still extracts the same source files, once each. ## Why This Change Was Made Commit f99ca39 (openclaw#168199) added three inventory entries already introduced by 4700877 (openclaw#169327): `src/chat/sender-identity.ts`, `src/sessions/input-provenance.ts`, and `src/sessions/user-turn-transcript.metadata.ts`. `copyPrWrapperSources` faithfully copies and returns this production inventory; this is duplicate inventory data, not alias resolution or a graph traversal defect. Remove the three newly added duplicate lines while retaining their existing entries. The parent of openclaw#168199 has no duplicate inventory lines; that commit has exactly these three. The existing uniqueness assertion and extracted runtime-closure tests remain unchanged. No overlap with Pash/Sarah changes. ## Evidence Command: `node scripts/run-vitest.mjs run test/scripts/eager-import-closure.test.ts` - Before, on fetched `origin/main` 375d62b: **1 failed, 16 passed (17)**. The failing case is `resolves wrapper package exports and workspace aliases from the extracted dependency context`, at line 173; received the three duplicate paths above instead of `[]`. This newer main reproduces one failure, not the three previously reported at 7816f57. - After: **17 passed (17)**, including inventory closure, extracted dependency resolution, wrapper lease bootstrap, and legacy anchor cases. - `git diff --check`: passed. - `oxfmt --check --no-error-on-unmatched-pattern scripts/pr-lib/wrapper-components.txt`: exited successfully; plain-text inventory is not a supported formatting target (0 files). - `check-changed --dry-run` identifies the tooling lane. No TypeScript or JavaScript changed, so oxlint and tsgo do not have an applicable changed source target. - Searched open PRs for eager-import closure and wrapper duplication; found no existing fix for these three duplicate entries. Two-way door: reverting restores only the duplicate inventory entries. Blast radius is limited to PR wrapper extraction and its tests; no schema, stored state, configuration, or public API changes. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Fixes the PR wrapper extraction regression that makes
test/scripts/eager-import-closure.test.tsfail on main.User Impact
No application behavior changes. The trusted wrapper still extracts the same source files, once each.
Why This Change Was Made
Commit be2850e (#168199) added three inventory entries already introduced by cbc2017 (#169327):
src/chat/sender-identity.ts,src/sessions/input-provenance.ts, andsrc/sessions/user-turn-transcript.metadata.ts.copyPrWrapperSourcesfaithfully copies and returns this production inventory; this is duplicate inventory data, not alias resolution or a graph traversal defect.Remove the three newly added duplicate lines while retaining their existing entries. The parent of #168199 has no duplicate inventory lines; that commit has exactly these three. The existing uniqueness assertion and extracted runtime-closure tests remain unchanged.
Evidence
Command:
node scripts/run-vitest.mjs run test/scripts/eager-import-closure.test.tsorigin/main6ce48cb: 1 failed, 16 passed (17). The failing case isresolves wrapper package exports and workspace aliases from the extracted dependency context, at line 173; received the three duplicate paths above instead of[]. This newer main reproduces one failure, not the three previously reported at 52200cf.git diff --check: passed.oxfmt --check --no-error-on-unmatched-pattern scripts/pr-lib/wrapper-components.txt: exited successfully; plain-text inventory is not a supported formatting target (0 files).check-changed --dry-runidentifies the tooling lane. No TypeScript or JavaScript changed, so oxlint and tsgo do not have an applicable changed source target.Two-way door: reverting restores only the duplicate inventory entries. Blast radius is limited to PR wrapper extraction and its tests; no schema, stored state, configuration, or public API changes.