Skip to content

Parity: impossible to succeed TODO + completion inference#83

Merged
2 commits merged intomainfrom
batch-completion-assumption
Oct 22, 2025
Merged

Parity: impossible to succeed TODO + completion inference#83
2 commits merged intomainfrom
batch-completion-assumption

Conversation

@ghost
Copy link

@ghost ghost commented Oct 22, 2025

- Adds completion reason inference based on the rules outlined in the
  typescript implementation / spec.

fixes: #36
- Remove impossible-to-succeed early termination logic and match TypeScript implementation
- Refactor ExecutionCounters with separate should_continue() and is_complete() methods
  mimicking the typescript implementation.
- Add documentation explaining TypeScript parity decisions
- Update completion logic to properly handle ALL_COMPLETED with failures when all tasks finish

Resolves TODO at line 416 by implementing TypeScript-compatible completion behavior
where operations continue until normal completion criteria are met rather than
terminating early on impossible-to-succeed conditions.
@ghost ghost changed the title Batch completion assumption Parity: impossible to succeed TODO + completion inference Oct 22, 2025
@ghost ghost merged commit 3cde4ac into main Oct 22, 2025
6 checks passed
@wangyb-A wangyb-A deleted the batch-completion-assumption branch December 9, 2025 22:30
This pull request was closed.
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.

2 participants