Skip to content

fix(skills): drop GITHUB_STEP_SUMMARY writes that fail under Claude sandbox - #289

Merged
max-sixty merged 2 commits into
mainfrom
hourly/review-24484664525
Apr 16, 2026
Merged

max-sixty merged 2 commits into
mainfrom
hourly/review-24484664525

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Summary

  • Every review-reviewers and review-runs run emits Read-only file system errors when the skill tries to append to $GITHUB_STEP_SUMMARY.
  • The Claude sandbox (allowOnly writes) doesn't include /home/runner/work/_temp/_runner_file_commands/, which is where the $GITHUB_STEP_SUMMARY file lives, so the redirect always fails.
  • The post-Claude "Token Usage" step in action.yaml:281-294 already writes to $GITHUB_STEP_SUMMARY from an unsandboxed bash step, so the Actions UI still gets the token-usage table. Only the skill-driven writes are removed.

Evidence

Run Workflow Outcome
24484585485 tend-notifications (23:59Z) No-op — verify step found empty inbox; Claude action skipped. Correct.
24483721390 tend-notifications (23:30Z) No-op — empty inbox. Correct.
24483187063 tend-notifications (23:13Z) No-op — empty inbox. Correct.
24482866759 review-reviewers (23:03Z, 3-repo matrix) All 3 matrix jobs reached "all clear", no PRs/issues opened. All 3 sessions failed to write $GITHUB_STEP_SUMMARY with Read-only file system errors, then moved on.

Session-log transcripts (decoded Bash tool_results) from run 24482866759:

cb64c945 (target max-sixty/worktrunk):
  /bin/bash: line 45: /home/runner/work/_temp/_runner_file_commands/step_summary_...: Read-only file system
2fe1fc6b (target max-sixty/tend):
  cp: cannot create regular file '/home/runner/work/_temp/_runner_file_commands/step_summary_...': Read-only file system
db9d6136 (target PRQL/prql):
  /bin/bash: line 16: /home/runner/work/_temp/_runner_file_commands/step_summary_...: Read-only file system

The same pattern is visible in the preceding review-reviewers run 24478401012 (all 3 matrix jobs), so this is not a one-off.

Gate assessment

  • Evidence level: High — 6 sessions across 2 runs all fail identically on the same path. Likely present in every review-reviewers / review-runs session since the sandbox tightening (cf. tend#216 for the analogous .github/ read-only regression under Claude Code 2.1.97+).
  • Structural vs stochastic: Structural. The sandbox's allowOnly list doesn't include the runner's _runner_file_commands directory, so the write will fail every time. Replaying 10× yields 10× the same error.
  • Change type: Removal / simplification — drops one line from review-reviewers/SKILL.md and a 5-line block from review-runs/SKILL.md. Gate 2 bar for removals is low (1 occurrence is enough) and this run alone supplies 6.
  • Both gates pass.

Trade-off

Removing the instruction means maintainers lose the skill-written summary in the Actions UI and have to read the conversation log / session artifact for the narrative. The token-usage table remains. If the UI summary matters, a follow-up can plumb a summary file through action.yaml's post-Claude step (where writes aren't sandboxed) instead of trying to write from inside the sandbox.

🤖 Generated with Claude Code

…andbox

The Claude Code sandbox blocks writes to `/home/runner/work/_temp/_runner_file_commands/`
where `$GITHUB_STEP_SUMMARY` points, so every `review-reviewers` and `review-runs`
session emits "Read-only file system" errors when the skill tries to populate the
Actions step summary. The token-usage table is still written by the unsandboxed
post-Claude step in `action.yaml`, so this only removes the skill-side attempt.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@tend-agent tend-agent added the claude-behavior Behavioral issues found by review-reviewers label Apr 16, 2026
@max-sixty

Copy link
Copy Markdown
Owner

can we write to somewhere we do have access to, and then the next task writes from there to the step summary?

…e pickup

Instead of dropping GITHUB_STEP_SUMMARY writes entirely, skills now write
to /tmp/claude/step-summary.md (inside the sandbox allowlist) and a new
post-Claude step in action.yaml copies it into GITHUB_STEP_SUMMARY.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@tend-agent

Copy link
Copy Markdown
Collaborator Author

Good idea. Updated — skills now write to /tmp/claude/step-summary.md (inside the sandbox allowlist), and a new post-Claude step in action.yaml copies it into $GITHUB_STEP_SUMMARY.

@max-sixty
max-sixty merged commit 01ac10a into main Apr 16, 2026
3 checks passed
@max-sixty
max-sixty deleted the hourly/review-24484664525 branch April 16, 2026 04:01
max-sixty added a commit that referenced this pull request Apr 18, 2026
Bumps generator version to 0.0.16 and syncs lockfile.

7 commits since 0.0.15: nightly bot PAT scope audit (#294), review-reviewers gist-backed evidence storage with single-fetch optimization (#291, #292), nightly closes bot-opened tracking issues when resolved (#290), drops GITHUB_STEP_SUMMARY writes that fail under Claude sandbox (#289), release docs clarification (#288), and notifications dedup of bot-authored PRs (#279).

Co-Authored-By: Claude <[email protected]>
@max-sixty max-sixty mentioned this pull request Apr 18, 2026
max-sixty added a commit that referenced this pull request Apr 18, 2026
Bumps generator to 0.0.16.

## Changes since 0.0.15

- #294 — nightly: audit bot PAT scopes via script
- #292 — review-reviewers: fetch current-month gist once per run
- #291 — review-reviewers: pilot gist-backed evidence storage
- #290 — nightly: close bot-opened tracking issues when resolved
- #289 — skills: drop `GITHUB_STEP_SUMMARY` writes that fail under
Claude sandbox
- #288 — docs(release): commit on the current branch, don't create a new
one
- #279 — notifications: dedup bot-authored PRs cross-referencing the
issue

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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

Labels

claude-behavior Behavioral issues found by review-reviewers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants