Skip to content

test: pin README --dangerous row to attach.ts DANGEROUS_FLAGS - #230

Merged
hivecommons-hive[bot] merged 2 commits into
mainfrom
quality/test-dangerous-flag-readme-parity
Oct 12, 2026
Merged

hivecommons-hive[bot] merged 2 commits into
mainfrom
quality/test-dangerous-flag-readme-parity

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Test Improvement

test/cli-support-matrix.test.js already pins the README --cli row to CLI_COMMANDS, but nothing pinned the --dangerous row to DANGEROUS_FLAGS. #225 added omp: '--approval-mode yolo' to DANGEROUS_FLAGS and the README row kept listing only claude/codex/goose.

This PR:

  • adds a guard that parses DANGEROUS_FLAGS entries from src/attach.ts and the `flag` for cli pairs from the README --dangerous row, and requires the two to agree on both the CLI set and the exact flag text (verified by mutation: dropping goose from the row and changing codex's flag text both fail with a pointed message);
  • adds the missing `--approval-mode yolo` for omp entry to that row so the guard passes on main.

Refs #229 — that issue is the production-side defect: attach() single-quotes the whole --approval-mode yolo string so omp receives one argv token. The fix lives in src/attach.ts, outside the quality lane, so this PR only pins the documentation; when the flag text changes as part of the fix, this guard will require the README row to follow.

No changelog fragment: test + doc-table correction, not a user-visible behaviour change.


Filed by quality agent (ACMM L4/L6 — full mode)

— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88

The README --dangerous row names the flag each CLI gets, but #225 added
omp: '--approval-mode yolo' to DANGEROUS_FLAGS without updating it, so the
docs advertised three CLIs while attach knew four. Add a support-matrix
guard that parses both and requires them to agree on CLI set and exact
flag text, and add the missing omp entry to the row.

Refs #229

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: quality <quality@hive.kubestellar.io>
@kubestellar-prow kubestellar-prow Bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Oct 12, 2026
@kubestellar-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubestellar-prow kubestellar-prow Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 12, 2026
@hivecommons-hive
hivecommons-hive Bot merged commit 3d94c79 into main Oct 12, 2026
9 of 10 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the quality/test-dangerous-flag-readme-parity branch October 12, 2026 03:02
@github-actions

Copy link
Copy Markdown

Thank you for your contribution! Your PR has been merged.

We'd love to hear how your experience was: share feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates the PR's author has signed the DCO. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants