Skip to content

fix(runtime): report accurate hex secret matches - #2205

Draft
ohdearquant wants to merge 1 commit into
mainfrom
codex/secret-gate-hex-context-2056
Draft

fix(runtime): report accurate hex secret matches#2205
ohdearquant wants to merge 1 commit into
mainfrom
codex/secret-gate-hex-context-2056

Conversation

@ohdearquant

Copy link
Copy Markdown
Owner

Summary

  • Limit surrounding entropy-trigger context to the candidate's current sentence while preserving single-newline credential assignments.
  • Return the raw contributing hex span from per-run, normalized, and bridged hex detection so excerpts and redactions identify the matched candidate.
  • Document the sentence-boundary and reconstructed-span behavior.

Verification

  • RED: cargo test -p khive-runtime issue_2056 -- --nocapture — both regressions failed with verbat...8chars.
  • GREEN: cargo test -p khive-runtime issue_2056 -- --nocapture — 2 passed, 0 failed.
  • cargo fmt -p khive-runtime -- --check
  • cargo clippy -p khive-runtime --all-targets -- -D warnings
  • cargo test -p khive-runtime

Regression coverage:

  • issue_2056_hex_bridge_masks_the_matched_candidate
  • issue_2056_detector_name_does_not_trigger_across_sentence_boundary

Scope

Provider-prefix and inline credential-assignment policy are unchanged.

Fixes #2056

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

secret gate: refusal excerpt names a non-hex word for hex-credential-token, and pattern-name vocabulary self-triggers refusals

1 participant