loopx icon indicating copy to clipboard operation
loopx copied to clipboard

[Bug]: required test-shard is red on main - the shipped dsh-launch command has no manual-visibility classification

Open JasonBuildAI opened this issue 1 month ago • 0 comments

Preflight

  • [x] I searched existing issues and discussions for this behavior.
  • [x] This report is not an unpatched security vulnerability.
  • [x] The report and attachments contain no credentials or private/internal material.

Issue origin

Reproduced from a clean source checkout of current main and confirmed against the required Python Tests lane definition.

LoopX version or commit

be1dc37a008be7017b64b622f653b6707df5c544 (current main). The command was shipped by edc9f84e1 (feat(dsh): qualify latest host and add secure launcher); the guard that owns this rule was added by #6847.

Host or runtime surface

Any host. The failing guard compares the argparse top-level command set with the checked-in manual catalog; no browser, provider or platform behavior is involved.

LoopX area

Build, packaging, installer, or CI / CLI surface.

Problem

loopx dsh-launch is a shipped top-level command: it launches DeepSeek Harness with this machine's stored LoopX provider credential without placing the secret in argv or output (loopx/cli_commands/dsh_launch.py, registered in loopx/cli_commands/support_control.py). packages/dsh-loopx-plugin/README.md:128 tells users to run loopx dsh-launch web as the credential-safe launch path.

The command was added without a manual-visibility decision. It appears in neither COMMAND_GROUPS nor MANPAGE_COMMAND_HELP_ONLY in loopx/help_surface.py, so two checked-in guards fail on an unmodified main:

  1. tests/test_cli_manual_visibility.py::test_every_top_level_command_declares_manual_visibility fails with {'unclassified': ['dsh-launch'], 'stale_manual': [], 'stale_help_only': []}. That file is collected by the required test-shard jobs (shards 1-6; see .github/workflows/python-tests.yml), whose aggregate feeds pytest and therefore merge-gate.
  2. examples/cli-help-manpage-smoke.py fails with the same unclassified assertion. That smoke is an explicit release-readiness command (docs/product/release-readiness.md:189) and part of the daily Full Public Smokes fleet.

Who is harmed and how much.

  • Every pull request that runs the Python shards inherits a red test-shard job on current main. The budget blocker that used to fail earlier is already repaired on main (64158b4de), so this is now the failing required shard rather than a latent problem.
  • Maintainers cannot complete the documented release preflight (docs/product/release-readiness.md:189) and the daily fleet cannot report ready.
  • Users reading man loopx or loopx commands cannot discover the shipped credential-safe DSH launcher that the plugin documentation tells them to run.

The same class was fixed for loopx upgrade in #6847 (catalog entry plus regenerated man page), so the expected repair is already established.

Minimal reproduction

$ git checkout be1dc37a0
$ uv sync --extra test
$ uv run --extra test python -m pytest -q tests/test_cli_manual_visibility.py
1 failed, 1 passed in 6.95s
FAILED tests/test_cli_manual_visibility.py::test_every_top_level_command_declares_manual_visibility
AssertionError: {'unclassified': ['dsh-launch'], 'stale_manual': [], 'stale_help_only': []}

$ uv run --extra test python examples/cli-help-manpage-smoke.py
AssertionError: {'unclassified': ['dsh-launch'], 'stale_manual': [], 'stale_help_only': []}

The second command then stops earlier on a different assertion than it does after the repair; on a Windows host its later bash -n scripts/install-local.sh step also fails locally because bash resolves to a WSL launcher without /bin/bash. That host-only step is unrelated to this report and unchanged by it.

Expected behavior

  • tests/test_cli_manual_visibility.py passes on main.
  • examples/cli-help-manpage-smoke.py passes its classification assertion on main.
  • loopx commands and man loopx mention the shipped launcher, so the documented launch path is discoverable from the installed manual.

Actual behavior

  • The command is classified nowhere, so both guards report it as unclassified.

Sanitized diagnostics

tests/test_cli_manual_visibility.py:40: AssertionError
E       AssertionError: {'unclassified': ['dsh-launch'], 'stale_manual': [], 'stale_help_only': []}
E       assert frozenset({'a...oposal', ...}) == frozenset({'a...oposal', ...})
E         Extra items in the left set:
E         'dsh-launch'

Additional context

  • Repair direction: add loopx dsh-launch [dsh args...] to COMMAND_GROUPS next to the analogous host launcher loopx dashboard (its --help text already states the credential-safety guarantee), then regenerate man/loopx.1 with scripts/render-manpage.py. This is the same shape as #6847.
  • MANPAGE_COMMAND_HELP_ONLY is the other legal disposition, but the distributed plugin README routes users to this exact command, so the installed manual should teach it rather than hide it behind --help.

AI disclosure: this report was prepared with AI assistance at the account owner's direction, under their constraints. The reproduction and version/commit data above were executed in this environment; the owner will review the follow-up change.

JasonBuildAI avatar Oct 27 '26 00:10 JasonBuildAI