From 5f8a0992c5e04745fc62a8cc04a3d1ee660ddc19 Mon Sep 17 00:00:00 2001 From: mojomast <76818041+mojomast@users.noreply.github.com> Date: Fri, 27 Nov 2026 15:10:29 -0500 Subject: [PATCH 1/4] docs: GitHub App identities for coordinator and reviewer (link to rizzstack guide) --- docs/19-coordinator-playbook.md | 12 ++++++++++++ docs/32-lease-tamper-gate.md | 2 ++ 2 files changed, 14 insertions(+) diff --git a/docs/19-coordinator-playbook.md b/docs/19-coordinator-playbook.md index 26f611c..0306ee4 100644 --- a/docs/19-coordinator-playbook.md +++ b/docs/19-coordinator-playbook.md @@ -29,6 +29,18 @@ The chapter is generic. Values that belong to Kyle's setup, such as caps, names, | Executor subagents | Worker lanes | Launched by the coordinator, one per workstream | | Bees | Workers | Run on Kyle's PC through the worker host (hyvv, extracted from the PC launcher), dispatched via bundlebees | +### GitHub identities + +Each role acts on GitHub under its own login. The full setup guide (manifests, scripts, key custody, rotation) is [rizzstack docs/github-apps.md](https://github.com/mojomast/rizzstack/blob/main/docs/github-apps.md). + +| Role | GitHub identity | Uses it for | +|---|---|---| +| Approver | the owner's own account | approvals, typed yeses, rulesets and settings, creating and installing the apps | +| Coordinator and its lanes | the coordinator app (`rizzstack-coordinator[bot]`) | pushing branches, opening, updating and merging PRs, labels and PR comments, rerunning CI | +| Outside reviewer | the reviewer app (`rizzstack-reviewer[bot]`) | posting PR reviews, nothing else | + +The coordinator mints short-lived installation tokens from its app key and never holds the owner's token. The coordinator app has no administration or secrets permission, so it can't change rulesets or settings. A merge still needs the approver's yes, as section 6 says. Today the gates still read review text. Trusting reviews by bot login is planned and will arrive as its own gate change. + ### The four layers you coordinate Bottom to top: **workflow** (the method; this repository), **hyvv** (the worker host; owns the versioned `/v1` worker API), **bundlebees** (orchestration; a Hermes plugin), **Orbit** (the control surface; `mojomast/orbitdesktop`). A rename of bundlebees to swrm has been discussed but not started. Don't rename anything in docs, code or packages until Kyle says so. diff --git a/docs/32-lease-tamper-gate.md b/docs/32-lease-tamper-gate.md index b5e7f8d..01b6c09 100644 --- a/docs/32-lease-tamper-gate.md +++ b/docs/32-lease-tamper-gate.md @@ -84,6 +84,8 @@ head commit: bullet. `APPROVED` as a word, `APPROVE?`, bare `APPROVE` and `APPROVE (not an independent review ...)` do not qualify. +Today the gate checks the review's text and state, not who wrote it, because every agent posts through the owner's account. **Planned:** once the coordinator and reviewer have their own GitHub App identities ([rizzstack docs/github-apps.md](https://github.com/mojomast/rizzstack/blob/main/docs/github-apps.md)), an independent approval will count only from the reviewer bot's login (`rizzstack-reviewer[bot]`) or the owner's, and reviews by the coordinator bot will count for nothing. That change will be a gate PR of its own. + When the line quotes a sha it must be a prefix of the review's `commit_id`. The parser is one shared policy block vendored byte-identically in this gate and in the merge lane (`scripts/merge_lane_v5.py`): two parsers drifted once and From 41a80cd59ff17e69cedf2a47f0b4215a7f4aebc1 Mon Sep 17 00:00:00 2001 From: mojomast <76818041+mojomast@users.noreply.github.com> Date: Fri, 27 Nov 2026 15:15:12 -0500 Subject: [PATCH 2/4] test(docs-parity): register #197 as a docs-only exclusion --- tests/test_docs_parity.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_docs_parity.py b/tests/test_docs_parity.py index 037af67..1de58c6 100644 --- a/tests/test_docs_parity.py +++ b/tests/test_docs_parity.py @@ -57,6 +57,12 @@ #: exclusion states why; a merge number missing from both the registry and this #: mapping is a test failure. EXCLUDED_PRS: dict[int, str] = { + 197: ( + "docs-only: points the coordinator playbook and the lease-tamper gate doc at " + "rizzstack's GitHub App identity guide (coordinator/reviewer bots; gate by login " + "marked planned); no product or changelog surface, and it carries its own exclusion " + "so merging it leaves main green" + ), 196: ( "ci-only: vendors rizzstack's tier-aware lease_tamper.py (risk_tier + always-T3) " "into this repository for the merge lane; no product or changelog surface, and it " From 571d2554ee8ca47422706e5a504c7e4a5765672c Mon Sep 17 00:00:00 2001 From: mojomast <76818041+mojomast@users.noreply.github.com> Date: Fri, 27 Nov 2026 15:30:03 -0500 Subject: [PATCH 3/4] docs: target tense for GitHub App identities; link policy/identities.md for migration status --- docs/19-coordinator-playbook.md | 8 ++++---- docs/32-lease-tamper-gate.md | 2 +- tests/test_docs_parity.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/19-coordinator-playbook.md b/docs/19-coordinator-playbook.md index 0306ee4..757f841 100644 --- a/docs/19-coordinator-playbook.md +++ b/docs/19-coordinator-playbook.md @@ -29,17 +29,17 @@ The chapter is generic. Values that belong to Kyle's setup, such as caps, names, | Executor subagents | Worker lanes | Launched by the coordinator, one per workstream | | Bees | Workers | Run on Kyle's PC through the worker host (hyvv, extracted from the PC launcher), dispatched via bundlebees | -### GitHub identities +### GitHub identities (target) -Each role acts on GitHub under its own login. The full setup guide (manifests, scripts, key custody, rotation) is [rizzstack docs/github-apps.md](https://github.com/mojomast/rizzstack/blob/main/docs/github-apps.md). +The stack is moving to one GitHub login per role. Until the migration finishes, agents still act through the owner's account. Live migration status: [policy/identities.md](https://github.com/mojomast/rizzstack/blob/main/policy/identities.md) in rizzstack (it lands with rizzstack #42). Setup guide (manifests, scripts, key custody, rotation): [rizzstack docs/github-apps.md](https://github.com/mojomast/rizzstack/blob/main/docs/github-apps.md). -| Role | GitHub identity | Uses it for | +| Role | Target GitHub identity | Will use it for | |---|---|---| | Approver | the owner's own account | approvals, typed yeses, rulesets and settings, creating and installing the apps | | Coordinator and its lanes | the coordinator app (`rizzstack-coordinator[bot]`) | pushing branches, opening, updating and merging PRs, labels and PR comments, rerunning CI | | Outside reviewer | the reviewer app (`rizzstack-reviewer[bot]`) | posting PR reviews, nothing else | -The coordinator mints short-lived installation tokens from its app key and never holds the owner's token. The coordinator app has no administration or secrets permission, so it can't change rulesets or settings. A merge still needs the approver's yes, as section 6 says. Today the gates still read review text. Trusting reviews by bot login is planned and will arrive as its own gate change. +Once migrated, the coordinator will mint short-lived installation tokens from its app key and won't hold the owner's token. The coordinator app has no administration or secrets permission, so it can't change rulesets or settings. A merge still needs the approver's yes, as section 6 says. Today the gates read review text. Trusting reviews by bot login is planned and will arrive as its own gate change. ### The four layers you coordinate diff --git a/docs/32-lease-tamper-gate.md b/docs/32-lease-tamper-gate.md index 01b6c09..ac4beab 100644 --- a/docs/32-lease-tamper-gate.md +++ b/docs/32-lease-tamper-gate.md @@ -84,7 +84,7 @@ head commit: bullet. `APPROVED` as a word, `APPROVE?`, bare `APPROVE` and `APPROVE (not an independent review ...)` do not qualify. -Today the gate checks the review's text and state, not who wrote it, because every agent posts through the owner's account. **Planned:** once the coordinator and reviewer have their own GitHub App identities ([rizzstack docs/github-apps.md](https://github.com/mojomast/rizzstack/blob/main/docs/github-apps.md)), an independent approval will count only from the reviewer bot's login (`rizzstack-reviewer[bot]`) or the owner's, and reviews by the coordinator bot will count for nothing. That change will be a gate PR of its own. +Today the gate checks the review's text and state, not who wrote it, because every agent posts through the owner's account. **Planned:** once the coordinator and reviewer have their own GitHub App identities ([rizzstack docs/github-apps.md](https://github.com/mojomast/rizzstack/blob/main/docs/github-apps.md)), an independent approval will count only from the reviewer bot's login (`rizzstack-reviewer[bot]`) or the owner's, and reviews by the coordinator bot will count for nothing. That change will be a gate PR of its own. Live migration status: [policy/identities.md](https://github.com/mojomast/rizzstack/blob/main/policy/identities.md) in rizzstack (it lands with rizzstack #42). When the line quotes a sha it must be a prefix of the review's `commit_id`. The parser is one shared policy block vendored byte-identically in this gate and diff --git a/tests/test_docs_parity.py b/tests/test_docs_parity.py index 1de58c6..702d0b7 100644 --- a/tests/test_docs_parity.py +++ b/tests/test_docs_parity.py @@ -59,7 +59,7 @@ EXCLUDED_PRS: dict[int, str] = { 197: ( "docs-only: points the coordinator playbook and the lease-tamper gate doc at " - "rizzstack's GitHub App identity guide (coordinator/reviewer bots; gate by login " + "rizzstack's GitHub App identity guide (target coordinator/reviewer bots; gate by login " "marked planned); no product or changelog surface, and it carries its own exclusion " "so merging it leaves main green" ), From c5821687a04c88d242823f743e693d3c53262fae Mon Sep 17 00:00:00 2001 From: mojomast <76818041+mojomast@users.noreply.github.com> Date: Fri, 27 Nov 2026 15:30:48 -0500 Subject: [PATCH 4/4] docs: policy/identities.md is on rizzstack main (via #45) --- docs/19-coordinator-playbook.md | 2 +- docs/32-lease-tamper-gate.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/19-coordinator-playbook.md b/docs/19-coordinator-playbook.md index 757f841..73aaadf 100644 --- a/docs/19-coordinator-playbook.md +++ b/docs/19-coordinator-playbook.md @@ -31,7 +31,7 @@ The chapter is generic. Values that belong to Kyle's setup, such as caps, names, ### GitHub identities (target) -The stack is moving to one GitHub login per role. Until the migration finishes, agents still act through the owner's account. Live migration status: [policy/identities.md](https://github.com/mojomast/rizzstack/blob/main/policy/identities.md) in rizzstack (it lands with rizzstack #42). Setup guide (manifests, scripts, key custody, rotation): [rizzstack docs/github-apps.md](https://github.com/mojomast/rizzstack/blob/main/docs/github-apps.md). +The stack is moving to one GitHub login per role. Until the migration finishes, agents still act through the owner's account. Live migration status: [policy/identities.md](https://github.com/mojomast/rizzstack/blob/main/policy/identities.md) in rizzstack. Setup guide (manifests, scripts, key custody, rotation): [rizzstack docs/github-apps.md](https://github.com/mojomast/rizzstack/blob/main/docs/github-apps.md). | Role | Target GitHub identity | Will use it for | |---|---|---| diff --git a/docs/32-lease-tamper-gate.md b/docs/32-lease-tamper-gate.md index ac4beab..de31ef7 100644 --- a/docs/32-lease-tamper-gate.md +++ b/docs/32-lease-tamper-gate.md @@ -84,7 +84,7 @@ head commit: bullet. `APPROVED` as a word, `APPROVE?`, bare `APPROVE` and `APPROVE (not an independent review ...)` do not qualify. -Today the gate checks the review's text and state, not who wrote it, because every agent posts through the owner's account. **Planned:** once the coordinator and reviewer have their own GitHub App identities ([rizzstack docs/github-apps.md](https://github.com/mojomast/rizzstack/blob/main/docs/github-apps.md)), an independent approval will count only from the reviewer bot's login (`rizzstack-reviewer[bot]`) or the owner's, and reviews by the coordinator bot will count for nothing. That change will be a gate PR of its own. Live migration status: [policy/identities.md](https://github.com/mojomast/rizzstack/blob/main/policy/identities.md) in rizzstack (it lands with rizzstack #42). +Today the gate checks the review's text and state, not who wrote it, because every agent posts through the owner's account. **Planned:** once the coordinator and reviewer have their own GitHub App identities ([rizzstack docs/github-apps.md](https://github.com/mojomast/rizzstack/blob/main/docs/github-apps.md)), an independent approval will count only from the reviewer bot's login (`rizzstack-reviewer[bot]`) or the owner's, and reviews by the coordinator bot will count for nothing. That change will be a gate PR of its own. Live migration status: [policy/identities.md](https://github.com/mojomast/rizzstack/blob/main/policy/identities.md) in rizzstack. When the line quotes a sha it must be a prefix of the review's `commit_id`. The parser is one shared policy block vendored byte-identically in this gate and