Repository navigation
Fix runtime cache-memory cold-start reporting guidance - #74261
Conversation
Keep optional cache misses on the documented recovery path while preserving required-input reports. Cover runtime templates and real cache-warning rendering. Co-authored-by: Copilot App <[email protected]>
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
Request changes
The added Go contract test reads committed runtime prompt copies that this PR leaves stale, producing a deterministic test failure and allowing source/runtime template drift. Please synchronize those copies or narrow the test to the authoritative templates.
Details
One inline comment identifies the failing assertion path in pkg/workflow/cache_memory_prompt_test.go. The specialist pass also flagged that the cold-start behavior remains prompt-dependent, but I did not treat that as a separate blocking finding because preserving explicit missing-data reporting appears intentional in this change.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.7K
Comment /review to run again
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain with the runtime cache-memory guidance changes.
No open issues 🎉
What changed in this PR
Aligns runtime cache-memory guidance with the existing cold-start contract, addressing the false failure reported in #74179 while preserving reporting for missing or unusable required inputs.
Changes:
- Updates single-cache and multi-cache prompts to use workflow-defined fallbacks and save updated state.
- Clarifies restore-match warnings and logs, and fixes the warning’s unbound
{id}placeholder. - Adds regression coverage, documentation updates, and a patch changeset.
| File | Description |
|---|---|
pkg/workflow/cache_memory_prompt_test.go |
Extends contract checks to runtime prompt templates. |
docs/src/content/docs/reference/cache-memory.md |
Clarifies cold-start fallbacks and required-input reporting. |
actions/setup/md/cache_memory_prompt.md |
Aligns single-cache instructions with fallback behavior. |
actions/setup/md/cache_memory_prompt_multi.md |
Applies the same guidance to multiple caches. |
actions/setup/md/cache_memory_miss.md |
Clarifies restore warnings and fixes the cache-ID placeholder. |
actions/setup/js/handle_agent_failure.test.cjs |
Covers real warning rendering and required-input reporting. |
actions/setup/js/handle_agent_failure.cjs |
Updates comments and logs without changing failure-detection logic. |
.changeset/patch-runtime-cache-cold-start-guidance.md |
Records the guidance correction as a patch release. |
Review effort: Balanced (auto)
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /tdd and /diagnosing-bugs to the report_missing_data contract change. Requesting changes because one committed test will fail.
📋 Key Findings
Blocking
- Stale snapshot:
actions/setup/js/testdata/messages_preview.md(around line 568) still contains the oldCache Configuration Problemtext forcache_memory_miss.md.messages_preview.test.cjsrenders everyactions/setup/mdtemplate that is not in its exclusion list and assertstoMatchFileSnapshot, andcache_memory_miss.mdis not excluded. The testrenders synthetic previews of every published message templatewill fail until the snapshot is regenerated and committed.
Non-blocking
- Docs placeholder:
docs/src/content/docs/reference/cache-memory.mdlines 96 and 135 still use{id}, while the warning template now uses<id>. Align them. - Duplicate prompt sources: see the inline comment on
pkg/workflow/cache_memory_prompt_test.go.
Positive Highlights
- ✅ Changing
{id}to<id>avoids the unrendered-placeholder assertion. That is the right fix. - ✅ The new
it.eachtest inhandle_agent_failure.test.cjscovers the restored and unrestored branches. - ✅ The new
main()log is informational only, and the gating logic is unchanged.
Verification Limits
- The vitest suite could not run locally because npm registry TLS interception blocked
npm ci. The snapshot finding comes from static analysis of the test. The focused Go contract tests pass locally.
@copilot please address the review comments above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~8 AIC · ⌖ ~1 AIC · ⊞ 5.4K
Comment /matt to run again
Remove unused compiler-side cache prompt copies and validate the runtime templates directly. Refresh the cache warning snapshot and align documented named-cache placeholders. Co-authored-by: Copilot App <[email protected]>
|
🎉 This pull request is included in a new release. Release: |
Why
Linter Miner reported optional missing cache history as a workflow failure in #74179 even though its documented cold-start fallback allowed the task to continue. The runtime-injected cache prompts still required a missing-data report for every cache miss, contradicting the compiler-side guidance and documentation.
Approach
{id}placeholder that broke rendering of the actual cache warning.The separate detection-engine error observed in the same run is not addressed here. Detection-gated cache publication remains unchanged.
Relates to #74179
Validation
make buildmake fmtandmake lint-cjsmake agent-report-progress: passed, including compilation of 355 workflows with no lock-file drift