Repository navigation
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. Reviewed September 15, 2026, 1:52 PM ET / 17:52 UTC (Revision 3). ClawSweeper reviewWhat this changesUpdates fake GitHub responses so PR workflow tests pass repository identity checks and reach their merge, recovery, authorization, and cleanup assertions. Merge readiness✅ Ready for maintainer review This remains a useful, focused repair absent from fetched main. No actionable correctness or security findings remain, and the overlapping open PR does not establish a merged replacement. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw's maintainer tooling checks GitHub repository identity before merging or recovering recorded merge outcomes. These fixtures supply synthetic GitHub responses while exercising the workflow's ownership and cleanup checks. flowchart LR
A[Test scenarios] --> B[Fake GitHub client]
B --> C[REST and GraphQL metadata]
C --> D[Repository identity checks]
D --> E[Merge and recovery workflow]
E --> F[Ownership and cleanup assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +19. Total +19 across 4 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the authoritative identity checks and align the existing fixtures with their REST and GraphQL contract while preserving downstream assertions. Do we have a high-confidence way to reproduce the issue? Yes, from source: initialization requests a repository endpoint rejected by the original fake clients, preventing their intended assertions. The PR records matching failures; this review did not execute tests. Is this the best way to solve the issue? Yes. Updating existing fixture responses and accounting for the additional read is the narrow repair; production validation and meaningful rejection assertions remain intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 05c501ab7ebe. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Superseded by #149294, merged as
7dc8a1e79659afb833df4bbfe363744c8d775e5cwhile this PR was waiting for CI. Fetched main contains all four repository identity fixture repairs; this PR is closed without merging.What Problem This Solves
Fixes red main #37: PR wrapper tests fail during the repository identity lookup introduced by #149230, before reaching their merge and recovery assertions. This is an explicitly requested maintainer repair.
Refs #149230.
User Impact
No user-visible behavior change. Restores tooling coverage for hosted merge admission, cross-checkout recovery, live admin authorization, and native cleanup without changing production merge behavior.
Why This Change Was Made
Add exact repository metadata responses to the four fake GitHub implementations. REST node/database IDs agree with GraphQL responses and the numeric identity retained by the cross-checkout receipt. The shared fixture also repairs main-refresh coverage. Unknown endpoints remain rejected, and the existing merge, authorization, and no-redispatch assertions remain intact; call-count expectations account for the new metadata request.
Evidence
Before the fixture repair:
After the repair, the same three suites plus
test/scripts/pr-merge-outcome.test.tsandtest/scripts/pr-main-refresh.test.tspassed: 5 files, 424 tests.The first PR CI run exposed the same outdated repository contract in the operation-lock cleanup fixture (job 104483793080). A focused local reproduction confirmed it:
Updated that fixture's locator field list and exact REST response, keeping its lifecycle assertions unchanged.
node scripts/run-vitest.mjs test/scripts/pr-operation-lock.test.tsthen passed the full suite: 140 passed, 1 platform skip. Total local coverage: 564 passing tests across six suites.node scripts/check-changed.mjs -- test/scripts/pr-main-refresh.test-support.ts test/scripts/pr-cross-checkout.test.ts test/scripts/pr-crabbox-merge-bypass.test.ts test/scripts/pr-operation-lock.test.tspassed, including root-test typechecking, scoped lint, formatting, guards, and dead-export scans.git diff --checkpassed. Independent local and final committed-head reviews were scoped-clean at P1. Final-head CI had no failed or cancelled jobs at the last direct read, including a successful formerly failing cleanup shard. The watcher then stopped withCONFLICTING-MID-WAITafter #149294 landed the same repairs; this PR does not claim a green final CI run or a merge.An additional
node scripts/run-oxlint.mjs <the three files>invocation without a scoped tsconfig hit the known nested-checkout declaration-boundary error resolving an ancestor installation. The required check-changed scoped lint and directnode_modules/.bin/oxfmt --check <the three files>both passed. No dependencies or generated files were changed to work around it.Original failing jobs on PR #149055:
Production changes: none. Test support: +26/-7 lines. No contributor code was adopted.