Skip to content

fix(github): let PR contributors continue work across sessions - #200236

Merged
roboclaw-bot merged 10 commits into
mainfrom
openclaw/keen-shell
Nov 17, 2026
Merged

roboclaw-bot merged 10 commits into
mainfrom
openclaw/keen-shell

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes credited contributors being blocked from continuing a publisher-authored PR when they move to a different conversation.

User Impact

A verified linked GitHub account already credited as an author, coauthor or committer on the PR can import it and append changes to the original branch across conversations. No new role, grant, configuration or migration is required. Existing private-repository access, session authority, publisher permission and remote-head checks remain in place. Refusals retain the existing advice to use the original publication conversation or ask a full-write maintainer.

Why This Change Was Made

The shared PR eligibility check previously recognized the PR author or the current conversation’s publication receipt, but not the human contributors behind a bot-authored PR. It now checks GitHub-recognized numeric account identities on the current PR commits, only when the PR author is the selected publisher. PR-body mentions and unpublished local trailers do not grant access.

This changes the shared eligibility owner used by inspection, preparation, publication and imported-PR actions. It does not change workspace custody/recovery or grant merge permission. Docs and tool guidance describe the same eligibility; repeated guidance is consolidated without adding prompts or permissions.

Evidence

  • Final head d8002540ef6bab32d042476198c9e5b110cbe229 passed CI run 44181148596, with no failed jobs, and the final Security Review. It merged as bc1e334. No failed-CI exception was used.
  • After @VACInc updated the branch from main, a fresh independent P0–P3 review of the complete eight-file delta and seven current owner/caller contexts found no actionable issues. All 64 preparation and refresh integration tests passed on that exact head, covering upstream preparation changes, private access, saved work and publication recovery. The diff check passed.
  • Cross-session coauthor publication and registered-action preparation regressions cover appending to the original PR and importing its exact head without a prior session receipt. Earlier focused validation passed 170 tests, including existing author/operator, private-access, saved-workspace, pagination and changed-head cases; follow-up integrated validation passed 117 tests.
  • ClawSweeper’s recovery-advice finding is resolved. Both raw/tool regressions failed before the fix, then all 43 inspector cases passed. ClawSweeper revision 3 found no actionable issues on the preceding head; the independent final-head review additionally covered main’s updated preparation context.
  • Tool guidance is shorter than the pre-change version in all three modes: host by 95 characters, managed by 146, child-only by 45. Earlier scoped validation passed all 31 tool tests, 15 prefix-stability tests, six current prompt snapshots, publication-boundary type-checking, lint and formatting. No new prompting, role, grant, configuration or upgrade requirement was added.
  • Read-only live lookups on #190124 and #199842 recognized the existing contributor and rejected an unrelated account. No live cross-session write or private-repository end-to-end operation was performed.

Worked on by

Work sessions

Linked for team reference; these sessions aren’t public.

roboclaw-bot and others added 2 commits November 16, 2026 19:53
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: 0e51ff6e-9e0f-89ff-966b-77b1813d9630
@clawsweeper

clawsweeper Bot commented Nov 16, 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 agents Agent runtime and tooling size: M labels Nov 16, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 16, 2026
@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR lets verified contributors continue a shared-publisher-authored PR from another conversation.

Example: Linked GitHub account 101 coauthored a PR opened by selected publisher account 42.

  • Before: A different conversation without the original publication receipt refuses preparation and publication.
  • After: The contributor can prepare the PR and append changes to its original branch, subject to existing access and write checks.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The focused implementation has no identified code blocker, but supplied proof does not establish the central user-visible flow.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: A credited human contributor cannot continue a publisher-authored PR after moving to another conversation.
Reason: This maintainer-authored PR supplies direction for a focused eligibility extension without new configuration or a competing publication path.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it provides distinct cross-session continuation work, resolves the earlier recovery-advice finding, and has no new actionable code defects identified.

Priority: P2
Reviewed head: daed654cfcf4a9866eda04d37a7fa6c407c46c4f

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Show a linked contributor using the shipped Gateway tool in another conversation to prepare and publish to the original PR, preserving its branch and history, and show the contributor regression failing on the base for the intended refusal; redact credentials and non-public endpoints.
Agent review details

How this fits together

The Gateway combines the requester's linked identities, GitHub PR facts, and repository access into an eligible target consumed by workspace preparation, publication, and PR actions.

flowchart LR
  A[Conversation requester] --> B[Shared PR inspector]
  C[Linked GitHub identities] --> B
  D[Remote PR commit credit] --> B
  B --> E[Repository access checks]
  E --> F[Preparation and PR actions]
  F --> G[Publisher and head checks]
  G --> H[Original PR branch]
Loading

Technical review

Best possible solution:

Extend the existing shared eligibility inspector with remote contributor recognition while retaining the current workspace, repository-access, publisher-permission, and head checks.

Do we have a high-confidence way to reproduce the issue?

Current-main source deterministically refuses a contributor who is neither the linked PR author nor using the original publication conversation; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The patch uses the existing eligibility owner and its consumers, with a separate module justified by the substantive GraphQL parsing and pagination boundary.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 687dc6c99a32.

Provenance checked

  • Linked-author and private-repository eligibility changes intended behavior with a stated reason (01c2c60: Own-PR inspection verified linked authorship and repository access before disclosing or acting on an existing PR; this PR explicitly broadens eligibility to credited contributors on the selected publisher's PR.)
  • Original-conversation publisher continuation changes intended behavior with a stated reason (4ececc4: A publishing conversation needed to recover after another writer advanced its bot-authored PR; cross-conversation continuation remained excluded.)
  • Maintainer assistance and imported receipts keeps the original intent (774e96e: Full-write maintainers could assist without making imported-publication receipts grant later guest eligibility; those checks remain.)
  • Actionable eligibility refusals keeps the original intent (777007b: Policy refusals needed to distinguish requester eligibility from publisher credential failures and offer recovery guidance.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Shakker: Raw commit 774e96e adds src/gateway/github-publication-inspect.ts:152 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 774e96e4d522; files: src/gateway/github-publication-inspect.ts)
  • Ayaan Zaidi: Raw commit 4ececc4 adds src/gateway/github-publication-inspect.ts:158 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4ececc447d2e; files: src/gateway/github-publication-inspect.ts)
  • Peter Steinberger: Raw commit f7526cb adds src/gateway/github-publication-inspect.ts:223 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f7526cbeb406; files: src/gateway/github-publication-inspect.ts)

PR surface

Source +131, Tests +240, Docs +8. Total +379 across 8 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 153 22 +131
Tests 4 244 4 +240
Docs 1 18 10 +8
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 415 36 +379

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus test changes Production +153/-22; tests +244/-4 Production growth implements the remote parsing and pagination boundary; tests cover contributor eligibility, access refusals, preparation, and publication consumers.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Cross-session continuation improves an existing contributor workflow within the GitHub publication surface.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-11-16T20:11:36.361Z sha 85c2d30 :: needs changes before merge. :: [P2] Restore an actionable next step in the eligibility refusal
  • reviewed 2026-11-17T00:41:32.301Z sha 00d3dca :: needs maintainer review before merge. :: none

Reviewed November 16, 2026, 8:06 PM ET / November 17, 2026, 01:06 UTC (Revision 3).

roboclaw-bot and others added 4 commits November 17, 2026 00:27
Restore original-conversation and full-write-maintainer recovery options in the eligibility refusal. Prove the advice through the admitted tool and Gateway, and share eligibility wording instead of repeating it in each tool action.

Co-authored-by: VACInc <[email protected]>
Includes 0879f3e (#200242), which fixes the inherited missing export blocking this PR CI.

Co-authored-by: VACInc <[email protected]>
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: a148014d-3ad0-870d-aa44-324201d7425d
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 17, 2026
roboclaw-bot and others added 3 commits November 17, 2026 01:00
Serve valid remote commit credit in the unrelated publisher-PR refusal case, keeping the test at the eligibility boundary instead of failing on an unhandled GraphQL read. Assert recovery advice and no publication writes.

Co-authored-by: VACInc <[email protected]>
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: dc6e778d-7e29-806e-93c3-5a4f6e011bf3
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) November 17, 2026 21:44
@roboclaw-bot
roboclaw-bot merged commit bc1e334 into main Nov 17, 2026
119 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/keen-shell branch November 17, 2026 21:50
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 18, 2026
…law#200236)

Allow GitHub-recognized commit authors, coauthors and committers to continue selected-publisher PRs across conversations while preserving private-repository access, session authority and guarded pushes. Keep recovery advice and shorten tool guidance.

Co-authored-by: VACInc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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.

2 participants