Repository navigation
substrate: complete PiSubstrate protocol (execute/read_trajectory/preflight) + configurable pi model - #204
Open
ouryuk wants to merge 4 commits into
Open
substrate: complete PiSubstrate protocol (execute/read_trajectory/preflight) + configurable pi model#204ouryuk wants to merge 4 commits into
ouryuk wants to merge 4 commits into
Conversation
- PI_SURFACE: c1-c8 mapped to pi's native resource system - pi_project install mode: .pi/APPEND_SYSTEM.md, .pi/skills, .pi/extensions, .pi/prompts, scripts/ — pi loads the staged overlay natively - reference run_argv (pi --print --mode json -a) - e2e test: staged harness governs a real pi run (tests/test_pi_substrate.py)
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
This was referenced Nov 18, 2026
…i substrate and add CLAUDE.md/AGENTS.md
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.
What
Completes the
PiSubstrateimplementation so it satisfies the fullSubstrateprotocol, and makes the pi model route configurable for the end-to-end check.harness2/substrate/pi.pyexecute()— forwards to the benchmark-supplied launcher via the sharedRunRequest/Installcontract (previously missing, soPiSubstratedid not satisfySubstrate).read_trajectory()— renders pi's--mode jsonevent stream into the shared trajectory grammar, mergingtool_execution_start/tool_execution_endinto oneACTION/OBSERVATIONpair and surfacingmessage_endassistant text.preflight()— verifies the pi CLI exists andpi --versionsucceeds, raisingRuntimeErrorwith the remediation path before any model call is spent.{"content": ...}) are unwrapped when rendering observations.harness2/config.pyPI_SUBSTRATE_MODEL(defaultzai/glm-5.3, the reference route) so the substrate/e2e can use any piprovider/modelwithout changing benchmark configuration.Tests
tests/test_pi_substrate_unit.py— deterministic checks for the protocol surface, preflight failure mode, and trajectory rendering/truncation (no model calls).tests/test_pi_substrate.py— usesconfig.PI_SUBSTRATE_MODELinstead of a hard-coded model.Docs
docs/SETUP.md— documents the model override and the two test entry points.Verification
Notes
This branch is based on current
origin/main(6868817) and cherry-picks the earlier PiSubstrate commits on top.