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.
seeds/cycle_receipt/tool.py
View on GitHub"""Choose cycle pass|fail from a runtime-owned post-admission request.
It does not treat remaining==0 as the gate. The driver updates the cycle ledger.
"""
from __future__ import annotations
from typing import Any
def _recommended(input_data: dict[str, Any]) -> str:
inputs = input_data.get("inputs") if isinstance(input_data.get("inputs"), dict) else {}
candidate = input_data.get("candidate") if isinstance(input_data.get("candidate"), dict) else {}
outputs = candidate.get("outputs") if isinstance(candidate.get("outputs"), dict) else {}
sources = [outputs, *[value for value in outputs.values() if isinstance(value, dict)], inputs]
for source in sources:
value = source.get("recommended_cycle")
if isinstance(value, str) and value.strip() in {"pass", "fail"}:
return value.strip()
for key in ("accepted", "ready", "quality_passed"):
value = source.get(key)
if isinstance(value, bool):
return "pass" if value else "fail"
return ""
def run(input_data: dict[str, Any], params: dict[str, Any] | None = None, **_: Any) -> dict[str, Any]:
del params
payload = dict(input_data or {})
chosen = _recommended(payload) or "pass"
control = payload.get("control") if isinstance(payload.get("control"), dict) else {}
row = str(control.get("row") or "")
if not chosen:
return {
"ok": False,
"cycle": "",
"row": row,
"reason": "no cycle pass or fail decided",
}
reason = str(payload.get("reason") or draft_reason(payload, chosen))
return {
"ok": True,
"cycle": chosen,
"row": row,
"reason": reason,
}
def draft_reason(payload: dict[str, Any], chosen: str) -> str:
control = payload.get("control") if isinstance(payload.get("control"), dict) else {}
if chosen == "pass":
return str(control.get("pass_rule") or "round passed; preserve and update ledger")
return "round failed; purge residue; row stays unfinished"
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 |