Repository navigation
Conversation
…handle+excerpt at third send (ObservationPack) Tool results over OMC_SPILL_BYTES (default 10240) are written in full to ~/.oh-my-cli/sessions/<sessionId>.spill/<seq>.log on arrival, ride in full for the next two provider requests, and are then replaced in the live in-memory transcript with a marker line, a ~1 KB complete-line head/tail excerpt, and a retrieval handle (read tool with offset/limit, or grep). One rewrite per result (idempotence marker), never the most recent two tool messages, never results at or under the threshold. The on-disk session JSONL stays full-fidelity (append at push time, before any rewrite); compaction is unaffected. The read tool now also accepts absolute spill-file paths under ~/.oh-my-cli/sessions/*.spill/ so a seat can page its own archived output. OMC_SPILL_DEBUG=1 appends spill/rewrite events to <sessionId>.spill/events.log for rollout verification.
…rival, bind live message at push Matches the estate executor integration where harness truncation runs between arrival and push; on main the two are adjacent so behavior is unchanged. The API split keeps both branches on one design.
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.
Implements ObservationPack (SoL-Pi): tool results over
OMC_SPILL_BYTES(default 10240) are archived in full to~/.oh-my-cli/sessions/<sessionId>.spill/<seq>.logon arrival, ride in full for two provider sends, and are then replaced in the live in-memory transcript with a marker line, a ~1 KB complete-line head/tail excerpt, and a retrieval handle. One rewrite per result (idempotence marker); the most recent two tool messages are never rewritten. The session JSONL stays full-fidelity (append at push time, before any rewrite); compaction is unaffected. Thereadtool now also accepts absolute spill paths under~/.oh-my-cli/sessions/*.spill/.OMC_SPILL_DEBUG=1appends spill/rewrite events to<sessionId>.spill/events.log.Tests: tests/unit/observation-pack.test.ts (17 tests) — spill-on-arrival, rewrite at exactly the third send + idempotence, small results untouched, excerpt/handle shape, JSONL fidelity, read-tool offset/limit paging of a spill file, path-guard refusal outside
*.spill/, shell/grep reachability.tscclean; targeted suite green. (8 pre-existing failures in provider-invocation/side-question at the base commit are an environment issue — the estate's node-fetch 'Premature close' fix lives on the telnyx-compat branch, not on main.)Note: opened from the Rocktalk-Holdings fork; the pushing account has no write access to this repo. The estate executor branch (rocktalk telnyx-compat) carries a ported version of this change.