feat(orchestrator): every entry that waits on the operator is a Match card

Match now builds asks, choices, decision rows and rule requests from the inbox items, beside commits and commands, so its card count follows the Tasks badge. A decision card shows its options with the recommended one marked; a pick is released with the same single passkey, and the hub posts the answer of a decision row to the row's agent itself and keeps the row off the stack until its question changes. A choice cannot be rejected; a rule card's accept opens its row, its reject carries the feedback. Every card shows the scores its text carries as labels, value included; outside a commit's score line only an emoji-led score counts. Answered decision rows leave the badge and show as answered in the inbox. Requirement 012 records the operator's amendment of 2026-11-19 and decision 11.

🎯 Fix: 92 %
💥 Break: 4 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 88
🚦 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-19 10:14:39 +00:00
1 parent 67cbe0ddd3
commit c3dc1b8c58
13 files changed
+489 -55

No files matched your search

+18 -1
View File
@@ -4,7 +4,7 @@ import secrets
import time
from .asking import ask_state
from .choosing import answer_signed
from .choosing import answer_signed, answered, row_answer_signed
from .cleanup import cleanup_request
from .denying import (
DENIABLE,
@@ -179,6 +179,8 @@ class Approving:
if item["note"] is not None:
return self.deny(item, proof)
if item["kind"] == "operator":
if item["label"]:
return self.answer_row(item, proof)
if not all(self.payload_holds(bound) for bound in item.get("bound", [])):
return "refused: a payload file changed since the release"
return self.queue_job(item, proof)
@@ -225,6 +227,8 @@ class Approving:
if row is None:
raise Missing(str(raw["id"]))
visible({name: row[name] for name in ("task", "command", "directory")})
if row["check"] == "decision" and raw["verb"] == "approve":
return self.row_answer_entry(raw, row, tasks)
if raw["verb"] == "approve" and not runnable(row):
raise ToolError("an operator row is approved only when it holds a directory and a command")
if digest(row["command"]) != raw["sha256"]:
@@ -234,6 +238,19 @@ class Approving:
bound = self.payload_bound(row, raw["payload"]) if "payload" in raw else []
return {**inbox_item(raw, "", row["command"], "", operator_signed(row), self.requester(raw, adder(tasks[row["task"]]))), "bound": bound}
def row_answer_entry(self, raw: dict, row: dict, tasks: dict[str, dict]) -> dict:
"""Returns:
The signed item of a decision row answered with one of its option
labels: the post row_answer_signed() builds to the row's agent.
"""
if raw["label"] not in [option["label"] for option in row["options"]] or "payload" in raw:
raise ToolError("a decision row is approved with one of its option labels and no payload")
if digest(row["command"]) != raw["sha256"]:
raise Conflict({"id": row["task"], "status": "changed"})
if answered(self.answers.get(row["task"]), row):
raise Conflict({"id": row["task"], "status": "answered"})
return inbox_item(raw, raw["label"], row["command"], "", row_answer_signed(row, adder(tasks[row["task"]]), raw["label"]), "")
def item_of(self, raw: object, tasks: dict[str, dict]) -> dict:
if not isinstance(raw, dict):
raise ToolError("every item must be an object with kind, id, verb, label and sha256, and a denial also channel, reason and to")