dse120071750/m8m-harness-builder / skills/m8m/m8m-harness-builder
m8m-harness-builder
FlaggedBuild and edit M8M harnesses that coordinate existing tools and FlowSteps, validate milestone outputs, and track progress and resume. Reuse working implementations in place. Compile workflow changes without runtime packaging; build portable packages when requested and deliver server installations through the dedicated M8M server installer.
tests/test_builder3_templates.py
View on GitHubfrom pathlib import Path
import unittest
ROOT = Path(__file__).resolve().parents[1]
class Builder3TemplateTests(unittest.TestCase):
def test_generated_candidate_handler_never_wraps_a_flat_default_result(self) -> None:
text = (ROOT / "templates/milestone/assemble.py").read_text(encoding="utf-8")
self.assertIn("candidate executor must return explicit", text)
self.assertIn('M8M_BUILD_STATUS = "BUILD_REQUIRED"', text)
self.assertIn("M8M_RUNNABLE = False", text)
self.assertNotIn("if len(OUTPUTS) == 1", text)
self.assertNotIn("output_values =", text)
def test_model_draft_cannot_supply_branch_cycle_or_acceptance_control(self) -> None:
text = (ROOT / "templates/milestone/assemble.py").read_text(encoding="utf-8")
self.assertIn("forbidden_control", text)
self.assertIn('"receipt",', text)
self.assertIn('"branch",', text)
self.assertIn('"cycle",', text)
self.assertIn("CONTROL_KIND", text)
self.assertIn("runtime invokes their", text)
self.assertNotIn("trusted_control_receipt", text)
self.assertNotIn('control = value.get("control_receipt")', text)
def test_generated_skill_templates_preserve_builder3_boundaries(self) -> None:
for relative in ("templates/SKILL.md", "templates/product-SKILL.md"):
text = (ROOT / relative).read_text(encoding="utf-8")
collapsed = " ".join(text.split())
with self.subTest(template=relative):
self.assertIn("agents/openai.yaml", text)
self.assertIn("agents/<milestone>.yaml", text)
self.assertIn("references/<milestone>.md", text)
self.assertIn("flow.yaml", text)
self.assertIn("generated", text.lower())
self.assertIn("BUILD_REQUIRED", text)
self.assertIn("non_runnable", text)
self.assertIn("scripts/m8m_run.py", text)
self.assertIn("codebase launcher", collapsed)
self.assertIn("digest-addressed runtime release", collapsed)
self.assertIn("never import or invoke `m8m-harness-builder`", collapsed)
self.assertIn("never pushes, publishes, deploys", collapsed)
self.assertIn("activates", text)
self.assertIn("Builder 2.x run folders are untrusted import", collapsed)
if __name__ == "__main__":
unittest.main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies. | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |
| meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要". | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |