mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-08-28 05:27:41 +00:00
Addresses a Copilot review comment on #653. The source array is runtime data, usually produced by a model, so its length is not something a workflow author reviewed. Two changes, so an over-long array degrades into a clear error rather than memory pressure. Cap the item count at 1000. Above that the stage fails deterministically before `parallel.started`, alongside the other for_each contract violations, and the message says how to reduce the array. Fork the parent context inside the branch task, after it acquires a `max_parallel` slot, instead of at dispatch time. Live context copies now track `max_parallel` rather than item count. Only the branch's own preamble entry is moved into the task, so the shared stash is not cloned per branch either. The reviewer also suggested replacing spawn-all with `max_parallel` workers pulling from a queue. Not done here: with the fork deferred, a pending task holds little beyond its item, and reshaping the dispatch loop would change cancellation and scope-reservation ordering, which deserves its own review. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| assets/brand | ||
| demo | ||
| licenses | ||
| product | ||
| cargo-target-apfs-churn-plan.md | ||
| cli-workflow-coupling-audit.md | ||
| error-handling-strategy.md | ||
| event-schema-competitive-analysis.md | ||
| events-strategy.md | ||
| events.md | ||
| fabro-event-schema-v2-concrete-shape.md | ||
| fabro-event-schema-v2-proposal.md | ||
| llm-client-resolution.md | ||
| logging-strategy.md | ||
| mcp-server-qa-test-plan.md | ||
| migrations-strategy.md | ||
| panic-policy.md | ||
| parallel-strategy.md | ||
| plan-events-as-source-of-truth-follow-ups.md | ||
| plan-events-as-source-of-truth.md | ||
| react-effects-policy.md | ||
| run-directory-keys.md | ||
| server-secrets-strategy.md | ||
| slow-test-opportunities-2026-04-07.md | ||
| testing-strategy.md | ||
| updating-web-screenshots.md | ||