Repository navigation
Persist canonical tool calls before every execution - #1637
Draft
BlueHotDog wants to merge 1 commit into
Draft
BlueHotDog wants to merge 1 commit into
BlueHotDog wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
Summary
Prerequisite for
refactor/wait-server, implemented directly onmain. No commits from the wait-server branch are included.Every backend, client, unavailable, and malformed tool call now follows the same persistence model:
nilinput, followed by an execution error.Deployment blocker — draft
The first rollout requires a maintenance cutover. Do not merge into the normal blue/green deployment without coordinating it.
infra/production/deploy.shruns migrations before it stops the old slot. An old server can therefore write declaration-only history after this backfill. A database lock during the migration does not prevent those later writes.Stop old writers before the migration. Start the new release before restoring traffic. Rollout and rollback requirements are documented in
apps/frontman_server/README.md. This PR does not change deployment policy or run any production migration.Size
Runtime code in
apps/frontman_server/lib: 175 added, 211 deleted — 36 fewer lines.The complete PR grows because it includes the data migration, regression tests, documentation, and a changeset. The line reduction is in runtime code, not the complete diff.
Verification
New coverage includes transaction rollback, per-turn identity, malformed backend/client calls, resolved-call start rejection, restart before dispatch, canonical result requirements, replay, historical ordering, legacy argument formats, and result-only backfill.
The original
refactor/wait-serverworktree remains unchanged.