Repository navigation
Tags
Tags
fix: declared checks cannot vouch for a PR that edits the workflows (#42 ) Where gate_required_checks supplies the required list, GitHub enforces nothing, so a PR touching .github/workflows could redefine the check it is judged by. Such a PR routes. Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
feat: the reviewed path (0.11.0) (#40) A repo may set allow_reviewed: then a PR whose shape is not on the allowlist merges when its required checks are green, its base is fresh, no breaker holds it, and the newest merge-gate/review commit status on the judged head is success. allow_reviewed_content extends that past the content veto. Absent, nothing changes and no status is read. Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
fix(evidence): refuse a damaged verify-report instead of raising (0.1… …0.6) (#39) parse_verify_report caught BadZipFile, ValueError and OSError. A zip with the encrypted flag set, an unsupported compression method, a corrupt deflate stream or JSON nested too deep raised RuntimeError, NotImplementedError, zlib.error or RecursionError. The sweep only catches ReadFailed, so one such artifact, uploaded by a PR's own CI run, stopped the sweep for every repo. Found by the new property tests in tests/test_gate_props.py, which cover the classifier, the version rule, the tests-only veto and the report parser. CI's new fuzz job runs every property test with the `release` profile: 5,000 random cases per property. Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
fix(verify): count stage growth in new unique IDs (#36) Since 0.10.3 passed_ids may be fewer than passes, so the rise in tests no longer bounds new IDs: running an existing test twice could pass as a new test. Where both sides list IDs, growth is now the new IDs. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
fix(verify): accept de-duplicated passed_ids (#35) A test that passes under several runners (two Playwright projects) is one ID, so passed_ids may now be fewer than passed tests. Sorted, unique and non-empty still hold; more IDs than passed tests is still no evidence. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
fix(gate): fail closed when the head drops passed_ids (#34) A stage with passed_ids at base but none at head fell back to the count rules, so dropping the IDs switched the identity check off. It now routes. Version 0.10.2. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
feat(gate): require CI test-count evidence for tests-only merges (#32) Read the `verify-report` Actions artifact (verify-report.json) for the PR head and the base its checks ran on, validate it strictly, and merge a tests-only PR only when nothing failed at head, no stage vanished, no stage ran or passed fewer tests, and the total grew by at least the test cases the diff adds. Otherwise route with a VERIFY reason. Counts are recorded in the ledger row's artifacts.verify. repos.yml `require_verify_evidence: true` applies the no-failure / no-vanished-stage half to every shape the gate merges in that repo. Adds gh_transport.download() for the binary artifact zip; the REST route keeps the token off the redirect to artifact storage. Bumps to 0.10.0. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
PreviousNext