Skip to content

test(ci): golden PR-verdict fixture corpus, 48 fixtures (S2) - #193

Merged
hyperpolymath merged 2 commits into
ci/s1-evidence-extractorfrom
ci/s2-fixture-corpus
Nov 30, 2026
Merged

hyperpolymath merged 2 commits into
ci/s1-evidence-extractorfrom
ci/s2-fixture-corpus

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

What

S2 of the W49 CI programme (design: #189, section 6.1). Stacked on #192 (S1): the base is the S1 branch and retargets when #192 merges.

55 golden fixtures in docs/design/pr-verdict/fixtures/, one per verdict arm, per BrokenCause, per Infra kind and per section 3.6 property witness or counter-example. Each is a complete proven/pr-evidence/v1 record plus the verdict section 3.3 assigns. They are generated (gen-fixtures.jq, gen-fixtures.sh) and the test fails if a committed file differs from the generator. Expected values are hand-written from section 3.3; there is deliberately no second implementation. squabble-core's conformance test (S3) is what will confirm or refute them.

Evidence

Check Result
bash tests/pr-verdict-fixtures.sh 12 groups ok: 55 fixtures; generator equality; every fixture and its evidence schema-valid; arms, causes, Infra kinds, derivation steps 1-9 and properties 1,2,3,5,6,7 covered; expected values consistent with evidence; controls shown able to fail
bash tests/unit.sh 28 tests run, 0 failed
Corpus run through the verdict function NOT RUN (S3 does not exist yet). The expected verdicts are unverified against any implementation.
Property 4 (replay) not a fixture matter; belongs to the archive test

Ambiguities in the design found while writing the corpus (to resolve before S3)

  1. Several owner acts in step 7 ("a question to the owner in the PR's latest steward note", "a ruleset, secret, tag or settings change named in the PR") have no field in the evidence record; only draft and gate-file label are derivable. No fixtures for them.
  2. If review_threads is null (unreadable) and the ruleset requires resolution, 3.3 does not say what happens. No fixture.
  3. CI-BROKEN { cause, checks } has a single cause, but different required checks can have different causes. Fixtures avoid mixing; proposal: report the cause of the first matching clause in the order listed in step 4.
  4. NEEDS-REVIEW ReviewBlocker values are not enumerated; the corpus uses changes-requested, unresolved-threads, approvals-missing, blocked-unexplained. SUPERSEDED reasons used: head-already-landed, empty-diff, newer-duplicate, base-branch-gone, base-not-default-or-release, bump-superseded.
  5. Step 3 with a head Fail and an Absent base tip is neither introduced nor inherited; the corpus follows the doc (falls to NeverOnBase).

🤖 Generated with Claude Code

https://claude.ai/code/session_01J4QvDjgxz1iRFdu63KxE1K

Update (after architect 7208a2e and hub provisional rulings): signatures are now complete-set (failed_count == identities; subset inheritance); new fixtures for complete-subset inherited, new test in red check, count != identities, generic-annotation weak, first-clause cause order, threads-unknown, named owner act. Still unverified against any verdict implementation (S3).


Generated by Claude Code

@gitnotebooks

gitnotebooks Bot commented Nov 30, 2026

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 9 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 52f61bbb-f396-4b98-a311-c0dbdadd44e5
Commits

Reviewing files that changed from the base of the PR and between eef3453 and aed4533.

Files selected for processing: 60

  • docs/design/pr-verdict/fixture.schema.json
  • docs/design/pr-verdict/fixtures/ci-broken-cured-on-base.json
  • docs/design/pr-verdict/fixtures/ci-broken-first-clause-order.json
  • docs/design/pr-verdict/fixtures/ci-broken-head-absent-is-not-ready.json
  • docs/design/pr-verdict/fixtures/ci-broken-head-not-run.json
  • docs/design/pr-verdict/fixtures/ci-broken-infra-billing.json
  • docs/design/pr-verdict/fixtures/ci-broken-infra-rate-limited.json
  • docs/design/pr-verdict/fixtures/ci-broken-infra-runner-unavailable.json
  • docs/design/pr-verdict/fixtures/ci-broken-infra-startup-failure-also-on-base.json
  • docs/design/pr-verdict/fixtures/ci-broken-infra-startup-failure-not-pr-edit.json
  • docs/design/pr-verdict/fixtures/ci-broken-infra-timeout.json
  • docs/design/pr-verdict/fixtures/ci-broken-inherited-complete-subset.json
  • docs/design/pr-verdict/fixtures/ci-broken-inherited.json
  • docs/design/pr-verdict/fixtures/ci-broken-never-on-base.json
  • docs/design/pr-verdict/fixtures/ci-broken-outranks-pending.json
  • docs/design/pr-verdict/fixtures/ci-broken-phantom.json
  • docs/design/pr-verdict/fixtures/ci-broken-trigger-gap.json
  • docs/design/pr-verdict/fixtures/conflict-dirty.json
  • docs/design/pr-verdict/fixtures/conflict-mergeability-not-computed.json
  • docs/design/pr-verdict/fixtures/conflict-mergeable-false.json
  • docs/design/pr-verdict/fixtures/conflict-outranks-red-check.json
  • docs/design/pr-verdict/fixtures/monotone-introduced-failure-fixed.json
  • docs/design/pr-verdict/fixtures/needs-review-approvals-missing.json
  • docs/design/pr-verdict/fixtures/needs-review-blocked-no-named-cause.json
  • docs/design/pr-verdict/fixtures/needs-review-changes-requested.json
  • docs/design/pr-verdict/fixtures/needs-review-threads-unknown.json
  • docs/design/pr-verdict/fixtures/needs-review-unresolved-threads.json
  • docs/design/pr-verdict/fixtures/pr-broken-count-not-identities.json
  • docs/design/pr-verdict/fixtures/pr-broken-generic-annotation-is-weak.json
  • docs/design/pr-verdict/fixtures/pr-broken-new-failure-inside-red-check.json
  • docs/design/pr-verdict/fixtures/pr-broken-new-failure.json
  • docs/design/pr-verdict/fixtures/pr-broken-new-test-in-red-check.json
  • docs/design/pr-verdict/fixtures/pr-broken-outranks-ci-broken.json
  • docs/design/pr-verdict/fixtures/pr-broken-outranks-infra.json
  • docs/design/pr-verdict/fixtures/pr-broken-same-test-failure-changed-since-merge-base.json
  • docs/design/pr-verdict/fixtures/pr-broken-weak-head-strong-base.json
  • docs/design/pr-verdict/fixtures/pr-broken-weak-signature-never-inherited.json
  • docs/design/pr-verdict/fixtures/pr-broken-workflow-cannot-start.json
  • docs/design/pr-verdict/fixtures/ready-clean.json
  • docs/design/pr-verdict/fixtures/ready-gate-files-with-label-applied.json
  • docs/design/pr-verdict/fixtures/ready-on-declared-release-branch.json
  • docs/design/pr-verdict/fixtures/ready-unresolved-threads-not-required.json
  • docs/design/pr-verdict/fixtures/superseded-base-branch-deleted.json
  • docs/design/pr-verdict/fixtures/superseded-base-not-default-not-release.json
  • docs/design/pr-verdict/fixtures/superseded-bot-bump-replaced.json
  • docs/design/pr-verdict/fixtures/superseded-empty-diff.json
  • docs/design/pr-verdict/fixtures/superseded-head-already-landed.json
  • docs/design/pr-verdict/fixtures/superseded-newer-pr-same-branch.json
  • docs/design/pr-verdict/fixtures/superseded-newer-pr-same-head-sha.json
  • docs/design/pr-verdict/fixtures/superseded-outranks-conflict.json
  • docs/design/pr-verdict/fixtures/unsettled-oldest-pending-sets-deadline.json
  • docs/design/pr-verdict/fixtures/unsettled-pending-within-deadline.json
  • docs/design/pr-verdict/fixtures/waiting-draft-and-gate-files.json
  • docs/design/pr-verdict/fixtures/waiting-draft.json
  • docs/design/pr-verdict/fixtures/waiting-gate-files-need-label.json
  • docs/design/pr-verdict/fixtures/waiting-named-owner-act.json
  • docs/design/pr-verdict/gen-fixtures.jq
  • docs/design/pr-verdict/gen-fixtures.sh
  • tests/pr-verdict-fixtures.sh
  • tests/unit.list
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-30T16:37:40.014570Z
We couldn’t complete this review. Comment @codex review to try again.
fb7ae87 Draft marked ready
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@hyperpolymath
hyperpolymath added this pull request to stack #196 November 30, 2026 16:37
docs/design/pr-verdict/gen-fixtures.jq generates one fixture per verdict
arm, BrokenCause, Infra kind and section 3.6 property witness, each a
complete schema-valid evidence record plus the verdict design 3.3 assigns.
tests/pr-verdict-fixtures.sh checks the committed files equal the
generator output, validate against both schemas, cover every arm, cause
and derivation step, and are internally consistent.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDjgxz1iRFdu63KxE1K
…nown, owner_acts, cause order (S2)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDjgxz1iRFdu63KxE1K
@hyperpolymath
hyperpolymath enabled stacked auto-merge (squash) November 30, 2026 16:38
@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath
hyperpolymath merged commit 0e7c81b into main Nov 30, 2026
37 checks passed
@hyperpolymath
hyperpolymath deleted the ci/s2-fixture-corpus branch November 30, 2026 16:57
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