Skip to content

State That a Python Profile Belongs to a Declared Directory - #3549

Merged
ptr727 merged 14 commits into
developfrom
feature/3492-python-profile-per-directory
Oct 28, 2026
Merged

ptr727 merged 14 commits into
developfrom
feature/3492-python-profile-per-directory

Conversation

@ptr727

@ptr727 ptr727 commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

python-codestyle's references/profiles.md opened its profile section with "A repo's Python is one of two shapes". That read as one profile per repository, while the gates run per declared directory. No rule said when a repository may declare several Python directories.

  • profiles.md now says a directory's Python is one of two shapes.
  • A new paragraph states the rule the maintainer decided on the issue. A profile belongs to a declared directory. Each deliverable takes its own build-profile directory, and lint-only Python may sit beside the component it serves. Only a split by purpose alone, within one place, is forbidden, since the file name carries the purpose.
  • Constructed directory names illustrate a profile-trait split, a per-deliverable split, a per-component split, and a purpose-only split that merges.
  • profiles.md says every declared directory owes the gates. A uv workspace is the exception, declared once by its root, per docs/reusable-workflows.md. The undeclared root routes to WORKFLOW.md D1.2.
  • The Scripts bullet no longer limits lint-only Python to a non-Python repo.
  • CODESTYLE.md "Python" states the rule in brief, and its "Directories are out of scope" note routes there.
  • The section's opening paragraph is rewrapped to the file's 100-column width, with its words unchanged apart from one split sentence.
  • The python-codestyle generated copies and source digest are regenerated with scripts/build_dist.py.

Open local-review findings

None open. Each earlier list was fixed on a later push, the last in 0620a17a. The latest local pass raised none.

Deferrals, filed

Closes on promotion: #3492

🤖 Generated with Claude Code

ptr727 and others added 5 commits October 27, 2026 18:06
A profile belongs to a declared directory rather than to the repository.
A repository declares one directory per profile its Python needs, and
directories split by profile trait rather than by purpose, since the file
name carries the purpose. CODESTYLE.md routes its directory note there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…onent

Each deliverable takes its own build-profile directory, and lint-only
Python may sit beside the component it serves. Only a split by purpose
alone, within one place, is forbidden.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 28, 2026 01:36
@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ptr727

ptr727 commented Oct 28, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head d30a5c3e0fb64f3292ae9acc16adecc003ab78cd, the content this pull request carries at that commit against develop, and it recorded 4 findings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Two documentation rules remain ambiguous about the allowed component-directory placement and the scope of “one place,” so maintainers could apply the guidance inconsistently.

2 open issues
What changed in this PR

This pull request clarifies that Python profiles belong to declared directories rather than entire repositories, updates the shared guidance, and regenerates the distributed skill references.

Changes:

  • Defines directory-scoped Python profile ownership and permitted directory splits.
  • Updates CODESTYLE.md with a concise version of the rule.
  • Regenerates the GitHub Copilot and Claude skill copies and source digest.
  • Resolves remaining documentation contradictions and ambiguities before approval.

This pull request requires changes.

File Description
CODESTYLE.md Summarizes and routes to the directory-scoped Python profile rule.
.github/​skills/​python-codestyle/​references/​profiles.md Generated GitHub Copilot skill copy of the updated profile guidance.
.claude-plugin/​fleet-skills/​skills/​python-codestyle/​references/​profiles.md Generated Claude skill copy of the updated profile guidance.
.claude-plugin/​fleet-skills/​.source-digests/​python-codestyle Records the regenerated Python skill source digest.
.agents/​skills/​python-codestyle/​references/​profiles.md Defines profile ownership, directory splits, and placement guidance.

Review effort: Lite

Comment thread CODESTYLE.md Resolved
@codecov

codecov Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.50%. Comparing base (e1c3a01) to head (0620a17).
⚠️ Report is 3 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3549   +/-   ##
========================================
  Coverage    81.50%   81.50%           
========================================
  Files           26       26           
  Lines         9065     9065           
========================================
  Hits          7388     7388           
  Misses        1677     1677           
Flag Coverage Δ
python-3.13 81.50% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727

