P0 hardening - #16
Merged
Merged
P0 hardening#16
Conversation
- stream idle watchdog: per-event deadline aborts silent stalls into the transparent-retry path (stream_idle_timeout_secs, default 120s) - add byte-stable invocation examples to 9 high-frequency tool descriptions - wire PrefixStabilityManager into the per-step loop (shadow mode), emitting PrefixCacheChange on prefix drift - wrap network-sourced tool results in <external_content source="…"> at the transcript-push chokepoint; Constitution Tier 6 gains the delimiter clause - absent [network] now resolves to a prompt-default decider; Prompt hosts gate through the inline per-input approval (fetch_url / web_search / web.run); Network tools excluded from speculative early-tool-start
- exec_shell: capture a foreground child's final cwd via a stderr sentinel (Unix), validate against the workspace boundary, and fold it into Session.cwd post-turn — cd persists across calls, env vars don't; foreground now also honors an explicit cwd param (was silently dropped) - edit_file: anchor mode (search_start + search_end) replaces a long span by quoting only its first and last lines; unique-start, first-end-after-start semantics with the existing diff output
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
Testing
cargo fmt --all -- --checkcargo clippy --workspace --all-targets --all-featurescargo test --workspace --all-featuresChecklist