Repository navigation
Restore Claude release session reports - #1314
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The report script can publish credentials from Claude’s final explanation verbatim to PRs, bypassing secret redaction, and needs sanitization before truncation plus a mocked-publication regression test.
1 open issue
What changed in this PR
Restores Claude session reports on release-documentation PRs after the move to trusted dispatch runs, giving reviewers separate generation and editorial summaries.
Changes:
- Adds final-response extraction, session status, workflow links, unavailable notices, and truncation.
- Loads the reporter from the trusted workflow revision and publishes each session before its output is cleared or overwritten.
- Adds regression tests and includes them in PR CI.
| File | Description |
|---|---|
scripts/upstream-release/post-session-report.test.mjs |
Tests extraction, publication, fallbacks, truncation, and workflow ordering. |
scripts/upstream-release/post-session-report.mjs |
Renders and publishes final session responses as PR comments. |
.github/workflows/upstream-release-docs.yml |
Prepares the trusted reporter, posts session reports, and clears shared output. |
.github/workflows/_static-checks.yaml |
Runs session-report regression tests in CI. |
Review effort: Balanced
danbarr
enabled auto-merge (squash)
November 4, 2026 18:29
rdimitrov
approved these changes
Nov 4, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Release docs runs dispatched from trusted
mainno longer get Claude's automatic PR comments, leaving reviewers with only start/completion notices. Publish the generation and editorial sessions' final responses as separate PR comments, with the session status and workflow link.Extract only the top-level final result, excluding instructions, tool output, and intermediate narration. Redact the pinned action's known GitHub, Anthropic, AWS, Slack, and JWT credential formats before truncation or publication. Publish generation's response before editorial overwrites the execution file, then clear it to prevent a failed editorial session from reusing generation's output. Missing or malformed output produces an explicit unavailable notice, and oversized responses are truncated with a run link. Reporting failures do not block documentation generation.
Load the reporter from the workflow's trusted revision and add regression tests to PR CI. Existing PRs are not backfilled.
Type of change
Related issues/PRs
Validation
git diff --check, and Zizmor pass.$/.github/actions/setupsyntax as unsupported; that line is unchanged.