GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test(gate): hold every jdx CLI to the reference, not only mise by jdx · Pull Request #972 · jdx/usage

Conversation

@jdx

@jdx jdx commented Aug 17, 2026 •
edited by cursor Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

The parity gate read one spec, so it was blind to everything mise's CLI
happens not to do — and mise misses more than it looks like it would. Three
bugs were living in that blind spot, and none of them is exotic:

what mise does what hid it
version banner declares no version nothing to print, so both sides agreed
optional flag value has none <X> vs [X] never came up
description ending in a break none in Commands: the stray blank never appeared

Between them they changed the front page of five of the seven CLIs. Each was
found by running the comparison by hand over the fleet; this is that run, made
a test, so the next one is found by CI instead.

Seven specs, 492 commands, both help forms each. The specs are checked in for
the reason benches/mise.usage.kdl is: the comparison needs a fixed input and
a reviewer needs to be able to read the diff. gen-shadow regenerates all
seven shadows, so the CI no-diff check covers them and a change to the derive's
vocabulary has to be committed rather than discovered later.

It is a large diff — 16k lines — and almost all of it is generated: 6.9k of
vendored spec and 9k of emitted tables. The hand-written part is
benches/gate/tests/fleet.rs and six lines of mise.toml.

Mutation-checked against the bugs it exists for. Dropping version again:

hk — 2 page(s) differ:  fnox — 2  pitchfork — 2  aube — 2

and un-rendering the optional bracket:

pitchfork — 6 page(s) differ:  aube — 2

Adding a CLI here is how a new adopter's shape gets covered; see
benches/fleet/README.md.


Stack created with GitHub Stacks CLI • Give Feedback 💬


Note

Low Risk
Test and fixture expansion with generated shadows; no production CLI or auth paths changed.

