Repository navigation
test(readme): reproduce approved README edit and re-audit on a synthetic target - #233
Conversation
andy-zen-dev
left a comment
There was a problem hiding this comment.
APPROVE — independent review of exact head 5de667539f37b8936d068b78003f64d41a328646 (Related: #70).
Reviewed all four changed files, the synthetic fixture and three subprocess-driven integration cases against the actual readme_preview.py and readme_apply.py implementations, repository AGENTS.md / contribution requirements, Issue #70, existing discussion/reviews, and current-head CI. The test checks the original audit and broken links, byte-bound unified-diff preview, refusal without hash arguments, README-only replacement after test-only simulated approval, successful re-audit/link/navigation checks, and stale original/candidate rejection. It also verifies unrelated target files and the synthetic execution marker remain unchanged. The changelog entry and example documentation explicitly distinguish mechanical approval simulation from real consent and unverified model or first-run behavior; they do not claim those gates have passed.
CI on this exact head: Quality checks run 41346955963 passed (Python 3.11, Python 3.14, Windows Python 3.14, both Action self-tests, Lint). Separate local full-suite and provider/model evaluation: not_run. No independently verified real-user approval, first-success command, badge truth, or prompt-injection resistance. These remain outside this scoped PR and Issue #70/#74 acceptance remains open.
No merge-blocking finding in the reviewed synthetic workflow test and documentation; approval applies only to 5de667539f37b8936d068b78003f64d41a328646.
Reader outcome
Add a reproducible, synthetic end-to-end README edit example for the existing
improve-readmeworkflow (#70). Instead of another conceptual checklist, one black-box test invokes the actual installed BeautifulRepo tools on a disposable target:README.mdchanges, candidate bytes survive, target code is not executed, and changed original/candidate inputs after preview are rejected.Three integration test cases live in
tests/test_readme_workflow.py. The example guide explains how to reproduce them and what is not proven. Agent plugin documentation and the public changelog link the example. No target repositories, private worker controls, settings, releases or external systems were changed.Verification: On final head
5de667539f37b8936d068b78003f64d41a328646, Quality CI #41346955963 completed 6/6 successful jobs (Linux Python 3.11/3.14, Windows Python 3.14, lint, and both Action self-tests). The first run failed because the synthetic broken link was incorrectly expected to pass the HTML navigation checker; the corrected regression now asserts the initial failure and the post-edit success. Full local repository checkout/tests were not run due to DNS failure. This PR still needs separate later-run acceptance and real provider gates before merge.Boundary: The test's hash arguments stand in for consent inside a controlled fixture only. They do not authenticate an actual user's yes. No model has run, no prompt-injection safety, badge truth, runtime first success, or permission-handling evaluation is claimed. Leave #70 and #74 open for real authorized agent/model acceptance.