Skip to content

fix(compare): give nullius compare the page's Exclude and its Mean over planned - #575

Merged
aitianshi merged 2 commits into
mainfrom
fix/compare-command-parity-454
Dec 1, 2026
Merged

aitianshi merged 2 commits into
mainfrom
fix/compare-command-parity-454

Conversation

@aitianshi

Copy link
Copy Markdown
Collaborator

Closes #454

What

  • nullius compare had neither the page's Exclude nor its Mean over planned: it counted tasks the page set aside.
  • The flag filter moved from the page into nullius/compare/flags.py, which both call.
  • --exclude KIND, repeatable: the page's totals, task rows and notes; --json adds flags. Default unfiltered.
  • Mean over planned: a row and mean_score_planned, whole runs only.
  • docs/cli/pages.md and read-jobs.md show the option.

Verified

  • Two flagged runs, each Exclude choice, whole and matched: page unchanged; command equal to page (Exclude flawed: Trials 3, 3; Adjusted 67%, 67%).
  • Two scored runs: Mean over planned 0.38, 0.50 in both.
  • Chromium, 390 and 1280 px: ticking Flawed filters as before.
  • Extended tests fail on main.
  • Backend 3556, routes 940.

Risk

  • The API, nullius remote compare and MCP stay unfiltered; their JSON gains mean_score_planned.
  • Undo: revert.

Agents

  • Claude Code, Opus 5.5

@aitianshi
aitianshi marked this pull request as ready for review December 1, 2026 14:37
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

🟢 PR judge · 5 of 5 yes · #575 ↔ #454

Merge risk 🟡 MEDIUM the judge's reading of the diff
Depth 🟠 HIGH the deepest path is app/nullius/compare/cli.py
Question Verdict
Changes do what the issue asks · 4 of 4 criteria ✅ yes
Issue and pull request describe the same change ✅ yes
Description matches the diff ✅ yes
Diff stays in scope ✅ yes
Risk named in the description ✅ yes
Before and after shown –
Acceptance criteria, 4 of 4 met
# Criterion Verdict
1 nullius compare takes the page's flag kinds to exclude, and its totals and task rows match the page's for the same ch… ✅ met
2 The command's text and --json carry the mean over planned trials for whole runs, as the page does ✅ met
3 The flag selection is computed once, in app/nullius/ ✅ met
4 docs/cli/pages.md shows the new options ✅ met
Checks the script runs itself, 4 of 4 pass
No machine attribution trailer in the commits or the description ✓
New code under app/, docs/, .github/, .agents/ or .claude/ ✓
No Flask import under the backend package ✓
No key-shaped string in the diff ✓

@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 1, 2026
@aitianshi
aitianshi merged commit e566139 into main Dec 1, 2026
6 checks passed
@aitianshi
aitianshi deleted the fix/compare-command-parity-454 branch December 1, 2026 14:46
@github-actions github-actions Bot removed the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant