Skip to content

dse120071750/m8m-harness-builder / skills/m8m/m8m-harness-builder/templates

__SKILL_NAME__

Verified

M8M 3.1 product skill whose closed native source compiles into a displayable, executable milestone workflow.

milestone/test_assemble.py

View on GitHub
from __future__ import annotations

import importlib.util
import tempfile
import unittest
from pathlib import Path

ASSEMBLE = Path(__file__).resolve().parents[1] / "assemble.py"
_spec = importlib.util.spec_from_file_location("__STEP_ID___assemble", ASSEMBLE)
assert _spec is not None and _spec.loader is not None
assemble = importlib.util.module_from_spec(_spec)
_spec.loader.exec_module(assemble)


class AssembleTests(unittest.TestCase):
    def test_generated_handler_is_explicitly_non_runnable(self) -> None:
        self.assertEqual(assemble.M8M_BUILD_STATUS, "BUILD_REQUIRED")
        self.assertFalse(assemble.M8M_RUNNABLE)
        with self.assertRaisesRegex(RuntimeError, "BUILD_REQUIRED/non-runnable"):
            assemble.run({"request": {"text": "x"}})

    def test_candidate_adapter_requires_named_outputs(self) -> None:
        with self.assertRaisesRegex(ValueError, "explicit"):
            assemble._candidate({"result": {"value": "x"}})
        self.assertEqual(
            assemble._candidate({"outputs": {"result": {"value": "x"}}}),
            {"outputs": {"result": {"value": "x"}}},
        )


if __name__ == "__main__":
    unittest.main()
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall