-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
Labels
Description
Objective
Update the agentic job implementation to upload cache memories as artifacts at the end of execution, rather than updating cache directly.
Context
Currently, cache memories are updated too early in the agentic job. We need to defer the cache update until after detection has run, so memories are uploaded as artifacts first.
Approach
- Locate the code that handles cache memory updates in agentic jobs (likely in
pkg/workflow/js/*.cjsor workflow compiler) - Replace cache update logic with artifact upload logic
- Ensure artifacts are named consistently for detection job to find them (e.g.,
cache-memory-{workflow-id}) - Remove early cache update calls
Files to Investigate
pkg/workflow/js/*.cjs- JavaScript files that handle cache operationspkg/workflow/compiler.goor related - Workflow compiler that generates job stepspkg/workflow/templates/- Any templates used for job generation
Acceptance Criteria
- Agentic jobs upload memories as artifacts at job end
- Cache is NOT updated directly in agentic jobs (when detection is enabled)
- Artifact naming is consistent and predictable for downstream jobs
- Existing tests pass or are updated appropriately
Related to [plan] Update cache memory handling for detection workflow #5762
AI generated by Plan Command for #5760
Reactions are currently unavailable