feat(policy): dogfood the policy-tests gate on the maintainer repo#10
Open
maybebyte wants to merge 4 commits into
Open
feat(policy): dogfood the policy-tests gate on the maintainer repo#10maybebyte wants to merge 4 commits into
maybebyte wants to merge 4 commits into
Conversation
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.
Summary
Dogfoods the template's policy-tests layer onto the maintainer repo: a stdlib-only suite pins the gate config literals — basedpyright
recommended+failOnWarnings, ruffselect=["ALL"], fenced AGENTS.mdjustexamples resolving to real recipes, and 40-hex SHA pins on every third-party Action — so none can be silently weakened. Closes gap #4 (policy-tests) and the offline half of gap #8 (Action SHA-pin policy) fromdocs/superpowers/plans/2026-07-01-dogfood-gap-audit.md.Changes
tests/policy/suite (5 stdlib-only tests:re/tomllib/pathlib), with the docs-can't-lie check scoped to fenced AGENTS.md blocks — a documented divergence from the template's whole-doc scan (rationale in the committed design spec).policyjustfile recipe, chained intojust ci(now… test policy audit), mirroring the template's conditionalci.cigate-list mention; design spec + implementation plan committed underdocs/superpowers/.Testing
TMPDIR=… mise exec -- just ci—ci: all gates passed: generation matrix 75 passed in 3:44 (the 5 policy tests auto-collected), explicitpolicyleg 5 passed, pip-audit "No known vulnerabilities found".mise exec -- just precommit— all commit-stage and pre-push hooks passed (basedpyright included).uv run pytest tests/policy -q— 5 passed;uv run ruff check tests/policy— All checks passed!;uv run basedpyright— 0 errors, 0 warnings, 0 notes.Notes for reviewers
testjob with no CI change: bareuv run pytestauto-collectstests/policy(--collect-onlyshows the 5 tests).fuzz/mutate) with ajustprefix — the new section documents both.Related
docs/superpowers/plans/2026-07-01-dogfood-gap-audit.md); design:docs/superpowers/specs/2026-07-07-dogfood-policy-tests-design.md; plan:docs/superpowers/plans/2026-07-07-dogfood-policy-tests.md.