Repository navigation
fix: continue own public PRs without personal linking - #188148
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 changesAllows the original guest to continue its recorded public PR without linking a personal GitHub account. Example: An unlinked guest has saved artifact.txt changes when another contributor appends maintainer.txt to its bot-published PR.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR repairs a current-main continuation failure, with no introduced defect found and green exact-head checks. Priority: P1 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Gateway combines requester authority, session publication receipts, and GitHub observations to authorize workspace preparation and subsequent PR writes. flowchart TD
A[Guest tool request] --> B[Current requester authority]
B --> C[Session publication receipt]
C --> D[Public PR inspection]
D --> E[Workspace integration]
E --> F[Current write preflight]
F --> G[Conditional Git push]
Technical reviewBest possible solution: Retain the receipt-scoped public continuation repair in the existing inspection and write-preflight owners. Do we have a high-confidence way to reproduce the issue? Main deterministically rejects the unlinked requester at the reader guard, matching the linked live report and reported failing-base regression; this read-only review ran no target code. Is this the best way to solve the issue? The patch is the smallest complete repair found: it admits only a matching public publication through existing owners and carries that restriction into later write checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4d38d2e66e6c. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +58, Tests +82, Docs +5, Other +2. Total +147 across 11 files. Added test files: 0. View PR surface stats
Review metrics
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 30, 2026, 2:48 AM ET / 06:48 UTC. |
|
Fixed: original guests can reconcile and update their recorded public pull requests without personal GitHub linking. |
Allow original guests to reconcile and update their recorded public pull requests through the current managed publisher without personal account linking, preserving saved work and existing authorization checks. Fixes openclaw#188133.
(cherry picked from commit 65602ab) Release adaptation: exclude test allocation metadata; preserve baseline project-base refresh tests alongside public continuation and private/revoked-access regressions. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 48176250bae0c9416bb7085dd90d0510a54cff88)
Source commits: cd963a2 (openclaw#188341), 90d82c2 (openclaw#188203), 65602ab (openclaw#188148). Release adaptation: formatting and import ordering only after bounded conflict resolution; no behavior changes or additional source hunks. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 217f1dc819fe353d5a4ee38f0c14ef84c97d6aab)
Closes #188133.
What Problem This Solves
An original guest can publish a public PR through the configured managed GitHub account, but cannot recover when another writer advances its head unless the guest also links a personal account. The documented
prepare_prrecovery rejects the guest before considering the conversation's own publication record. This leaves saved local work intact but prevents reconciliation and another update to that same PR.The existing continuation work in #187465 already recognizes the recorded PR and publisher as an authorship basis. Its successful regression always linked a personal account, so it did not exercise this remaining admission failure.
User Impact
The original guest can prepare its recorded public PR and publish the combined work back to it without adding a personal GitHub connection. The requested URL must identify the recorded PR, the current publisher must match the recorded identity, and both base and head repositories must be public. Existing creator, session/workspace, author, head, branch protection and publisher write checks remain in force.
Private-repository access and imports of other PRs retain their linked-account requirements. There is no new setting, schema, stored identity, credential exposure or public protocol field. A repository becoming private during preparation or before a later write is refused while preserving saved work.
Why This Change Was Made
The shared inspection owner now receives the existing publication record alongside its reader identity. An unlinked reader is admitted only for that exact recorded public continuation, using the existing publisher-identity matcher. Ordinary readers still require personal linkage. This same owner serves preparation, subsequent publication and bound PR metadata operations, so the repair covers the complete continuation.
The public-only requirement also reaches the existing write preflight. Those preflights already read current repository metadata; checking visibility there adds no additional GitHub request. This prevents a public observation from later being used as private-repository authority. The canonical documentation now states the public continuation boundary explicitly.
Evidence
On unchanged production commit
87facf07d6b4907846c4a8e4c7ae551f85571420, a fresh guest published a JSON invoice CLI to a public PR, saved three uncommitted TSV companion files, and an independent contributor appended CSV output to the remote branch. A natural request to reconcile and update the same PR actually invokedprepare_prand returned “Link a verified GitHub account on the configured host before inspecting your PR.” All saved TSV hashes and the local head remained unchanged. This was preparation itself, not an optional inspection preflight.The existing production tool/Gateway/Git regression was extended with the missing unlinked condition. It failed on unchanged production code at the same guard, with 16 controls passing. With this repair, the unlinked case prepares the advanced head, preserves the remote commit and saved local edit, and performs one conditional append to the same PR.
Remote validation passed changed-file formatting/lint, the affected production and test type graphs, and 277 related tests across 13 files, reusing unchanged passing results after two test-expectation corrections. Controls cover private base/head repositories despite publisher access, another PR or author, publisher replacement, requester revocation, and visibility changes during source fetch or before publication. GitHub transport in these tests is synthetic; Git and the session/publication owners are real.
The changed refresh file's final 24-case run took 101.07 seconds wall time on the retained four-CPU runner, including transformation. Its real Git/SQLite preparation, recovery and publication composition is intentionally retained; a pure helper test would miss the original failure. The 82-line allocation records only the required net regression growth and leaves the shared scalar unchanged.
The same retained live conversation was then updated to committed head
5a2072c4315652642ada662cc2aef2d9272a1bc1. Its original guest, still without a personal GitHub identity, successfully prepared the independent revision and published the combined work to the same public PR. The native publication receipt settled aspublishedat82ce2377a8d888f088007392a65fa883d673e344; the original publication and independent CSV revision both remain in its ancestry. The guest, session, workspace, publisher, head branch and open/unmerged PR identity were preserved.The actual native command passed 52 Python tests and three existing Node tests before publishing. All 17 published files match the actual tested workspace projection and canonical workspace. The three saved TSV files retain their original hashes, and the teammate's CSV implementation and command tests are unchanged. Integration added a combined-format check and updated the fixture README. This proof covers preparation and publication; separate queued-notification delivery is outside this repair.
Independent engineering review is clean on the exact head. Hosted CI and the final required-check observation are green. ClawSweeper's exact-head review reports no findings, Gold overall and Platinum patch quality; that review preceded the live after-test and its stated proof limit is retained.
Visual evidence
Native guest continuation at 3×, followed by a labeled later confirmation still
proof.mp4
Visual verification
5a2072c4315652642ada662cc2aef2d9272a1bc1