Skip to content

feat: add managed characterization and reconstruction coverage - #285

Merged
morluto merged 2 commits into
mainfrom
feat/runtime-characterization-coverage
Jul 16, 2026
Merged

morluto merged 2 commits into
mainfrom
feat/runtime-characterization-coverage

Conversation

@morluto

@morluto morluto commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Description

Chrome startup failures previously collapsed CDP discovery into a generic timeout, Node runtime selection could not distinguish broken from ambiguous installations, and managed characterization/reconstruction coverage lacked committed, approval-separated workflows.

This change:

  • reports Chrome process exit, DevToolsActivePort state, bounded stderr, executable metadata, and startup timing when CDP discovery fails;
  • makes doctor classify missing, broken, shadowed, and ambiguous Node/npm/npx installations with actionable path and version evidence;
  • adds preparation and execution approvals for exact-digest Node characterization, with deterministic non-mutating export instrumentation and Evidence v2 linkage;
  • adds content-addressed reconstruction coverage workspaces, closure evaluation, next-probe reporting, revision resources, and optional exact workspace binding in verify_reconstruction.

Provider-specific runtime mechanics remain in adapters and application services; the characterization and coverage models stay provider-neutral.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Tool contract change

Testing Performed

  • npm run typecheck
  • npm run build
  • npm run lint
  • npm run format:check
  • npm run docs:check
  • npm run verify:package
  • npm pack --dry-run
  • Focused Vitest suites for browser startup, doctor/runtime diagnostics, characterization, reconstruction coverage, MCP workflows, contracts, catalog, and server identity
  • Full npm run check: parallel runtime and browser CLI suites hit resource-sensitive timeouts; the affected focused suites pass.
  • Real Chrome verification: no Chrome-family executable was available locally; the CI real-browser lane remains the end-to-end proof.
  • Real Hopper/Ghidra verification: provider behavior is unchanged and these verifiers were not run.

Tool Contract Impact

Adds four application tools:

  • prepare_node_characterization
  • execute_node_characterization
  • commit_reconstruction_coverage
  • query_reconstruction_coverage

Adds rea://reconstruction-coverage/{workspaceId}/revision/{revision} and an optional reconstruction-coverage binding on verify_reconstruction. The generated catalog records 95 MCP tools, 55 CLI commands, and 8 resource templates.

Suggested Review Order

  1. Provider-neutral characterization, JavaScript instrumentation, and reconstruction coverage domain models.
  2. Node characterization, coverage persistence/services, and runtime diagnostics.
  3. CLI/MCP contracts, approval effects, Evidence resources, and verification binding.
  4. Regression and workflow tests.
  5. Generated catalog and API documentation.

Related Issues

Closes #279
Closes #268
Closes #267
Closes #262

@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 02c913b into main Jul 16, 2026
13 checks passed
@morluto
morluto deleted the feat/runtime-characterization-coverage branch July 16, 2026 23:16
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
…tion-coverage

feat: add managed characterization and reconstruction coverage
@morluto morluto added enhancement New feature or request area: evidence Evidence, artifacts, and reconstruction labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: evidence Evidence, artifacts, and reconstruction enhancement New feature or request

Projects

None yet

1 participant