Repository navigation
feat(readme): preview exact README edits before approval - #229
Merged
Merged
Conversation
drevendev
commented
Nov 1, 2026
drevendev
left a comment
Owner
Author
There was a problem hiding this comment.
Later-run maintainer acceptance for exact head 0d1f2fb (same-account COMMENT evidence, not independent approval). Inspected the complete five-file patch, including bounded non-mutating reads, SHA-256 stale-preview guard, unified diff/line-ending behavior, target safety caveats, opt-in skill instructions, and eight new regressions. Quality checks workflow run 41312237687 completed successfully with six successful jobs; Python 3.11 reports 532 tests, six skipped, and all eight new tests passing. No material unresolved finding in this bounded scope. Non-blocking future hardening, if needed, should be separate work. Ready for exact-head integration subject to fresh GitHub provider gates.
4 tasks
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.
Reader outcome
Adds a small read-only, offline README proposal preview for maintainers using the existing
improve-readmeskill (#70). From an existing target checkout and an already prepared candidate file, it prints the SHA-256 of both inputs, original/proposed line-ending styles and a unifiedREADME.mddiff. An optional expected current hash rejects stale previews with exit code 2. It never writes target files or executes their code.Scope
tools/readme_preview.py: Python 3.11+ standard library, 256 KiB/file bounds, ordinary-file/symlink/junction checks, invalid UTF-8 and terminal-control rejection, no Git/network calls or imports from inspected targets.tests/test_readme_preview.py: eight regression tests covering exact content, foreign CWD, read-only behavior, unchanged/stale source, input validation, symlinks, CRLF and missing final newline.Verification and acceptance boundary
Locally on isolated new files:
python -m unittest discover -s /mnt/data/br_preview/tests -v— 8 PASS; full repository checkout/unit suite, catalog and link checks NOT RUN locally due to GitHub DNS failure. GitHub Quality CI must be evaluated on this exact branch head; no CI result is pre-claimed. This is production of a new PR, not later-run review or merge. No catalog changes, no other repository writes, no releases/settings/privileged operations, and no private worker controls.