Repository navigation
State the Python Build Profile by Its Trait, Not One of Its Forms - #2053
Conversation
The profiles reference defined the build profile as a PEP 621 uv project, then admitted a pip-installed pyproject.toml with no [project] table, so its opening definition was not true of every member. Both the reference and the SKILL.md summary now state the profile by its classifying trait and give the uv project and the pip-installed pyproject.toml beside requirements*.txt as its two forms. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The build profile now has a uv form and a pip form, but the clean-compile, test, and CI gate rules still stated uv run commands for the whole profile. Scope them to the uv form and say that a pip-form directory runs its tools from the environment pip installed, as the validator does. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The pip form ran only pytest from its installed environment, with ruff and the type checker through uvx, so saying all its tools ran from that environment was false against the validator. A directory carrying both uv.lock and requirements*.txt is also the uv form, which the two-form wording left ambiguous. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # .agents/skills/python-codestyle/SKILL.md # .claude-plugin/fleet-skills/.source-digests/python-codestyle # .claude-plugin/fleet-skills/skills/python-codestyle/SKILL.md # .github/skills/python-codestyle/SKILL.md
…d Directories A pip-form directory runs neither uv sync nor uv run, since either writes a uv.lock that reclassifies it once committed. The environment-pointed type check holds only for a directory declared in python-directories, the undeclared root running a bare uvx checker. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… uv Commands The pip-form clean-compile points its type checker at the installed environment, the VS Code task mirror and testing.md's default invocation are scoped to the uv form, the CI gate bullet names the pip form, and the devcontainer check names a uv project. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2053 +/- ##
========================================
Coverage 55.66% 55.66%
========================================
Files 16 16
Lines 7317 7317
========================================
Hits 4073 4073
Misses 3244 3244
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:
|
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
The change edits fleet-governing Skill documentation carried into downstream repos and deliberately ships with known, tracked inconsistencies deferred to follow-up issues, so a human maintainer should make the final merge call.
Review effort: Balanced
Findings: None
What changed in this PR
This documentation PR resolves an internal inconsistency in the python-codestyle skill (tracked as issue #1947): the build profile was defined as "a PEP 621 uv project" yet also admitted a pip-installed pyproject.toml with no [project] table. The PR restates the profile by its classifying trait (third-party runtime dependencies, or the repo's deliverable) and presents its two forms — the uv project with a committed uv.lock, and the pip-installed pyproject.toml beside requirements*.txt — then scopes the uv-only commands to the uv form and describes what CI runs for the pip form. Because these are fleet Skills, the change is authored in .agents/skills/ and regenerated into .github/skills/ and .claude-plugin/fleet-skills/.
Changes:
- Redefine the
buildprofile by trait and describe its uv and pip forms acrossSKILL.md,references/profiles.md, andreferences/testing.md. - Scope uv commands (local loop, clean-compile, Tests, CI-gate, VS Code task mirror, default test invocation, devcontainer smoke test) to the uv form; describe the pip form's CI/local commands.
- Regenerate the
.github/skills/and.claude-plugin/fleet-skills/distributions and the source digest.
| File | Description |
|---|---|
.agents/skills/python-codestyle/SKILL.md |
Source: restate build profile by trait; scope uv-only commands to the uv form and add pip-form commands. |
.agents/skills/python-codestyle/references/profiles.md |
Source: give the profile two forms and describe how CI runs each pip-form tool. |
.agents/skills/python-codestyle/references/testing.md |
Source: give the pip-form default test invocation (python -m pytest). |
docs/devcontainer.md |
Scope the Python container smoke test to a uv project (matching its uv commands). |
.github/skills/python-codestyle/{SKILL,references/*}.md |
Generated mirror of the source edits (byte-identical). |
.claude-plugin/fleet-skills/skills/python-codestyle/{SKILL,references/*}.md |
Generated mirror of the source edits (byte-identical). |
.claude-plugin/fleet-skills/.source-digests/python-codestyle |
Regenerated source digest; recomputed value matches. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…d Effort (#2104) ## Summary Copilot code review's default effort moved from Lite to Balanced on 2026-09-28. Balanced rounds write the `ccr-overview-v2` body with a per-file table and almost never a coverage statement. So `pr_review.py` read every such pull request as `COVERAGE_IS_UNSTATED` (exit 45) and parked it on a maintainer decision (#2103, #2095, #2089, #2082, #2077). Measured over the Copilot rounds on the 40 newest pull requests here, 25 of 29 Lite rounds carried the `fleet-review` marker, against 1 of 22 Balanced rounds. Stating the marker literally in the runbook did not help. A Balanced round on this branch read that instruction, quoted it in its own summary, and still left the marker out. So the tooling now accepts a coverage reading that works at any effort level, instead of depending on one setting. ### The rule A head that no coverage statement reaches, meaning none is stated on it and none is carried to it, now reads `coverage=table` and passes when all of these hold: - A round covering the head has its own file table naming exactly the changed files. - No Copilot round on the pull request, on any commit, states or appears to state partial coverage. The scan reads each round body in 12 ways: raw, entity-decoded, and compatibility-folded, each with tags kept and stripped three ways. A partial found in any reading counts. - The whole review history is in view. - The changed-file list is present, well-formed, non-empty, and within the 100-file window. A statement that reaches the head always wins, so a stated partial still blocks. A pull request that ever had a partial round goes to the maintainer. When no table stands in, the digest prints the reason as `NO FILE TABLE STANDS IN: <reason>`. The rule is stated in `GOVERNANCE.md` "PR Review Etiquette", in the `pr-review-conduct` Merge Gate (source and generated copies), in the runbook, in `scripts/README.md`, and in the script's own docstring and exit-45 message. Measured live with this branch: #2102, #2094, #2088, #2081, #2076, #2050, #2046, #2039 and #2033 read `coverage=table`. #2098, which carries the marker, still reads `full`. ## Known limits, all failing closed unless noted - **Glob rows.** Copilot sometimes collapses generated skill copies into glob rows such as `.../skills/*/references/*.md`, so on those pull requests the table does not match and they go to the maintainer. #2053 and #2021 are examples. - **Marker quoted near digits.** A round that quotes the marker next to digits reads as a partial. That includes this pull request's own first round, so this PR goes to the maintainer. - **Early-closed fences.** A fence that Markdown closes early, through a list item or an HTML block, masks a real table after it. - **Prose partials (fail-open).** A partial worded in prose that none of the patterns anticipate can still pass. The scan narrows this gap but cannot close it. - **Malformed marker before a full one (pre-existing, not introduced here).** On the head, a malformed marker followed by a well-formed full marker is read as full by the existing coverage reader. - **Unpinned readings.** Tests do not pin each of the 12 readings individually, the echoed snippet can carry raw control characters into the digest line, and two docstrings overstate slightly. None of these affects a verdict. ## Verification - `python3 -m unittest discover -s tests`: 1841 tests pass. The new tests were mutation-checked, and each guard fails its test when removed. - ruff, mypy, the prose gate, markdownlint, `build_dist.py --check`, `spec/validate.py`, and the eol gate are clean. - The local strict review ran across several rounds, and the last pass found no fail-open. Its differential fuzz over 150k bodies found nothing the previous commit flagged that this one misses. Its receipt is recorded. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…pilot Coverage at Balanced Effort (#2105) ## Summary Promotes develop to main, carrying 14 pull requests: - [#2076](#2076) Read the Guard's Token Fallback With a Bash-Aware Context Scan - [#2081](#2081) Keep the Guard's Quote Mask When an Escape Sits Outside the Loop Condition - [#2094](#2094) Reconfigure pr_review.py's Console Streams to UTF-8 - [#2088](#2088) Guard check_settings' Live Read of the Repository Response - [#2102](#2102) Skip a Blockquoted List Marker in the Prose Gate's Dash Rule - [#2104](#2104) Accept a Head Round's Exact File Table as Copilot Coverage at Balanced Effort - [#2098](#2098) Quote the Review Engine's Remaining Bare Shell Placeholders - [#2050](#2050) Hand Unstated Coverage to the Maintainer Instead of Prescribing a Re-Request - [#2046](#2046) Report a Copilot Review Request That Records Nothing Instead of Waiting It Out - [#2053](#2053) State the Python Build Profile by Its Trait, Not One of Its Forms - [#2068](#2068) Strip the CR From configure.sh's Environment-Name Encoding - [#2033](#2033) Bound the Guard's Stdin Descriptor Before int() - [#2036](#2036) Guard ruleset_id() Against Malformed Array Elements - [#2039](#2039) Strip the CR From configure.sh's Workflow-Model Read The lead change is #2104. Copilot code review's default effort moved from Lite to Balanced on 2026-09-28, and Balanced rounds write a per-file table but almost never a coverage statement. `pr_review.py` now accepts a head round's file table as coverage when it names exactly the changed files and no Copilot round on the pull request has ever stated or appeared to state partial coverage. Before this, every pull request reviewed at Balanced effort parked on a maintainer decision. The other pull requests are guard, configure, prose-gate, and review-engine fixes that were waiting on that decision or landed earlier. #2076 leaves #1910, #1958, and #1959 open, per #1960. Closes #1998 Closes #2091 Closes #1260 Closes #1190 Closes #1652 Closes #2047 Closes #1904 Closes #1947 Closes #1882 Closes #2028 Closes #1987 Closes #1881 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
python-codestylenow states thebuildprofile by its classifying trait (third-party runtime dependencies, or the repo's deliverable) rather than by one of its forms, and gives its two forms: the PEP 621 uv project with a committeduv.lock, and the pip-installedpyproject.tomlbesiderequirements*.txt, with or without a[project]table.references/profiles.mdstates how CI runs each pip-form tool, and that a committeduv.lockselects the uv form.references/testing.md's default invocation) and thedocs/devcontainer.mdcheck are scoped to the uv form. The pip-form type-check sentence is qualified to directories declared inpython-directories, and the pip-form checker is pointed at its environment.scripts/build_dist.py.Per the maintainer's answer on #2027, this opens with the branch as it stands. The six findings the second local strict review pass raised are filed together as #2052. Pre-existing findings from earlier passes are #2025 and #2026.
Closes on promotion: #1947
🤖 Generated with Claude Code