Skip to content

Compare: the command counts tasks the page excludes, has no Exclude option, and omits Mean over planned #454

Description

@harenome

Priority

P2 · Planned: limited in scope, has a way around it, or a missing feature

Evidence

docs/cli/pages.md pairs /compare with nullius compare <root> <id> <id>... [--matched] [--json]. The two give different numbers and rows.

Two runs of 4 trials, one task flagged flawed and accepted in both (route test and the command on 328888b):

page, default        Trials 4, 4   Solved 2/4, 2/4   Adjusted rate 50%, 50%
page, Exclude Flawed Trials 3, 3   Solved 2/3, 2/3   Adjusted rate 67%, 67%
                     "Filtered: 1 task set aside in every column"
command              Trials 4, 4   Solved 2, 2       Adjusted rate 50%, 50%
command --flawed     error: unrecognized arguments: --flawed

Two scored runs (scores 1, 0.5, 0, none and 1, 1, 0, none):

page     Mean score 0.50, 0.67   Mean over planned 0.38, 0.50
command  Mean score 0.50, 0.67   (no such row)
--json   totals has no mean_score_planned

The page filters in _flag_filter (app/web/compare.py) and adds the row there; app/nullius/compare/cli.py has neither.

Reproduction

  1. Two jobs under one root, the same task flagged flawed and accepted in each.
  2. /compare with both, tick Exclude: Flawed.
  3. nullius compare <root> <a> <b>, then --json.

Expected

The command has the page's Exclude choices and its Mean over planned, with the same numbers. Default stays unfiltered.

Acceptance

  • nullius compare takes the page's flag kinds to exclude, and its totals and task rows match the page's for the same choice
  • The command's text and --json carry the mean over planned trials for whole runs, as the page does
  • The flag selection is computed once, in app/nullius/
  • docs/cli/pages.md shows the new options

Related

#381, #349

Activity

  1. added
    bug
    P2
    on Nov 26, 2026
  2. added theissue type on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions