Skip to content

fix(github): prevent privileged PR actions without caller authority - #184366

Merged
roboclaw-bot merged 1 commit into
mainfrom
ci939b-cron-publication-boundary-20261026
Oct 26, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
ci939b-cron-publication-boundary-20261026

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #184144

What Problem This Solves

Fixes scheduled continuations without admitted operator authority being able to invoke privileged GitHub PR actions through the System-backed in-process bridge.

User Impact

Privileged inspect, merge, close and delegated readiness retain the caller's live operator authority. Stable tool listings, direct API calls and ordinary own-workspace publication actions remain unchanged. No migration or configuration change is required.

Why This Change Was Made

The existing GitHub action owner now intersects requester scopes with the selected caller's operator capability and revalidates its lifetime at each existing authority guard. The shared action fixture captures and releases real operator admission instead of supplying an unadmitted caller.

The author simplification pass retained this single decision owner: no new manager, state, fallback or public API. The production delta is +20/-5; the test/fixture delta is +34/-19. The growth binds live authority and migrates affected fixture consumers rather than duplicating policy.

Evidence

  • Original main failure, head db92acff: the unchanged 20-case test reproduced 4 failed / 16 passed, 144.81 seconds command wall time.
  • A stronger negative control reached the synthetic GitHub inspect/merge transport with no admitted operator authority before the repair. The repaired real scheduling/admission/action-owner composition passes 20/20, 112.62 seconds wall time, retaining no-call, no-receipt and no-write assertions.
  • Four publication/direct-handler sibling files pass 72/72; stable tool-prefix coverage passes 13/13. Combined sibling invocation: 156.11 seconds wall time.
  • Focused oxfmt, oxlint, Cron services and Gateway methods test-project typechecks, and whitespace checks pass.
  • Fresh independent P0–P2 review is clean after its shared-fixture admission finding was fixed. Complete committed delta matches the reviewed input.
  • Exact-head hosted CI40288115073, attempt1 completed successfully for 3cc3f77c940ba02b05af5b981ab3a0f4810f5927.
  • Local proof used Node 26.12.1; hosted Node 24.22.1/Bun coverage is CI evidence, not a local replay. Model and GitHub I/O are synthetic; durable scheduling, admission, authorization and effect boundaries are real. No live model call or real GitHub merge is claimed.
  • Historical CI reports 48.128 seconds summed test-case time for this 20-case file; this is not whole-job elapsed time. No test cases or timers were added.

Worked on by

Requested by @vincentkoc as part of the ongoing main-CI repair task.

Work sessions

Keep stable tool definitions while intersecting privileged action scopes with the selected caller operator capability and rechecking its lifetime. Preserve direct API and own-workspace action behavior. Migrate publication-action fixtures through real operator admission and assert execution-time refusal for unauthorized scheduled continuations.

Co-authored-by: vincentkoc <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: S labels Oct 26, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 26, 2026 07:48
@roboclaw-bot
roboclaw-bot merged commit 116452f into main Oct 26, 2026
201 checks passed
@roboclaw-bot
roboclaw-bot deleted the ci939b-cron-publication-boundary-20261026 branch October 26, 2026 08:02
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

steipete added a commit that referenced this pull request Oct 26, 2026
Assert stable GitHub schemas and independently reject unauthorized inspect
and merge calls on top of #184366. Accept empty optional exec-completion
finals without delivery claims. Correct stale tool-authority documentation.
Follow-up to the contracts established by #184144 and #184005.
steipete added a commit that referenced this pull request Oct 26, 2026
)

Assert stable GitHub schemas and independently reject unauthorized inspect
and merge calls on top of #184366. Accept empty optional exec-completion
finals without delivery claims. Correct stale tool-authority documentation.
Follow-up to the contracts established by #184144 and #184005.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…law#184366)

Keep stable tool definitions while intersecting privileged action scopes with the selected caller operator capability and rechecking its lifetime. Preserve direct API and own-workspace action behavior. Migrate publication-action fixtures through real operator admission and assert execution-time refusal for unauthorized scheduled continuations.

Co-authored-by: vincentkoc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…claw#184373)

Assert stable GitHub schemas and independently reject unauthorized inspect
and merge calls on top of openclaw#184366. Accept empty optional exec-completion
finals without delivery claims. Correct stale tool-authority documentation.
Follow-up to the contracts established by openclaw#184144 and openclaw#184005.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant