Repository navigation
State That a Python Profile Belongs to a Declared Directory - #3549
Conversation
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]>
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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
A recorded local strict-review pass covers head |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🟡 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.mdwith 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
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rectories Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
…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)
…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]>

Summary
python-codestyle'sreferences/profiles.mdopened 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.mdnow says a directory's Python is one of two shapes.profiles.mdsays every declared directory owes the gates. A uv workspace is the exception, declared once by its root, perdocs/reusable-workflows.md. The undeclared root routes toWORKFLOW.mdD1.2.CODESTYLE.md"Python" states the rule in brief, and its "Directories are out of scope" note routes there.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
python-codestyleSKILL.mdstill names the build trait as "the repo's deliverable". That file was outside this change's bounds.profiles.md"Adapt before propagating" uses "profile" for a toolchain bundle, a second meaning beside the per-directory profile.spec/type-model.mdandspec/project-types.jsonstill describe the Python profile per repository.Closes on promotion: #3492
🤖 Generated with Claude Code