Add Technical Coordinator dispatch and communication packages
coordinator-dispatch (schema 1, with wave-selection.md) guides semantic parallel wave selection, resource-affinity batching, Autopilot Off/On discipline, and typed portfolio_conflict / unique_resource_needed escalation over the owner's projections. coordinator-communication (schema 3, communication_context) shapes Control Tower status reports. Both target the proposed v0.17.0 release. OVERRIDING.md lists both packages and gains a section on customizing wave aggressiveness, contention heuristics, and reporting tone without touching owner gates; the contract and README note the in-source Coordinator packages. Refs #26 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
becb748094
commit
f170b339c1
10 files changed
+236
-7
No files matched your search
@@ -130,6 +130,13 @@ class OverrideGuideTests(unittest.TestCase):
|
||||
self.assertEqual(sorted(listed), sorted(packages))
|
||||
self.assertEqual(set(seen), set(ROLE_STEPS))
|
||||
|
||||
def test_coordinator_customization_names_the_seams_and_the_owner_gates(self):
|
||||
text = section(self.text, "Customize the Technical Coordinator").lower()
|
||||
for phrase in ("wave aggressiveness", "contention heuristics", "reporting tone",
|
||||
"`coordinator-dispatch`", "`wave-selection.md`", "`coordinator-communication`",
|
||||
"`portfolio_conflict`", "`unique_resource_needed`", "leases"):
|
||||
self.assertIn(phrase.lower(), text)
|
||||
|
||||
def test_layer_four_template_is_a_valid_user_package(self):
|
||||
template = section(self.text, "Layer-4 authoring template")
|
||||
skill = re.search(r"```markdown\n(.*?)```", template, re.S).group(1)
|
||||
|
||||
+38
-1
@@ -24,7 +24,7 @@ class PackageTests(unittest.TestCase):
|
||||
self.assertNotIn("save a research file", text)
|
||||
|
||||
def test_communication_packages_declare_their_treatment(self):
|
||||
for role in ("planner", "implementer", "reviewer"):
|
||||
for role in ("planner", "implementer", "reviewer", "coordinator"):
|
||||
package = ROOT / f"packages/{role}-communication"
|
||||
result = check_package(package)
|
||||
manifest = json.loads((package / "relayview-skill.json").read_text())
|
||||
@@ -34,6 +34,43 @@ class PackageTests(unittest.TestCase):
|
||||
self.assertIn("acknowledgement", text)
|
||||
self.assertIn("Markdown", text)
|
||||
|
||||
def test_coordinator_packages_are_automatic_v0_17_0_coordination_guidance(self):
|
||||
expected = {"coordinator-dispatch": (1, ["SKILL.md", "wave-selection.md"]),
|
||||
"coordinator-communication": (3, ["SKILL.md"])}
|
||||
for name, (schema, files) in expected.items():
|
||||
with self.subTest(package=name):
|
||||
package = ROOT / "packages" / name
|
||||
check_package(package)
|
||||
manifest = json.loads((package / "relayview-skill.json").read_text())
|
||||
self.assertEqual(manifest["schemaVersion"], schema)
|
||||
self.assertEqual((manifest["role"], manifest["step"]), ("coordinator", "coordination"))
|
||||
self.assertEqual(manifest["source"], {"kind": "first-party", "reference": "v0.17.0"})
|
||||
self.assertEqual([item["path"] for item in manifest["files"]], files)
|
||||
frontmatter = (package / "SKILL.md").read_text().split("---", 2)[1]
|
||||
self.assertNotIn("disable-model-invocation", frontmatter)
|
||||
self.assertIn("relayview-version: 0.17.0", frontmatter)
|
||||
size = sum((package / path).stat().st_size for path in files + ["relayview-skill.json"])
|
||||
self.assertLess(size, 16 * 1024, "well under the 128 KiB package cap")
|
||||
|
||||
def test_coordinator_dispatch_separates_judgment_from_owner_authority(self):
|
||||
package = ROOT / "packages/coordinator-dispatch"
|
||||
text = (package / "SKILL.md").read_text() + (package / "wave-selection.md").read_text()
|
||||
for phrase in ("Portfolio Read Model", "Lease Registry", "branch and pull-request footprints",
|
||||
"schema migration", "architectural decision", "ml-server", "GPU",
|
||||
"Autopilot is `Off`", "Autopilot is `On`", "safe turn boundary",
|
||||
"`portfolio_conflict`", "`unique_resource_needed`", "queue reason",
|
||||
"The owner grants leases"):
|
||||
self.assertIn(phrase, text)
|
||||
# Nudging and reorientation belong to coordinator-recovery.
|
||||
for phrase in ("nudge", "reorient", "Working Ledger"):
|
||||
self.assertNotIn(phrase, text)
|
||||
|
||||
def test_coordinator_communication_reports_the_control_tower(self):
|
||||
text = (ROOT / "packages/coordinator-communication/SKILL.md").read_text()
|
||||
for phrase in ("running wave", "lease", "ml-server", "held", "contention", "stalled",
|
||||
"Review Packet inbox", "Autopilot"):
|
||||
self.assertIn(phrase, text)
|
||||
|
||||
def test_automatic_review_is_only_extracted_presentation(self):
|
||||
package = ROOT / "packages/code-review-auto"
|
||||
check_package(package)
|
||||
|
||||
Reference in new issue
Block a user