Skip to content

docs(issues): record the ui-smoke test-deletion near miss - #2483

Merged
BigSimmo merged 1 commit into
mainfrom
claude/answer-page-handover-c2qlwy
Aug 31, 2026
Merged

docs(issues): record the ui-smoke test-deletion near miss#2483
BigSimmo merged 1 commit into
mainfrom
claude/answer-page-handover-c2qlwy

Conversation

@BigSimmo

@BigSimmo BigSimmo commented Aug 31, 2026

Copy link
Copy Markdown
Owner

Summary

  • Queues one immutable add request under docs/outstanding-issues-inbox/ recording a near miss observed on PR fix(ui/answer): keep answer-surface counts neutral and the safety tile amber #2481: an agent push rewrote tests/ui-smoke.spec.ts from 6,019 lines to 1,081, dropping 74 of its 82 Playwright journey tests, under a commit message describing a narrow comparison change. Squash auto-merge was armed at the time, and a gutted suite goes green trivially, so only an unrelated merge conflict kept the deletion off main. The later merge of main into that branch restored the file, and the squash landed only the intended two-file colour change (verified by reading main at e16d5f66d).
  • The request notes that no gate would have caught it — nothing asserts a floor on Playwright test count or fails on a large test-file deletion, and the "never skip, disable, or quarantine a test to get green" rule is agent policy rather than an enforced check — and proposes a per-path ratchet on test counts in the spirit of the existing bundle-budget baselines.

No product code changes. This PR adds one JSON file and nothing else.

Verification

  • npm run verify:pr-local
PR-local verification summary:
- completed: check:runtime, check:installed-lock-parity, format:changed, sitemap:check,
  check:repo-awareness-snapshot, docs:check-index, docs:check-inventory, docs:check-scripts,
  docs:check-links, check:branch-review-ledger, check:outstanding-issues,
  check:ledger-write-discipline
- failed: (none)
- not reached: (none)

Its risk router classified this as recognised low-risk scope, so lint, typecheck, the full unit suite, the RAG fixture scan and the build were skipped by selection rather than by omission. check:ledger-write-discipline passed, and the snapshot check reports the inbox in step with data/outstanding-issues-snapshot.json (81 open, 77 pending).

UI verification not run: no UI, routing, styling, browser, reduced-motion or forced-colors behaviour changed.

Risk and rollout

  • Risk: None to running behaviour. The file is an append-only inbox request; it is applied to the canonical ledger only by a later, deliberately serialised npm run issues:reconcile run.
  • Rollback: Delete the queued request file before reconciliation, or close this PR.
  • Provider or production effects: None.
  • RAG impact: none

Clinical Governance Preflight

Not applicable — this change touches no ingestion, answer generation, search or ranking, source rendering, document access, privacy, production environment, or clinical output path. The diff is one queued issue-tracking record under docs/outstanding-issues-inbox/.

Notes

Two related observations from the same session, recorded here rather than in the ledger because neither is outstanding work:


Generated by Claude Code


Note

Low Risk
Append-only inbox JSON with no runtime or ledger mutation until a separate reconcile run; zero production impact.

Overview
Adds a single version 2 add request under docs/outstanding-issues-inbox/ (id c995abce-f7d4-4be2-b057-80b173a5246f) so the near miss on PR #2481 is queued for later ledger reconciliation, not applied in this diff.

The payload is a P2 issue describing how an agent commit accidentally rewrote tests/ui-smoke.spec.ts (82 → 8 Playwright tests), that squash auto-merge would likely have shipped it without a human diff review, and that only an unrelated merge conflict prevented landing on main. It also notes the gap in CI (no floor on spec test counts) and suggests a per-path ratchet on test( counts in tests/**, similar to bundle-budget baselines.

No application, test, or workflow code changes — documentation / issue-tracking queue only.

Reviewed by Cursor Bugbot for commit e682b91. Configure here.

An agent push on PR #2481 rewrote tests/ui-smoke.spec.ts from 6,019 lines
to 1,081, dropping 74 of its 82 journey tests, under a commit message that
described a narrow comparison change. Squash auto-merge was armed at the
time and a gutted suite goes green trivially, so only an unrelated merge
conflict kept the deletion off main; the later merge of main restored the
file and the squash landed the intended two-file change.

No gate would have caught it: nothing asserts a floor on Playwright test
count or fails on a large test deletion, and the "never skip, disable, or
quarantine a test to get green" rule is agent policy rather than an
enforced check. The queued request proposes a per-path ratchet on test
counts, in the spirit of the bundle-budget baselines.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NkKHznd5E5KLnKbowRTLd8
@supabase

supabase Bot commented Aug 31, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 1952ea4d-b3a1-4a05-aa10-825ba4472566


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

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

@cursor

cursor Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_8389685c-a3e8-4ebd-a910-00a544e3b013)

@BigSimmo
BigSimmo merged commit 0fc9daf into main Aug 31, 2026
33 of 34 checks passed
@BigSimmo
BigSimmo deleted the claude/answer-page-handover-c2qlwy branch August 31, 2026 11:33

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e682b91c57

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +9 to +10
"summary": "An agent push rewrote tests/ui-smoke.spec.ts from 6,019 lines to 1,081, deleting 74 of 82 UI journey tests, and only a merge conflict stopped it auto-merging",
"detail": "Observed 2026-08-31 on PR #2481 (the answer-surface colour fix). Commit d1485d6e8, message 'test(ui): compare answer status surfaces', authored via the BigSimmo account, changed exactly one file with 4 insertions and 4,924 deletions: tests/ui-smoke.spec.ts fell from 6,019 lines / 82 tests to 1,081 lines / 8 tests. The commit message describes a narrow comparison change, so the diff is almost certainly an accidental whole-file rewrite by a tool that regenerated the file instead of editing a region of it — the surviving 8 tests are a contiguous slice, which is the signature of that failure mode. WHY IT MATTERS BEYOND THE ONE COMMIT: squash auto-merge was armed on the PR at the time. A gutted suite goes green trivially, so had the branch merged cleanly the deletion would have reached main automatically with no human reading the diff. The only thing that actually prevented it was an unrelated merge conflict against a main that had moved on; the subsequent merge of main into the branch restored the file, and the squash landed only the intended two-file colour change (verified by reading main at e16d5f66d). So no harm occurred, by luck rather than by any gate. NOTHING IN CI WOULD HAVE CAUGHT IT: no check asserts a floor on the number of Playwright tests or fails on a large deletion in a test file, and AGENTS.md's 'never skip, disable, or quarantine a test to get green' rule is agent policy, not an enforced gate. check:dead-code-candidate guards exported symbols, not test bodies. SUGGESTED REMEDY, cheapest first: a static check that fails when a committed diff removes more than a threshold share of test cases from tests/**, in the spirit of the existing bundle-budget ratchets — a count of test( occurrences per spec file, ratcheted per path, so a deliberate reduction is a reviewed baseline change rather than a silent one. Separately worth considering: do not arm auto-merge on a branch that any agent session is still pushing to.",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Count the template-literal Playwright declarations

When this request is reconciled or used to define the proposed ratchet, it records an incorrect denominator: tests/ui-smoke.spec.ts at the cited landed commit e16d5f66d has 89 direct test(...) declarations—82 with literal names and 7 with template-literal names inside viewport loops—not 82 total tests. The stated 74-test loss therefore comes from counting only test("... declarations and understates both the deletion and the baseline the guard must preserve; update the counts using a form that includes all test declarations.

AGENTS.md reference: AGENTS.md:L428-L433

Useful? React with 👍 / 👎.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-31T11:35:40.786485Z e682b91 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

2 participants