Skip to content

Fix Daily SPDD cache-memory persistence guidance to avoid denied shell writes#31247

Merged
pelikhan merged 1 commit into
mainfrom
copilot/investigate-cache-memory-write-issue
May 9, 2026
Merged

Fix Daily SPDD cache-memory persistence guidance to avoid denied shell writes#31247
pelikhan merged 1 commit into
mainfrom
copilot/investigate-cache-memory-write-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 9, 2026

Bug Fix

What was the bug?

In run 25605587337, the agent could read cache-memory but failed to persist rotation state because it attempted shell-based writes under /tmp/gh-aw/cache-memory/....
Those write paths were blocked by the workflow’s restricted shell allowlist, producing Permission denied and could not request permission from user.

How did you fix it?

  • Root cause documented in workflow intent: clarified that cache-memory persistence must not rely on shell write commands.
  • Prompt contract tightened: updated daily-spdd-spec-planner.md to require state persistence via the write tool at the exact rotation file path.
  • Operational impact: keeps existing shell restrictions intact while allowing intended cache-memory state updates through the permitted tool channel.
- Persist rotation state using the `write` tool at that exact path
  (do not use shell write commands for cache updates)

Testing

This PR is scoped to investigation + workflow guidance correction; runtime confirmation should come from subsequent workflow executions using the updated prompt.

…anner

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Investigate Daily SPDD cache-memory write denial Fix Daily SPDD cache-memory persistence guidance to avoid denied shell writes May 9, 2026
@pelikhan pelikhan marked this pull request as ready for review May 9, 2026 17:00
Copilot AI review requested due to automatic review settings May 9, 2026 17:00
Copilot AI requested a review from pelikhan May 9, 2026 17:00
@pelikhan pelikhan merged commit 65a3b6a into main May 9, 2026
1 check passed
@pelikhan pelikhan deleted the copilot/investigate-cache-memory-write-issue branch May 9, 2026 17:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Daily SPDD Spec Planner workflow prompt to prevent cache-memory persistence from using shell-based writes that are blocked by the workflow’s restricted bash allowlist.

Changes:

  • Adds explicit guidance to persist the rotation state via a tool-based write (instead of shell redirection) to avoid permission denials.
Show a summary per file
File Description
.github/workflows/daily-spdd-spec-planner.md Tightens rotation-state persistence guidance to avoid blocked shell writes to cache-memory.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

- Process up to 5 files per run
- Continue from next file on the next run
- If cache is missing, initialize from the start of the sorted file list
- Persist rotation state using the `write` tool at that exact path (do not use shell write commands for cache updates)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants