Skip to content

Design: define portable agent adapter and execution substrate contracts #188

@devkade

Description

@devkade

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

  • AgentAdapter interface is specified.
  • ExecutionSubstrate interface is specified.
  • Worker capability matching rules are described.
  • Readiness and health-check expectations are defined.
  • Structured worker report contract is defined.
  • Codex/Pi/Claude Code compatibility notes are documented.

Verification

  • Design review against current worker substrate code.
  • Example adapter matrix for Codex, Pi, and Claude Code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions