Skip to content

test: add curses-cli#8222

Draft
scarf005 wants to merge 5 commits intocataclysmbn:mainfrom
scarf005:chore/ai-pr-local-curses-validation
Draft

test: add curses-cli#8222
scarf005 wants to merge 5 commits intocataclysmbn:mainfrom
scarf005:chore/ai-pr-local-curses-validation

Conversation

@scarf005
Copy link
Member

@scarf005 scarf005 commented Feb 21, 2026

Purpose of change (The Why)

asciicast

  • the answer to "which AI reviews the AI generated PR?"
  • make it possible for AI to playtest PRs

Describe the solution (The How)

the script runs the game on tmux and work as a bridge between AI and game. in the future, it can be used to quickly test multiple PRs locally.

  • game/CLI integration:
    • expose runtime Lua action-menu macros as JSON and surface them in curses-cli (available-macros-json, macro:<id> entries in inputs-jsonl)
    • harden session lifecycle around tmux socket normalization and startup validation
  • Lua stdlib:
    • add AI utility action-menu macros (bn_macro_agent_context, bn_macro_look_target, bn_macro_adjacent_target) plus earlier macro set
  • docs/skills:
    • add skills/curses-cli/references/macros.md
    • add skills/curses-cli/references/benchmark-loop.md
    • add docs/en/dev/guides/bench.md
  • evidence artifacts:
    • add benchmark session bundle zip at artifacts/curses-cli/curses-bench-live-2026-02-26.zip

Testing

  • TypeScript checks/tests:
    • deno check scripts/curses-cli/main.ts
    • deno test scripts/curses-cli/main_test.ts
  • C++ build validation:
    • cmake --build --preset linux-full --target cataclysm-bn-tiles-common
    • cmake --preset linux-curses && cmake --build --preset linux-curses --target cataclysm-bn
  • runtime validation:
    • started/stopped real curses-cli session and generated artifacts
    • uploaded cast and verified preview link
    • verified zip artifact committed and accessible from branch

Additional context

AI was really inefficient, took IRL 36 minutes above. hopefully this should become faster in the future

session bundle: https://github.com/scarf005/Cataclysm-BN/raw/chore/ai-pr-local-curses-validation/artifacts/curses-cli/curses-bench-live-2026-02-26.zip

Checklist

Mandatory

Optional

  • This is a C++ PR that modifies JSON loading or behavior.
    • I have documented the changes in the appropriate location in the docs/ folder.
    • If documentation for this feature does not exist, please write it or at least note its lack in PR description.
  • This PR modifies lua scripts or the lua API.
    • I have added lua scope to the PR title.
    • I have added type annotations to functions so that it's safe and easy to maintain.
    • I have committed the output of deno task docs:gen so the Lua API documentation is updated.

@github-actions github-actions bot added docs PRs releated to docs page scripts related to game management scripts labels Feb 21, 2026
@scarf005 scarf005 marked this pull request as draft February 21, 2026 15:30
@ushkinaz
Copy link
Contributor

Wow, that's really cool idea.
and with asciicinema we'll have a screen replay basically for free.

@scarf005 scarf005 changed the title test: expand local curses PR verify artifacts test: curses MCP Feb 22, 2026
@scarf005 scarf005 force-pushed the chore/ai-pr-local-curses-validation branch from 78f0788 to 8e12176 Compare February 22, 2026 09:36
@cataclysmbn cataclysmbn deleted a comment from autofix-ci bot Feb 22, 2026
@scarf005 scarf005 force-pushed the chore/ai-pr-local-curses-validation branch 2 times, most recently from 8ecd81c to 3397538 Compare February 25, 2026 12:40
@github-actions github-actions bot removed the docs PRs releated to docs page label Feb 25, 2026
@scarf005 scarf005 changed the title test: curses MCP test: curses-cli Feb 25, 2026
scarf005 and others added 3 commits February 26, 2026 00:50
Assisted-by: openai/gpt-5.3-codex on opencode
Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
Assisted-by: openai/gpt-5.3-codex on opencode
Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
@scarf005 scarf005 force-pushed the chore/ai-pr-local-curses-validation branch from 96a813c to d01cc1e Compare February 25, 2026 17:53
@github-actions github-actions bot added src changes related to source code. JSON related to game datas in JSON format. lua PRs and issues related to Lua scripting labels Feb 25, 2026
Assisted-by: openai/gpt-5.3-codex on opencode
Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
@github-actions github-actions bot added the docs PRs releated to docs page label Feb 25, 2026
Assisted-by: openai/gpt-5.3-codex on opencode
Co-authored-by: chatgpt-codex-connector[bot] <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com>
@scarf005 scarf005 marked this pull request as ready for review February 25, 2026 18:00
@scarf005 scarf005 changed the title test: curses-cli lua: improve curses-cli macro automation workflow Feb 25, 2026
@scarf005 scarf005 changed the title lua: improve curses-cli macro automation workflow test: add curses-cli, curses server for AI Feb 25, 2026
@cataclysmbn cataclysmbn deleted a comment from autofix-ci bot Feb 25, 2026
@scarf005 scarf005 changed the title test: add curses-cli, curses server for AI test: add curses-cli Feb 25, 2026
@scarf005 scarf005 marked this pull request as draft February 27, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs PRs releated to docs page JSON related to game datas in JSON format. lua PRs and issues related to Lua scripting scripts related to game management scripts src changes related to source code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants