diff --git a/.rizzstack/contracts/7b0d488b6bfb170f1a4b0a9577434964eba19683c43f82f7a4837aa107abd9e5.json b/.rizzstack/contracts/7b0d488b6bfb170f1a4b0a9577434964eba19683c43f82f7a4837aa107abd9e5.json new file mode 100644 index 0000000..f9d39c8 --- /dev/null +++ b/.rizzstack/contracts/7b0d488b6bfb170f1a4b0a9577434964eba19683c43f82f7a4837aa107abd9e5.json @@ -0,0 +1,416 @@ +{ + "acceptance_criteria": [ + { + "id": "AC-001", + "regression": false, + "statement": "In every one of the seven repositories, .github/scripts/lease_tamper.py, .github/workflows/gate-authority.yml and .github/workflows/review-rerun.yml (plus tests/test_lease_tamper.py and its fixtures) have exactly the pinned sha256, i.e. are byte-identical to rizzstack's copies.", + "tests": [ + "tests/test_gate_g1.py::VendoredGateBytesTest::test_each_vendored_file_matches_its_g1_pin", + "tests/test_lease_tamper.py::SharedPolicyContractTests::test_shared_policy_block_is_byte_identical" + ], + "verification": "test" + }, + { + "id": "AC-002", + "regression": false, + "statement": "gate-authority.yml is the base-pinned pull_request_target workflow whose single job id and name are gate-authority: the check name the owner will require in each repository.", + "tests": [ + "tests/test_gate_g1.py::VendoredGateBytesTest::test_the_required_check_is_the_gate_authority_job" + ], + "verification": "test" + }, + { + "id": "AC-003", + "regression": false, + "statement": "review-rerun.yml re-runs the gate-authority.yml pull_request_target run when a review is submitted.", + "tests": [ + "tests/test_gate_g1.py::VendoredGateBytesTest::test_a_review_reruns_the_base_pinned_gate" + ], + "verification": "test" + }, + { + "id": "AC-004", + "regression": false, + "statement": "On a non-slice PR, a canonical APPROVE line or an APPROVED state from rizzstack-coordinator[bot] is reported as an INCIDENT (reason coordinator_review_incident, with an ::error annotation) and never counts as the independent approval: without a reviewer approval the gate refuses.", + "tests": [ + "tests/test_gate_g1.py::CoordinatorIncidentNonSliceTest::test_a_coordinator_approval_line_is_an_incident_and_never_counts", + "tests/test_gate_g1.py::CoordinatorIncidentNonSliceTest::test_a_coordinator_approved_state_is_an_incident_and_never_counts" + ], + "verification": "test" + }, + { + "id": "AC-005", + "regression": false, + "statement": "A coordinator CHANGES_REQUESTED or canonical rejection line is reported and never counts: it does not block a reviewer approval at the head. COMMENTED and DISMISSED coordinator reviews are incidents too.", + "tests": [ + "tests/test_gate_g1.py::CoordinatorIncidentNonSliceTest::test_a_coordinator_rejection_is_an_incident_and_never_counts", + "tests/test_gate_g1.py::CoordinatorIncidentNonSliceTest::test_a_coordinator_comment_or_dismissed_review_is_still_an_incident" + ], + "verification": "test" + }, + { + "id": "AC-006", + "regression": false, + "statement": "The coordinator login is matched case-insensitively after trimming; every coordinator review is reported exactly once, in API order; reported fields cannot inject workflow commands or newlines.", + "tests": [ + "tests/test_gate_g1.py::CoordinatorIncidentNonSliceTest::test_login_case_variants_of_the_coordinator_are_incidents", + "tests/test_gate_g1.py::CoordinatorIncidentNonSliceTest::test_every_coordinator_review_is_reported_once_and_in_order", + "tests/test_gate_g1.py::CoordinatorIncidentNonSliceTest::test_incident_fields_cannot_inject_workflow_commands" + ], + "verification": "test" + }, + { + "id": "AC-007", + "regression": true, + "statement": "Guards: reviews by other logins are never incidents; a reviewer rejection after its own approval still governs; a non-slice PR with no review is refused with no incident line.", + "tests": [ + "tests/test_gate_g1.py::CoordinatorIncidentNonSliceTest::test_reviews_by_other_logins_are_not_incidents", + "tests/test_gate_g1.py::CoordinatorIncidentNonSliceTest::test_a_reviewer_rejection_after_its_approval_still_governs", + "tests/test_gate_g1.py::CoordinatorIncidentNonSliceTest::test_no_review_is_refused_without_an_incident" + ], + "verification": "test" + }, + { + "id": "AC-008", + "regression": false, + "statement": "On a leased slice PR the gate reads the reviews only to report coordinator incidents; an incident does not change the slice result, and a review read that fails (API error) fails closed.", + "tests": [ + "tests/test_gate_g1.py::CoordinatorIncidentSliceTest::test_a_coordinator_review_on_a_slice_is_reported_and_the_slice_still_passes", + "tests/test_gate_g1.py::CoordinatorIncidentSliceTest::test_a_slice_whose_reviews_cannot_be_read_fails_closed" + ], + "verification": "test" + }, + { + "id": "AC-009", + "regression": true, + "statement": "Guards: a slice without a PR number or API credentials still passes (scan skipped, one line says so); a slice with only other logins' reviews prints no incident.", + "tests": [ + "tests/test_gate_g1.py::CoordinatorIncidentSliceTest::test_a_slice_without_api_credentials_still_passes", + "tests/test_gate_g1.py::CoordinatorIncidentSliceTest::test_a_slice_with_only_other_reviews_has_no_incident" + ], + "verification": "test" + }, + { + "id": "AC-010", + "regression": true, + "statement": "Regression: the existing gate suite passes unchanged with the vendored copy in every repository (test_lease_tamper, including the shared-policy byte-identity with scripts/merge_lane_v5.py in rizzstack), the gate drill lock is unchanged, and lease_tamper_poc --expect fail-closed still holds in the product repositories.", + "tests": [ + "tests/test_lease_tamper.py::LeaseTamperTests::test_base_lease_judges_a_slice_that_carries_no_lease", + "tests/test_lease_tamper.py::LeaseTamperTests::test_body_line_cannot_move_the_verify_boundary", + "tests/test_lease_tamper.py::LeaseTamperTests::test_body_line_cannot_select_another_base_lease", + "tests/test_lease_tamper.py::LeaseTamperTests::test_clean_history_passes", + "tests/test_lease_tamper.py::LeaseTamperTests::test_commit_outside_the_lease_fails", + "tests/test_lease_tamper.py::LeaseTamperTests::test_commit_touching_a_frozen_test_fails", + "tests/test_lease_tamper.py::LeaseTamperTests::test_conflict_resolution_in_a_frozen_test_fails", + "tests/test_lease_tamper.py::LeaseTamperTests::test_frozen_test_listed_in_assigned_files_still_fails", + "tests/test_lease_tamper.py::LeaseTamperTests::test_infer_event_name_distinguishes_a_review_payload", + "tests/test_lease_tamper.py::LeaseTamperTests::test_label_cannot_move_the_verify_boundary", + "tests/test_lease_tamper.py::LeaseTamperTests::test_label_cannot_select_another_base_lease", + "tests/test_lease_tamper.py::LeaseTamperTests::test_malformed_contract_fails_closed", + "tests/test_lease_tamper.py::LeaseTamperTests::test_merge_of_the_base_is_ignored", + "tests/test_lease_tamper.py::LeaseTamperTests::test_missing_assigned_files_fails_closed", + "tests/test_lease_tamper.py::LeaseTamperTests::test_missing_contract_fails_closed", + "tests/test_lease_tamper.py::LeaseTamperTests::test_no_commit_after_verify_passes", + "tests/test_lease_tamper.py::LeaseTamperTests::test_prohibited_glob_fails", + "tests/test_lease_tamper.py::LeaseTamperTests::test_pull_request_event_reads_the_head_from_the_payload", + "tests/test_lease_tamper.py::LeaseTamperTests::test_push_event_is_a_no_op", + "tests/test_lease_tamper.py::LeaseTamperTests::test_review_commit_id_never_moves_the_head_backwards", + "tests/test_lease_tamper.py::LeaseTamperTests::test_review_commit_id_never_moves_the_head_forwards", + "tests/test_lease_tamper.py::LeaseTamperTests::test_review_event_applies_the_same_rules_as_a_pull_request_event", + "tests/test_lease_tamper.py::LeaseTamperTests::test_review_event_reads_the_head_from_pull_request_head_sha", + "tests/test_lease_tamper.py::LeaseTamperTests::test_review_event_without_a_pull_request_head_fails_closed", + "tests/test_lease_tamper.py::LeaseTamperTests::test_target_from_event_reads_the_same_head_from_both_payloads", + "tests/test_lease_tamper.py::LeaseTamperTests::test_verify_sha_that_is_not_an_ancestor_fails_closed", + "tests/test_lease_tamper.py::SliceClassificationTests::test_a_store_edit_does_not_exempt_code", + "tests/test_lease_tamper.py::SliceClassificationTests::test_branch_shape_alone_is_not_a_classifier", + "tests/test_lease_tamper.py::SliceClassificationTests::test_draft_lease_does_not_classify_a_slice", + "tests/test_lease_tamper.py::SliceClassificationTests::test_label_pointing_at_a_head_lease_is_ignored", + "tests/test_lease_tamper.py::SliceClassificationTests::test_lease_landing_is_non_slice_and_needs_a_review", + "tests/test_lease_tamper.py::SliceClassificationTests::test_lease_naming_the_branch_classifies_a_slice", + "tests/test_lease_tamper.py::SliceClassificationTests::test_lease_naming_the_pull_request_classifies_a_slice", + "tests/test_lease_tamper.py::SliceClassificationTests::test_lease_naming_the_pull_request_enforces_the_lease", + "tests/test_lease_tamper.py::SliceClassificationTests::test_lease_naming_the_slice_case_insensitively_classifies_a_slice", + "tests/test_lease_tamper.py::SliceClassificationTests::test_lease_that_names_the_pr_only_on_the_head_is_a_metadata_change", + "tests/test_lease_tamper.py::SliceClassificationTests::test_non_slice_changes_requested_is_not_an_approval", + "tests/test_lease_tamper.py::SliceClassificationTests::test_non_slice_pr_with_a_review_at_an_older_head_fails", + "tests/test_lease_tamper.py::SliceClassificationTests::test_non_slice_pr_with_an_approve_at_head_passes", + "tests/test_lease_tamper.py::SliceClassificationTests::test_non_slice_pr_with_an_approved_review_at_head_passes", + "tests/test_lease_tamper.py::SliceClassificationTests::test_non_slice_pr_without_a_review_fails_named", + "tests/test_lease_tamper.py::SliceClassificationTests::test_review_event_applies_the_non_slice_review_rule", + "tests/test_lease_tamper.py::SliceClassificationTests::test_review_event_refuses_a_review_recorded_at_an_older_head", + "tests/test_lease_tamper.py::BaseMergeReviewCarryTests::test_authored_commit_after_review_fails_named", + "tests/test_lease_tamper.py::BaseMergeReviewCarryTests::test_base_merge_only_update_after_review_passes", + "tests/test_lease_tamper.py::BaseMergeReviewCarryTests::test_content_change_resolved_into_a_base_merge_fails_named", + "tests/test_lease_tamper.py::BaseMergeReviewCarryTests::test_force_pushed_away_review_fails_named", + "tests/test_lease_tamper.py::BaseMergeReviewCarryTests::test_merge_of_an_unrelated_branch_fails_named", + "tests/test_lease_tamper.py::BaseMergeReviewCarryTests::test_two_base_merges_in_a_row_still_pass", + "tests/test_lease_tamper.py::RejectionGovernsTests::test_a_later_reapproval_supersedes_the_rejection", + "tests/test_lease_tamper.py::RejectionGovernsTests::test_rejection_at_the_approved_commit_refuses_the_carried_review", + "tests/test_lease_tamper.py::RejectionGovernsTests::test_rejection_at_the_new_head_refuses_the_carried_review", + "tests/test_lease_tamper.py::RejectionGovernsTests::test_rejection_at_the_same_head_refuses_the_exact_review", + "tests/test_lease_tamper.py::LeaseHardeningTests::test_contract_text_changed_after_freezing_is_rejected", + "tests/test_lease_tamper.py::LeaseHardeningTests::test_glob_in_assigned_files_is_rejected", + "tests/test_lease_tamper.py::LeaseHardeningTests::test_head_lease_json_is_a_metadata_change", + "tests/test_lease_tamper.py::LeaseHardeningTests::test_lease_landing_with_an_independent_review_at_head_passes", + "tests/test_lease_tamper.py::LeaseHardeningTests::test_lease_naming_an_unapproved_contract_is_rejected", + "tests/test_lease_tamper.py::LeaseHardeningTests::test_lease_scope_wider_than_the_contract_is_rejected", + "tests/test_lease_tamper.py::LeaseHardeningTests::test_lease_without_a_contract_hash_is_rejected", + "tests/test_lease_tamper.py::LeaseHardeningTests::test_lease_without_a_review_block_is_not_frozen", + "tests/test_lease_tamper.py::MergeGroupTests::test_api_failure_is_a_failure_not_a_skip", + "tests/test_lease_tamper.py::MergeGroupTests::test_missing_token_fails_merge_group_pr_unresolved", + "tests/test_lease_tamper.py::MergeGroupTests::test_no_green_lease_tamper_at_the_reviewed_head_fails", + "tests/test_lease_tamper.py::MergeGroupTests::test_pull_request_head_moved_after_its_pull_request_run_fails", + "tests/test_lease_tamper.py::MergeGroupTests::test_single_pr_group_passes", + "tests/test_lease_tamper.py::MergeGroupTests::test_stacked_group_checks_every_pull_request", + "tests/test_lease_tamper.py::MergeGroupTests::test_stacked_group_fails_when_an_earlier_entry_is_not_green", + "tests/test_lease_tamper.py::MergeGroupTests::test_unresolvable_branch_name_fails_merge_group_pr_unresolved", + "tests/test_lease_tamper.py::SharedPolicyContractTests::test_only_a_completed_success_is_green", + "tests/test_lease_tamper.py::SharedPolicyContractTests::test_sensitive_paths_include_the_explicit_list", + "tests/test_lease_tamper.py::SharedPolicyContractTests::test_shared_review_line_fixtures", + "tests/test_lease_tamper.py::SharedCarryFixtureTests::test_shared_carry_scenarios" + ], + "verification": "test" + } + ], + "assumptions": [ + "The three files are vendored whole: lease_tamper.py is repository-agnostic (per-repo T1 allowlists are keyed by GITHUB_REPOSITORY inside it; orbit-control-plane and uirizz have no entry, so every path there is T3).", + "In product repos tests/test_lease_tamper.py is replaced by rizzstack's r5 copy (review fixtures name rizzstack-reviewer[bot]) and tests/fixtures/shared_policy.sha256 is added; review_lines.json and carry_scenarios.py already match. workflow's old test file had fewer tests.", + "A3 lives outside the BEGIN/END SHARED GATE POLICY block, so merge_lane_v5.py and its shared-policy hash are unchanged and C1 (which edits the lane) does not conflict.", + "An uncommitted prototype (sha256 of lease_tamper.py in the pins) passed test_gate_g1 (17) and test_lease_tamper (74) in all seven repositories, the rizzstack suite and gate drill (57 cases, 0 unexpected, 0 lock problems), lease_tamper_poc in all six product repos, and the repo-specific workflow tests listed under verification.", + "Observed in task-1 evidence: rizzstack's gate-authority pull_request_target runs carried head_sha = the PR head (#53), contrary to r5's assumption that they report on the base tip; the run's pull_requests[] was empty in that listing." + ], + "authorization": { + "human_gates": [ + "merge", + "tag", + "release", + "deploy", + "publish", + "post" + ], + "not_authorized": [ + "merge", + "tag", + "release", + "deploy", + "publish", + "force-push", + "branch deletion", + "edit approved tests", + "ruleset or settings changes", + "app or key changes", + "opening pull requests without owner go-ahead", + "touching bundlebees #269, hyvv #43/#44, workflow #58" + ] + }, + "contract_version": "acdd/1", + "dependencies": [ + "gate-authority r5 (8cfd55f5, landed in rizzstack #49)" + ], + "evidence_required": [ + "red", + "green", + "review", + "security" + ], + "id": "gate-authority-vendor-g1", + "interfaces": [ + { + "change": "add", + "kind": "other", + "name": "COORDINATOR_LOGIN" + }, + { + "change": "add", + "kind": "function", + "name": "is_coordinator_review" + }, + { + "change": "add", + "kind": "function", + "name": "split_coordinator_reviews" + }, + { + "change": "add", + "kind": "function", + "name": "report_coordinator_reviews" + }, + { + "change": "add", + "kind": "function", + "name": "scan_coordinator_reviews" + }, + { + "change": "modify", + "kind": "function", + "name": "check_non_slice" + }, + { + "change": "modify", + "kind": "function", + "name": "main" + }, + { + "change": "add", + "kind": "file", + "name": ".github/workflows/gate-authority.yml (six product repositories)" + }, + { + "change": "modify", + "kind": "file", + "name": ".github/workflows/review-rerun.yml (six product repositories)" + } + ], + "notes": [ + "Byte-identity is checked two ways: (1) test_gate_g1.py, identical in all seven repos, pins sha256 of every vendored file, so each repo's own CI fails if its copy drifts; (2) test_gate_g1.py cannot pin itself, so the cross-repo blob comparison in verification compares git blob ids of all vendored files, including test_gate_g1.py, against rizzstack at its merge sha.", + "Landing order: rizzstack first (lease_tamper.py only), then the six product repos; every pin is to the same bytes so order does not change the result.", + "Required check after landing: gate-authority (source GitHub Actions) in each of the seven repositories, added by the owner in the branch ruleset, only after a live PR shows the gate-authority check attached to the PR head (see assumptions) and after the duplicate-name risk is accepted: any workflow job named gate-authority in a PR head would also produce that check name.", + "Leases: one lease per repository on its default branch, lease.source_rev = this contract's source_rev (gate equality), verify_sha = that repository's RED sha, contract file copied to .rizzstack/contracts/.json in each repo (uirizz has no .rizzstack yet)." + ], + "outcome": { + "observable_behavior": [ + "sha256 of the three vendored files equals the pins in every repository (tests/test_gate_g1.py, identical in all seven)", + "the gate-authority check runs from the base commit on every pull_request_target event in all seven repositories", + "lease-tamper: INCIDENT (reason=coordinator_review_incident): review by rizzstack-coordinator[bot] on PR # (state , commit <12>) is never counted, approve or reject; the coordinator app does not review", + "a coordinator approval never satisfies the independent-approval rule; a coordinator rejection never blocks", + "a slice whose reviews cannot be read fails closed; a slice without credentials says the scan was skipped", + "the shared policy block, and so scripts/merge_lane_v5.py, is unchanged" + ], + "summary": "Each of workflow, hyvv, bundlebees, orbitdesktop, orbit-control-plane and uirizz carries rizzstack's lease_tamper.py, gate-authority.yml (pull_request_target, checkout of the base sha, PR head fetched as objects only, contents: read) and review-rerun.yml byte for byte, so their non-slice approvals count only from rizzstack-reviewer[bot]. In all seven copies, any review by rizzstack-coordinator[bot] is printed as an INCIDENT with an ::error annotation and dropped before any review rule runs, on slices and non-slices alike; it never approves and never rejects." + }, + "required_check_after_landing": { + "name": "gate-authority", + "repos": [ + "mojomast/bundlebees", + "mojomast/hyvv", + "mojomast/orbit-control-plane", + "mojomast/orbitdesktop", + "mojomast/rizzstack", + "mojomast/uirizz", + "mojomast/workflow" + ], + "source": "GitHub Actions" + }, + "review": { + "approved_at": "2026-11-30", + "approved_by": "Kyle (owner) typed: approved: G1 r5 \u2014 rizzstack cb365499219263103b6acdb30951cad18d40768882615f31f3e247b7d8a89dc1 (RED b347c8a6), workflow 4c361fdab00be2da94160b264e22f90b06b0717c0252c0a9a0a3c9a07dc94489 (RED f972be93), hyvv dba68a693c789631f617039edb89686e300e64e45731bc7d5d4c29dbe40ab785 (RED 3adde60c), bundlebees 7b0d488b6bfb170f1a4b0a9577434964eba19683c43f82f7a4837aa107abd9e5 (RED efa9c16e), orbitdesktop 86cc5a34d455a75ad3120dfc73dd42d18e482ba9684cbd213281a7c67615be2c (RED a2228845), orbit-control-plane cafe22c72f49877eaff8a1c6a50c7151fd2810f5b8df0cc01ddfbd6853279ae5 (RED 642cf826), uirizz 42c6083c139a461152dc9fa4e1ebff22ac51e37bae19fbab172d90e3f7877f95 (RED e53a102f); go-ahead to open the seven G1 lease PRs, 2026-11-30", + "contract_sha256": "7b0d488b6bfb170f1a4b0a9577434964eba19683c43f82f7a4837aa107abd9e5", + "status": "approved" + }, + "risk": { + "blast_radius": "Every non-slice PR in the six product repos stops accepting the canonical APPROVE line from any login other than rizzstack-reviewer[bot]; an in-flight non-slice PR approved by another login will need a reviewer-bot review after landing. Slices additionally make one reviews API call when a token is present; an API failure there now fails the slice closed.", + "reasons": [ + "T3, owner-held: .github/** in seven repositories", + "changes who counts as a reviewer in six repositories" + ], + "tier": "high" + }, + "scope": { + "assigned_files": [ + ".github/scripts/lease_tamper.py", + ".github/workflows/gate-authority.yml", + ".github/workflows/review-rerun.yml" + ], + "prohibited": [ + ".rizzstack/**", + ".github/workflows/ci.yml", + ".github/workflows/test.yml", + ".github/workflows/gitleaks.yml", + ".github/workflows/slop-lint.yml", + ".github/scripts/check_ci_gate.py", + ".github/scripts/owner_held.py", + ".github/scripts/lease_tamper_poc.py", + "policy/**", + "CHANGELOG.md", + "conftest.py", + "**/conftest.py", + "pyproject.toml" + ], + "read_only": [ + "scripts/merge_lane_v5.py", + "tests/fixtures/review_lines.json", + "tests/fixtures/carry_scenarios.py", + ".github/scripts/gate_drill.py", + ".github/scripts/gate_drill.lock.json", + "tests/test_gate_authority.py", + "tests/test_ci_workflows.py", + "tests/ci-workflows.test.mjs" + ], + "test_files": [ + "tests/test_gate_g1.py", + "tests/test_lease_tamper.py", + "tests/fixtures/shared_policy.sha256" + ] + }, + "source_rev": "efa9c16ead52a176d4a2a1b61f2a38fe4dcc2c74", + "supersedes": [], + "targets": [ + { + "base": "2af045068af66506af364ba7855a1866cccfce5a", + "red": "b347c8a6e29cc4e361f56c461ded5e2fb2843883", + "red_branch": "red/gate-authority-vendor-g1-r4", + "repo": "mojomast/rizzstack" + }, + { + "base": "414742bd6daaa2e8af710db624e4871f126f8a7c", + "red": "f972be93f3eb85fda92a983753c257abb0ed3876", + "red_branch": "red/gate-authority-vendor-g1-r4", + "repo": "mojomast/workflow" + }, + { + "base": "bc0eedbec79ae38a13a86a55f23467950adc2090", + "red": "3adde60c7ae7bdff840d7c581bdb0a244c2aca56", + "red_branch": "red/gate-authority-vendor-g1-r4", + "repo": "mojomast/hyvv" + }, + { + "base": "b4273304e3c9e02eceba6d0ed49a052c3b049813", + "red": "efa9c16ead52a176d4a2a1b61f2a38fe4dcc2c74", + "red_branch": "red/gate-authority-vendor-g1-r4", + "repo": "mojomast/bundlebees" + }, + { + "base": "4dedccc5b35aa1d4877dda9ca289f0c076d87c19", + "red": "a222884519626e0b6f0b3ec7d1f66e1c7cadef6f", + "red_branch": "red/gate-authority-vendor-g1-r4", + "repo": "mojomast/orbitdesktop" + }, + { + "base": "dba6f762108f37613f20493930d9e26187939c14", + "red": "642cf826289376c50f7211eaf7d8137b94a7fcb8", + "red_branch": "red/gate-authority-vendor-g1-r4", + "repo": "mojomast/orbit-control-plane" + }, + { + "base": "7224e954646be2e7e8b5e183ce2280aebf369b67", + "red": "e53a102f99078a08a924a3cfaa6859bc8afc6d56", + "red_branch": "red/gate-authority-vendor-g1-r4", + "repo": "mojomast/uirizz" + } + ], + "tdd": { + "applicable": true, + "test_first": true + }, + "title": "gate-authority-vendor-g1: vendor rizzstack's base-pinned gate-authority byte-identically into six repositories, and treat any review by rizzstack-coordinator[bot] as a reported, never-counted incident", + "vendored_sha256": { + ".github/scripts/lease_tamper.py": "9f35981c8ba9a3e2153fedef61046a402aced3025e483ac877d2b7bda9ca02fa", + ".github/workflows/gate-authority.yml": "111eeabceccf090e11fa04dbf24371ff8024c6ead43989a4241c246274a5637c", + ".github/workflows/review-rerun.yml": "f69a14746af07bbb6737ef7fbe587e7965d6b568d7d88321ee80d5486be45fc8" + }, + "verification": { + "commands": [ + "python3 -m unittest discover -s tests -p test_gate_g1.py -v # every repo", + "python3 -m unittest discover -s tests -p test_lease_tamper.py -v # every repo", + "python3 .github/scripts/lease_tamper_poc.py --expect fail-closed # product repos", + "env -u PYTHONPATH python3 -m pytest -q -p no:cacheprovider tests # rizzstack", + "python3 .github/scripts/gate_drill.py --script .github/scripts/lease_tamper.py --lock .github/scripts/gate_drill.lock.json # rizzstack", + "python3 -m unittest discover -s tests -p test_lease_tamper_merge_group.py # hyvv", + "node --test tests/ci-workflows.test.mjs # orbit-control-plane", + "python3 -m unittest discover -s tests -p test_ci_workflows.py # uirizz", + "for f in .github/scripts/lease_tamper.py .github/workflows/gate-authority.yml .github/workflows/review-rerun.yml tests/test_gate_g1.py tests/test_lease_tamper.py tests/fixtures/shared_policy.sha256; do a=$(git rev-parse HEAD:$f); b=$(gh api \"repos/mojomast/rizzstack/contents/$f?ref=\" --jq .sha); [ \"$a\" = \"$b\" ] || echo DIFF $f; done # byte-identity vs rizzstack, every product repo" + ], + "independent": true, + "integration": true + } +} diff --git a/.rizzstack/leases/gate-authority-vendor-g1.json b/.rizzstack/leases/gate-authority-vendor-g1.json new file mode 100644 index 0000000..4657f6a --- /dev/null +++ b/.rizzstack/leases/gate-authority-vendor-g1.json @@ -0,0 +1,58 @@ +{ + "branch": "feat/gate-authority-vendor-g1-r5", + "contract_id": "gate-authority-vendor-g1", + "contract_sha256": "7b0d488b6bfb170f1a4b0a9577434964eba19683c43f82f7a4837aa107abd9e5", + "derived_from": { + "approved_at": "2026-11-30", + "approved_by": "Kyle (owner) typed: approved: G1 r5 \u2014 rizzstack cb365499219263103b6acdb30951cad18d40768882615f31f3e247b7d8a89dc1 (RED b347c8a6), workflow 4c361fdab00be2da94160b264e22f90b06b0717c0252c0a9a0a3c9a07dc94489 (RED f972be93), hyvv dba68a693c789631f617039edb89686e300e64e45731bc7d5d4c29dbe40ab785 (RED 3adde60c), bundlebees 7b0d488b6bfb170f1a4b0a9577434964eba19683c43f82f7a4837aa107abd9e5 (RED efa9c16e), orbitdesktop 86cc5a34d455a75ad3120dfc73dd42d18e482ba9684cbd213281a7c67615be2c (RED a2228845), orbit-control-plane cafe22c72f49877eaff8a1c6a50c7151fd2810f5b8df0cc01ddfbd6853279ae5 (RED 642cf826), uirizz 42c6083c139a461152dc9fa4e1ebff22ac51e37bae19fbab172d90e3f7877f95 (RED e53a102f); go-ahead to open the seven G1 lease PRs, 2026-11-30", + "contract": ".rizzstack/contracts/7b0d488b6bfb170f1a4b0a9577434964eba19683c43f82f7a4837aa107abd9e5.json" + }, + "id": "gate-authority-vendor-g1", + "lease_version": "rizzstack.lease/1", + "review": { + "approved_at": "2026-11-30", + "approved_by": "Kyle (owner) typed: approved: G1 r5 \u2014 rizzstack cb365499219263103b6acdb30951cad18d40768882615f31f3e247b7d8a89dc1 (RED b347c8a6), workflow 4c361fdab00be2da94160b264e22f90b06b0717c0252c0a9a0a3c9a07dc94489 (RED f972be93), hyvv dba68a693c789631f617039edb89686e300e64e45731bc7d5d4c29dbe40ab785 (RED 3adde60c), bundlebees 7b0d488b6bfb170f1a4b0a9577434964eba19683c43f82f7a4837aa107abd9e5 (RED efa9c16e), orbitdesktop 86cc5a34d455a75ad3120dfc73dd42d18e482ba9684cbd213281a7c67615be2c (RED a2228845), orbit-control-plane cafe22c72f49877eaff8a1c6a50c7151fd2810f5b8df0cc01ddfbd6853279ae5 (RED 642cf826), uirizz 42c6083c139a461152dc9fa4e1ebff22ac51e37bae19fbab172d90e3f7877f95 (RED e53a102f); go-ahead to open the seven G1 lease PRs, 2026-11-30", + "note": "contract_sha256 names the approved frozen contract; scope and source_rev are its verbatim scope", + "status": "frozen" + }, + "scope": { + "assigned_files": [ + ".github/scripts/lease_tamper.py", + ".github/workflows/gate-authority.yml", + ".github/workflows/review-rerun.yml" + ], + "prohibited": [ + ".rizzstack/**", + ".github/workflows/ci.yml", + ".github/workflows/test.yml", + ".github/workflows/gitleaks.yml", + ".github/workflows/slop-lint.yml", + ".github/scripts/check_ci_gate.py", + ".github/scripts/owner_held.py", + ".github/scripts/lease_tamper_poc.py", + "policy/**", + "CHANGELOG.md", + "conftest.py", + "**/conftest.py", + "pyproject.toml" + ], + "read_only": [ + "scripts/merge_lane_v5.py", + "tests/fixtures/review_lines.json", + "tests/fixtures/carry_scenarios.py", + ".github/scripts/gate_drill.py", + ".github/scripts/gate_drill.lock.json", + "tests/test_gate_authority.py", + "tests/test_ci_workflows.py", + "tests/ci-workflows.test.mjs" + ], + "test_files": [ + "tests/test_gate_g1.py", + "tests/test_lease_tamper.py", + "tests/fixtures/shared_policy.sha256" + ] + }, + "slice": "GATE-AUTHORITY-VENDOR-G1", + "source_rev": "efa9c16ead52a176d4a2a1b61f2a38fe4dcc2c74", + "verify_sha": "efa9c16ead52a176d4a2a1b61f2a38fe4dcc2c74" +}