An agent-generated pull request fails after a workflow restores a cached context directory. The maintainer says the workflow appears to be using yesterday’s dependency and issue summary even though the issue was updated this morning. Which option best explains the failure? Select one answer.
Workflow: agent-validate
Event: pull_request
Head SHA: 8f72c1a
Run actions/cache@v4
Cache key: Linux-agent-context
Matched cache key: Linux-agent-context
Cache restored from: 2026-05-25T04:18:09Z
Restored path: .agent/context
Run cat .agent/context/issue-summary.txt
Issue #338 scope: update REST timeout only
Generated from commit: 2ab61df
Run cat current-head.txt
Current commit: 8f72c1a
Run npm test
FAIL tests/graphql-timeout.test.ts
Expected GraphQL timeout path to be updatedChoose an answer
Tap an option to check your answer.
Correct answer: A broad cache key restored stale agent context.
Why this is the answer
The workflow restored a cached context using the broad key Linux-agent-context. This key doesn't incorporate elements that change frequently, like the head SHA or issue ID. Consequently, an outdated cache from yesterday was retrieved, containing an old issue summary and dependency information. The agent then acted on this stale data, leading to a pull request that failed tests because it didn't reflect the morning's updates. To prevent this, the cache key should be more specific, perhaps including github.sha or github.event.issue.number to ensure the cache is invalidated and rebuilt when relevant changes occur. The pullrequest trigger did run the workflow, as evidenced by the output. Artifact retention is irrelevant here; this is about cache restoration, not artifact deletion. The GITHUBTOKEN permissions are not the issue; the problem is the content of the restored context, not the ability to read issues.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed