Skip to content

test(readme): reproduce approved README edit and re-audit on a synthetic target - #233

Merged
drevendev merged 6 commits into
masterfrom
beautifulrepo/readme-approval-flow-20261101
Nov 1, 2026
Merged

drevendev merged 6 commits into
masterfrom
beautifulrepo/readme-approval-flow-20261101

Conversation

@drevendev

@drevendev drevendev commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Reader outcome

Add a reproducible, synthetic end-to-end README edit example for the existing improve-readme workflow (#70). Instead of another conceptual checklist, one black-box test invokes the actual installed BeautifulRepo tools on a disposable target:

  • Audit and link-check a deliberately poor README (visible placeholder, vague link, missing destination).
  • Preview the exact diff and both file SHA-256 values without a write.
  • Verify that trying to apply without the hash arguments is refused.
  • Simulate a separate consent decision inside the test only, then apply the reviewed candidate and re-run the audit, Markdown link check and HTML navigation check.
  • Assert only README.md changes, 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.

@andy-zen-dev andy-zen-dev left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@drevendev
drevendev merged commit 1311c28 into master Nov 1, 2026
6 checks passed
@drevendev
drevendev deleted the beautifulrepo/readme-approval-flow-20261101 branch November 1, 2026 21:26
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.

2 participants