Skip to content

fix(workflows): builtin workflows use real tier names (economy/standard, not low/medium) (#47) - #48

Merged
rz1989s merged 1 commit into
mainfrom
fix/issue-47-builtin-tier-names
Aug 6, 2026
Merged

fix(workflows): builtin workflows use real tier names (economy/standard, not low/medium) (#47)#48
rz1989s merged 1 commit into
mainfrom
fix/issue-47-builtin-tier-names

Conversation

@rz1989s

@rz1989s rz1989s commented Aug 6, 2026

Copy link
Copy Markdown
Member

What

Fixes #47: the 5 builtin workflows used tier: 'low'/'medium' which don't exist in BUILTIN_TIERS (economy/standard/frontier) → resolveAgentModel returned tier not found → every agent() call failed (returned null) → the builtins completed-with-nulls (did nothing). Discovered by a read-only review subagent verifying the PR #46 workflow-API docs against the source.

Change

Renames in src/workflows/builtin/*.js:

  • tier: 'low'tier: 'economy' (cheapest — minimax)
  • tier: 'medium'tier: 'standard' (mid — glm→minimax)
  • tier: 'high'tier: 'frontier' (not used by builtins; renamed for completeness)

Guard test (+3)

test/workflow-builtin-tiers.test.mts:

  • every builtin's tier: 'X' names resolve against BUILTIN_TIERS (catches a non-existent tier);
  • the old low/medium/high names must not reappear (regression guard);
  • BUILTIN_TIERS defines economy/standard/frontier.

Verification

  • pnpm typecheck clean; pnpm test:run 646/646 (+3 new).
  • The unit guard proves the tier names resolve (no tier not found). The "produces non-null agent results" acceptance is verified by the next release-gate smoke (a real workflow run — the dispatch producing text is a real-pi check, not a unit test).

Closes #47.

…rd, not low/medium) (#47)

The 5 builtin workflows used tier:'low'/'medium' which DON'T EXIST in
BUILTIN_TIERS (economy/standard/frontier) — so resolveAgentModel returned
'tier not found', every agent() call failed (returned null), and the builtins
completed-with-nulls (did nothing). Discovered by a read-only review subagent
verifying the PR #46 workflow-API docs against the source.

Renames in src/workflows/builtin/*.js:
- tier:'low'    -> tier:'economy'  (cheapest — minimax)
- tier:'medium' -> tier:'standard' (mid — glm->minimax)
- tier:'high'   -> tier:'frontier' (not used by builtins; renamed for completeness)

Guard test (+3): every builtin's tier names resolve against BUILTIN_TIERS;
the old low/medium/high names must not reappear; BUILTIN_TIERS defines
economy/standard/frontier.

646/646 tests, typecheck clean.
@rz1989s
rz1989s merged commit 034e644 into main Aug 6, 2026
1 check passed
@rz1989s
rz1989s deleted the fix/issue-47-builtin-tier-names branch August 6, 2026 00:54
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.

bug: the 5 builtin workflows use non-existent tier names (low/medium) — every agent() call fails (returns null)

1 participant