Everything you need for the all-in-one stack or the kernel. For design rationale and acceptance criteria, see the portable-agent-core spec and the grounded-findings spec in the repository.
core/, implement ports, run investigationsnpm run eval, scoring method, current baselineEvery tool carries a risk tag (single source of truth) and a provenance string. A pure function decides each call inside the loop — the red line cannot be overridden by policy.
| Run mode | read-risk tools | write-risk tools |
|---|---|---|
read-only (default) | execute | always blocked — no policy exception |
advise | execute | blocked; the agent is told to suggest instead |
approve-write | execute | needs a matching Approval for the call id (L4 direction, host UI not shipped) |
MCP tools without an explicit risk mapping are treated as write-risk — fail-closed. Map trusted tools via riskFor to make them available in read-only runs.
Every run ends in exactly one persisted terminal outcome — answered, step_budget_exhausted, or llm_error — each carrying full usage (tokens, turns, tool calls, cost). Conclusions arrive via the enforced submit_findings tool: root causes must cite verbatim evidence from real tool calls, differential diagnoses (ruledOut) are mandatory, and inconclusive is a legal answer. Trajectories are stored as structured, block-paired turns and replay in the exact shape the model saw.
Read-only by design: host commands pass a whitelist and a dangerous-character gate; the agent never mutates state and only suggests changes. Before exposing the platform to the public internet, read the auth-tunnel spec — token auth is mandatory, unauthenticated endpoints return 404.