Skip to content

feat(gate): gate-authority r5 slice (reviewer-app-only approvals, base-pinned gate) - #49

Merged
mojomast merged 3 commits into
mainfrom
feat/gate-authority
Nov 28, 2026
Merged

mojomast merged 3 commits into
mainfrom
feat/gate-authority

Conversation

@mojomast

Copy link
Copy Markdown
Owner

Slice for the approved gate-authority contract 8cfd55f59f59cedda30a008053b92cb3b484c60b663aca0e37c9af0464b93dc8 (owner: approved: 8cfd55f5; supersedes f23d3ab3). Bee attempt att_2a20495cace89b84 (deepseek-v4.1-flash), dispatched in contract mode (preflight: tier high). Branch is feat/gate-authority = the tests-only RED commit ac30e7cc plus 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.

MR.INDIA and others added 2 commits November 27, 2026 19:38
…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 mojomast left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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:

  1. 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.
  2. A review submitted_at that is missing or malformed is skipped; not reachable with real GitHub timestamps, but better refused.
  3. 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.
  4. 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.
  5. gate_authority_demanded reads the working-tree file, not the base branch.
  6. _is_independent_approval(body, head) has no identity check and is unused; delete it or add identity.
  7. 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.

@mojomast
mojomast marked this pull request as ready for review November 28, 2026 07:38
@mojomast
mojomast merged commit 9a135b8 into main Nov 28, 2026
5 checks passed
@mojomast
mojomast deleted the feat/gate-authority branch November 28, 2026 07:39
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.

1 participant