Skip to content

feat(process): add direct replay machine runner - #418

Merged
morluto merged 1 commit into
mainfrom
codex/issue-335
Jul 22, 2026
Merged

morluto merged 1 commit into
mainfrom
codex/issue-335

Conversation

@morluto

@morluto morluto commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Description

Add a direct, execution-free boundary for finite replay machines. run_replay_machine and rea run-replay-machine now accept the same validated { machine, events } JSON and evaluate it through the existing ReplayMachineRuntime without opening sockets or launching a target.

The result includes:

  • one typed decision per offered event, including unmatched, guard-failed, transition-exhausted, unexpected-reconnect, invalid-state/capture, and limit-exhausted outcomes;
  • a transition journal with state changes and captured alias metadata;
  • one redacted action-table entry per used transition, avoiding repeated action payloads;
  • final/terminal state plus configured and committed limit use.

Captured values and request content are not returned. Action fields containing a captured secret collapse to a stable alias. Direct runs also cap events, aggregate action JSON, action text fields, and possible sensitive-capture operations so response size and redaction work remain bounded.

The canonical CLI/MCP catalog, bundled skill metadata, Process Capture documentation, and translated tool-family counts are updated for the new command.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Performance improvement
  • Refactoring (no functional change)
  • Tool contract change (MCP schema modification)

Testing Performed

  • Unit tests added or updated
  • TypeScript typecheck passes (npm run typecheck)
  • Linting passes (npm run lint)
  • Full test suite passes (npm test)
  • Real Hopper verification performed (npm run verify:hopper)
  • Linux real Hopper verification performed (npm run verify:hopper:linux) or unavailability explained
  • Real browser verification performed (npm run verify:browser) or unavailability explained
  • Package verification performed (npm run verify:package)

Validation run:

  • npm run check
  • npm run docs:check
  • replay-machine domain/runtime/MCP/contract tests: 26 passed
  • application workflow CLI integration tests: 5 passed
  • full npm test: 1,281 passed; seven parallel timing/process assertions failed under suite saturation, and all six affected files then passed serially (45 tests)

Real Hopper, Ghidra, browser, and package verification were not run because this change does not alter provider, browser, packaging, or real-tool execution paths.

Tool Contract Impact

Adds the read-only, idempotent session tool run_replay_machine and CLI command run-replay-machine. MCP tool count becomes 97; primary CLI command count becomes 57.

Related Issues

Closes #335

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@morluto
morluto merged commit 3df9a07 into main Jul 22, 2026
10 checks passed
@morluto
morluto deleted the codex/issue-335 branch July 22, 2026 19:47
@morluto morluto added enhancement New feature or request area: runtime Process capture and runtime observation labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CLI/MCP command for finite-state replay machines

1 participant