Add cache-memory filename safety warning to create-agentic-workflow.md#19326
Add cache-memory filename safety warning to create-agentic-workflow.md#19326
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Documents cache-memory filename safety guidance (no colons in filenames) directly alongside the cache-memory recommendation to prevent inconsistent application by agents.
Changes:
- Adds an early cross-reference link from the cache-memory heuristic to a filename safety note.
- Adds an inline warning callout near the cache-memory enablement example with ✅/❌ timestamp filename examples and prompt-authoring guidance.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - Author workflows in the **agentic markdown format** (frontmatter: `on:`, `permissions:`, `tools:`, `mcp-servers:`, `safe-outputs:`, `network:`, etc.). | ||
| - Compile with `gh aw compile` to produce `.github/workflows/<name>.lock.yml`. | ||
| - 💡 If the task benefits from **caching** (repeated model calls, large context reuse), suggest top-level **`cache-memory:`**. | ||
| - 💡 If the task benefits from **caching** (repeated model calls, large context reuse), suggest top-level **`cache-memory:`** (see [filename safety note](#cache-memory-filename-safety) below). |
There was a problem hiding this comment.
The link target #cache-memory-filename-safety does not exist in this document (the only occurrence is this link), so the cross-reference will be broken. Add a heading/explicit anchor with that ID near the new filename safety callout, or update the link to point at an existing section anchor.
| cache-memory: true | ||
| ``` | ||
|
|
||
| > ⚠️ **Filename safety**: Cache-memory files are uploaded as GitHub Actions artifacts. |
There was a problem hiding this comment.
This callout states cache-memory files "are uploaded as GitHub Actions artifacts", but cache-memory is primarily stored via Actions cache; artifact upload only happens in specific flows (e.g., threat detection / extended retention). Consider rewording to "may be uploaded as artifacts" (and optionally mention when) to keep the guidance accurate.
| > ⚠️ **Filename safety**: Cache-memory files are uploaded as GitHub Actions artifacts. | |
| > ⚠️ **Filename safety**: Cache-memory files may be uploaded as GitHub Actions artifacts in certain workflows (for example, security/threat-detection or extended-retention flows). |
| > ✅ Use: `investigation-2026-02-12-11-20-45.json` | ||
| > ❌ Avoid: `investigation-2026-02-12T11:20:45Z.json` | ||
| > When instructing the agent to write timestamped files, explicitly say: | ||
| > "Use filesystem-safe timestamp format `YYYY-MM-DD-HH-MM-SS[-sss]` (no colons, no `T`, no `Z`)." |
There was a problem hiding this comment.
The guidance "no T, no Z" is stricter than the actual filename restriction (colons are the problematic character). To avoid teaching an incorrect constraint, consider focusing the instruction on "no colons" and describing the recommended format as an alternative to ISO 8601 (which includes colons) rather than forbidding T/Z explicitly.
| > "Use filesystem-safe timestamp format `YYYY-MM-DD-HH-MM-SS[-sss]` (no colons, no `T`, no `Z`)." | |
| > "Use a filesystem-safe timestamp format without colons, such as `YYYY-MM-DD-HH-MM-SS[-sss]`, instead of ISO 8601 timestamps with colons (for example, `2026-02-12T11:20:45Z`)." |
The filename safety requirement for cache-memory (no colons in artifact names) was documented in AGENTS.md but not co-located with the
cache-memoryconfiguration instructions, causing agents to apply it inconsistently.Changes
(see filename safety note below)link to the existingcache-memory:bullet so the constraint is visible at first mention.cache-memory: trueYAML (Round-Robin Processing Pattern section): Added a callout immediately after the frontmatter snippet showing ✅/❌ timestamp format examples and explicit prompt-authoring guidance:Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/graphql/usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw(http block)/usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw -pack /home/REDACTED/work/gh-aw/gh-aw/cmd/gh-aw/main.go(http block)https://api.github.com/repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b/usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq .object.sha(http block)https://api.github.com/repos/github/gh-aw/git/ref/tags/a70c5eada06553e3510ac27f2c3bda9d3705bccb/usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/a70c5eada06553e3510ac27f2c3bda9d3705bccb --jq .object.sha(http block)https://api.github.com/repos/githubnext/agentics/git/ref/tags//usr/bin/gh gh api /repos/githubnext/agentics/git/ref/tags/# --jq .object.sha(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.