Skip to content

Promote Develop: Tier Fallback, Hub-Only Exclusions, Python Profile Directories, and GOVERNANCE.md Sentence Length - #3553

Merged
ptr727 merged 5 commits into
mainfrom
develop
Oct 28, 2026
Merged

ptr727 merged 5 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

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

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

ptr727 and others added 4 commits October 27, 2026 18:15
## Summary

The paragraph under the `AGENTS.md` "Model Tiers" table said a tool with
no row runs every tier at the session's own model. The `highest` bullet
says a dispatch naming no model runs at its agent definition's model
where one is set. A tool with no row whose agent definitions pin a model
therefore got two different answers.

- `AGENTS.md` "Model Tiers": the sentence now says only that a dispatch
on such a tool names no model. The `highest` bullet alone decides what
it runs at.
- `spec/model-tiers.json`: the `note` says the same thing in the same
words.
- The three skills carrying "Model Tiers" as a generated include are
regenerated, with their distributed copies.

## Verification

- `spec/validate.py`: OK, the tier table and `spec/model-tiers.json`
still agree.
- `scripts/build_dist.py --check`: generated distributions are current.
- `tests/test_spec_validate.py`: 187 tests OK.
`host-setup/agent-safety/claude/test_model_tier_guard.py`: 18 tests OK.
- No test or `host-setup/agent-safety/` file pins the old `note` text.

## Pre-existing findings, not filed

- `AGENTS.md` "Model Tiers", `highest` bullet, `pre-existing`: on a tool
with no row, no tier can be named. A session launched on `highest` there
cannot follow "names a tier on every dispatch meant to run below it".
The old sentence had the same gap.

Closes on promotion: #3537

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

Co-authored-by: Claude Opus 5.5 <[email protected]>
…#3547)

## Summary

`spec/audit.py` `hub_only_paths` excludes three things from the hub's
tracked paths: the `spec/files.json` baseline, every hub path a `trees`
entry covers, and every hub path below a `repoOwnedTrees` entry. Three
prose statements of that set named only the baseline and the repo-owned
trees. Each now names the `trees` exclusion too.

- `AUDIT.md`, the carried-scope bullet.
- `RESYNC.md` section 4, the detector sentence and its mermaid node.
- `spec/project-types.json`, the `carried.hubonly.absent` assertion.

Each statement also says a `trees` entry covers only the hub paths below
its `source` that its `include` patterns match, which is what
`hub_paths_below(source, include)` does. The wording says "a `trees`
entry" with no qualifier, since the code excludes every declaration
whatever its `appliesTo`.

## Verification

- `python3 spec/validate.py` passes.
- `tests/test_spec_validate.py` and `tests/test_audit_helpers.py` pass,
298 tests.
- A recorded `local-strict-review` pass ran in two rounds. Round 1
raised that "carried" read as an applicability filter the code does not
apply, fixed in the second commit. Round 2 raised nothing.

## Dropped findings

- `AUDIT.md:88` and `RESYNC.md:92`, style: `prose_lint.py --check
sentence-length` flags three older sentences on the touched lines that
this change did not write.

Closes on promotion: #3543

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

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
## Summary

First slice of the sentence-length cleanup. Every over-cap sentence in
`GOVERNANCE.md` is split or restructured to 25 words or fewer, with its
meaning unchanged. The skills that include `GOVERNANCE.md` sections are
regenerated from the new text.

- `python3 scripts/prose_lint.py --check sentence-length GOVERNANCE.md`
goes from 306 hits to 2.
- The 2 that remain are in "PR Review Etiquette".
`.github/copilot-instructions.md` carries both sentences verbatim, and
that file is outside this change, so they stay as they are until both
copies move together.
- No heading, anchor, link target, inline code span, or quoted string
changes. The bullet openings other skills quote by name still read
verbatim.
- Sections a skill includes (agent-conduct, fleet-code-review,
session-handoff) are regenerated with `scripts/build_dist.py`, and
`--check` is clean. The "Incidental Counts" include in
comment-and-doc-style needed no change.

Commits go section by section so each diff stays reviewable.

## Verification

- `prose_lint.py` default rules on `GOVERNANCE.md`: clean. The opt-in
`sentence-split` count is the same as on `develop`.
- `uv run --no-project --script scripts/build_dist.py --check`: current.
- `python -m unittest discover -s tests`: 3072 tests, OK.
- `spec/validate.py`, `repo_gate.py`, `canonical_review.py status`, and
the whole-tree prose block from `OPERATIONS.md` "Local Verification":
clean.

## Local Review

Three recorded `local-strict-review` passes. The first raised 14
findings, and the second raised 6. Each `introduced` finding, a pronoun
or reason a split had loosened, is fixed in the two follow-up commits.
The third pass raised none. One `style` finding is declined: some bold
lead-ins changed punctuation or moved a period inside the bold. None is
a heading or anchor, and nothing outside the include regions quotes
them. `fleet-code-review` "Review the Change" item 5 omits pure
preferences.

Refs #3531

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

---------

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

- #3548: `python-codestyle` `SKILL.md` still names the build trait as
"the repo's deliverable". That file was outside this change's bounds.
- #3550: `profiles.md` "Adapt before propagating" uses "profile" for a
toolchain bundle, a second meaning beside the per-directory profile.
- #3552: `spec/type-model.md` and `spec/project-types.json` still
describe the Python profile per repository.

Closes on promotion: #3492

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

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 28, 2026 02:32
@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.

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

The documentation overstates root-directory gating for repositories without a declared directory or tracked root pyproject.toml and should be qualified.

1 open issue
What changed in this PR

Promotes develop to main, synchronizing model-tier fallback wording, hub-only exclusions, Python profile guidance, governance prose, and generated skill distributions.

Changes:

  • Aligns model fallback documentation across specifications, guidance, and generated skills.
  • Documents all hub-only path exclusions in the audit and resync contracts.
  • Defines Python profiles by declared directory.
  • Regenerates GitHub and Claude skill distributions and source digests.
File Description
spec/​project-types.json Documents trees exclusions in the hub-only assertion.
spec/​model-tiers.json Aligns the no-model fallback note with AGENTS.md.
RESYNC.md Updates the hub-only detector procedure and documentation.
CODESTYLE.md Adds per-directory Python profile guidance.
AUDIT.md Documents hub-only path exclusions and audit behavior.
AGENTS.md Corrects the no-model dispatch rule.
.github/​skills/​unattended-handoff/​SKILL.md Regenerated model-tier content.
.github/​skills/​session-handoff/​SKILL.md Regenerated governance and model-tier content.
.github/​skills/​python-codestyle/​references/​profiles.md Regenerated per-directory Python profile guidance.
.github/​skills/​local-strict-review/​SKILL.md Regenerated model-tier content.
.github/​skills/​fleet-code-review/​SKILL.md Regenerated governance content.
.github/​skills/​backlog-burndown/​SKILL.md Regenerated model-tier content.
.github/​skills/​agent-conduct/​SKILL.md Regenerated governance content.
.claude-plugin/​fleet-skills/​skills/​unattended-handoff/​SKILL.md Regenerated Claude skill distribution.
.claude-plugin/​fleet-skills/​skills/​session-handoff/​SKILL.md Regenerated Claude skill distribution.
.claude-plugin/​fleet-skills/​skills/​python-codestyle/​references/​profiles.md Regenerated Claude Python profile guidance.
.claude-plugin/​fleet-skills/​skills/​local-strict-review/​SKILL.md Regenerated Claude skill distribution.
.claude-plugin/​fleet-skills/​skills/​fleet-code-review/​SKILL.md Regenerated Claude skill distribution.
.claude-plugin/​fleet-skills/​skills/​backlog-burndown/​SKILL.md Regenerated Claude skill distribution.
.claude-plugin/​fleet-skills/​skills/​agent-conduct/​SKILL.md Regenerated Claude skill distribution.
.claude-plugin/​fleet-skills/​.source-digests/​unattended-handoff Updated the generated source digest.
.claude-plugin/​fleet-skills/​.source-digests/​session-handoff Updated the generated source digest.
.claude-plugin/​fleet-skills/​.source-digests/​python-codestyle Updated the generated source digest.
.claude-plugin/​fleet-skills/​.source-digests/​local-strict-review Updated the generated source digest.
.claude-plugin/​fleet-skills/​.source-digests/​fleet-code-review Updated the generated source digest.
.claude-plugin/​fleet-skills/​.source-digests/​backlog-burndown Updated the generated source digest.
.claude-plugin/​fleet-skills/​.source-digests/​agent-conduct Updated the generated source digest.
.agents/​skills/​unattended-handoff/​SKILL.md Updates the authored skill source.
.agents/​skills/​session-handoff/​SKILL.md Updates the authored skill source and governance content.
.agents/​skills/​python-codestyle/​references/​profiles.md Adds per-directory Python profile rules.
.agents/​skills/​local-strict-review/​SKILL.md Updates the authored skill source and governance content.
.agents/​skills/​fleet-code-review/​SKILL.md Updates the authored skill source and governance content.
.agents/​skills/​backlog-burndown/​SKILL.md Updates the authored skill source.
.agents/​skills/​agent-conduct/​SKILL.md Updates the authored skill source and governance content.

This pull request is ready to be approved.

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 (e1c3a01) to head (367bba0).
⚠️ Report is 433 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3553   +/-   ##
=======================================
  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.

## 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

- `.agents/skills/python-codestyle/SKILL.md:160`, `pre-existing`: the
same unconditioned root-gating claim in a file outside this change,
filed as #3554.

Closes on promotion: #3492

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

Co-authored-by: Claude Opus 5.5 <[email protected]>

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 identifies no active blocking issues, with only minor non-blocking wording nits across the synchronized documentation and generated guidance.

No open issues 🎉

1 resolved since last review

Review effort: Lite

@ptr727

ptr727 commented Oct 28, 2026

Copy link
Copy Markdown
Owner Author

Coverage, Merge Gate item 2: no Copilot round on this pull request has a file table naming GOVERNANCE.md. Round 1 on 4f3185e1 listed 34 of the 35 changed files and left out only GOVERNANCE.md. Round 2 on 367bba04 recommends approval and has no table. The maintainer decided on 2026-10-28 to accept the hosted Copilot review of GOVERNANCE.md on its feature pull request #3551 as covering that file here. That review raised one finding, fixed in f313f2e2 and resolved before #3551 merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants