Skip to content

Comments

fix(taskctl): coerce numeric depends_on to strings in Composer schema (#250)#276

Merged
randomm merged 2 commits intodevfrom
fix/issue-250-composer-depends-on-coercion
Feb 20, 2026
Merged

fix(taskctl): coerce numeric depends_on to strings in Composer schema (#250)#276
randomm merged 2 commits intodevfrom
fix/issue-250-composer-depends-on-coercion

Conversation

@randomm
Copy link
Owner

@randomm randomm commented Feb 20, 2026

Fixes #250

Changes

  • composer.ts: coerce numeric depends_on values to strings via zod union+transform+pipe
  • agent.ts: add example task with string depends_on reference and Rule 9 clarifying no numeric indexes
  • composer.test.ts: add test verifying numeric coercion works without validation errors

Root cause

Composer LLM was outputting numeric sequential IDs (e.g. [1, 2]) in depends_on arrays. The schema required strings, causing validation failure on every taskctl start.

@randomm randomm merged commit a407213 into dev Feb 20, 2026
1 check passed
@randomm randomm deleted the fix/issue-250-composer-depends-on-coercion branch February 20, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(taskctl): Composer outputs numeric depends_on IDs, failing task validation

1 participant