Skip to content

test: prove ~520-char stateless GitHub installation tokens round-trip - #537

Merged
seonghobae merged 4 commits into
mainfrom
claude/installation-token-stateless-format-regression
Sep 4, 2026
Merged

test: prove ~520-char stateless GitHub installation tokens round-trip#537
seonghobae merged 4 commits into
mainfrom
claude/installation-token-stateless-format-regression

Conversation

@seonghobae

@seonghobae seonghobae commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Scope

Prove that Noema's GitHub App installation-token broker remains compatible with GitHub's 2026 stateless installation-token rollout without adding token introspection or a second format authority.

GitHub's primary rollout guidance says new installation tokens retain the ghs_ prefix, are roughly 520 characters, use a stateless dot-bearing transport shape, and must be treated as opaque by clients. Production already accepts printable-ASCII installation tokens up to 4096 characters and has no fixed short-token assumption, so no production change is justified. The regression drives a representative ~520-character stateless token through the full mocked /exchange path and asserts byte-for-byte round-trip; Noema never decodes or semantically validates those opaque bytes.

The predecessor fixture had only ghs_ plus repeated A characters. Commit 009187d6e70e5aec2f2c47630a87590cc98bcb55 repaired that evidence defect by exercising the documented dot-bearing shape without changing production behavior.

Protected-base convergence

After #528 reached protected truth, the branch was non-force merged with fresh protected main@bbee33270b496255d785c766fc009a5f9162a695, preserving its single test-file delta. Current exact head is 81222c10f5b018a07b4e7df81dcd589b28285a13; no predecessor check or review evidence transfers.

Current exact authority — 2026-09-04 KST

  • protected/live base: main@bbee33270b496255d785c766fc009a5f9162a695;
  • exact PR head: 81222c10f5b018a07b4e7df81dcd589b28285a13;
  • current review threads: none;
  • application ci 33698029634: terminal success on this head;
  • required Security Scan 33698029622: terminal success on this head;
  • patch-validator-image 33698029606 / job 100471061188: terminal success on this exact head. The runner checked out the exact head and completed static runtime identity, exact image metadata, real no-network/read-only/non-root smoke, CycloneDX SBOM, image/static-runtime/embedded-runtime vulnerability receipts, exact-source/image receipt verification, stale-head refusal and bounded evidence upload;
  • reviewer-ci 33698029578: terminal workflow success but not valid semantic GREEN. Job 100471060997 indexed its CodeGraph fixture and returned No relevant code found ...; the old gate accepted wrapper banners, so this is false-green evidence addressed by fix(reviewer): fail closed on empty CodeGraph semantics #546.

The image/SBOM/vulnerability/provenance lane is complete, but reviewer authority is not. Fresh #546 authority is exact fb3510e8f5e5613c8b5a0bf9cebb3a6395688fe1, Draft/mergeable. In addition to rejecting no-relevant/empty/final-section-spoof cases, its RED 58d5876313e55aee6a0e976ba4bff1ca2fa0ce4b proves a synthetic [truncated N characters] annotation with no retained semantic bytes cannot count as CodeGraph evidence; production fb3510e8... fails closed on that annotation-only final explore section. Exact #546 runs ci 33790683473, reviewer-ci 33790683468, required Security Scan 33790683516, and patch-validator-image 33790683437 remain queued before executable verification and therefore non-passing. This PR must remain Draft/non-merge-ready until #546 reaches protected truth and this unchanged head acquires fresh reviewer evidence under the repaired gate.

Do not transfer the old reviewer success, mutate this clean head merely to retrigger scheduling, self-approve, force-push/destructively rebase, or weaken required gates.

…trips

GitHub announced that GitHub App installation tokens are moving to a new
stateless ghs_... format that can be roughly 520 characters, up from the
historical ~40. Audited createInstallationToken() and confirmed
githubInstallationTokenPattern (src/index.ts) already validates with
/^[\x21-\x7e]{1,4096}$/ -- a printable-ASCII, 1-4096-length pattern with
no fixed-length assumption -- so no source change is required. This adds
a regression test locking in that a ~520-character token exchanges
successfully end-to-end, since no existing test exercised a token longer
than the historical format.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 2, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 57 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 8e9972ce-244d-4d0b-a8b4-455da2ca5888

📥 Commits

Reviewing files that changed from the base of the PR and between bbee332 and 81222c1.

📒 Files selected for processing (1)
  • test/github-installation-token-stateless-format.test.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@seonghobae seonghobae added priority: medium Normal-priority or P2 work status: needs-review type: maintenance Maintenance, build, dependency, or operational upkeep labels Sep 2, 2026 — with ChatGPT Codex Connector
@seonghobae
seonghobae marked this pull request as draft September 3, 2026 14:37
@seonghobae
seonghobae marked this pull request as ready for review September 4, 2026 08:39
@seonghobae
seonghobae merged commit e1ac9d5 into main Sep 4, 2026
17 checks passed
@seonghobae
seonghobae deleted the claude/installation-token-stateless-format-regression branch September 4, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: medium Normal-priority or P2 work status: needs-review type: maintenance Maintenance, build, dependency, or operational upkeep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant