Scope
Run the standalone M9-A0 research spike against the pinned OpenClaw 2026.4.14 contract before any M9-A implementation begins.
This issue produces integration evidence and an explicit hook/bootstrap integration decision. It does not enable the M9-A product contract, implement trusted execution, or authorize an OpenClaw upgrade.
Required serial order
The next layer may start only after the previous layer passes:
- Source/type/contract inspection
- Inspect the pinned source and types for
before_tool_call, tool_result_persist, before_prompt_build, bootstrap/system context, and observation hooks.
- Record call sites, await/block behavior, throw/timeout behavior, priority, and error propagation.
- Container hook runner + fake provider
- Run the real hook runner in the actual build image with no external network.
- Capture the final fake-provider request and exercise block, persistence ordering, replay, truncation, bootstrap placement, and corrupt/missing bootstrap behavior.
- Deterministic plugin/gateway/session integration
- Use the real Tiangong plugin and OpenClaw gateway/session path with fake provider, fake coordination endpoint, synthetic Task and Work-Leader admission, runtime bindings/claim fixtures, and a disposable workspace.
- Verify only the bounded Task and Leader hook/bootstrap/spool/result-or-typed-action contracts.
- Basic Matrix turn
- Use the official Channel Plane, one reserved safe fixture, and one real member turn.
- Confirm only that the Matrix route traverses the already-proven hook/bootstrap path; do not use it to prove authorization, concurrency, atomicity, or recovery.
Stop conditions
- Any layer failure stops the spike and all later layers.
- Do not silently upgrade OpenClaw, add a workaround, or start M9-A implementation while a pinned contract is uncertain.
- Keep credentials, tokens, private session data, and unrestricted transcripts out of committed artifacts.
Deliverables
- Sanitized
plan.md before execution.
- Sanitized
result.md with per-layer pass/fail, direct machine facts, limitations, and the integration decision.
- Direct bounded machine evidence for each completed layer, with exact pinned version and fixture/resource ownership.
- If a premise fails, a follow-up design revision issue/PR before implementation.
References
Scope
Run the standalone M9-A0 research spike against the pinned OpenClaw
2026.4.14contract before any M9-A implementation begins.This issue produces integration evidence and an explicit hook/bootstrap integration decision. It does not enable the M9-A product contract, implement trusted execution, or authorize an OpenClaw upgrade.
Required serial order
The next layer may start only after the previous layer passes:
before_tool_call,tool_result_persist,before_prompt_build, bootstrap/system context, and observation hooks.Stop conditions
Deliverables
plan.mdbefore execution.result.mdwith per-layer pass/fail, direct machine facts, limitations, and the integration decision.References
docs/design/m9-professional-agent-runtime-and-project-knowledge.md, §§16.1, 17.1, 20.1