Skip to content

Add turn-based intent demo - #3

Merged
rivendale merged 1 commit into
mainfrom
codex/reference-demo-examples
Jul 4, 2026
Merged

Add turn-based intent demo#3
rivendale merged 1 commit into
mainfrom
codex/reference-demo-examples

Conversation

@rivendale

Copy link
Copy Markdown
Contributor

Summary

  • adds a no-build, browser-only turn-based game demo showing the full pwcli-core loop: command input -> intent telemetry -> registered primitive -> preview/approval -> deterministic ledger -> return focus
  • extends primitive.schema.json with optional UX metadata for primary action, preview fields, risk labels, cost fields, state copy, and undo policy
  • adds a Human UX guide for Basic / Intermediate / Advanced progressive disclosure and assertion separation
  • adds example fixture wrappers and an example-local result ledger schema
  • hardens validation for static demo files, example-local schemas, and example fixture schema refs/shapes
  • adds public Apache-2.0 rivendale/iocalc-agent-env as a maintainer companion reference; intentionally does not add private iso-ai-game

Review hardening

Two read-only adversarial reviews ran before commit. Findings patched:

  • escaped data-bearing strings in the demo before rendering through innerHTML
  • rendered risk and cost metadata in the preview panel
  • removed structuredClone dependency with a small clone helper
  • renamed the demo from domain-specific Season Duel wording to neutral turn-based game language
  • removed the local: fixture schema bypass so fixtures must point to real .schema.json files
  • clarified validation docs so they do not overstate full JSON Schema validation

Validation

  • node --check scripts/validate.mjs
  • node --check examples/turn-based-game/demo.js
  • npm run validate
  • git diff --check

@rivendale
rivendale merged commit cc9a79e into main Jul 4, 2026
4 checks passed
@rivendale
rivendale deleted the codex/reference-demo-examples branch July 4, 2026 00:31
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