Repository navigation
Conversation
…et; failed harness turns keep their stderr tail A Pi mission on the Core host exited 1 with 'Model "orb/..." not found': Core staged no PI_CODING_AGENT_DIR there, only on nodes. Pi's models.json renderer moves to OrbBin.HarnessProxy (piModelsJson), and harnessProxySetupWithHome gives a routed Pi <state>/pi-home/<mission> (0700) with that file, so Core-host, orb-locald and node turns share one implementation. RemoteDispatch.piCatalogFor builds the owner's catalog for both Core paths. One-shot harness turns kept no stderr, so a failure read only 'pi exited with code 1'. Both spawn paths now keep stderr in a private file and the error ends with its scrubbed, 600-character tail (OrbBin.Redact.stderrTail). The secret scrubber moves from OrbCore.TelemetryAndVoice to OrbBin.Redact unchanged, so OrbBin can use it; scrubSecrets stays as the same function.
Merged
2 tasks
…s stdin prompt delivery
…ept, on piModelsJson)
This branch has not been deployed
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 and why
Found by the first full deploy canary run (
pi@coreFAIL, see #2377).1. Pi on the Core host could not start.
PI_CODING_AGENT_DIRwithmodels.jsononly for node turns, so a Core-host Pi turn knew noorb/…model.pi --mode json -p --model orb/orbfault/fault-ok …→Error: Model "orb/orbfault/fault-ok" not found, exit 1.RemoteDispatchinto the sharedOrbBin.HarnessProxyaspiModelsJson(moved, not copied).harnessProxySetupWithHomenow gives a routed Pi<state>/pi-home/<mission>(mode 0700) containing thatmodels.json, and setsPI_CODING_AGENT_DIR. Core-host turns andorb-locald"Core accounts" turns get it from there; node turns keep their prelude but render the same file. Missions on Core accounts throughorb-localdhad the same gap and are fixed by the same change.RemoteDispatch.piCatalogForbuilds the owner's routable catalog for both Core paths.SANDBOXED_PROXY_API_KEY.2. A failed harness turn said only "exited with code 1".
<id>.jsonlspool, or a mkstemp file.pi exited with code 1: Error: Model … not found. The reattach-after-restart paths read the same file.OrbCore.TelemetryAndVoicetoOrbBin.RedactsoOrbBincan use it.scrubSecretsis still that function.ClaudeControl, "Keep Claude's stderr").How it was tested
HarnessProxyTests:PI_CODING_AGENT_DIR, the proxy key, andorb/<model>.models.jsondeclares providerorbat Core's router with the mission's model, the catalog andbuiltin/smart. It holds no token, and it is byte-identical topiModelsJson(one implementation).oneShotExitErrorkeeps the stderr tail, scrubs ansk-ant-…key, stays under 700 characters, removes the file, reports the bare code without stderr, and returns nothing for exit 0.build_orb_bins.sh --only orb-core-test --only orb-core): OrbBin, OrbCore and OrbLocald compiled.orb-core-testran throughHarnessProxyTestsand the launch admission matrix with no failure. It then stopped on a spark-only environment fault:/tmp/sandboxed-sh-uploadsis owned by thesandboxed-nodeuser there, so writing to it gavepermission denied. The rest of the suite,StreamableMcpTests(thepiModelsJsonrename) andorb-locald-test(another build held spark) are left to CI.Not verified live
pi@coreon the next warn-mode deploy after merge.orb-localdreaches a first turn. Not covered by the canary (client/locald placement): named follow-up for a desktop check.