Skip to content

[plan] Modify agentic job to upload memories as artifacts instead of cache #5763

@github-actions

Description

@github-actions

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

  1. Locate the code that handles cache memory updates in agentic jobs (likely in pkg/workflow/js/*.cjs or workflow compiler)
  2. Replace cache update logic with artifact upload logic
  3. Ensure artifacts are named consistently for detection job to find them (e.g., cache-memory-{workflow-id})
  4. 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

AI generated by Plan Command for #5760

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions