Skip to content

fix(package): separate agent and Hopper setup support - #584

Merged
morluto merged 1 commit into
morluto:mainfrom
kaoru0822-kitauji:fix/package-setup-support-verifier
Oct 5, 2026
Merged

morluto merged 1 commit into
morluto:mainfrom
kaoru0822-kitauji:fix/package-setup-support-verifier

Conversation

@kaoru0822-kitauji

@kaoru0822-kitauji kaoru0822-kitauji commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Classify packaged agent setup independently from Hopper installation support so the existing package verifier exercises the current setup contract on hosts such as Debian.

No tracking issue: found while running the full verifier for #583; reproduced on untouched main before changing the classifier.

Problem and expected behavior

After #577, agent/client configuration requires a supported Node version, while explicit Hopper installation still has separate OS/distro restrictions. The package verifier continued to derive both capabilities from Doctor's host check.

On this Debian host, real agent setup correctly succeeded, but the verifier selected its unsupported-agent branch and failed with packaged setup did not reject an unsupported host. It also skipped the richer setup/readback/recovery checks that should run on this host.

Change and scope

Extract and correct only the verifier's support classifier:

  • Agent setup requires an affirmative node check.
  • Hopper setup additionally requires an affirmative host check and excludes Windows.

All product Setup/Doctor/Hopper behavior, schemas, and existing verification assertions remain unchanged. A small declaration file lets the existing TypeScript test project exercise the JavaScript verifier helper directly.

Contract and boundary impact

  • Semantic owner and earliest changed stage: development/package verification, classification of Doctor's observed checks.
  • CLI and MCP/tool-catalog contract: none; no shipped tool or schema changes.
  • Provider, bridge, target-format, or platform compatibility: no provider behavior changes; verifier correctly distinguishes agent and Hopper eligibility.
  • Evidence, artifact, provenance, or reconstruction contract: none.
  • Process execution, authorization, cleanup, or containment impact: existing isolated setup tests now run on supported-Node hosts outside Hopper's OS matrix; explicit Hopper rejection/confirmation behavior is retained.
  • Generated metadata, package, or installation impact: verifier-only; no dependency, installed package file, or production installation changes.

Evidence and regression coverage

  • 16 classification cases cover Linux/macOS/Windows combinations of supported/unsupported Node and host, plus missing-check behavior.
  • Unsupported Node disables both capabilities even when host support is affirmative.
  • Missing host support never grants Hopper installation, while an affirmative Node check permits agent verification.
  • The unchanged old classifier fails 8/16 new tests. The fixed classifier passes 16/16, plus 7/7 existing package diagnostic tests.
  • Six isolated production Setup/Doctor scenarios corroborate the contract: Debian, older macOS, and Windows can configure agents on supported Node while explicit Hopper remains unavailable; supported Ubuntu/macOS Hopper setup still requires confirmation; unsupported Node remains blocked without mutation.
  • The unchanged full package verifier fails on baseline main with the exact assertion above. With this classifier-only repair, it passes the existing planning, idempotency, four-client, readback/backup, failure-recovery, symlink-lifecycle, and skill checks in isolated fixtures.
  • Independent review found no blocking issues and independently reran the 23 focused tests.

Validation performed

  • npm run check:pr on commit 11f8f7b (base 00fa974): 1,947 tests passed, 1 skipped, 40 failed in the known seven Hopper/Ghidra Unix-domain-socket suites denied by this sandbox (listen EPERM). Failed test titles exactly match the previously verified baseline: no additions or removals. Static checks passed. This is not a full local suite pass.
  • npm run docs:check and npm run check:ci: passed separately.
  • npm_config_cache=/tmp/rea-npm-cache npm run verify:package: passed twice, including the previously failing unchanged setup verifier and packaged CLI/MCP checks.
  • npm pack --dry-run --cache /tmp/rea-npm-cache: passed.
  • The same reviewed three-file diff was rebased onto main 6fa6f1f. That intervening change is JavaScript analysis/generated metadata, with no setup/verifier/dependency/test-config overlap. 23/23 focused tests passed again; latest-main static/generated-document/package-dry-run checks passed. The full-suite count above belongs to the explicitly named pre-rebase revision.
  • git diff --check: passed.
  • Hosted CI: all 18 jobs passed, including Windows capability/package verification and macOS package verification. The maintainer subsequently merged the PR.

Compatibility, safety, and release

No product behavior, public schema, dependencies, or release metadata changes. No verification assertion is removed or weakened; additional existing assertions now execute on hosts previously misclassified.

Local verification ran on Debian/Linux x64. The matrix checks platform classification, not native execution on Windows/macOS. Real Hopper/Ghidra were not installed or launched.

Review checklist

  • One focused verifier outcome with a Conventional Commit title.
  • Reason for no linked issue stated.
  • Baseline failure and positive/negative capability controls included.
  • Existing product docs/contracts remain accurate.
  • Actual packaged CLI/MCP verification executed in isolated fixtures.
  • Final diff checked for generated tarballs, secrets, unrelated cleanup, and unsupported claims.

Copy link
Copy Markdown
Collaborator Author

@codex review

@morluto
morluto merged commit 205a977 into morluto:main Oct 5, 2026
19 checks passed
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
@morluto morluto added bug Something isn't working area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
@morluto morluto added area: setup Setup, packaging, upgrade, install, Doctor, and client registration provider: hopper Analysis provider / engine: hopper labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior area: setup Setup, packaging, upgrade, install, Doctor, and client registration bug Something isn't working provider: hopper Analysis provider / engine: hopper

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants