Skip to content

refactor!: simplify runtime tools and remove replay engines - #572

Merged
morluto merged 2 commits into
mainfrom
refactor/tool-system-simplification
Oct 5, 2026
Merged

morluto merged 2 commits into
mainfrom
refactor/tool-system-simplification

Conversation

@morluto

@morluto morluto commented Oct 5, 2026

Copy link
Copy Markdown
Owner

REA's replay engines and prepare/execute flows required agents to translate ordinary experiments into custom plans, fixture routes, and state machines. This change keeps direct inspection, capture, and comparison tools and lets agents supply commands, scripts, and local fixture servers themselves. CLI and MCP use the same simplified contracts; the published catalog contains 116 tools.

Removes run_controlled_replay, prepare_node_characterization, execute_node_characterization, run_replay_machine, and the plan-only plan_managed_runtime_correlation. Removes the redundant find_code_for_string tool; trace_feature covers that investigation. Retires process replay servers, command shims, reactive orchestration, custom checkpoints, browser request interception, and the active browser scenario's duplicate origin allowlist, together with their configuration, diagnostics, documentation, and exclusive verification lanes. Direct process capture retains timed input, resize and signal events, filesystem snapshots, terminal evidence, cancellation, settlement, and owned-resource cleanup.

Tool handlers now resolve named, typed contracts instead of relying on catalog positions, preventing tool removals from silently selecting another schema. Real Hopper verification also exposed a producer mismatch: the advertised procedure schema requires body coverage, but the bridge omitted it. All Hopper procedure producers now explicitly report unavailable complete body ranges rather than inventing extents. AGENTS.md adds prose guidance on these boundaries and on keeping experimentation in agent-composed tools.

Example MCP invocation:

{
  "name": "capture_process_scenario",
  "arguments": {
    "executable": "node",
    "arguments": ["-e", "console.log('ready')"]
  }
}

The equivalent CLI invocation is rea capture-process ./scenario.json, with the scenario object saved in that file.

Validation:

  • npm run check:pr: typecheck, lint, formatting, dead-code checks, build, generated-document checks, and 336 test files passed (1,810 tests passed; one skipped).
  • npm run verify:browser: real Chrome, browser scenarios, CLI/MCP screenshots, and launch/attach cleanup passed.
  • npm run verify:package: installed package, CLI/MCP, setup backups and idempotence, and 116-tool catalog passed.
  • npm run verify:hopper: real Hopper operations and lifecycle verification passed after the body-coverage fix.
  • Real Ghidra verification was not performed.

BREAKING CHANGE: The six listed tools and retired replay/orchestration/browser-scope inputs are removed. Old scenario fields are rejected explicitly. Stored evidence authority values remain readable for provenance.

Follow-up to #555.

Keep direct inspection, capture, and comparison tools. Bind handlers to named contracts and let agents compose experiments with commands and local fixture servers.

BREAKING CHANGE: Remove controlled replay, Node characterization, finite replay-machine, managed runtime planning, and redundant string-tracing tools. Retire process replay, shims, reactive scenarios, custom checkpoints, and active browser replay and origin-scope inputs.
@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.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@morluto
morluto merged commit e07b816 into main Oct 5, 2026
20 checks passed
@morluto
morluto deleted the refactor/tool-system-simplification branch October 5, 2026 13:15
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
)

* fix(hopper): report unavailable procedure body coverage

* refactor!: simplify runtime tools and remove replay engines

Keep direct inspection, capture, and comparison tools. Bind handlers to named contracts and let agents compose experiments with commands and local fixture servers.

BREAKING CHANGE: Remove controlled replay, Node characterization, finite replay-machine, managed runtime planning, and redundant string-tracing tools. Retire process replay, shims, reactive scenarios, custom checkpoints, and active browser replay and origin-scope inputs.
@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.

1 participant