Skip to content

State the Root Gating Condition in the Python Profiles Reference - #3555

Merged
ptr727 merged 1 commit into
developfrom
feature/3492-root-gating-condition
Oct 28, 2026
Merged

ptr727 merged 1 commit into
developfrom
feature/3492-root-gating-condition

Conversation

@ptr727

@ptr727 ptr727 commented Oct 28, 2026

Copy link
Copy Markdown
Owner

Summary

This is a promotion fix for thread PRRT_kwDOQ5caqM6w9liQ on #3553.

The Python profiles reference said a repository declaring no Python directory has its root gated. The resolver returns no directory when no root pyproject.toml is tracked, so that claim held only for some repositories. The sentence now gates the root only where it tracks a root pyproject.toml, which is the condition WORKFLOW.md D1.2 already states.

The skill copies under .github/skills/ and .claude-plugin/fleet-skills/ are regenerated with scripts/build_dist.py.

Pre-existing findings, filed

Closes on promotion: #3492

🤖 Generated with Claude Code

A repository declaring no Python directory has its root gated only where
it tracks a root pyproject.toml, since the resolver falls back to no
directory otherwise. The sentence now states that condition, which
WORKFLOW.md D1.2 also states.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 28, 2026 02:42
@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 20c523a1869f6c36a1ef3dd2fb3e2a583d53cef5, the content this pull request carries at that commit against develop, and it recorded 1 finding.

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.

🟢 Approval recommended

The review found no active issues, and the changes consistently document the tracked-root pyproject.toml gating condition across the canonical and regenerated skill references.

No open issues 🎉

What changed in this PR

This pull request corrects the Python profiles reference to state that the repository root is gated only when a tracked root pyproject.toml exists, aligning the documentation with resolver behavior and WORKFLOW.md D1.2.

Changes:

  • Clarifies the root-gating condition in the canonical reference.
  • Regenerates the GitHub Copilot and Claude skill copies.
  • Updates the Python skill source digest.
File Description
.github/​skills/​python-codestyle/​references/​profiles.md Regenerated GitHub Copilot skill reference with the corrected root-gating condition.
.claude-plugin/​fleet-skills/​skills/​python-codestyle/​references/​profiles.md Regenerated Claude skill reference with the corrected root-gating condition.
.claude-plugin/​fleet-skills/​.source-digests/​python-codestyle Updated source digest for the regenerated Python skill.
.agents/​skills/​python-codestyle/​references/​profiles.md Canonical Python profile reference with the corrected root-gating condition.

Review effort: Lite

@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 (4f3185e) to head (20c523a).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3555   +/-   ##
========================================
  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 merged commit 367bba0 into develop Oct 28, 2026
14 checks passed
@ptr727
ptr727 deleted the feature/3492-root-gating-condition branch October 28, 2026 02:55
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