Skip to content

fix(ci): select debugger command handlers through the command registry - #11686

Merged
morluto merged 1 commit into
mainfrom
fix/mutation-target-command-registry
Nov 16, 2026
Merged

morluto merged 1 commit into
mainfrom
fix/mutation-target-command-registry

Conversation

@morluto

@morluto morluto commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes the reverse-tools quality job broken by #11680. Stryker's command-handler selector looked for cli.command(CLI_COMMANDS.x, { run }); #11680 registers every command through registerCliCommand(cli, CLI_COMMANDS.x, { run }), so loading stryker.config.mjs threw Expected one mutation target in src/cli/reverseEngineeringCommands.ts: {"kind":"command-handler","command":"debugWithGdb"}; found 0.

Refs #11654

Problem and expected behavior

Observed in #11680's CI run (job 133074062802, "Reverse tools quality") and reproduced locally on main: tests/boundary/filesystem/reverseToolsMutationConfig.test.ts fails with the error above. Expected: the selector resolves exactly one run handler for each debugger command.

Change and scope

scripts/lib/reverse-tools-mutation-targets.mjs: the selector matches registerCliCommand(cli, CLI_COMMANDS.<command>, { run }), the only way to register a command since #11680 (guard cli-command-outside-registry, baseline 0). The old cli.command shape is not kept. No source or mutation-target change otherwise.

Contribution scope: not applicable (CI fix).

Contract and boundary impact

  • Semantic owner and earliest changed stage: the mutation-target selector, reading the command registry call shape owned by src/cli/commandRegistry.ts.
  • Contribution scope fit and linked maintainer decision: not applicable.
  • CLI and MCP/tool-catalog contract: none.
  • Provider, bridge, target-format, or platform compatibility: none.
  • Evidence, artifact, provenance, or reconstruction contract: none.
  • Target selection, authority, upstream behavior, and cleanup details (if applicable): not applicable.
  • Generated metadata (docs/public/product-catalog.json), package, or installation impact: none.

Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.

  • Read existing files or captured data.
  • Launch or attach to a process.
  • Inject instrumentation or run scripts/code.
  • Change process memory, registers, files, or configuration.
  • Contact network services.
  • Recover protected code or work around protections.
  • Documentation or usability only; no target interaction.
  • Not sure yet; investigation or maintainer guidance needed.

Evidence and regression coverage

  • Tests added or updated: none; reverseToolsMutationConfig.test.ts already loads both Stryker configs.
  • Base reproduction or other evidence: executed: on main the test fails with found 0; with the fix it passes. Selected ranges: src/cli/reverseEngineeringCommands.ts:254-310 and :338-383 (the two run handlers).
  • User-visible CLI/MCP output (if applicable): none.
  • Remaining proof gaps: the full Stryker run is CI-only.

Validation performed

  • npm run test:focused -- tests/boundary/filesystem/reverseToolsMutationConfig.test.ts — fails on main (found 0), 3 passed with the fix.
  • npx oxfmt --check scripts/lib/reverse-tools-mutation-targets.mjs — clean; pre-push hook — passed.

Compatibility, safety, and release

  • Breaking changes or migration steps: none.
  • Real Hopper/Ghidra, browser, or OS coverage: not applicable.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: none.

Author readiness

Human owner:

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

#11680 moved every CLI command onto registerCliCommand(cli, CLI_COMMANDS.x,
...), so the Stryker command-handler selector, which matched
cli.command(CLI_COMMANDS.x, ...), found no target for debugWithGdb and
debugWithRizin and the reverse-tools quality job failed to load its config.
The selector now matches the registry call.

Refs #11654
@morluto morluto added the main-fix Fixes a failure on main; may merge while main CI is red label Nov 16, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T03:53:38.032316Z
We couldn’t complete this review. Comment @codex review to try again.
bf7224e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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.

@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This focused fix appears safe to merge.

Summary

Updates mutation-test target selection to match the shared command registry, fixing configuration loading for the debugger checks.

  • Stryker now finds debugger handlers registered through the command registry.

No actionable issues found.

Reviews (4) · Last reviewed commit: "fix(ci): select debugger command handler..." · Reviewed by Greptile

@morluto

morluto commented Nov 16, 2026

Copy link
Copy Markdown
Owner Author

@greptileai review

@morluto
morluto merged commit 4c8e616 into main Nov 16, 2026
39 of 51 checks passed
@morluto
morluto deleted the fix/mutation-target-command-registry branch November 16, 2026 03:59
Afloat16 added a commit to Afloat16/rea that referenced this pull request Nov 16, 2026
Merge morluto/rea commit 4c8e616
(morluto#11686), including its command-registry baseline. Preserve the accepted
upstream implementation and authorship while retaining this PR's feature
changes and previously verified test compatibility repairs.
@morluto morluto added area: build Build, CI, packaging, and publishing bug Something isn't working labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build Build, CI, packaging, and publishing bug Something isn't working main-fix Fixes a failure on main; may merge while main CI is red

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant