Skip to content

feat(llm): add bounded direct and tool turn runner - #107

Merged
nosam1998 merged 1 commit into
mainfrom
feat/llm-turn-runner
Oct 4, 2026
Merged

nosam1998 merged 1 commit into
mainfrom
feat/llm-turn-runner

Conversation

@nosam1998

Copy link
Copy Markdown
Member

Built-in model calls can now select a legal move through a reusable turn runner. Direct mode validates the action/reasoning object; tools mode offers current state, move selection, and only the planning assists allowed for the seat. The host binds planning to the same authorized service operations used by MCP and commits the selected move separately with a turn precondition.

Sessions preserve the immutable briefing, tool definitions, and signed conversation prefix. Reports retain every request/response, tool result, failed attempt, usage class, and elapsed time. Refusals, invalid moves, and invalid formats consume configured retries. Output tokens are capped across the entire move, the deadline includes planning calls, and sixteen provider calls bound endless tool loops. A tool batch selects at most one move and answers all remaining tool IDs. Transport/budget failures never silently retry or choose fallback actions.

Validation: all 27 provider/runner tests pass, including 12 scripted turn scenarios for recovery/exhaustion, signed-history round trips, forbidden assists, forged target fields, multiple moves, output/time limits, empty refusal completions, accounting, and uncertain provider failures. Clippy with warnings denied, formatting, and dependency-boundary checks pass.

This adds the player execution layer. Durable call reservations/journals and server seat scheduling remain a separate integration change; no paid model calls were made.

SemVer: additive feature (minor).

@nosam1998
nosam1998 marked this pull request as ready for review October 4, 2026 07:15
@nosam1998
nosam1998 merged commit 6025922 into main Oct 4, 2026
14 checks passed
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.

1 participant