Repository navigation
Governance: AI-contribution rules, AI statement check, pinned actions, workflow lint, dependency review - #835
Merged
Merged
Conversation
…, workflow lint, dependency review - CONTRIBUTING.md: AI-assisted contributions are welcome when a human has read and run every change; autonomous agents may not submit. - Pull request template gets an "AI assistance" section, checked by the new 'AI statement' workflow (reads the description through an environment variable). - CODEOWNERS extended to editor, container and docs configuration, every conftest.py, bindsnet/learning/, SECURITY.md and CONTRIBUTING.md. - Every action pinned to a commit hash; checkouts do not keep the token. - 'Workflow lint' (zizmor 1.30.1, actionlint 1.7.12; both pass) and 'Dependency review' (actions/dependency-review-action v5.0.0) workflows. - SECURITY.md states the current branch protection. - CUDA test_transfer tests skip instead of returning early and passing. Rebased from the unpushed commit 4afb130 (2026-10-23) onto master after #833; its rule that results-changing fixes wait for 0.4.0 is dropped (replaced in #833). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What this changes and why
Puts in place the outside-contribution rules decided on 2026-10-23 after issue #781: AI-assisted work is welcome when a human has read and run every change, and the repository's own CI files are harder to tamper with.
CONTRIBUTING.md: new "AI-assisted contributions" section (NumPy and LLVM policies as the model). Autonomous agents may not open pull requests.AI statementworkflow fails until exactly one box is ticked, and asks for the tools when AI was used. It reads the description through an environment variable and runs no pull request code.Workflow lint(zizmor 1.30.1, actionlint 1.7.12) andDependency review(fails on a new or updated package with a known moderate or worse vulnerability).CODEOWNERSnow also covers.vscode/,.devcontainer/,.pre-commit-config.yaml,Dockerfile,.dockerignore,.readthedocs.yaml,docs/source/conf.py, everyconftest.py,bindsnet/learning/,SECURITY.mdandCONTRIBUTING.md.SECURITY.mddescribes the current branch protection.test_transfertests skip on machines without a GPU instead of returning early and reporting "passed".Rebased from an unpushed commit of 2026-10-23. Its rule that results-changing fixes wait for 0.4.0 was dropped, because #833 replaced it.
How it was checked
--offline .github/workflows: no findings. actionlint 1.7.12: no errors.AI statementscript was run on six descriptions: blank template, empty body and both boxes ticked fail; "AI used" with no tools named fails; "no AI" passes; "AI used" with tools named passes.pytest test/network/test_nodes.py test/network/test_connections.pyon a machine with a GPU: 35 passed (the twotest_transfertests ran).The
weakened-testscheck will list the two added skips. They replace early returns that passed silently, so thetests-changed-oklabel applies.Effect on results
No library code changes. Simulated results are unchanged.
AI assistance
Tools used and for which parts: Claude Code drafted every change and ran the checks above.
🤖 Generated with Claude Code