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.
scripts/verify_platform_contract_parity.py
View on GitHub"""Verify Builder 3.1 contract bytes against a platform-vendored schema root."""
from __future__ import annotations
import argparse
import hashlib
import json
from pathlib import Path
from typing import Sequence
from m8m_build_steps import (
BUILDER_ROOT,
CONTRACT_BUNDLE_FILES,
_contract_bundle_lock,
)
class ContractParityError(RuntimeError):
pass
def verify_platform_contract_parity(platform_schema_root: Path) -> dict[str, object]:
root = Path(platform_schema_root).resolve()
lock_path = root / "m8m.contract_bundle.builder-3.1.lock.json"
try:
lock = json.loads(lock_path.read_text(encoding="utf-8"))
except (OSError, UnicodeDecodeError, json.JSONDecodeError) as exc:
raise ContractParityError(f"platform contract lock is unreadable: {lock_path}") from exc
if lock.get("schema") != "m8m.contract_bundle_lock_manifest.v1":
raise ContractParityError("platform contract lock schema is invalid")
if lock.get("contract_bundle") != _contract_bundle_lock():
raise ContractParityError("platform contract bundle identity differs from Builder 3.1")
declared = lock.get("contracts")
if not isinstance(declared, list):
raise ContractParityError("platform contract lock members are invalid")
by_name = {
str(item.get("name") or ""): str(item.get("digest") or "")
for item in declared
if isinstance(item, dict)
}
if tuple(by_name) != CONTRACT_BUNDLE_FILES:
raise ContractParityError("platform contract member order differs from Builder 3.1")
for name in CONTRACT_BUNDLE_FILES:
builder_bytes = (BUILDER_ROOT / "contracts" / name).read_bytes()
try:
platform_bytes = (root / name).read_bytes()
except OSError as exc:
raise ContractParityError(f"platform contract member is missing: {name}") from exc
digest = "sha256:" + hashlib.sha256(builder_bytes).hexdigest()
if by_name[name] != digest:
raise ContractParityError(f"platform contract lock digest differs: {name}")
if platform_bytes != builder_bytes:
raise ContractParityError(f"platform contract bytes differ: {name}")
return {
"schema": "m8m.builder_platform_contract_parity.v1",
"status": "PASS",
"contract_bundle": _contract_bundle_lock(),
"member_count": len(CONTRACT_BUNDLE_FILES),
"platform_schema_root": str(root),
}
def main(argv: Sequence[str] | None = None) -> int:
parser = argparse.ArgumentParser()
parser.add_argument("--platform-schema-root", required=True, type=Path)
args = parser.parse_args(argv)
try:
report = verify_platform_contract_parity(args.platform_schema_root)
except ContractParityError as exc:
parser.error(str(exc))
print(json.dumps(report, ensure_ascii=False, sort_keys=True))
return 0
if __name__ == "__main__":
raise SystemExit(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 |