Skip to content

fix: continue own public PRs without personal linking - #188148

Merged
shakkernerd merged 1 commit into
mainfrom
studio-r96-public-pr-continuation
Oct 30, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
studio-r96-public-pr-continuation

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

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_pr recovery 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 invoked prepare_pr and 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 as published at 82ce2377a8d888f088007392a65fa883d673e344; 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

Open preview

Before After
Original public PR preparation refuses the unlinked guest and preserves saved work Same PR updated with independent history, saved TSV files and passing combined tests

Native guest continuation at 3×, followed by a labeled later confirmation still

proof.mp4

Visual verification

  • Baseline: 87facf0
  • Exact head: 5a2072c4315652642ada662cc2aef2d9272a1bc1
  • Scenario: Original guest reconciles an independent CSV revision with saved TSV work and updates the same public PR through its recorded managed publisher.
  • Runtime/build: OpenClaw 2026.10.9-5a2072c43156-2026-10-30T06-37-07.979Z; same guest/session/workspace; 1440x1000 source viewport, matched 780x300 outcome crops.
  • PR identity: Same public PR Remove hardcoded pnpm path #66 and head branch; original and independent commits remain ancestors.
  • Preservation: Three TSV files unchanged; all 17 published files equal the actual tested projection and canonical workspace.
  • Native verification: 52 Python tests and 3 existing Node tests passed before publication.
  • Authority: Same original creator, guest scopes and publisher; personal GitHub identity remains absent.
  • Actual prepare_pr failed on the frozen baseline and returned prepared on the exact repaired head.
  • The original guest submitted each natural request through the real UI; no direct guest Git workaround or replacement PR.
  • The native publication receipt settled as published and GitHub confirms the same open, unmerged PR.
  • Video retains the actual interaction at 3×; the later focused result is explicitly labeled and does not imply continuous capture through background settlement.
  • Full raw frames and recordings are retained privately; unrelated notification delivery is outside this comparison and is not claimed repaired.

@clawsweeper

clawsweeper Bot commented Oct 30, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: M labels Oct 30, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 30, 2026
@clawsweeper

clawsweeper Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: prepare_pr refuses the guest because no personal GitHub identity is linked.
  • After: prepare_pr integrates maintainer.txt while preserving artifact.txt, and publication appends both to the same PR.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused and correct with meaningful authority coverage; proof confidence is bounded by synthetic GitHub transport rather than a live repaired-head demonstration.
Proof confidence 🦐 gold shrimp (3/6) Sufficient (terminal): For this maintainer-authored authority change, the reported production-owner harness covers allowed unlinked preparation and conditional publication, nearest-forbidden PR/author/publisher and private-repository cases, and requester revocation with unchanged source or zero pushes; source inspection confirms the real authorization owners, while GitHub transport remains synthetic.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: An original guest cannot reconcile and update its already published public PR without adding a personal GitHub connection.
Reason: This maintainer-authored repair restores documented continuation while preserving saved work and existing private-access boundaries.

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
Reviewed head: 5a2072c4315652642ada662cc2aef2d9272a1bc1

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The live same-conversation prepare-and-publish run on the repaired head remains pending; the reported production-owner regression is red on base and green on head.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Linked own-PR reader changes intended behavior with a stated reason (01c2c60: Own-PR inspection required verified linked authorship and repository access; feat: inspect existing own pull requests #178055 explains that boundary, and the reader was subsequently extracted in 81e6c65.)
  • Receipt-based bot continuation keeps the original intent (4ececc4: Permit a session to integrate another writer's commits into its own recorded bot-published PR without replacing the PR or discarding local work.)
  • Existing PR write eligibility keeps the original intent (9218dca: Preparation verifies current author, original source, publisher permissions, and branch eligibility before accepting PR source.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source +58, Tests +82, Docs +5, Other +2. Total +147 across 11 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 6 74 16 +58
Tests 3 135 53 +82
Docs 1 5 0 +5
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 11 216 69 +147

Review metrics

Metric Value Why it matters
Production versus test changes Production +74/-16; tests and support +135/-53. Production growth connects existing admission and preflight owners; regression growth covers the previously untested unlinked case and distinct authority boundaries.

Labels

Label changes:

  • add P1: The source-confirmed failure blocks an existing guest contribution workflow after another writer advances the PR.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P1: The source-confirmed failure blocks an existing guest contribution workflow after another writer advances the PR.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 30, 2026, 2:48 AM ET / 06:48 UTC.

@shakkernerd shakkernerd self-assigned this Oct 30, 2026
@shakkernerd
shakkernerd merged commit 65602ab into main Oct 30, 2026
148 checks passed
@shakkernerd
shakkernerd deleted the studio-r96-public-pr-continuation branch October 30, 2026 07:22
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: original guests can reconcile and update their recorded public pull requests without personal GitHub linking.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 31, 2026
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.
github-actions Bot pushed a commit to clawhaven/openclaw that referenced this pull request Nov 23, 2026
(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)
github-actions Bot pushed a commit to clawhaven/openclaw that referenced this pull request Nov 23, 2026
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M 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.

[Bug]: original guest cannot continue its public managed-publisher PR without personal linking

1 participant