@iterahq/learning-protocol
v0.3.0
Published
Wire contract for the Itera Learning Engine: spool-line envelope, episode shapes, engine API shapes.
Readme
The v1 episode accepts optional project_root. The engine validates it as a
canonical absolute ancestor of cwd and preserves it as the work context root.
Old clients can omit it. This addition does not introduce schema version 2.
Version 0.3.0 emits episode version 2. The legacy episodeSchema,
episodeBatchSchema, and v1 spool reader keep their literal version 1 contract.
acceptedEpisodeBatchSchema accepts both versions. safeParseCapturedSpoolLine
accepts old v1 lines and v2 capture lines, including session-end.
The 0.3.0 agent groups turns into sessions and retains ordered turn moments.
Engine v2 acceptance and migration 0089 must deploy before the client release.
