jason.woltje
be55549700
feat(sessions): named persistent sessions with resume (L1) ( #22 , #23 )
...
- task schema: optional session (named id) -> persistent session dir at
dataRoot/sessions/<name>, isolated per name
- pi adapter: --session-dir when declared (ephemeral --no-session stays
the default otherwise); -c resumes the most recent session when present
- compose passthrough; result.json records session
- fixtures: tasks/session-demo-1.json (teach) + session-demo-2.json (recall)
- E2E: teach -> REMEMBERED + host-side session JSONL; resume -> recalled
'mosaico' exactly; single continued session file
Closes #22 , closes #23
2026-09-02 22:08:34 -05:00
jason.woltje
172368612c
feat(capabilities): task workspaces + tools allowlist plumbing ( #20 )
...
- task schema: optional workspace (absent | :run ephemeral | named
persistent under dataRoot/workspaces) and capabilities.tools (pi
documented tool allowlist); strict validation, traversal-proof names
- runner: creates host workspace, passes MOSAIC_WORKSPACE (container
path) + MOSAIC_TOOLS; result.json records both
- pi adapter: cds into workspace; --tools when allowlist present else
--no-tools
- mock adapter: logs delivered MOSAIC_* vars to stderr as deterministic
plumbing evidence (dash prints 'export K=v', so use env not export)
Closes #20
2026-09-02 22:03:46 -05:00
jason.woltje
bb5cecb348
feat(adapters): adapter contract, dispatch, pi + mock adapters ( #16 )
...
- adapters/README.md: the harness boundary contract (env in, response on
stdout, diagnostics stderr, exit 0 success)
- adapters/pi: extracted current invocation unchanged
- adapters/mock: deterministic MOSAIC_MOCK_RESPONSE echo (test-only)
- run-agent.sh: name-validated dispatch to adapters/<name>/adapter.sh
- config: optional execution.adapter (pi|mock), default pi, configVersion
stays 1 — existing configs remain valid; selection authority is the
config file (load_config exports it)
- compose: MOSAIC_ADAPTER / MOSAIC_MOCK_RESPONSE passthrough; Containerfile
installs adapters read-only; RELEASE -> 0.0.5
Verified: hello unchanged; mock verbatim via config; unknown adapter and
path-traversal names refused in-container; invalid adapter exits 2.
Closes #16
2026-09-02 21:18:07 -05:00