Repository navigation
fix(loop): detached run re-exec drops the loop group; fix verify-fail report and token parsing - #473
Merged
Merged
Conversation
… report and token parsing Three bugs found while driving a multi-worker solve via `future loop`: 1. `future loop run` detached mode silently fails. The detached child re-execs `current_exe` and re-prepends only `run`, so the unified `future` binary dispatches to the unrelated one-shot `future run` command (which rejects `--goal` and exits instantly) while the parent prints a fake pid. Prepend the `loop` group when the executable stem is `future`; the standalone `future-loop` binary has no group layer and is unaffected. 2. Verify-gate failure report misreports "error: completed". A verify-gate rejection ends the turn with terminal_state == "completed" and error == None, so the supervisor failure report fell back to `error.unwrap_or (terminal_state)` and printed "error: completed". Report the failure kind instead, including the validator exit code for a verify rejection. 3. Token accounting zeroes out on float/string token counts. The OpenAI-compat usage parser used a strict `as_i64`, so gateways that encode token counts as floats or numeric strings (observed for qwen-family models on the Future platform) silently reported every turn as 0 tokens. Parse i64 → f64 → numeric-string defensively, with a regression test. Also bumps the `skills` submodule to pull in the matching SKILL.md documentation (detached-run bug + token-burn watch + evidence truncation).
…-and-token-parsing
huichen
force-pushed
the
fix/loop-detached-run-and-token-parsing
branch
from
September 3, 2026 02:38
47e8226 to
b561a4e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(loop): detached run re-exec drops the loop group; fix verify-fail report and token parsing
Three bugs found while driving a multi-worker solve via
future loop:future loop rundetached mode silently fails. The detached childre-execs
current_exeand re-prepends onlyrun, so the unifiedfuturebinary dispatches to the unrelated one-shotfuture runcommand(which rejects
--goaland exits instantly) while the parent prints afake pid. Prepend the
loopgroup when the executable stem isfuture;the standalone
future-loopbinary has no group layer and is unaffected.Verify-gate failure report misreports "error: completed". A verify-gate
rejection ends the turn with terminal_state == "completed" and error ==
None, so the supervisor failure report fell back to
error.unwrap_or (terminal_state)and printed "error: completed". Report the failure kindinstead, including the validator exit code for a verify rejection.
Token accounting zeroes out on float/string token counts. The OpenAI-compat
usage parser used a strict
as_i64, so gateways that encode token countsas floats or numeric strings (observed for qwen-family models on the
Future platform) silently reported every turn as 0 tokens. Parse
i64 → f64 → numeric-string defensively, with a regression test.
Also bumps the
skillssubmodule to pull in the matching SKILL.mddocumentation (detached-run bug + token-burn watch + evidence truncation).