Repository navigation
fix(search): bound replacement output before publication - #343
Merged
Merged
Conversation
This was referenced Oct 20, 2026
# Conflicts: # docs/CHANGELOG.md
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 #330
What was wrong
ops_replacebounded match counts but not the resulting file size. A 40 KB source containing 40,000acharacters and a 1 KiB replacement produced 40,960,000 bytes, beyond the 32 MiB file-write ceiling. Checking only during publication would also leave earlier directory targets changed before a later oversized target failed.The change
ops-files32 MiB file-content constant, rather than duplicate the limit.OUTPUT_LIMITwith no file changes.Validation
The full gate uses the real Landlock backend to separate main's unrelated bwrap cache defect (#337/#338); no sandbox permission relaxation is introduced. Input/output schema and model-description byte delta: 0.
PR-triggered CI: https://github.com/T-Auto/dsh-ops/actions/runs/39480498372 —
pull_request, aggregateCI required: SUCCESS (Windows x64, Linux x64, macOS arm64 and required supporting jobs passed).Environment
Arch Linux x64, Node 24.21.0, Rust 1.97.1; source checkout based on main
a9ff940.Combined local validation
The submitted heads of #338, #340, #341, #342, #343, #344 and #345 were applied together in an isolated local verification worktree, including their combined changelog entries. With ordinary PATH selecting real bwrap 0.13.0 and real dsh-TUI 0.16.1 host/worker/renderer suites enabled,
node scripts/verify-gate.mjs --skip-installpassed all 11 release-gate steps: 129 suites passed, 0 skipped; 46 Rust unit tests passed; manifest 73/59. This Linux combined-tree evidence is separate from each PR's own cross-platform CI; no upstream merge or host installation was performed.