Skip to content

fix(test): retain admitted GitHub receipts after membership changes - #201749

Merged
vincentkoc merged 3 commits into
mainfrom
fix/github-receipt-membership-20261119
Nov 19, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix/github-receipt-membership-20261119

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The invited-guest resource test still expects membership removal to cancel a GitHub receipt request that has already been admitted. That predates the captured-request contract in #201083 and fails under both Node and Bun.

User Impact

No runtime behavior changes. Qualification now checks that an admitted GitHub receipt read finishes while a fresh request after membership removal is refused.

Why This Change Was Made

Update only the existing pending-receipt expectation and test title. Keep the real held-read boundary, every artifact-byte withholding and replay assertion, the next-request denial, and settlement cleanup unchanged. Session membership still gates new requests.

Related: #199959

Evidence

  • Full pin validation, job 135412661468 reproduces the old rejection assertion under both runtimes; the pending request returns its receipt.
  • The merged admission contract and docs/gateway/operator-scopes.md establish that permission changes apply to the next request.
  • Independent review and ClawSweeper passed. Normal commit formatting, line-cap checks and git diff --check passed.
  • Exact-head hosted proof passes the existing product case under Node (15279 ms) and Bun (13404 ms), including artifact denial, admitted receipt completion and fresh-request refusal. Log SHA-256: d1ea17096e9dd77aad7d791b63db9d17ff664e8a698c33e5ab044d48fcb7bf9d (197849 bytes). Local dependency-backed execution is unavailable.

The final diff changes one existing test only; production source is unchanged.

Hosted dual-runtime validation: https://github.com/openclaw/openclaw/actions/runs/44494366881 (exact head 32b2561a5e4a44a8f3c6422b674c94f1f22b6d42; required PR checks continue).

@vincentkoc vincentkoc self-assigned this Nov 19, 2026
@clawsweeper

clawsweeper Bot commented Nov 19, 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: XS labels Nov 19, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 19, 2026 09:18
@vincentkoc
vincentkoc enabled auto-merge (squash) November 19, 2026 09:19
@vincentkoc
vincentkoc merged commit 703cd16 into main Nov 19, 2026
243 of 244 checks passed
@vincentkoc
vincentkoc deleted the fix/github-receipt-membership-20261119 branch November 19, 2026 09:27
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 20, 2026
…penclaw#201749)

* fix(github): recheck membership before returning session receipts

* Revert "fix(github): recheck membership before returning session receipts"

This reverts commit 60a5a69.

* fix(test): retain admitted GitHub receipts after membership changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant