Skip to content

Fix agent state telemetry and browser action contracts#45

Merged
MaxBittker merged 2 commits into
mainfrom
codex/state-action-contract
Jul 24, 2026
Merged

Fix agent state telemetry and browser action contracts#45
MaxBittker merged 2 commits into
mainfrom
codex/state-action-contract

Conversation

@MaxBittker

Copy link
Copy Markdown
Owner

Summary

  • add publication revisions and observation IDs so same-tick messages, dialogs, and combat events remain distinguishable to agents
  • expose truthful NPC health/death lifecycle and target-facing state, plus inventory quantity helpers
  • make low-level interaction failures explicit and preserve ranged spell dispatch when adjacency routing is unavailable
  • serialize browser actions with a bounded, expiring FIFO that preserves reconnect quiescence
  • make temporary door evidence session-scoped and expiring
  • require target-specific combat evidence and dismiss safe blocking UI before reporting action success

Review follow-up

This version incorporates an independent second-pass review covering same-tick evidence loss, unrelated combat XP attribution, reconnect overlap, stale door blocks, modal ordering, ranged spell routing, and unbounded queued actions.

Validation

  • 20 focused state/action/browser tests pass
  • 26 pathfinding tests pass
  • chat-history and dialog suites pass
  • webclient typecheck and production build pass
  • root typecheck reaches only the two pre-existing banking fixture nullability errors addressed by Make the agent API self-describing and add regression CI #43
  • git diff --check passes

Merge notes

This overlaps the action/type surfaces in #27 and #40 and should be reconciled before those older PRs are merged. Merge the generated API/docs PR #43 after this and the porcelain reliability PR, then regenerate the reference.

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