feat(agentic-kit): run log + pi extension kernel — six additive packages (roll-up of #1723–#1728) - #1729
Merged
Merged
Conversation
…ith pi entries stored verbatim
A pi extension that drains pi's append-only session into an @agentic-kit/run-log store — verbatim, in order, same code locally and in the cloud (only runId and the store differ). Draining is index-based because the session is append-only; the read position is keyed to the session header id so a switch/fork re-mirrors and the store's idempotency absorbs the duplicates. A drain advances only after a successful append, and store failures are rethrown into pi's dispatch by default rather than silently dropping entries.
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Single merge point for the six additive packages from #1723–#1728 (kept open for per-package review; this branch is exactly their six commits). Together they are the M0 kernel from the greenfield design: one pi agent loop, an append-only run log as the source of truth, and placement expressed as configuration.
Load-bearing properties, in one place:
runId,seq,recordedAt,piSessionVersion) — no re-encoding, so pi's own versioned session migrations keep working and a resumed session is a replay, not a translation.(runId, seq)and the mirror only advances its cursor after a successful append, retrying the whole batch — so a crashed or resumed run cannot lose or duplicate entries.gatewayis authoritative (the gateway meters what it proxies);self-reportis the own-provider-key lane, documented as reconciliation/visibility rather than tamper-proof billing. Enabling both would double-count.ask, not to trust — an undeclared tool is not implicitly permitted — and an approval timeout denies.append,readby cursor); the wire stays the existing GraphQL API withagent_eventrows as the rendezvous and the cursor read as the poll. No socket, no second envelope loop, no server.process.envand nothing reads a file it was not handed. Endpoints, tokens, identity, model list, policy and stores are all required options, so configuration stays hoisted to the host (@agentic-kit/pi's resolved context locally, injectedCONSTRUCTIVE_*vars in a job).Additive: six new directories, plus the CI package matrix line and the lockfile importers. No existing package, function or UI changes; desktop is untouched. Every package carries README + logo,
makagebuild, and its own jest suite (164 tests across the six); all of #1723–#1728 are green.Link to Devin session: https://app.devin.ai/sessions/450ce6d6659c47759c184ae6ec19a2a8
Requested by: @pyramation