Skip to content

feat: offline repository audits with actionable findings - #12

Merged
drevendev merged 1 commit into
masterfrom
beautifulrepo/repository-audit-20261014
Oct 16, 2026
Merged

drevendev merged 1 commit into
masterfrom
beautifulrepo/repository-audit-20261014

Conversation

@drevendev

@drevendev drevendev commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

Add a dependency-free, read-only audit of repository entry points, with actionable findings instead of a beauty score.

  • Inspect selected README, license and contribution documents in bounded local locations.
  • Report title/heading structure, possible unfinished placeholders, empty table headers and image-alt observations with rule IDs, relative paths, source lines and suggested next steps.
  • Emit deterministic text or JSON reports with configurable failure thresholds.
  • Bound reads to 500 KiB per selected document and inventories to 4,096 entries per entry-point directory. Reject selected symlinks/special files and invalid text instead of following them or blocking on them.
  • Keep empty image alternatives and absent dedicated contribution guidance informational rather than inventing universal compliance rules.
  • Include 42 behavioral/CLI regressions, a source-backed guide and a runnable disposable before/after demonstration.

Validation actually performed

Published head: cf98af114938305c087eddd0324ce69505adadeb.

Full GitHub Actions CI 38519687333 succeeded. Inspected decoded job logs, not only the status badge:

  • python3 -m unittest discover -s tests -v: 127 tests passed, including all 42 new audit tests.
  • python3 tools/catalog.py: all 11 catalog resources valid and generated view current.
  • python3 tools/docs_links.py: 63 relative destinations across 22 Markdown files passed.
  • Provider interpreter: Python 3.12.3 on Ubuntu.

Local isolated new-feature tests: 42 passed on Python 3.13.5. That was not a full local checkout. The walkthrough's exact before/after output is also covered by the test suite.

Boundaries and acceptance

No network requests, target-project execution, automatic edits, license classification, repository administration, releases, or private controls. The parser is explicitly a bounded Markdown subset, not a CommonMark renderer or accessibility certification. Stable checkout required; this is not a hostile-filesystem sandbox.

Sources reviewed on 2026-10-14: GitHub README/contribution guidance and W3C WAI heading/decorative-image guidance. Exact links and limitations are in guides/repository-audit.md.

The existing default unittest discovery runs the new tests without a workflow/protection change. MIT LICENSE is unchanged. This is a complete new production candidate ready for a separate later-run acceptance; green CI is not claimed as independent approval.

@drevendev
drevendev marked this pull request as ready for review October 14, 2026 06:05

@drevendev drevendev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Later-run maintainer acceptance of cf98af1. Reviewed the full six-file diff: audit implementation, all 42 behavioral/CLI regressions, tool documentation, guide and disposable walkthrough. Bounded non-recursive inventory and reads, selected symlink/special-file rejection, generic diagnostics, deterministic relative-path reports, thresholds and advisory treatment of decorative alternatives agree with the documented scope. No target-project execution or network activity is introduced. Parser limitations and the stable-checkout assumption are explicit; this does not claim a security sandbox or accessibility certification. Freshly inspected exact-head Actions run 38519687333 and its unittest/catalog/Markdown-destination steps: successful. No submitted reviews or unresolved threads were present. Library integration changes are separate paths; recheck current mergeability against the now-updated base before merge. Acceptable within the intended bounded scope. This is same-account later-run COMMENT evidence, not independent approval.

@drevendev
drevendev merged commit 160c4a6 into master Oct 16, 2026
1 check passed
@drevendev
drevendev deleted the beautifulrepo/repository-audit-20261014 branch October 23, 2026 10:24
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.

1 participant