Overview
Extends the parity gate so usage-argv shadow help is checked against usage-lib for seven jdx CLIs, not only mise. Checked-in benches/fleet/*.usage.kdl snapshots (from each tool’s usage subcommand) are the fixed inputs; benches/gate/tests/fleet.rs walks every command path and compares short and long help.

Adds six generated shadow-* workspace crates (hk, fnox, pitchfork, aube, tak, communique) plus bench members, wired into the gate as dev-dependencies. benches/fleet/README.md documents why the fleet exists—mise-only coverage missed version banners, optional flag value brackets, and trailing-break formatting that showed up on other CLIs.

The diff is mostly generated spec and shadow tables; the behavioral change is CI enforcing renderer agreement across ~492 commands and both help forms.

Reviewed by Cursor Bugbot for commit ff91ff1. Bugbot is set up for automated code reviews on this repo. Configure here.

AI-assisted — Tool: Claude Code; model: anthropic/claude-opus-5; version: unavailable.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

greptile-apps[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@coderabbitai

coderabbitai Bot commented Aug 17, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 246934c6-1b76-47c0-be67-9c59bf220682

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Aug 17, 2026
View reviewed changes
Comment thread benches/gate/tests/fleet.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@greptile-apps

greptile-apps Bot commented Aug 17, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR expands help-rendering parity coverage from mise to seven jdx CLIs and checks both generated and reference command sets before comparing short and long help.

  • Adds six checked-in CLI specifications and generated shadow crates.
  • Adds fleet-wide command-set and help-output comparisons.
  • Registers the generated crates in the workspace and shadow-regeneration task.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains; the bidirectional path comparison now detects commands missing from either the generated shadow or the reference specification.

Important Files Changed

Filename Overview
benches/gate/tests/fleet.rs Adds fleet-wide bidirectional command-set validation and help rendering comparisons; the current code resolves the previously reported one-way comparison.
benches/gate/Cargo.toml Adds the six generated fleet shadows as test-only dependencies.
Cargo.toml Registers every new checked-in shadow crate as a workspace member.
mise.toml Extends shadow regeneration to all six added fleet fixtures.
benches/fleet/README.md Documents the fleet fixtures, the previously uncovered help shapes, and the refresh workflow.

Reviews (5): Last reviewed commit: "chore(gate): the fleet shadows are test-..." | Re-trigger Greptile

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

greptile-apps[bot]
greptile-apps Bot reviewed Aug 17, 2026
View reviewed changes
Comment thread benches/gate/tests/fleet.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@jdx
jdx force-pushed the agent/fleet-gate branch from 2f718f6 to 58acb07 Compare August 17, 2026 12:43
@jdx
jdx force-pushed the agent/fleet-gate branch from 58acb07 to 5472007 Compare August 17, 2026 12:49
cursor[bot]
cursor Bot reviewed Aug 17, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 5472007. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread benches/gate/Cargo.toml Resolved

Uh oh!

There was an error while loading. Please reload this page.

jdx added 3 commits August 17, 2026 13:00
@jdx
test(gate): hold every jdx CLI to the reference, not only mise
9f20252
The parity gate read one spec, so it was blind to everything mise's CLI
happens not to do — and mise misses more than it looks like it would. Three
bugs were living in that blind spot, and none of them is exotic:

| | what mise does | what hid it |
|---|---|---|
| version banner | declares no `version` | nothing to print, so both sides agreed |
| optional flag value | has none | `<X>` vs `[X]` never came up |
| description ending in a break | none in `Commands:` | the stray blank never appeared |

Between them they changed the front page of five of the seven CLIs. Each was
found by running the comparison by hand over the fleet; this is that run, made
a test, so the next one is found by CI instead.

Seven specs, 492 commands, both help forms each. The specs are checked in for
the reason `benches/mise.usage.kdl` is: the comparison needs a fixed input and
a reviewer needs to be able to read the diff. `gen-shadow` regenerates all
seven shadows, so the CI no-diff check covers them and a change to the derive's
vocabulary has to be committed rather than discovered later.

It is a large diff — 16k lines — and almost all of it is generated: 6.9k of
vendored spec and 9k of emitted tables. The hand-written part is
`benches/gate/tests/fleet.rs` and six lines of `mise.toml`.

Mutation-checked against the bugs it exists for. Dropping `version` again:

    hk — 2 page(s) differ:  fnox — 2  pitchfork — 2  aube — 2

and un-rendering the optional bracket:

    pitchfork — 6 page(s) differ:  aube — 2

Adding a CLI here is how a new adopter's shape gets covered; see
`benches/fleet/README.md`.
@jdx
test(gate): compare complete command sets
8fd95d7
@jdx
chore(gate): the fleet shadows are test-only
ff91ff1
Only `tests/fleet.rs` names them, so a release or perf build of the gate was
compiling six generated crates it never calls. The same reasoning the file
already records for `usage-lib` and `usage-cli`.

`shadow-mise` and `shadow-mise-clap` stay in `[dependencies]`, because the
benchmarks are the thing that runs them.

Reported by Bugbot on #972.
@jdx
jdx force-pushed the agent/fleet-gate branch from 5472007 to ff91ff1 Compare August 17, 2026 13:02
@jdx coder-jdx

jdx commented Aug 17, 2026

Copy link
Copy Markdown
Owner Author

Valid — fixed in ff91ff1, and it addresses a concern I raised on the PR myself.

Only tests/fleet.rs names the six fleet shadows, so a release or perf build of the gate was compiling generated crates it never calls. Moved to [dev-dependencies], the same reasoning this file already records for usage-lib and usage-cli. shadow-mise and shadow-mise-clap stay in [dependencies] because the benchmarks are the thing that runs them.

Separately, thank you for 2f718f6 — comparing the command sets in both directions is better than what I wrote. My version walked the shadow's tree and silently skipped anything it couldn't find in the spec, so a command present in the spec but missing from the shadow passed quietly. That commit also needed a cargo fmt, which is what the test job was failing on; that's fixed and the job is green.

AI-assisted — Tool: Claude Code; model: anthropic/claude-opus-5; version: unavailable.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Instruction counts

Nothing was compared, and so nothing was gated. No series appears on both sides: either the base has no measurements recorded, or the two were measured on different runner classes, which are deliberately not comparable — counts shift between machine types by more than a real regression does.

New, nothing to compare against: markdown on bamboo-v2-ubuntu24.04-x64-30vcpu-24gb-rust1.97.1, startup on bamboo-v2-ubuntu24.04-x64-30vcpu-24gb-rust1.97.1

Only instruction counts gate. Wall clock is shown for context — on identical hardware it moves 4-20% run to run.

Measured by tak — instruction-counted CLI benchmarks, stored in this repository's git notes.

Shadow comparison

Parsing mise use -g node@20 against a shadow of mise's committed spec.
Reported, not gated: the shadow grows as the derive learns to express more, so
what to watch is the ratio rather than either column.

usage clap ratio
instructions, cold parse 63834 5895248 92x
usage: argv -> struct                            1080 ns      1.08 µs
clap: build tree + parse -> struct             501108 ns    501.11 µs
clap: parse -> struct, tree reused              23702 ns     23.70 µs
clap: build tree only                          314641 ns    314.64 µs

ff91ff1902a0 vs bfc7b36340c2 · measured on the runner, not pushed to the history.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jdx
jdx merged commit 38bef2b into main Aug 17, 2026
11 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@jdx
jdx deleted the agent/fleet-gate branch August 17, 2026 13:11
@jdx jdx mentioned this pull request Aug 17, 2026
test(spec): a rendering corpus, for the shapes the fleet cannot cover #973
Merged
jdx added a commit that referenced this pull request Aug 17, 2026
@jdx @claude
docs(spec): reframe the rendering corpus around the fleet, not one CLI
a378716
Rebased onto main, which changed both halves of this PR's premise. #969 fixed
the optional flag value independently — `FlagMeta::value_optional`, the
opposite polarity of the field this branch was carrying, so that commit is
dropped and the builder speaks main's spelling. And #972 widened the parity
gate from mise alone to all seven jdx CLIs, so "one CLI cannot cover this" is
no longer the argument.

The argument is better now, and measured rather than asserted. Across all 809
value-taking flags in mise and the fleet, three of the four flag/value bracket
pairings appear — 796, 8 and 5 — and `<--jobs [n]>` appears nowhere, nor does
a value carrying a `default`, which relaxes the value's brackets by another
route. The pairing #969 fixed had exactly five instances, all in pitchfork and
aube, which is the whole reason it was visible at all. Seven real CLIs still
leave shapes uncovered, and the ones left are not exotic.

Also recorded why the gate cannot see the divergence this corpus found: six of
the seven CLIs declare a top-level `usage` synopsis, but `xtask gen-shadow`
does not carry the node into the shadow, so every shadow's `Spec::usage` is
`None` and both sides render the generated line. The corpus builds usage-argv's
tables from KDL directly and sees it.

Co-Authored-By: Claude Opus 5 <[email protected]>
@jdx jdx mentioned this pull request Aug 17, 2026
test(corpus): pin what completes where the cursor is #998
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@greptile-apps greptile-apps[bot] greptile-apps[bot] left review comments
@cursor cursor[bot] cursor[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@jdx
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.