Merged
Conversation
Accessible radio group with three labeled positions (accessible/literary/epic). NarratorVocabulary type alias in protocol types. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
slabgorb
added a commit
that referenced
this pull request
Apr 24, 2026
#158) Two OTEL dashboard bugs from the 2026-04-24 playtest (sq-playtest-pingpong lines 582, 598). Bug 1 — Turns counter stuck at 0, Timeline / Timing / Prompt / Lore empty. Root cause: the aggregator only counted the semantic `turn_complete` event, which stopped reaching the stream in live traffic. OTEL span closes (`orchestrator.process_action`, `turn.agent_llm.inference`, `narrator.canonical_leak_audit`) kept flowing — Console + Subsystems tabs filled while every per-turn tab stayed empty. Fix: treat `agent_span_close { name: "orchestrator.process_action" }` as the canonical turn boundary. Accumulate `turn_id` / `player_id` / genre / world from `narrator.canonical_leak_audit` (carries `turn_id=<genre>:<world>:<player>:<N>`) and inference duration from `turn.agent_llm.inference`, then synthesize a `turn_complete` WatcherEvent on the `orchestrator.process_action` close. Dedupe by `turn_id` so a late semantic `turn_complete` replaces the synthesized entry rather than double-counting. Bug 2 — State tab reads the first session from /api/debug/state, which with multiple saves was usually the OLDEST save instead of the active one. StateTab now picks the session with the largest `last_activity_ts` (new field on `SessionStateView`; server-side sort is handled in the paired server PR). Wiring tests: - increments Turns counter when orchestrator.process_action closes (feeds the exact 3-event sequence seen in playtest console logs) - does not double-count when a real turn_complete follows a synthesized one for the same turn_id - State tab picks the most-recently-touched session by last_activity_ts - State tab falls back to first entry when last_activity_ts absent (back-compat with un-deployed servers) Paired with sidequest-server PR #39 for the server-side sort + `?session_key=` filter, plus the local_dm JSON extraction fix. Co-authored-by: Claude Opus 4.7 (1M context) <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.
Summary
VocabularySlidercomponent: accessible radio group (accessible/literary/epic)NarratorVocabularytype in protocol typesTest plan
🤖 Generated with Claude Code