Skip to content

feat(process): run finite-state replay during capture - #411

Merged
morluto merged 1 commit into
codex/issue-355from
codex/issue-334
Jul 22, 2026
Merged

morluto merged 1 commit into
codex/issue-355from
codex/issue-334

Conversation

@morluto

@morluto morluto commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Description

Wires the data-only replay machine into process capture for bounded HTTP and WebSocket login/reconnect workflows. Scenarios can declare states, guarded captures, actions, transition/use/visit limits, and runtime ceilings; Process Capture v4 records a redacted transition journal and exposes it through session evidence resources.

Replay dispatch and actions are serialized across protocols. Finalization stops new replay admission, drains queued work, snapshots events, and validates the journal against declared limits before returning evidence. Sensitive values remain memory-only; response headers and persisted capture sources are validated at the scenario boundary.

Stacked on #410.

Suggested review order:

  1. Replay machine schema and runtime invariants.
  2. Loopback dispatch, serialization, and finalization.
  3. Capture schema, validation, comparison, and evidence projection.
  4. Login/reconnect and lifecycle regressions.

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)

npm run check passed: 349 test files and 2,382 tests.

Tool Contract Impact

capture_process_scenario accepts an optional finite-state replay machine. Process Capture v4 and its evidence resource add replay_transitions. The canonical tool inventory remains unchanged.

Related Issues

Closes #334

@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 820af60 into codex/issue-355 Jul 22, 2026
@morluto
morluto deleted the codex/issue-334 branch July 22, 2026 14:33
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
feat(process): run finite-state replay during capture
@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