Phase 2: RoleStep refs tracking #31

Closed
opened 2026-05-07 10:37:34 +00:00 by xiaoju · 0 comments
Owner

Add refs: string[] to RoleOutput for CAS reference tracking.

  • Add refs to RoleOutput type and engine persistence
  • Add optional extractRefs(meta) => string[] to RoleDefinition
  • Implement in planner (phases.map(p => p.hash)) and coder ([completedPhase])
  • Update fork logic to preserve refs
  • Tests

Depends on Phase 1.

Refs #25
Plan: docs/plans/2025-05-07-workflow-as-agent.md Phase 2

Add `refs: string[]` to `RoleOutput` for CAS reference tracking. - Add `refs` to `RoleOutput` type and engine persistence - Add optional `extractRefs(meta) => string[]` to `RoleDefinition` - Implement in planner (`phases.map(p => p.hash)`) and coder (`[completedPhase]`) - Update fork logic to preserve refs - Tests Depends on Phase 1. Refs #25 Plan: `docs/plans/2025-05-07-workflow-as-agent.md` Phase 2
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#31