fix(hub): commit rows run only after their reviews, which now hold two hours

Stage 2.0's commit row failed because its approvals lived 15 minutes and the row ran before them (operator picks 2026-11-20). A review approval now holds two hours (signing.REVIEW_LIFETIME 7200 for all-review batches, signing.lifetime and checked_approval shared by the verifier and the hub). operator.py run reads the approval.py verify steps of a row's command (VERIFY_STEP, the same pattern signing uses), asks the hub through the client's hub_api for each review and skips the row with 'waits <name>: <why>; the row stays open' until every one is approved; a hub that does not answer, a missing client or a port above 65535 also skips it. The inbox lists each commit row's reviews (inbox.linked) with a reviews k/n approved pill; its Run button becomes 'Approve n and run', which brings the row's pending reviews into the selection, signs each rule and red-gate review alone first and then the rest once; approving.apply settles operator rows after the reviews they verify. kvb-git-diff and requirement 020 describe it.

Stacked on grantall (14bb4f3). Conflicts in page-inbox.js (grantNote and DENY_NOTE next to the ux reason chips) and kvb-git-diff/SKILL.md (the superseded line next to the two-hour paragraph) keep both sides. ruff and node --check pass.

Tests: tests/test_operator.py ran once before the commit (operator exception): 51 passed, 61 subtests. test_hub_approval, test_hub_console, test_hub_grant_mode and the fixture updates are written, not run: the full suite runs once on master after all bundles (operator order).

Security: MEDUSA over the staged tree on master: 100, no findings, all 16 files covered. WEB-SSRF at skills/kvb-org-operator/scripts/operator.py:996 (urllib.request to the local hub at base_url(port)) stays accepted as by design after kvb-think-criticize with 1 skeptic over 2 rounds and the operator's accept on 2026-11-21: the port is checked against 65535, the opener has no proxy and no redirects.

🎯 Fix: 92 %
💥 Break: 5 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 87
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-22 16:41:45 +00:00
1 parent 14bb4f38df
commit 0fa05c54d5
16 files changed
+288 -33

No files matched your search

+8 -4
View File
@@ -23,10 +23,13 @@ pass.
and every option pick toggles its item into one shared selection
(pressed state): inbox rows, Home, stream rows, the review sheet and the
key `a`. A decision or decision row keeps the option picked for it;
picking the same option again takes it out. Grant n signs every
batchable item under one passkey signature, then asks one more
picking the same option again takes it out. Grant n first asks one
signature per rule request and per red-gate review, one after the
other, since the server accepts neither inside a batch. Deny always
other, since the server accepts neither inside a batch, then signs
every batchable item under one passkey signature. A commit row brings
the pending reviews its `approval.py verify` steps check along, and
the server settles it after them, so it runs only once they are
approved (operator 2026-11-20: approve-and-run). Deny always
acts at once with its reason; the Match deck and the palette keep their
own confirmed release. Rejected: a unified tray where denials collect
too; rules, red-gate reviews and option picks acting directly in Select
@@ -103,7 +106,8 @@ flowchart TD
- [ ] Unit: view store validation of `approval.mode`; page vm: a grant in
Select toggles `ui.selected` without a post, a grant in Direct posts,
an option pick collects with its label, a rule and a red-gate review
collect and get their own signature after the batch, the tray counts.
collect and get their own signature before the batch, a commit row
grants the reviews it verifies first, the tray counts.
- [ ] Integration: n/a: the server and the signing path stay unchanged
(decision 6).
- [ ] E2E: Chromium and Firefox at 1920, 1366 and 390: the continuous diff