Skip to content

Bootstrap posture: LICENSE, SECURITY, CODEOWNERS, validate check, pytest suite - #1

Merged
brettheap merged 1 commit into
mainfrom
chore/bootstrap-posture
Sep 6, 2026
Merged

brettheap merged 1 commit into
mainfrom
chore/bootstrap-posture

Conversation

@brettheap

@brettheap brettheap commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

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 no
    authority, per the shape's own doctrine.
  • .github/workflows/validate.yml — the required validate check: a pytest
    suite proving the leg shape.
  • tests/test_leg_shape.py — asserts the posture files and the src/ role
    directory exist.
  • README.md — a short "Posture" section pointing at the assembly root's
    CONTRIBUTING.md/CODE_OF_CONDUCT.md and this leg's own SECURITY.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:

  • Establish the repository’s public-project posture with licensing, private vulnerability reporting, ownership routing, and guidance for project-wide contribution policies.

CI:

  • Add a required GitHub Actions validation workflow that runs the pytest suite on pull requests and manual dispatches.

Documentation:

  • Document repository security reporting and link to the assembly root’s contribution and code-of-conduct policies.

Tests:

  • Add pytest checks covering required posture files, Apache-2.0 licensing, and the code leg’s src/ directory.

…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
Copilot AI lite review requested due to automatic review settings September 6, 2026 03:45

@sourcery-ai sourcery-ai Bot 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.

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.

@sourcery-ai

sourcery-ai Bot commented Sep 6, 2026

Copy link
Copy Markdown

Reviewer's Guide

Bootstraps 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 reporting

flowchart LR
    Reporter[Security reporter] --> Security[SECURITY.md]
    Security --> Advisory[GitHub Security Advisory]
    Advisory --> Private[Private vulnerability report]
Loading

File-Level Changes

Change Details Files
Establishes the repository’s initial public-project posture and review routing.
  • Adds the Apache-2.0 license.
  • Defines private vulnerability reporting through GitHub Security Advisories.
  • Routes all paths to the designated code owner without granting authority.
  • Documents assembly-root governance links and repository-specific security reporting.
LICENSE
SECURITY.md
.github/CODEOWNERS
README.md
Adds an automated validate gate that verifies the leg’s required bootstrap shape.
  • Runs pytest on pull requests and manual dispatch using Python 3.12.
  • Checks required metadata, governance, security, and ownership files.
  • Verifies the Apache license marker and existence of the code leg’s src/ directory.
.github/workflows/validate.yml
tests/test_leg_shape.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@brettheap
brettheap merged commit 9ffa9a2 into main Sep 6, 2026
3 checks passed

Copilot AI 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.

🟡 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 in SECURITY.md, and .github/CODEOWNERS for review routing.
  • Add a validate workflow that runs pytest on PRs and manual dispatch.
  • Add a pytest suite asserting required files and the presence of the src/ role directory; update README.md to 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.

Comment thread tests/test_leg_shape.py Resolved
Comment thread tests/test_leg_shape.py Resolved
brettheap added a commit that referenced this pull request Sep 6, 2026
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>
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