You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[plan] Modify agentic job to upload memories as artifacts instead of cache #5763
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/*.cjs or 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 operations
pkg/workflow/compiler.go or related - Workflow compiler that generates job steps
pkg/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
Activity