ptr727 commented Oct 28, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head fa9988ef1b01de7ac8114870d092be8654058e2d, the content this pull request carries at that commit against develop, and it recorded 4 findings.

@ptr727

ptr727 commented Oct 28, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head e18907818c2a7e61df3c9ac25cd9acacec02b258, the content this pull request carries at that commit against develop, and it recorded 2 findings.

@ptr727

ptr727 commented Oct 28, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 079cfcbf35e9b53e1b2012a947cd1b0b807ada8e, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@ptr727

ptr727 commented Oct 28, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 0620a17a71a51ef49b6e525feca5612de8848c47, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@ptr727
ptr727 merged commit 4f3185e into develop Oct 28, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/3492-python-profile-per-directory branch October 28, 2026 02:31
ptr727 added a commit that referenced this pull request Oct 28, 2026
…irectories, and GOVERNANCE.md Sentence Length (#3553)

## Summary

Promotes `develop` to `main`, carrying round 2 of the resync-issue
burndown:

- #3546: the paragraph under `AGENTS.md`'s tier table and the
`spec/model-tiers.json` note no longer claim a no-model dispatch runs at
the session's own model. The `highest` bullet is the one statement of
that rule. Three skills are regenerated.
- #3547: `AUDIT.md`, `RESYNC.md` section 4 and the
`carried.hubonly.absent` assertion now name all three hub-only
exclusions. They are the baseline, the paths a `trees` entry covers, and
the repo-owned trees.
- #3549: `python-codestyle` `profiles.md` and `CODESTYLE.md` state that
a profile belongs to a declared directory. Each deliverable takes one
build-profile directory, lint-only Python may sit beside the component
it serves, and only a split by purpose alone is forbidden.
- #3551: every `GOVERNANCE.md` sentence is 25 words or fewer, except two
in "PR Review Etiquette" that other carried files copy. This is the
first slice of the #3531 cleanup, so it does not close that issue.
- #3555: promotion fix for Copilot's finding on this pull request.
`profiles.md` says an undeclared root is gated only where it tracks a
root `pyproject.toml`.

Every carried `GOVERNANCE.md` section changes wording here, so each
fleet repository's verbatim copy differs from the hub until its next
resync.

Fixes #3537
Fixes #3543
Fixes #3492

🤖 Generated with [Claude Code](https://claude.com/claude-code)
ptr727 added a commit that referenced this pull request Oct 28, 2026
…3557)

## Summary

The per-directory Python profile rule from #3549 and #3555 still met
per-repository wording in four places. Each now states the rule: a
profile belongs to a declared directory, not to the repository.

- `python-codestyle` `SKILL.md` "Two profiles" names the build trait as
a deliverable, not "the repo's deliverable" (#3548). It states that a
profile belongs to a declared directory, and that a uv workspace is
declared once, by its root.
- `SKILL.md` "Toolchain" says mypy may be a build directory's only CI
checker (#3548).
- `SKILL.md` gates an undeclared root only where the repository tracks a
root `pyproject.toml`, per `WORKFLOW.md` D1.2 (#3554).
- `references/profiles.md` "Adapt before propagating" calls the default
bundle a toolchain, not a profile, and sets its axes per declared
directory (#3550).
- `spec/type-model.md` "Profiles: build vs lint-only" says Python's
profile belongs to each declared directory (#3552).
- `spec/project-types.json` `python.profileNote` drops "the repo's
deliverable" and "embedded in a non-Python repo". It states the
per-directory rule and the workspace exception (#3552). The rewritten
sentences are split to 25 words or fewer.
- The python-codestyle generated copies and source digest are
regenerated with `scripts/build_dist.py`.

## Deferrals, filed

- #3556: the registry still declares one `profiles.python` value per
repository, which `spec/validate.py` and the schema accept. This
change's bounds covered only the spec's Python profile text.

## Verification

- `spec/validate.py` passes.
- `tests/test_spec_validate.py` and `tests/test_audit_helpers.py` pass
under unittest.
- `scripts/build_dist.py --check` reports the distributions current.
- `scripts/prose_lint.py --diff origin/develop` reports no violation,
with `--check sentence-length` too.

Closes on promotion: #3548, #3550, #3552, #3554

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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