feat(orchestrator): tasks tab with register, inbox and queue

Add a Tasks tab that lists the kvb-org-rasci register next to the inbox
and the heavy-job queue, in list, board and RASCI matrix views, each
task with its roles, WSJF, open work and the merge flow of its worktree.

- Task priority pins and WSJF estimates are signed with the operator's
  passkey and applied by the runner through rasci.py; the hub verifies
  the signature itself before it queues a job or logs the change, the
  runner verifies it again and runs only the checked argv, from /, with
  a pinned PATH and a 30 s process-group limit.
- The runner refuses task changes into a council that is a symlink, not
  owned by its uid or given by a relative path, and while the installed
  council.py, nofollow.py or rasci.py differ from the tree.
- Only tasks the hub can sign whole are editable (task slug and length).
- Page lookups keyed by register text use Object.hasOwn, so a status or
  party named like an Object.prototype member cannot break the views.
- The inbox screen renders through the tasks screen, so its task filter
  shows with "Wartet auf Operator" pressed.

Tests: 604 unit tests OK, e2e 15/15 OK (Chromium and Firefox).

🎯 Fix: 93 %
💥 Break: 5 %
💸 Cost: 100 %
⏱️ Time: –
🛡️ Security: 100 %
🏆 Score: 88
🚦 Gate: ✅ 90/5, cost and time <= 100, security 100 %

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-07 23:43:36 +00:00
1 parent 01f791a1f4
commit c1310c3322
37 files changed
+1436 -80

No files matched your search

+43
View File
@@ -149,6 +149,49 @@ class TestOrchestratorMigration(unittest.TestCase):
self.assertIn("run 'make install' to enable", done.stderr)
self.assertNotIn(f"{NEW}-offices.path", json.loads(self.state.read_text(encoding="utf-8"))["enabled"])
def test_the_runner_unit_waits_for_the_installed_skill_scripts_of_this_tree(self):
self.assertIn(f"{NEW}-runner.service", self.install()["enabled"])
runner = f"{NEW}-runner.service"
for script in HOST_SCRIPTS:
with self.subTest(script=script):
installed = self.home / ".claude" / "skills" / script
kept = installed.read_text(encoding="utf-8")
installed.write_text(kept + "\n", encoding="utf-8")
state = json.loads(self.state.read_text(encoding="utf-8"))
self.state.write_text(json.dumps({**state, "calls": [], "enabled": sorted({*state["enabled"], runner})}), encoding="utf-8")
done = subprocess.run(["bash", str(SCRIPT), "install"], env=self.env, capture_output=True, text=True, timeout=120, check=False)
self.assertEqual(done.returncode, 0, done.stderr)
self.assertIn(f"run 'make install' to enable {runner}", done.stderr)
after = json.loads(self.state.read_text(encoding="utf-8"))
self.assertNotIn(runner, after["enabled"])
self.assertNotIn(["systemctl", "--user", "restart", runner], after["calls"])
refused = subprocess.run(["bash", str(SCRIPT), "runner"], env=self.env, capture_output=True, text=True, timeout=120, check=False)
self.assertEqual(refused.returncode, 1, refused.stderr)
self.assertNotIn(runner, json.loads(self.state.read_text(encoding="utf-8"))["enabled"])
installed.write_text(kept, encoding="utf-8")
def test_install_refreshes_and_restarts_only_an_enabled_runner_unit(self):
units = self.home / ".config" / "systemd" / "user"
(units / "default.target.wants" / f"{OLD}-runner.service").unlink()
(units / f"{OLD}-runner.service").unlink()
shipped = (REPO_ROOT / "orchestrator" / "systemd" / f"{NEW}-runner.service").read_text(encoding="utf-8")
restart = ["systemctl", "--user", "restart", f"{NEW}-runner.service"]
for enabled in (False, True):
with self.subTest(enabled=enabled):
self.write(units / f"{NEW}-runner.service", "[Unit]\nstale\n")
state = json.loads(self.state.read_text(encoding="utf-8"))
self.state.write_text(json.dumps({**state, "calls": [], "enabled": [f"{NEW}-runner.service"] if enabled else []}), encoding="utf-8")
calls = self.install()["calls"]
self.assertEqual((units / f"{NEW}-runner.service").read_text(encoding="utf-8") == shipped, enabled)
self.assertEqual(restart in calls, enabled)
def test_every_shipped_service_pins_the_path(self):
units = sorted((REPO_ROOT / "orchestrator" / "systemd").glob("*.service"))
self.assertIn(f"{NEW}-runner.service", [unit.name for unit in units])
for unit in units:
with self.subTest(unit=unit.name):
self.assertIn("Environment=PATH=/usr/bin:/bin", unit.read_text(encoding="utf-8").splitlines())
def test_install_ships_no_bytecode_from_the_tree(self):
planted = REPO_ROOT / "orchestrator" / "client" / "__pycache__" / "planted.cpython-0.pyc"
planted.parent.mkdir(exist_ok=True)