Repository navigation
fix(queue): prevent redact_secrets from corrupting code excerpts and repair missing + on closing delimiters (ticket-467) - #729
Merged
tom-sapletta-com merged 1 commit intoOct 19, 2026
Conversation
tom-sapletta-com
force-pushed
the
ticket/467-fix-redact-secrets-code-excerpts-728
branch
from
October 19, 2026 14:21
61cff42 to
ef7e6ae
Compare
…repair missing + on closing delimiters (ticket-467, Closes #728)
tom-sapletta-com
force-pushed
the
ticket/467-fix-redact-secrets-code-excerpts-728
branch
from
October 19, 2026 14:34
ef7e6ae to
e976b65
Compare
tom-sapletta-com
deleted the
ticket/467-fix-redact-secrets-code-excerpts-728
branch
October 19, 2026 14:40
This branch was successfully 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.
Closes #728
Summary
_SECRET_PATTERNSinsrc/koru/queue/patch_mode.pyso quoted secret assignments and env-style secret assignments remain redacted while normal source code expressions (===,new Set([,decryptJson(...),this.key = encryptionKey) are preserved incurrent_file_excerptandbuild_verify_retry_prompt.src/koru/queue/diff_repair.py, recover closing delimiters (},};,),);,],];) whose leading+was emitted as a space immediately following an added+block, and anchorpre_ctxon its last non-empty line when trailing blank context lines are present.tests/test_planfile_queue.py.Verification
PYTHONPATH=src pytest -q -o addopts='' tests/test_planfile_queue.py -k 'redact or context_excerpt' tests/test_queue_evidence.py -k 'secrets'-> 2 passedpython3 -m ruff check src/koru/queue/patch_mode.py src/koru/queue/diff_repair.py tests/test_planfile_queue.py-> All checks passed./project/governance-check.sh --no-cache-> GOV-PASS (0 errors, 0 warnings)