Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/19-coordinator-playbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 (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. 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 |
|---|---|---|
| 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 |

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

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.
Expand Down
2 changes: 2 additions & 0 deletions docs/32-lease-tamper-gate.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. 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
in the merge lane (`scripts/merge_lane_v5.py`): two parsers drifted once and
Expand Down
6 changes: 6 additions & 0 deletions tests/test_docs_parity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (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"
),
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 "
Expand Down