0105: Agent platform package and natives
Status: Proposed (default; pending owner confirmation)
Amends ADR-0093 and ADR-0094.
Context
M12 adds agent orchestration while keeping effects supplied by a platform and the CLI platform unchanged. The current compiler requires declared native capabilities and paired C/interpreter implementations.
Decision
Use one embedded plugins/agent/ platform package
containing its declaration, native header and Harness library. Add
only Clock.now_ms, Fs.append/sync,
Grant operations and SecretRef
operations as agent natives; all other agent machinery is Harness
code. Keep agent [policy] at zero in v0 and leave the
CLI declaration and digest unchanged.
Consequences
The agent platform adds narrowly scoped effect hooks while most behavior remains testable in both backends as Harness code. If platform packages cannot export modules, split the platform and library into separate packages by amendment.