Design: define portable agent adapter and execution substrate contracts
Parent: #167
Related: #169, #170
Summary
Define the portable boundary that lets Ilchul run Codex, Pi, Claude Code, and future agent CLIs through common worker protocols without making core runtime depend on one agent implementation.
Scope
Define:
- AgentAdapter contract;
- ExecutionSubstrate contract;
- worker capability model;
- launch/send/capture/interrupt/health behavior;
- readiness nonce requirements;
- adapter-specific prompt/report constraints;
- tmux/worktree/process ownership split;
- failure and timeout behavior.
Non-goals
- No adapter implementation in this slice.
- No remote/cloud runner protocol.
- No CLI-specific semantics in RunContract core.
Acceptance criteria
Verification
- Design review against current worker substrate code.
- Example adapter matrix for Codex, Pi, and Claude Code.
Design: define portable agent adapter and execution substrate contracts
Parent: #167
Related: #169, #170
Summary
Define the portable boundary that lets Ilchul run Codex, Pi, Claude Code, and future agent CLIs through common worker protocols without making core runtime depend on one agent implementation.
Scope
Define:
Non-goals
Acceptance criteria
Verification