Repository navigation
feat(gate): gate-authority r5 slice (reviewer-app-only approvals, base-pinned gate) - #49
Conversation
…nly) Byte-identical test tree to abb5e66 (the contract's source_rev) minus the unapproved draft contracts that branch carries under .rizzstack/contracts. Lets the slice branch avoid contract-store changes in its own commits.
…ed gate workflow, stale-base proof [bee att_2a20495cace89b84] Slice gate-authority (contract 8cfd55f5). Verified by the coordinator: the 287 approved tests pass, the full suite passes (424), the gate drill passes (57 cases, 0 unexpected), gitleaks clean, only assigned files changed. Coordinator-authored: needs an independent review.
mojomast
left a comment
There was a problem hiding this comment.
APPROVE (independent review — outside reviewer GROKCHAT, at owner Kyle's request) at 3e6d0ab
Ancestry is main 661e5b3, then the tests-only RED commit ac30e7c, then one bee commit. The diff against ac30e7c touches exactly the 7 assigned files; the frozen tests are byte-identical to RED. Verification: the 287 approved tests pass, the full suite passes (424 incl. 3 skipped for a missing optional package), the gate drill reports 57 cases, 0 unexpected, 0 lock problems.
Read line by line: gate-authority.yml is pull_request_target only with contents:read, a pinned checkout of the base commit without credentials, the PR head fetched as objects only, and no head code execution or expression injection. Identity checks are exact and case-sensitive in both gate and lane; probes (case variants, no [bot], coordinator, owner, dismissed, missing login) are refused and a later rejection still overrides. Lane run-matching enforces path, event, app, repo, head repo, PR entry, head sha, base ref, ancestry, green conclusion, start time after reviews, and the compare files check; pagination is bounded and fails closed.
Advisories, none blocking:
- The tier capability scan is regex-only and misses several import and alias shapes (for example comma imports, from-imports, aliased os, asyncio subprocess, runpy, requests, pickle, JS child_process via template strings); these stay T1. Recommend an AST-based scan before relying on T1 auto-merge.
- A review submitted_at that is missing or malformed is skipped; not reachable with real GitHub timestamps, but better refused.
- The workflow runs the gate from pull_request.base.sha while the lane proves freshness from the run's head sha; if the payload base lags the tip (unverified), an older gate could run. Consider using the run's own sha in a follow-up contract.
- The lane fetches a check-suite and compare for every gate run of every PR, so one unreadable suite makes all PRs refuse as unproven; filter to this PR's runs first.
- gate_authority_demanded reads the working-tree file, not the base branch.
- _is_independent_approval(body, head) has no identity check and is unused; delete it or add identity.
- review-rerun.yml runs from the merge ref with actions:write for same-repo branches (pre-existing).
CI: lease-tamper stays red until the lease PR is on main; that is expected.
Slice for the approved gate-authority contract
8cfd55f59f59cedda30a008053b92cb3b484c60b663aca0e37c9af0464b93dc8(owner:approved: 8cfd55f5; supersedesf23d3ab3). Bee attemptatt_2a20495cace89b84(deepseek-v4.1-flash), dispatched in contract mode (preflight: tier high). Branch isfeat/gate-authority= the tests-only RED commitac30e7ccplus one bee commit touching only the leased files (lease_tamper.py, merge_lane_v5.py, gate-authority.yml, review-rerun.yml, gate_drill.py and lock, shared_policy.sha256).Coordinator verification: the 287 approved tests in tests/test_gate_authority.py, test_lease_tamper.py and test_merge_lane_v5.py pass; the full suite passes (424); the gate drill passes (57 cases, 0 unexpected, 0 lock problems); approved test files untouched; gitleaks clean.
Depends on lease PR #47 being reviewed and merged first (the lease-tamper gate resolves the lease from the base branch). Coordinator-authored and security-critical: needs an independent review by someone other than the coordinator. Draft on purpose. Do not merge before that review.