Conversation
…injection (#2238, #2239, #2240) - Validate verify_provider at DagScheduler construction time via validate_verify_config(&[&str]); returns InvalidConfig error naming the missing provider and listing available ones (#2238) - Sanitize task output through ContentSanitizer (spotlight_untrusted=false) before inclusion in PlanVerifier prompt to prevent information disclosure to third-party verify endpoints (#2239) - Cap gap descriptions at 500 Unicode scalar values before replan prompt assembly to close second-order prompt injection surface (#2240) Closes #2238, #2239, #2240
f5608c6 to
c92d027
Compare
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
verify_provideratDagSchedulerconstruction time viavalidate_verify_config(&[&str]); returnsInvalidConfigerror naming the missing provider and listing available ones; fails early instead of silently returningcomplete=trueContentSanitizer(spotlight_untrusted=false) before inclusion inPlanVerifierprompt to prevent information disclosure to third-party verify endpoints.chars().take(500)) before replan prompt assembly to close second-order prompt injection surface; truncation applied before sanitizationFiles changed
crates/zeph-orchestration/src/error.rs— newInvalidConfig(String)variantcrates/zeph-orchestration/src/verifier.rs—ContentSanitizerfield, sanitization inbuild_verify_prompt(),MAX_GAP_DESCRIPTION_LENconstant, truncation inbuild_replan_prompt()crates/zeph-orchestration/src/scheduler.rs—validate_verify_config()methodcrates/zeph-core/src/agent/mod.rs— callvalidate_verify_configwith provider pool names atbuild_dag_scheduler()CHANGELOG.md— updated[Unreleased]sectionTest plan
cargo nextest run -p zeph-orchestration --lib— 252 passed (+16 new tests)Closes #2238
Closes #2239
Closes #2240