Skip to content

fix(ci-gate): validate base evidence as one document with the schema shape (#204 review fixes) - #211

Merged
hyperpolymath merged 3 commits into
mainfrom
ci/s6c-evidence-hardening
Dec 1, 2026
Merged

hyperpolymath merged 3 commits into
mainfrom
ci/s6c-evidence-hardening

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

What

Review fixes that CodeRabbit raised on #204 (owner ruling 2026-12-01: fix them in #204). #204 was squash-merged at its old head 3294bdd before these landed, so they come as their own PR from main. One concern: harden the base-evidence validation in scripts/ci-gate-verdict.sh.

  1. Null or non-string test names fail the evidence shape (and complete re-checks them).
  2. The evidence file is slurped: exactly one JSON document, validated and then used as that same document.
  3. Every entry must have the documented shape (head and base.sig = {failed_count: int|null, tests:[string]}, base.state string, base.red_since number|null). Absent entries and weak signatures stay valid and never establish inheritance.

Evidence

  • tests/ci-gate-differential.sh: 38/38 (was 28). Seven planted-bad evidence files are refused now; I ran the new controls against the OLD verdict script and exactly those seven failed there (null names, non-string names, two documents with an invalid first one, two valid documents, a numeric entry, a non-object base, a non-numeric red_since). Controls for valid ["a"], empty entries and weak signatures still pass.
  • Full tests/ci-gate.sh in an isolated worktree: 830 passed, 0 failed.
  • On the ci(gate): publisher collects base evidence for differential profiles (W49 S6 part 2) #207 content: tests/ci-gate-base-evidence.sh 20/20 against the new validation (the builder's real output passes the stricter shape).

Not done / open


Generated by Claude Code

…shape (review fixes on #204)

- non-string or null test names fail the evidence shape (and complete re-checks them)
- the file is slurped: exactly one document, validated and then used as that same document
- every entry must have the documented shape; absent entries and weak signatures stay valid
Seven planted-bad evidence files that the first version accepted are now refused (verified against the old script).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDjgxz1iRFdu63KxE1K
@gitnotebooks

gitnotebooks Bot commented Dec 1, 2026

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Dec 1, 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 53 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: 37b459e7-7f4a-4f20-8de0-2b20a06ca028
Commits

Reviewing files that changed from the base of the PR and between 3a65de9 and 359f942.

Files selected for processing: 3

  • docs/CI-GATE.adoc
  • scripts/ci-gate-verdict.sh
  • tests/ci-gate-differential.sh
  • 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

@hyperpolymath
hyperpolymath marked this pull request as ready for review December 1, 2026 01:24
@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 enabled auto-merge (squash) December 1, 2026 01:25
@hyperpolymath
hyperpolymath merged commit 9275c79 into main Dec 1, 2026
18 checks passed
@hyperpolymath
hyperpolymath deleted the ci/s6c-evidence-hardening branch December 1, 2026 01:38
@sonarqubecloud

sonarqubecloud Bot commented Dec 1, 2026

Copy link
Copy Markdown

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