Skip to content

Follow-up: deferred review findings from PR #844 #888

Description

@philcunliffe

Two review findings from PR #844 (fix/issue-834, head d42449b) were classified at triage as non-blocking and deferred here. Both are test-quality items in test/core/repair-command-spelling.test.js; neither affects shipped behavior.

1. Repair-spelling guard resolves against a core-only registry (low)

coreRegistry() in test/core/repair-command-spelling.test.js:63-67 builds createCommandRegistry() + registerCoreCommands() only, but one of the two give-up messages under test lives in the ai-gateway plugin, which registers its own commands (session ignore / unignore / status, hypaware-core/plugins-workspace/ai-gateway/src/index.js:64). If either message is ever reworded to name a plugin command (for example hyp session ignore), the guard fails on a spelling hyp actually accepts.

This is a loud false failure, not a silent gap, and the file header (test/core/repair-command-spelling.test.js:28-31) already instructs the reader to extend the registry rather than loosen the assertion. The deferred work: give the test a way to register the relevant plugin commands (or a lightweight activation-context fixture) so the registry matches what the dispatcher really accepts.

2. Test scaffolding duplication (low)

makeBuf (test/core/repair-command-spelling.test.js:97), makeUnboundCtx (:116), and withTempHome (:145) are near-verbatim copies of makeBuf / makeCtx / withTempHome in test/core/attach-endpoint-fallback.test.js:23-85, and both files already share installFakeDaemonService from test/helpers/daemon_service_fixture.js. Per-file scaffolding is the prevailing convention (the review found makeBuf defined independently in 69 test files), so this was deferred rather than fixed piecemeal. The deferred work: if a shared attach-give-up fixture (or general test-helper consolidation sweep) happens, fold these two files into it.

Backlink: PR #844, review rounds e66261b0 (findings 3 and 5) and 1d910efe (both of that round's findings were fixed on the branch).

Metadata

Metadata

Assignees

No one assigned

    Labels

    neutral:fixDelegate this issue to neutral for an autonomous fix attempt (reproduce -> fix -> PR)neutral:stuckneutral attempted this but cannot complete it autonomously — needs a human

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions