Repository navigation
Bootstrap posture: LICENSE, SECURITY, CODEOWNERS, validate check, pytest suite - #1
Conversation
…est suite Public from day one means a posture exists at creation, not after the first outside issue (openxFactory split-opendox-two-layer-product tasks.md § 1.4). This leg is public, so it gets its own LICENSE (Apache-2.0) and SECURITY.md with a private vulnerability-reporting path, plus CODEOWNERS for review routing and a required `validate` check (a pytest suite proving the shape: the posture files and this leg's `src/` role directory). Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014E8Yr24V2TUSpcD8ixK1HJ
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 10 hours and 7 minutes by commenting @sourcery-ai review. Upgrade to get a review now.
Reviewer's GuideBootstraps the public repository with Apache licensing, private security reporting, review routing, governance pointers, and a required pytest-based validate workflow that enforces the expected leg structure. Flow diagram for repository security reportingflowchart LR
Reporter[Security reporter] --> Security[SECURITY.md]
Security --> Advisory[GitHub Security Advisory]
Advisory --> Private[Private vulnerability report]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
🟡 Changes recommended
The new pytest suite includes misleading failure messaging and a license test whose assertion does not fully match the test’s stated intent.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Establishes the repository’s initial “bootstrap posture” (license/security/ownership/docs) and adds a required GitHub Actions validate check that runs a minimal pytest suite to enforce the leg’s expected shape.
Changes:
- Add posture files: Apache-2.0
LICENSE, private reporting guidance inSECURITY.md, and.github/CODEOWNERSfor review routing. - Add a
validateworkflow that runs pytest on PRs and manual dispatch. - Add a pytest suite asserting required files and the presence of the
src/role directory; updateREADME.mdto point to project-wide contribution policies in the assembly root.
File summaries
| File | Description |
|---|---|
| tests/test_leg_shape.py | Adds pytest shape checks for required posture files and src/ directory. |
| .github/workflows/validate.yml | Introduces the required validate CI job that runs pytest. |
| .github/CODEOWNERS | Sets default code owner for review routing. |
| SECURITY.md | Documents private vulnerability reporting via GitHub Advisories. |
| LICENSE | Adds Apache-2.0 license text. |
| README.md | Adds “Posture” section linking to assembly-root policies and local security policy. |
Review details
- Files reviewed: 6/6 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Copilot's automated review on #1 (posted after that PR's validate check had already gone SUCCESS and it had merged) flagged two real issues: - test_required_file_exists's assertion message claimed a missing file is "at the repository root", which is wrong for nested entries like `.github/CODEOWNERS`. - test_license_is_apache_2_0 only checked for the substring "Apache License", never "Version 2.0", so the test's name and its assertion could diverge. Also fixes the same "project.yaml lives here" phrasing issue Copilot caught in the spec leg's sibling test but did not flag here: the comment in test_role_directory_exists cited "project.yaml" as if it were in this repository; it lives in the assembly root (opensoft/openXdox), not here. Lane: openxfactory-4-opendox-extraction Claude-Session: https://claude.ai/code/session_014E8Yr24V2TUSpcD8ixK1HJ Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)
This leg is public from day one, so its posture has to exist at creation
rather than after the first outside issue (openxFactory
split-opendox-two-layer-product tasks.md § 1.3/§ 1.4). This PR adds:
LICENSE— Apache-2.0, copied byte-for-byte from the openRepoShape standard.SECURITY.md— a private vulnerability-reporting path (GitHub Advisories),never a public issue.
.github/CODEOWNERS— review routing only (* @brettheap); it confers noauthority, per the shape's own doctrine.
.github/workflows/validate.yml— the requiredvalidatecheck: a pytestsuite proving the leg shape.
tests/test_leg_shape.py— asserts the posture files and thesrc/roledirectory exist.
README.md— a short "Posture" section pointing at the assembly root'sCONTRIBUTING.md/CODE_OF_CONDUCT.mdand this leg's ownSECURITY.md.Refs opensoft/openXfactory#656
🤖 Generated with Claude Code
https://claude.ai/code/session_014E8Yr24V2TUSpcD8ixK1HJ
Summary by Sourcery
Establish the repository’s bootstrap posture and enforce its required shape through automated validation.
Enhancements:
CI:
Documentation:
Tests: