[docs] docs: trim cache-memory reference bloat - #44088
Conversation
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. No ADR enforcement needed: PR #44088 does not have the 'implementation' label and has 0 new lines of code in business logic directories (threshold: 100). |
|
✅ Test Quality Sentinel completed test quality analysis. No test files were added or modified in this PR. Test Quality Sentinel skipped. |
|
✅ PR Code Quality Reviewer completed the code quality review. |
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅ |
There was a problem hiding this comment.
Pull request overview
This PR tightens the documentation for cache-memory by condensing repeated explanations while aiming to preserve configuration semantics and operational guidance.
Changes:
- Condensed the “Behavior” and “Best Practices” sections into fewer, denser paragraphs.
- Combined “Automatic Cleanup” guidance into a single paragraph.
- Replaced the troubleshooting bullet list with short prose paragraphs.
Show a summary per file
| File | Description |
|---|---|
| docs/src/content/docs/reference/cache-memory.md | Condenses and restructures cache-memory reference text to reduce repetition while keeping configuration details and operational notes. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 2
- Review effort level: Low
| The compiler generates restore keys by stripping `${{ github.run_id }}` from the save key so each run can fall back to earlier runs. For `scope: repo`, the additional broader restore key enables cross-workflow sharing within the same branch scope. | ||
|
|
||
| Custom user-supplied keys auto-append `-${{ github.run_id }}` if not already present. | ||
| The compiler strips `${{ github.run_id }}` from restore keys so each run can fall back to earlier runs, and for `scope: repo` it adds a broader restore key for cross-workflow sharing within the same branch scope. Custom user-supplied keys automatically append `-${{ github.run_id }}` when needed. |
| - **Cache path misconfiguration**: When the agent calls `missing_data` with `reason: "cache_memory_miss"`, the conclusion handler automatically opens a failure issue flagging a likely cache path problem. Check that the agent prompt references the correct path (`/tmp/gh-aw/cache-memory/` by default, or `/tmp/gh-aw/cache-memory-{id}/` for named caches) and that the cache key is consistent across runs. | ||
| If files are not persisting, check cache key consistency and the restore/save log messages. For file access issues, create subdirectories first, verify permissions, and use absolute paths. If cache growth becomes a problem, clear old entries periodically or use time-based keys for auto-expiration. | ||
|
|
||
| When an agent calls `missing_data` with `reason: `cache_memory_miss``, the conclusion handler automatically opens a failure issue that points to a likely cache path problem. Verify that the prompt uses the correct path (`/tmp/gh-aw/cache-memory/` by default or `/tmp/gh-aw/cache-memory-{id}/` for named caches) and that the cache key stays consistent across runs. |
|
Hey One small note for the record:
Everything else checks out: single file, clear description with scope/impact/notes, no new dependencies, and the diff is minimal (9 additions, 20 deletions). Looks ready for a maintainer pass.
|
There was a problem hiding this comment.
Review: docs trim is clean — one Markdown syntax bug to fix
The condensing changes are well done and preserve all semantic content. One issue introduced in the Troubleshooting section needs correction before merge:
Line 114 — broken backtick nesting. The new sentence uses nested backtick spans that break standard Markdown rendering:
reason: `cache_memory_miss`
The inner backtick terminates the outer code span, so the value cache_memory_miss renders outside any code span. The original used double-quotes inside the span (reason: "cache_memory_miss") which is the correct fix.
🧵 Reviewed using Impeccable skills by Impeccable Skills Reviewer · 31 AIC · ⌖ 5.88 AIC · ⊞ 4.8K
| - **Cache path misconfiguration**: When the agent calls `missing_data` with `reason: "cache_memory_miss"`, the conclusion handler automatically opens a failure issue flagging a likely cache path problem. Check that the agent prompt references the correct path (`/tmp/gh-aw/cache-memory/` by default, or `/tmp/gh-aw/cache-memory-{id}/` for named caches) and that the cache key is consistent across runs. | ||
| If files are not persisting, check cache key consistency and the restore/save log messages. For file access issues, create subdirectories first, verify permissions, and use absolute paths. If cache growth becomes a problem, clear old entries periodically or use time-based keys for auto-expiration. | ||
|
|
||
| When an agent calls `missing_data` with `reason: `cache_memory_miss``, the conclusion handler automatically opens a failure issue that points to a likely cache path problem. Verify that the prompt uses the correct path (`/tmp/gh-aw/cache-memory/` by default or `/tmp/gh-aw/cache-memory-{id}/` for named caches) and that the cache key stays consistent across runs. |
There was a problem hiding this comment.
The inline code span has broken Markdown: the inner backtick in reason: cache_memory_miss`` terminates the outer code span early, so this will render incorrectly in browsers and IDEs.
Fix by quoting the value with double-quotes (matching the original):
When an agent calls `missing_data` with `reason: "cache_memory_miss"`, the conclusion handler...
@copilot please address this.
There was a problem hiding this comment.
Two issues need fixing before merge.
Rendering bug (blocking)
Line 114 introduces a broken backtick-inside-backtick sequence ( cache_memory_miss ) that will render as two garbled code spans instead of one. See inline comment.
Non-blocking: dropped security property
The original "Logs access." sentence in the Security section was removed without replacement. Access logging is a user-relevant security property and should be preserved, even in condensed form.
🔎 Code quality review by PR Code Quality Reviewer · 40.7 AIC · ⌖ 6.43 AIC · ⊞ 5.4K
Comment /review to run again
| - **Cache path misconfiguration**: When the agent calls `missing_data` with `reason: "cache_memory_miss"`, the conclusion handler automatically opens a failure issue flagging a likely cache path problem. Check that the agent prompt references the correct path (`/tmp/gh-aw/cache-memory/` by default, or `/tmp/gh-aw/cache-memory-{id}/` for named caches) and that the cache key is consistent across runs. | ||
| If files are not persisting, check cache key consistency and the restore/save log messages. For file access issues, create subdirectories first, verify permissions, and use absolute paths. If cache growth becomes a problem, clear old entries periodically or use time-based keys for auto-expiration. | ||
|
|
||
| When an agent calls `missing_data` with `reason: `cache_memory_miss``, the conclusion handler automatically opens a failure issue that points to a likely cache path problem. Verify that the prompt uses the correct path (`/tmp/gh-aw/cache-memory/` by default or `/tmp/gh-aw/cache-memory-{id}/` for named caches) and that the cache key stays consistent across runs. |
There was a problem hiding this comment.
Broken Markdown rendering: the nested backtick syntax reason: cache_memory_miss`` will not render as a single code span — the inner backtick prematurely closes the outer span, producing garbled output visible to users.
💡 Suggested fix
Use the original double-quoted form, which renders correctly:
When an agent calls `missing_data` with `reason: "cache_memory_miss"`, the conclusion handler...In standard Markdown, a single-backtick code span is terminated by the next single backtick found. So reason: cache_memory_miss`` is parsed as two broken spans, not one. The pre-PR version had this right; the rewrite inadvertently broke it.
| Don't store sensitive data in cache memory. Cache memory follows repository permissions. | ||
|
|
||
| Logs access. With [threat detection](/gh-aw/reference/threat-detection/), cache saves only after validation succeeds (restore→modify→upload artifact→validate→save). | ||
| Do not store sensitive data in cache memory. It follows repository permissions, and with [threat detection](/gh-aw/reference/threat-detection/) enabled, caches save only after validation succeeds (`restore → modify → upload artifact → validate → save`). |
There was a problem hiding this comment.
Silent removal of auditing guarantee: the original Security section stated "Logs access." — informing users that cache reads/writes are auditable. The rewrite drops this entirely, leaving no mention that access is logged.
💡 Suggested fix
Reintegrate the access-logging property, for example:
Do not store sensitive data in cache memory. It follows repository permissions. All cache accesses are logged, and with [threat detection](/gh-aw/reference/threat-detection/) enabled, caches save only after validation succeeds (`restore → modify → upload artifact → validate → save`).Access logging is a meaningful security property — users making trust decisions about what to put in cache memory need to know this.
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /grill-with-docs — one concrete rendering bug found; requesting a fix.
📋 Key Themes & Highlights
Key Themes
- Broken Markdown syntax (line 114): Nested backticks in the
reason:cache_memory_miss`` phrase break code-span parsing. The inner backtick closes the outer span prematurely — this is a correctness issue, not a style nit.
Positive Highlights
- ✅ All configuration semantics, restore-key logic, and integrity details are preserved after condensing
- ✅ Conversion of the 4-bullet troubleshooting list to prose reads more naturally without losing information
- ✅ Security section tightening is clean — the threat-detection
restore → modify → upload artifact → validate → savepipeline is now nicely inlined in a single sentence with proper arrow formatting - ✅ Best Practices collapse is well-judged; the hierarchical key example is kept while cutting redundancy
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · 42.9 AIC · ⌖ 6.54 AIC · ⊞ 6.6K
Comment /matt to run again
| - **Cache path misconfiguration**: When the agent calls `missing_data` with `reason: "cache_memory_miss"`, the conclusion handler automatically opens a failure issue flagging a likely cache path problem. Check that the agent prompt references the correct path (`/tmp/gh-aw/cache-memory/` by default, or `/tmp/gh-aw/cache-memory-{id}/` for named caches) and that the cache key is consistent across runs. | ||
| If files are not persisting, check cache key consistency and the restore/save log messages. For file access issues, create subdirectories first, verify permissions, and use absolute paths. If cache growth becomes a problem, clear old entries periodically or use time-based keys for auto-expiration. | ||
|
|
||
| When an agent calls `missing_data` with `reason: `cache_memory_miss``, the conclusion handler automatically opens a failure issue that points to a likely cache path problem. Verify that the prompt uses the correct path (`/tmp/gh-aw/cache-memory/` by default or `/tmp/gh-aw/cache-memory-{id}/` for named caches) and that the cache key stays consistent across runs. |
There was a problem hiding this comment.
[/grill-with-docs] Broken backtick nesting: the phrase `reason: `cache_memory_miss `` has inner backticks that close the outer code span prematurely, causing broken rendering in most Markdown parsers.
💡 Suggested fix
Replace with escaped quotes:
When an agent calls `missing_data` with `reason: "cache_memory_miss"`, the conclusion handler...This matches the original phrasing and renders cleanly.
@copilot please address this.
|
🎉 This pull request is included in a new release. Release: |
Summary
Trimmed the cache-memory reference page to reduce redundancy and improve scannability. All factual content is preserved; only prose structure changed.
Changes
docs/src/content/docs/reference/cache-memory.md
What was removed
Nothing. Adjacent paragraphs covering the same topic were collapsed. Wording was tightened for clarity.
What was not changed
Type
docs — documentation prose edit only