Repository navigation
perf: latency target enforcement and first optimizations (P-6) - #159
Merged
Merged
Conversation
…gress from 2026-11-19) - SceneLoop.run emits SCENE_TURN_MS per turn and warns TURN_OVER_TARGET past MONITOR_TURN_LATENCY_TARGET_S (default 40s, p95 target) - wrap-up router runs its independent steps concurrently (asyncio.gather) - /gm/lookup/improvise role override (MONITOR_GM_IMPROVISE_ROLE) and GM_LOOKUP_LATENCY logging past the 30s lookup budget - opt-in narrator skip for simple no-roll Q&A turns (MONITOR_NARRATOR_SKIP_SIMPLE_TURNS, off by default) - scripts/measure_turn_latency.py for live p50/p95 measurement - docs/architecture/LATENCY_OPTIMIZATION_PLAN.md consolidates the plan Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Work in progress from 2026-11-19, rebased onto master after #158. First pass of
docs/architecture/LATENCY_OPTIMIZATION_PLAN.md(P-6 scene turn latency).What's in it
SceneLoop.runemitsSCENE_TURN_MSper turn and warnsTURN_OVER_TARGETpastMONITOR_TURN_LATENCY_TARGET_S(default 40s, p95 target).asyncio.gather)./gm/lookup/improviserole override (MONITOR_GM_IMPROVISE_ROLE) andGM_LOOKUP_LATENCYlogging past the 30s lookup budget.MONITOR_NARRATOR_SKIP_SIMPLE_TURNS, off by default until measured in a playtest).scripts/measure_turn_latency.pyfor live p50/p95 measurement.Not started (from the plan)
Verification
🤖 Generated with Claude Code