Skip to content

fix: the last open product findings (batch 8) - #496

Merged
anandtopu merged 4 commits into
mainfrom
fix/product-findings-batch8
Nov 27, 2026
Merged

anandtopu merged 4 commits into
mainfrom
fix/product-findings-batch8

Conversation

@anandtopu

Copy link
Copy Markdown
Contributor

Batch 8: the last product findings that the final closure check found open on main. After this, every finding from D-01 to D-160 is fixed or settled, except D-128, which came from a different install and can't be checked.

Changes

Item What changes
D-142 The release gate quick look is scored with the project's effective policy, through the evaluator the stored decision uses: thresholds, weights, bands, P0 cap and the open-defect rule. Before, it used built-in thresholds and only half the policy. Rules it cannot check before a deep investigation are listed in input_snapshot.rules_not_checked and on the page. With no published policy nothing changes, which a 36-case grid replaying the old algorithm shows.
D-104 The gate card states the thresholds and pass-rate bands the verdict used, and says when a band held the verdict back ("Held back by the pass-rate band: 92.0% is under 95% (Conditional)").
D-97 (rest) A stored decision says when a category correction was saved after the decision's analyses were read, i.e. after the root-cause stage started. This is a read-time check: the stored decision is never recomputed.
D-141 DELETE /api/v1/release-gate-policies/{policy_id} (administrators) removes a draft that was never published. A published version, or one a decision names, gets 409. A publish or PATCH racing the delete gets 404. The list shows active policies and drafts first, older versions under Past versions, and says when no policy is active.
D-140 New version from this asks before it creates the draft.
D-72 The run page's attribution badge re-fetches when a polled test's category changes. A finished run is never polled.
D-156 A root-cause stage answered by two or more engines reads "mixed" and shows the split ("1 model · 3 rules") on the page, in the decision trail and in MCP. Hints and replayed corrections don't count as engines.

UPGRADING describes the quick-look behaviour change and the new response fields. CHANGELOG, the in-app guide and the user guide are updated, and docs/reference/* is regenerated.

An independent review found 9 issues. The fixes are in this PR:

  • F1: bands shown and held-back verdict explained.
  • F3: correction timing measured from the root-cause stage start.
  • F4: a publish or PATCH racing a delete now gets 404 instead of 500.
  • F6: hints and replayed corrections are not counted as engines.
  • F9: new end-to-end tests for deleting drafts, Past versions and the thresholds line.

Left as they are:

  • F5: system-policy writes record no activity entry; this predates the change, and all five writes would need it together.
  • F7: the quick look and the stored decision read the open-defect count from different sources, and could disagree right at the limit.

Checks run locally

  • Postgres integration: 51 passed (D-97 query, policy single-active, gate summary, cross-tenant sweep, decision trail).
  • Playwright (ci-e2e): 242 passed (policy editor, release gate, settings, in-page sweeps).
  • Frontend vitest: 12,413 passed. Two Overview and Summary report tests failed in the full run and passed on their own (timing under load). tsc is clean.
  • Targeted backend tests are green, ruff is clean, and mypy is at its baseline.
  • quality_gate.py and the reference check pass.
  • Eager bundle: 179,748 gzip bytes, 252 B under the budget.
  • Push gate: 16 of 17 checks passed. The backend suite ran 25,137 tests and failed 3. Two were the CI-list guards, which wanted the new D-97 Postgres test listed in the integration job; it is now listed (second commit) and both guards pass. The third, a demo-compose script test, passes on its own: the machine was under load from other test runs. The push skipped the gate re-run with the owner's OK.

Not covered

  • Visual baselines are expected to change for the release gate (thresholds line) and the policy list (order, Delete, Past versions).
  • No fixture shows a deep investigation stage row, so the D-156 split has unit tests only.

🤖 Generated with Claude Code

anandtopu and others added 4 commits November 27, 2026 00:33
- D-142 release gate quick look: scored with the project's effective policy
  through the stored decision's evaluator (thresholds, weights, bands, P0
  cap, open-defect rule); rules it cannot check before a deep investigation
  are listed as not checked; no published policy = unchanged (36-case
  replay grid).
- D-104 gate card states the thresholds and pass-rate bands the verdict
  used and when a band held it back (review F1).
- D-97 a stored decision says when a category correction was saved after
  its analyses were read (root-cause stage start; review F3); read-time,
  never recomputed.
- D-141 DELETE a never-published gate-policy draft (admin; 409 for a
  published or referenced version; publish/PATCH racing it answer 404);
  list splits active/drafts from Past versions; "No active policy".
- D-140 New version from this asks first.
- D-72 run page attribution badge re-fetches when a polled category changes.
- D-156 root-cause stage answered by two or more engines reads "mixed" and
  shows the split (page, decision trail, MCP); hints and replayed
  corrections are not engines (review F6).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Anand Topu <anand.goud.2020@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Anand Topu <anand.goud.2020@gmail.com>
The gate card now states the line the verdict used (No-Go under 63%), and the gauge reads red at risk 60, past the No-Go line of 55. Regenerated on Linux by the visual-baselines workflow (run 46033032446).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Anand Topu <anand.goud.2020@gmail.com>
Only docs/reference/api-index.md conflicted; references regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Anand Topu <anand.goud.2020@gmail.com>
@anandtopu
anandtopu merged commit 2aa7200 into main Nov 27, 2026
43 checks passed
@anandtopu
anandtopu deleted the fix/product-findings-batch8 branch November 27, 2026 20:15
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.

1 participant