Skip to content

fix: PR workflow tests fail after repository identity lookup - #149289

Closed
steipete wants to merge 2 commits into
mainfrom
codex/pr-repository-identity-fixtures
Closed

steipete wants to merge 2 commits into
mainfrom
codex/pr-repository-identity-fixtures

Conversation

@steipete

@steipete steipete commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

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, and pr-crabbox-merge-bypass; then 141 in pr-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.

@clawsweeper

clawsweeper Bot commented Sep 15, 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.

@steipete
steipete marked this pull request as ready for review September 15, 2026 17:10
@steipete steipete self-assigned this Sep 15, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 15, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 1:45 PM ET / 17:45 UTC (Revision 2).

ClawSweeper review

What this changes

Updates 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
Reviewed head: 854c5e39ba82b2ae914c6691308742eeae56a785

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused fixture repair with preserved behavioral assertions, reported targeted validation, and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The contributor runtime-proof gate does not apply to this maintainer-authored fixture repair; reported suite results support the changed fake-client contract without claiming live GitHub merge proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The contributor runtime-proof gate does not apply to this maintainer-authored fixture repair; reported suite results support the changed fake-client contract without claiming live GitHub merge proof.
Evidence reviewed 7 items Verified introduced patch: The merge-base-to-head diff changes only test fixtures and their expected metadata calls. Production merge checks, authorization, timeouts, and behavioral assertions are unchanged.
Production identity contract: Initialization obtains the repository locator, requests fresh REST metadata, and constructs node-ID and numeric-ID representations. Retained records must match either complete representation; remote GraphQL observations recheck the corresponding identity.
Repair remains absent from inspected main: At fetched main, production initialization requests nameWithOwner,url and the authoritative REST lookup, while the operation-lock fixture still matches the retired id,nameWithOwner,url request and lacks that REST response. The four-file comparison also retains the proposed fixture repairs.
Findings None None.
Security None None.

How this fits together

OpenClaw’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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +17. Total +17 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 29 12 +17
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 29 12 +17

Review metrics

None.

Technical review

Best 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.

Labels

Label justifications:

  • P2: This bounded tooling repair restores existing PR-workflow test coverage without changing product behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The contributor runtime-proof gate does not apply to this maintainer-authored fixture repair; reported suite results support the changed fake-client contract without claiming live GitHub merge proof.

Evidence

What I checked:

  • Verified introduced patch: The merge-base-to-head diff changes only test fixtures and their expected metadata calls. Production merge checks, authorization, timeouts, and behavioral assertions are unchanged. (test/scripts/pr-cross-checkout.test.ts:73, 854c5e39ba82)
  • Production identity contract: Initialization obtains the repository locator, requests fresh REST metadata, and constructs node-ID and numeric-ID representations. Retained records must match either complete representation; remote GraphQL observations recheck the corresponding identity. (scripts/pr-lib/merge-outcome.sh:20, 854c5e39ba82)
  • Repair remains absent from inspected main: At fetched main, production initialization requests nameWithOwner,url and the authoritative REST lookup, while the operation-lock fixture still matches the retired id,nameWithOwner,url request and lacks that REST response. The four-file comparison also retains the proposed fixture repairs. (test/scripts/pr-operation-lock.test.ts:1900, 7bc9893a0818)
  • Re-review continuity and validation: The previous completed review retained no findings. Comparing its reviewed head with the final head shows only the operation-lock fixture correction. The captured PR body reports 274 passing tests across five suites, in their original order, plus targeted checks; these executions were not repeated during this read-only review. (test/scripts/pr-operation-lock.test.ts:1888, 854c5e39ba82)
  • Related identity implementation and routing: GitHub commit metadata identifies steipete as the author of the merged identity-contract work in fix(scripts): preserve merge receipts across repository ID formats #149230. Its patch explains the REST request and dual identity formats these fixtures now supply. Local blame/history traversal encountered unavailable objects, so no independently verified source-line introduction attribution is claimed. (scripts/pr-lib/merge-outcome.sh:34, 7e8a52c3f76e)
  • Overlapping repair remains open: fix: PR workflow tests fail during repository identity checks #149294 addresses the same missing fixture responses and touches the same four files. A live GitHub read confirms it remains open and unmerged; it does not establish an implemented-on-main closure. (348bf025a823)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-15T17:18:52.023Z sha 89321f8 :: needs maintainer review before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

Superseded by #149294, which landed the same four repository-identity fixture repairs in 7dc8a1e79659afb833df4bbfe363744c8d775e5c. I verified that commit is on main: main-refresh and operation-lock are byte-identical, while cross-checkout and crabbox provide equivalent numeric/node-ID authority responses with unchanged assertions.

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.

@steipete steipete closed this Sep 15, 2026
fuller-stack-dev pushed a commit that referenced this pull request Sep 15, 2026
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)
fuller-stack-dev pushed a commit that referenced this pull request Sep 16, 2026
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
fuller-stack-dev added a commit that referenced this pull request Sep 16, 2026
* 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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 17, 2026
…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]>
@RomneyDa
RomneyDa deleted the codex/pr-repository-identity-fixtures branch October 22, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant