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:45 PM ET / 17:45 UTC (Revision 2). ClawSweeper reviewWhat this changesUpdates fake GitHub responses in PR-workflow tests so repository identity checks accept consistent node and numeric IDs and reach the existing merge, recovery, and cleanup assertions. Merge readiness✅ Ready for maintainer review Keep open. The fixture repair remains necessary on inspected main, and no actionable defect was found in the final patch. The overlapping PR is still unmerged; this maintainer-authored work is protected from automatic closure. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s native PR tooling checks GitHub repository identity before merging or recovering retained merge records. These tests supply synthetic GitHub responses while exercising workflow ownership, recovery, and cleanup behavior. flowchart LR
A[Synthetic repository metadata] --> B[Fake GitHub client]
B --> C[Native PR workflow]
D[Retained merge records] --> C
C --> E[Identity validation]
E --> F[Recovery and cleanup assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +17. Total +17 across 4 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep fixtures aligned with the authoritative repository identity contract while preserving historical receipt, refusal, ownership, and cleanup coverage. Do we have a high-confidence way to reproduce the issue? Yes, from source: current-main workflow initialization issues requests the stale fake GitHub clients cannot answer correctly. The PR reports failing CI and passing repaired suites; no tests were executed in this read-only review. Is this the best way to solve the issue? Yes. Updating the existing response fixtures is the narrow repair and preserves production validation instead of weakening it to accommodate stale test data. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7bc9893a0818. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Superseded by #149294, which landed the same four repository-identity fixture repairs in Closing this duplicate. The profiler and session-catalog PRs are being restacked onto the landed fixtures. This branch passed 274 local tests across five suites; its latest hosted CI did not finish before the watcher stopped on the merge conflict. |
* fix(agents): restore history after failed context assembly * fix(agents): restore validated history after failed context hooks * fix(scripts): preserve merge receipts across repository ID formats (#149230) Bind native PR initialization to GitHub's authoritative node/database ID pair while preserving exact historical repository objects and recovery provenance. Reject unknown identities, numeric strings, and extra fields. Consume the landed prerequisite unchanged for #117328 CI fixture repair. (cherry picked from commit 7e8a52c) * test: refresh repository identity fixtures for PR workflows Consume Peter's canonical #149289 fixture repair unchanged. Original 133-case proof retained with exact fixture, runtime, runner and dependency bindings; no replay. (cherry picked from commit 89321f8) * test: align native PR identity fixtures with landed repair Preserve the two remaining fixture corrections from Peter Steinberger's landed #149294 after adopting the earlier #149289 repair. Both files match the landed source exactly; Context history source is unchanged. Source-commit: 7dc8a1e * test(agents): extract context guard fixtures for line caps Move unchanged message and guard fixtures into a shared test-support module. Preserve every test body and keep the line-cap configuration unchanged. --------- Co-authored-by: Jason (Json) <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
…17328) * fix(agents): restore history after failed context assembly * fix(agents): restore validated history after failed context hooks * fix(scripts): preserve merge receipts across repository ID formats (openclaw#149230) Bind native PR initialization to GitHub's authoritative node/database ID pair while preserving exact historical repository objects and recovery provenance. Reject unknown identities, numeric strings, and extra fields. Consume the landed prerequisite unchanged for openclaw#117328 CI fixture repair. (cherry picked from commit 3492551) * test: refresh repository identity fixtures for PR workflows Consume Peter's canonical openclaw#149289 fixture repair unchanged. Original 133-case proof retained with exact fixture, runtime, runner and dependency bindings; no replay. (cherry picked from commit 89321f8) * test: align native PR identity fixtures with landed repair Preserve the two remaining fixture corrections from Peter Steinberger's landed openclaw#149294 after adopting the earlier openclaw#149289 repair. Both files match the landed source exactly; Context history source is unchanged. Source-commit: 3df0afa * test(agents): extract context guard fixtures for line caps Move unchanged message and guard fixtures into a shared test-support module. Preserve every test body and keep the line-cap configuration unchanged. --------- Co-authored-by: Jason (Json) <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes five PR-tooling test suites failing after #149230 added an authoritative repository identity lookup, blocking unrelated pull requests.
User Impact
No user-visible behavior change. Restores the existing merge, recovery, operation-lock, and cross-checkout fixture coverage without changing production merge checks.
Why This Change Was Made
The fixtures now answer the exact repository REST lookup and provide consistent GraphQL node and database IDs. Historical numeric receipt identities remain intact. Existing ownership, corruption, refusal, freshness, cleanup, and no-redispatch assertions still run.
Evidence
The failures occurred in CI for #149276 and this PR's CI, where the stale operation-lock fixture remained after the first repair.
All 274 tests pass in the five affected suites, each run in its original order: 133 across
pr-cross-checkout,pr-merge-hosted,pr-main-refresh, andpr-crabbox-merge-bypass; then 141 inpr-operation-lock. The first four stayed unchanged during the final fixture repair. A bounded audit of PR merge entrypoints found no remaining retired locator matcher.Independent Codex reviews through P2 found no actionable issues. Root-test typechecking, targeted typed lint, formatting, and diff checks passed; the shell-text-only follow-up also passed its one-file typed lint and formatting checks. Hosted CI for the final head remains pending.