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
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This repo holds docs, install profiles, the protocol map and the **code map** fo
3. Crossing repos: `codemap/contracts.md` (seams), `codemap/change-recipes.md` (what to touch, in order), `codemap/architecture.md` (flows).
4. Looking for a symbol: `codemap/generated/<repo>.md` (ranked), or query `codemap/generated/<repo>.json` (files, symbols with `path:line`, edges, HTTP paths, env var names, CI jobs, schema ids). Don't read the JSON whole.
5. Before any risky action: `codemap/invariants.md`.
6. Reviewing a pull request as the outside reviewer (any agent, any model): `skills/rizzstack-outside-review/SKILL.md`; the coordinator's side (dispatch, validation, posting) is `policy/outside-review.md`.
6. Reviewing a pull request as the outside reviewer (any agent, any model): `skills/rizzstack-outside-review/SKILL.md`; the coordinator's side (dispatch, validation, posting) is `policy/outside-review.md`; who may act as whom on GitHub is `policy/identities.md`.

Paths in the map are written `repo/path` and resolve at the SHAs pinned in `scripts/codemap/sources.json`. Check the pin against the live repo before trusting line numbers.

Expand Down
56 changes: 56 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,62 @@ failures is worthless.

---

## 2026-11-27

*Covers 2026-11-25 to 2026-11-27, America/Toronto. Pull request numbers are read from GitHub.*

### Decided

- **Merge-time risk tiers.** A slice merges without a review only when every changed path is on its
repository's T1 allowlist, verify evidence matches the head, and no rejection stands at the head.
Everything else needs an independent review (`policy/merge-lane-v5.md`).
- **The outside reviewer is a role, not a person or a model.** Review bees fill it with the model
configured for the role (Kimi by default, DeepSeek Flash on the Nous route when Kimi wrote the
PR, the owner when neither is independent). Shadow calibration comes before any automatic
approval (`policy/outside-review.md`, `skills/rizzstack-outside-review/`).
- **Three GitHub identities** (owner, coordinator app, reviewer app) replace text-trusted reviews.
Planned in `policy/identities.md`.

### Landed

- **Gate hardening.** The lease/tamper gate with review carry-forward and "newest decisive review
governs", risk tiers with a positive T1 allowlist and an always-T3 overlay (rizzstack
[#32](https://github.com/mojomast/rizzstack/pull/32), [#35](https://github.com/mojomast/rizzstack/pull/35),
[#38](https://github.com/mojomast/rizzstack/pull/38), [#39](https://github.com/mojomast/rizzstack/pull/39)),
the lane's T1 rule ([#37](https://github.com/mojomast/rizzstack/pull/37)), and the gate vendored
byte-identically into all six product repos. The bundlebees oracle lock
([bundlebees #324](https://github.com/mojomast/bundlebees/pull/324), [#330](https://github.com/mojomast/bundlebees/pull/330),
[#331](https://github.com/mojomast/bundlebees/pull/331), [#335](https://github.com/mojomast/bundlebees/pull/335)) judges tests with main's config.
Gate-only reruns on review are in every repo.
- **Wave work.** B4 landed in hyvv ([#101](https://github.com/mojomast/hyvv/pull/101), [#102](https://github.com/mojomast/hyvv/pull/102)),
with the `unavailable` status and value redaction in [#103](https://github.com/mojomast/hyvv/pull/103). C2-PKG ships every schema in the
wheel ([hyvv #96](https://github.com/mojomast/hyvv/pull/96)). B6 was re-frozen against current main (contract `da07129c`).
- **Deploy path.** `apply-update` proves the build sha, deploys the wheel's runtime closure, smoke-tests
brief validation before restart, and reverts on failure ([hyvv #100](https://github.com/mojomast/hyvv/pull/100)).
- **Ingest.** Content-addressed diagnostic keys end the `idempotency_conflict` loop
([bundlebees #336](https://github.com/mojomast/bundlebees/pull/336)). The unit is green again.

### Incidents

- **Bypasses found in review, before merge:**
- a TOML inline table and `entry-points.pytest11` slipped past the line scanner
- a patch could rewrite the oracle config, because it was written into the worktree before `git apply`
- a root `pytest.py` replaced the test runner
- base-finding subtraction let a dangerous line be moved instead of added
- the symlink mode check refused every symlink

Each got a RED test. All 17 classes are in `skills/rizzstack-outside-review/references/bypass-catalogue.md`.
- **Self-approval.** Two scheduled review lanes posted "independent review" approvals under the owner's
account, and one PR ([bundlebees #331](https://github.com/mojomast/bundlebees/pull/331)) merged on such an approval. Both lanes are now advisory
only. The merge is marked `self_approval` in the ledger, and its delta was reviewed afterwards.
- **Merge box.** A green check from a review-triggered run does not replace a failed same-named check
from the `pull_request` run. Fixed by gate-only reruns, not by re-running full CI on reviews.
- **Deploy reverted twice.** The launcher began reporting `0.1.19+g<sha>`, and the old exact version
check reverted two correct deploys. Fixed in hyvv #100. Restart time is growing quadratically with
the attempt count ([hyvv #106](https://github.com/mojomast/hyvv/issues/106)).

---

## 2026-11-24

*Dates in this log are America/Toronto. Counts are merged pull requests read from GitHub for that
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,5 @@ The contracts are the connection points. A coordinator can speak Hyvv’s `/v1`
- **M2 canary: one RETURN accepted.** The backlog marks `M2-CANARY-RUN` `landed` on the accepted canary RETURN (digest `0515b019`) and the attributed re-dispatch, with an acceptance report for AC-001 to AC-005 and a signed reviewer attestation ([Workflow #94](https://github.com/mojomast/workflow/pull/94)). **Whether it ran on the native Windows worker is unconfirmed:** the backlog note calls it a Windows canary, but no committed record names the worker host or its platform, and the [Windows canary assessment](https://github.com/mojomast/workflow/blob/main/evidence/rails-rc/windows-canary.md) written earlier the same day records the native Windows run as blocked before live preflight.
- **Also on `main` since 17 November:** risk tiers enforced at dispatch ([BundleBees #247](https://github.com/mojomast/bundlebees/pull/247)), slop-lint as a blocking ratchet in Workflow, Hyvv, BundleBees and Orbit, the memory vault service with `MEMORY_ENABLED` still off ([Workflow #98](https://github.com/mojomast/workflow/pull/98)), the live observability snapshot for Hermes chat cards ([orbit-control-plane #4](https://github.com/mojomast/orbit-control-plane/pull/4)), [uirizz v0.1.0](https://github.com/mojomast/uirizz/releases/tag/v0.1.0) and the [code map](codemap/README.md). The day-by-day record is in [NEWS.md](NEWS.md).
- **Released tuple:** workflow v0.1.0, hyvv v0.1.18, bundlebees v0.2.0 and uirizz v0.1.0 are tagged; orbitdesktop 0.4.0 awaits its tag. [COMPAT.md](COMPAT.md) lists the exact commits and the pins bundlebees ships with them, and [docs/RELEASING.md](docs/RELEASING.md) the tag order and the immutable-release steps.
- **Since 24 November: merges and reviews.** A lease/tamper gate with merge-time risk tiers runs in every repository, the merge lane can merge a verified low-risk slice without a review (in dry run), and the outside reviewer is now a role any configured model can fill. See [policy/merge-lane-v5.md](policy/merge-lane-v5.md), [policy/outside-review.md](policy/outside-review.md) and [policy/identities.md](policy/identities.md).
- **For maintainers:** [NEWS.md](NEWS.md) keeps the dated operational history. The [coordinator playbook](https://github.com/mojomast/workflow/blob/main/docs/19-coordinator-playbook.md) explains authorization, review, and the human decisions required for merge, release, and deployment. [docs/deploy-hygiene.md](docs/deploy-hygiene.md) covers the deploy hosts: every deploy directory is a detached checkout of a merged commit, development happens in worktrees, and a branch, a dirty tree or a running SHA behind the checkout raises a watchdog finding.
9 changes: 6 additions & 3 deletions codemap/L1/bundlebees.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ Pinned `cb8946e` (plugin.yaml 0.2.0; last tag v0.1.1) · https://github.com/mojo
| Plugin registration, tools, hook | `bundlebees/__init__.py` (registers tools; `pre_tool_call` hook asks Hermes approval before cancel/review), `bundlebees/plugin.yaml` |
| Tool schemas + handlers (`bundlebees_status`, `bundlebees_dispatch`, `bundlebees_attempt`, `bundlebees_host_prompt`, `bundlebees_route_preview`; optional `bundlebees_rails`) | `bundlebees/bundlebees_plugin/tools.py` (`_dispatch` holds the risk-tier and contract gates) |
| Brief validation | `bundlebees/bundlebees_plugin/brief.py` |
| Risk tiers: path-derived floor, effective tier | `bundlebees/bundlebees_plugin/risk.py`; tier → process policy table `bundlebees/bundlebees_plugin/risk_policy.py` |
| Risk tiers: path-derived floor, effective tier | `bundlebees/bundlebees_plugin/risk.py`, floor data `bundlebees/bundlebees_plugin/policy/risk-floor.json` (the tier → process table is parked unwired in `bundlebees/contrib/unwired/risk_policy.py`) |
| Oracle lock: tests judged with main's pytest config, autoload off, `python -P`; harness-owned names refused in patches | `bundlebees/bundlebees_plugin/oracle_lock.py`, used by `bundlebees/bundlebees_plugin/verify_local.py` |
| Test-subversion scan (repo-backed; base findings subtracted only on unchanged lines and recorded in the verify evidence) | `bundlebees/bundlebees_plugin/subversion_scan.py` |
| Verify sandbox, pinned tools (uv, pwsh) staged with owner/mode checks and recorded hashes | `bundlebees/bundlebees_plugin/sandbox.py` |
| ACDD contracts (freeze by hash), TDD evidence, contract gate | `bundlebees/bundlebees_plugin/contract.py`, `bundlebees/bundlebees_plugin/tdd.py`, `bundlebees/bundlebees_plugin/contract_gate.py` |
| File leases | `bundlebees/bundlebees_plugin/leases.py` |
| HTTP clients (Orbit adapter, launcher `/v1`) | `bundlebees/bundlebees_plugin/client.py`, `bundlebees/bundlebees_plugin/launcher_adapter.py`, `bundlebees/bundlebees_plugin/adapters.py` |
Expand All @@ -23,7 +26,7 @@ Pinned `cb8946e` (plugin.yaml 0.2.0; last tag v0.1.1) · https://github.com/mojo
| Factory loop (queue → landing bridge → event inbox → scheduler) | `bundlebees/bundlebees_plugin/factory_driver.py`, `bundlebees/bundlebees_plugin/work_scheduler.py`, `bundlebees/bundlebees_plugin/queue.py`, `bundlebees/bundlebees_plugin/landing_bridge.py`, `bundlebees/bundlebees_plugin/event_consumer.py`, scout `bundlebees/bundlebees_plugin/scout_hook.py` |
| Board sync to Hermes kanban | `bundlebees/bundlebees_plugin/board_sync.py`, `bundlebees/bundlebees_plugin/board_dispatch.py` |
| Recovery, research-before-retry, RETURN | `bundlebees/bundlebees_plugin/recovery.py`, `bundlebees/bundlebees_plugin/research_gate.py`, `bundlebees/bundlebees_plugin/return_report.py` |
| Action queue + fencing, owner decisions | `bundlebees/bundlebees_plugin/coordinator_actions.py`, `bundlebees/bundlebees_plugin/owners.py`, Hive docket `bundlebees/bundlebees_plugin/hive_docket.py` |
| Action queue + fencing, owner decisions | `bundlebees/bundlebees_plugin/coordinator_actions.py`, `bundlebees/bundlebees_plugin/owners.py`, Hive docket (parked, unwired) `bundlebees/contrib/unwired/hive_docket.py` |
| Scrubbing, child env, URL guards, path confinement | `bundlebees/bundlebees_plugin/security.py` |
| Rails ledger runtime (source of truth; vendored elsewhere) | `bundlebees/contrib/rizzstack_rails` with `vendor-manifest.json`; Rails sources/actions `bundlebees/bundlebees_plugin/rails_actions.py`, `bundlebees/bundlebees_plugin/rails_remote_source.py` |
| Desktop pane, dashboard API, operator skill | `bundlebees/desktop/plugin.js`, `bundlebees/dashboard/plugin_api.py`, `bundlebees/skills/bundlebees-operator` |
Expand All @@ -40,7 +43,7 @@ Pinned `cb8946e` (plugin.yaml 0.2.0; last tag v0.1.1) · https://github.com/mojo
## Change recipes

- **Add a tool:** handler + schema in `bundlebees/bundlebees_plugin/tools.py`, register in `bundlebees/__init__.py`, list it under `provides_tools` in `bundlebees/plugin.yaml`, re-measure with `bundlebees/scripts/measure_schemas.py`, tests in `bundlebees/tests`.
- **Change the risk floor or policy:** `bundlebees/bundlebees_plugin/risk.py` (path patterns), `bundlebees/bundlebees_plugin/risk_policy.py` (phases, reviewer, min verifications). Tiers only go up; unknown fails closed to high.
- **Change the risk floor or policy:** `bundlebees/bundlebees_plugin/risk.py` (path patterns), `bundlebees/bundlebees_plugin/policy/risk-floor.json` (floor data; the unwired process table is `bundlebees/contrib/unwired/risk_policy.py`). Tiers only go up; unknown fails closed to high.
- **Support a new worker backend:** implement the adapter contract in `bundlebees/docs/ADAPTERS.md` (`bundlebees/bundlebees_plugin/adapters.py`); don't teach the coordinator the backend's internals.
- **Change the Rails runtime:** edit `bundlebees/contrib/rizzstack_rails`, regenerate its manifest, then re-vendor with `hyvv/scripts/vendor_rails.py` and orbitdesktop's vendor check (`orbitdesktop/tests/test_rails_vendor.py`).

Expand Down
6 changes: 5 additions & 1 deletion codemap/L1/hyvv.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ Pinned `9691837` (package 0.1.17; launcher release 0.1.15) · https://github.com
| Rails worker recorder + read-only replication (`/v1/rails/...`) | `hyvv/rails_emitter.py`, `hyvv/rails_export.py`, `hyvv/rails_log_source.py`, doc `hyvv/docs/rails.md` |
| Vendored Rails runtime (subset, from bundlebees) | `hyvv/contrib/rizzstack_rails`, refreshed by `hyvv/scripts/vendor_rails.py` |
| Brief / result schemas the launcher accepts | `hyvv/brief.schema.json`, `hyvv/result.schema.json`, example config `hyvv/config.example.json` |
| `rizzstack.brief/1` validation (report-only; `brief_validation` on the attempt: valid / invalid / unversioned / unavailable, no values echoed) | `brief_validation` in `hyvv/launcher.py`, vendored validator `hyvv/hyvv/rizzstack_validators.py`, frozen schemas in `hyvv/schemas` |
| Attempt journal (one JSON per attempt, per-attempt save lock, stale `lseq` writes refused) | `Launcher._save` in `hyvv/launcher.py` |
| Deploy to the worker host (`apply-update`: build-sha proof, wheel-derived payload, pre-restart smoke, automatic revert) | `hyvv/scripts/launcher-admin.ps1`, `hyvv/scripts/deploy_payload.py` |
| Install, start, doctor (Windows-first) | `hyvv/scripts` (`install.ps1`, `install.sh`, `start.ps1`, `doctor.ps1`, `contract-test.sh`) |
| Deployment + pins | `hyvv/docs/DEPLOYMENT.md`, `hyvv/docs/STACK-PINS.md`, ADRs in `hyvv/docs/adr` |

Expand All @@ -32,12 +35,13 @@ Implemented in the launcher: `GET /v1/version`, `GET /v1/health`, `GET|POST /v1/

## CI gates

`ci.yml`: `test` (pytest), `scan` (gitleaks), `windows-provisioning`, `bee-ci-*` shadows, aggregate `ci`. `release.yml` builds release assets (`hyvv/scripts/build_release_assets.py`). `slop-lint.yml` blocks new findings.
`ci.yml`: `test` (pytest), `scan` (gitleaks), `windows-provisioning`, `bee-ci-*` shadows, aggregate `ci`, `lease-tamper` and the required aggregate `ci-gate`; `review-rerun.yml` re-runs a failed `lease-tamper` on a submitted review. The wheel test checks that every file under `schemas/` ships. `release.yml` builds release assets (`hyvv/scripts/build_release_assets.py`). `slop-lint.yml` blocks new findings.

## Change recipes

- **Add a `/v1` route:** `hyvv/contract/v1/openapi.yaml` + a schema in `hyvv/contract/v1/schemas` + error codes, conformance tests under `hyvv/contract/v1/tests`, implement in `hyvv/contract/v1/reference.py` first, then in `make_handler` in `hyvv/launcher.py`, then update `hyvv/contract/v1/STATUS.json` and run `python -m contract.v1.status --write`. Additive only; a break is `/v2` served alongside for a release. Then update clients: `bundlebees/bundlebees_plugin/client.py`, `orbitdesktop/server/local-workers.mjs`.
- **Add a model/provider route:** `model_spec` and config handling in `hyvv/launcher.py`, `hyvv/config.example.json`. Keys are read on the host only, never echoed.
- **Deploy:** merge first, then the owner's typed yes, then one `apply-update <main sha>` through `hyvv/scripts/launcher-admin.ps1`. Success means the reported `+g<sha>` equals the target, the smoke passes (`brief_validation` of a valid probe is `valid`), and health is back. On failure it reverts by itself, so don't retry in a loop.
- **Change what a bee may touch:** scope checks (`in_assigned_scope`) in `hyvv/launcher.py`; the coordinator-side lease is in bundlebees.

## Invariants
Expand Down
5 changes: 4 additions & 1 deletion codemap/change-recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ Per-repo recipes are in each `codemap/L1/<repo>.md`. These are the ones that cro
| Add an Observatory panel | `workflow/observability/schemas` → `workflow/contrib/rizzstack-observability/collector.py` → `workflow/apps/rizzstack-observatory` and `orbitdesktop/apps/rizzstack-observatory` | `observability` job in workflow CI |
| Add a new worker backend (not Cua) | implement the adapter contract in `bundlebees/docs/ADAPTERS.md` in `bundlebees/bundlebees_plugin/adapters.py`, or make the backend speak hyvv `/v1` | coordinator must not learn backend internals |
| Add a model/provider | host routing in `hyvv/launcher.py` (`model_spec`) + `hyvv/config.example.json`; route preview in bundlebees (`bundlebees_route_preview` in `bundlebees/bundlebees_plugin/tools.py`); provider attribution in `orbit-control-plane/src/obs-collect.mjs` | keys stay on the host; named model is authoritative |
| Add a risk-sensitive path | path floor in `bundlebees/bundlebees_plugin/risk.py`; policy in `bundlebees/bundlebees_plugin/risk_policy.py` | high tier requires a frozen `acdd/1` contract |
| Add a risk-sensitive path | path floor in `bundlebees/bundlebees_plugin/risk.py` and `bundlebees/bundlebees_plugin/policy/risk-floor.json` (the tier → process table is parked, unwired, in `bundlebees/contrib/unwired/risk_policy.py`) | high tier requires a frozen `acdd/1` contract |
| Change the merge gate (lease/tamper, risk tier T1/T3, always-T3) | `.github/scripts/lease_tamper.py` in this repo + `tests/test_risk_tier.py` and `.github/scripts/gate_drill.py` cases; then copy byte-identically to `workflow/.github/scripts/lease_tamper.py`, `hyvv/.github/scripts/lease_tamper.py`, `bundlebees/.github/scripts/lease_tamper.py`, `orbitdesktop/.github/scripts/lease_tamper.py`, `orbit-control-plane/.github/scripts/lease_tamper.py`, `uirizz/.github/scripts/lease_tamper.py` and update the lane's pinned script sha | owner + outside review; never pre-authorizable |
| Deploy the hyvv launcher | `hyvv/scripts/launcher-admin.ps1` (`apply-update`), payload from the built wheel via `hyvv/scripts/deploy_payload.py`, health wait in `hyvv/scripts/start.ps1` | owner's typed yes; build-sha proof, pre-restart smoke, automatic revert |
| Review a pull request | `skills/rizzstack-outside-review/SKILL.md` (reviewer) and `policy/outside-review.md` (coordinator) | reviewer model family differs from every author family |
| Add an A2UI component | only if in the official Basic Catalog: `uirizz/uirizz_plugin/catalog.py` + `uirizz/uirizz_plugin/validate.py` + `uirizz/desktop/src/card.jsx` | token budgets; no Progress/Chart/Table in the catalog |
| Add a CI gate to every repo | each repo's `.github/workflows`; pin actions by full SHA like the existing workflows; `permissions: contents: read` | gitleaks before push; never weaken an existing gate to get green |
| Update this map after upstream merges | bump `sha` in `scripts/codemap/sources.json` → `python3 scripts/codemap/build.py` → fix any `--verify-docs` failures in hand-written files | `python3 scripts/codemap/build.py --check` |
Loading