Skip to content

Promote Five Develop Fixes for Config Comments, Lint Images, and Concurrency Audit to Main - #2866

Merged
ptr727 merged 6 commits into
mainfrom
develop
Oct 12, 2026
Merged

ptr727 merged 6 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Oct 12, 2026

Copy link
Copy Markdown
Owner

Summary

Promotes #2857, #2860, #2858, #2859, and #2863 to main.

  • Over-cap config comments are split and the scenario table gains S14.
  • The narrowed-scan diff-floor test no longer depends on the working directory.
  • The EditorConfig lint task image comes from the registry CI uses.
  • The audit flags a publisher or merge-bot concurrency group that drifts from WORKFLOW.md.
  • prose_lint.py's opt-in sentence-length check reads the remaining layouts it misread.

Closes #2845
Closes #2830
Closes #2844
Closes #2856
Closes #2843

🤖 Generated with Claude Code

ptr727 and others added 5 commits October 11, 2026 16:28
)

Fixes #2845

Answers the finding on tracker #1370 (comment 6114489697).

- Splits the over-cap comments in `.gitattributes` (lines 1 and 2) and
`.markdownlint-cli2.jsonc` (the three over-cap sentences at lines 19, 24
and 25) into sentences of 25 words or fewer, meaning unchanged.
- Runs the sentence-length check over every config canonical
`spec/files.json` lists and its `catalog/snippets/configs` references.
Only `catalog/snippets/configs/vscode-tasks-python.json` (three
comments) was over the cap besides the two above, and is split the same
way. No other copy or content hash pins these files' bytes.
- `.github/copilot-instructions.md` is prose rather than a config
comment, carries 12 over-cap sentences, and is left alone as not a plain
split.
- `WORKFLOW.md` section 6 files S14 under the publisher row, and the
sentence now reads "each scenario in section 5B's table" with no count.
Section 5B's two publisher ranges ("S5 to S10") now include S14.
Generated skill copies are regenerated with `build_dist.py`.
- Known and left: two sentences on WORKFLOW.md line 230 were already
over the cap before this change.

The `comments` label applies since comment lines are edited.

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

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…ectory (#2860)

## Summary


`TestDiffScopeFloor.test_a_deliberately_narrowed_scan_is_not_told_the_narrowing_is_a_defect`
narrowed the scan with the bare path `catalog`, which `prose_lint.main`
resolves against the working directory. It passed only from the hub
root, where a tracked `catalog/` exists. The test now creates `self.tmp
/ "catalog"` and passes its absolute path, so it resolves against the
mocked root.

Every other `main` call in the class passes `.` or no path, so no
sibling needed the same fix.

## Verification

- Before: `cd tests && python3 -m unittest
test_prose_lint.TestDiffScopeFloor` failed with `0 != 2`.
- After: 10/10 pass from the worktree root, from `tests/`, from
`scripts/`, and from a scratch directory.
- Full `python3 -m unittest discover -s tests`: 2626 tests OK.

Fixes #2830

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

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

- The `vscode-tasks.json` and `vscode-tasks-python.json` catalog
snippets now pull
`ghcr.io/editorconfig-checker/editorconfig-checker:latest`, the image
`validate-task.yml` and `scripts/docker_lint.py` pull, in place of the
Docker Hub `mstruebing/editorconfig-checker:latest`.
- Removed the now-unused `mstruebing` word from `cspell.json`.
- `RESYNC.md` step 6 gains one sentence: `.vscode/tasks.json` is a
presence unit the audit only asserts exists (`spec/files.json` declares
it with no fidelity), so its task groups, lint-task images included, are
brought in line with the catalog snippet for each of the repository's
types by hand. A resync would otherwise never carry this fix.

## Left unchanged on purpose

- `rhysd/actionlint:latest` and `davidanson/markdownlint-cli2:latest`
stay on Docker Hub in the snippets. CI runs those two through actions
rather than images, and `scripts/docker_lint.py` itself still names
these Docker Hub images, so no non-Docker-Hub image is in use for them
to match. The cspell task already uses
`ghcr.io/streetsidesoftware/cspell:latest`.
- The hub's own `.vscode/tasks.json` names no Docker image, so it needs
no change. No hash or manifest pins the snippet bytes.

## Verification

Unit suite: one timing-sensitive test in `test_pr_review.py` failed once
under machine load and passes alone, and the change touches nothing it
reads. `spec/validate.py`, `prose_lint.py` and the `eol` and
`eol-coverage` gates are clean.

## Local review

Three passes. Round one found the RESYNC sentence wrong (the audit does
not check the clean-compile group at all) and fixed it. Round two found
"the snippet" ambiguous for a repository of several types and fixed it.
Final pass: no findings. Declined as pre-existing or style: the step 6
and section 5 placement of a presence unit, and `spec/audit.py` calling
the task group an intent marker judged per AUDIT.md, which has no such
guidance.

Fixes #2844.

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

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…FLOW.md (#2859)

The audit now reads the workflow-level `concurrency:` of the carried
publisher and merge-bot and reports a drift from the groups WORKFLOW.md
D7.1 and D8.1 pin.

- The publisher group must be `${{ github.workflow }}-${{ github.ref
}}`, optionally followed by the push-only `run_id` suffix in the shape
the reference snippet uses.
- The merge-bot group must be `${{ github.workflow }}-${{
github.event.pull_request.number }}`.
- `cancel-in-progress` must be false or unset.
- A shape the check cannot read (flow mapping, folded scalar,
continuation line) is reported rather than skipped.
- A repo with neither workflow gets nothing, since the interface unit
already reports an absent file.

The selftest runs both reference snippets (pass), drift cases (global
group, literal group, ref-keyed bot, cancelling, wrong suffix), and
asserts the refusal messages. With the function stubbed to return
nothing, 9 cases fail.

Local review: two rounds. The last round's fix (suffix shape, message
assertions) was not re-reviewed since the two-round budget was spent.
Declined: reusing `workflow_input_text` (hard-wired to `with:`), and an
`audit_repo`-level test (the sibling python check has none either).

Fixes #2856

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

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Fixes #2843.

Fixes the layouts the sentence-length check still misread: a docstring
body deeper than its quotes, a non-prose line inside an indented comment
run, `/* */` continuation indents, Google free-text sections (Note,
Warning, See Also, Todo and the rest), the NumPy head versus prose test,
and a bare comment marker gap outside Python.

Item 6 (the bare marker gap) needed a code change: non-Python files did
not treat a bare marker line after a colon line as a gap.

Leftovers accepted and to be filed as one follow-up issue after merge.

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

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 12, 2026 00:29
@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

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

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1c043b1e-1a59-462e-8973-43ed2bb11287

  • 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

Unresolved critical concurrency-audit issues and moderate prose-parser correctness issues remain.

2 open findings
What changed in this PR

Promotes five fixes covering workflow guidance, prose linting, concurrency auditing, task images, and documentation synchronization.

Changes:

  • Adds S14 workflow coverage and concurrency checks.
  • Extends prose-lint parsing and regression tests.
  • Updates EditorConfig images and splits overlong comments.
  • Refreshes generated workflow guidance and digests.
File Summary
WORKFLOW.md Adds S14 scenario coverage.
tests/​test_prose_lint.py Adds parser and path-isolation tests.
spec/​audit.py Adds concurrency contract auditing.
RESYNC.md Documents task-file synchronization.
cspell.json Removes an obsolete entry.
catalog/​snippets/​configs/​vscode-tasks.json Updates the EditorConfig image.
catalog/​snippets/​configs/​vscode-tasks-python.json Updates the image and comments.
.markdownlint-cli2.jsonc Splits overlong comments.
.github/​skills/​workflow-ci-contract/​references/​test-methodology.md Updates generated guidance.
.github/​actions/​prose-gate/​prose_lint.py Expands sentence and comment parsing.
.gitattributes Splits overlong comments.
.claude-plugin/​fleet-skills/​skills/​workflow-ci-contract/​references/​test-methodology.md Updates generated guidance.
.claude-plugin/​fleet-skills/​.source-digests/​workflow-ci-contract Refreshes the generated digest.
.agents/​skills/​workflow-ci-contract/​references/​test-methodology.md Updates canonical guidance.

🧠 Review effort: Lite


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread spec/audit.py Resolved
Comment thread spec/audit.py Resolved
@codecov

codecov Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 8.60215% with 85 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.93%. Comparing base (ebff68d) to head (672e35e).
⚠️ Report is 366 commits behind head on main.

Files with missing lines Patch % Lines
spec/audit.py 8.60% 85 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2866      +/-   ##
==========================================
- Coverage   60.49%   59.93%   -0.56%     
==========================================
  Files          16       16              
  Lines        8534     8627      +93     
==========================================
+ Hits         5163     5171       +8     
- Misses       3371     3456      +85     
Flag Coverage Δ
python-3.13 59.93% <8.60%> (-0.56%) ⬇️

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.

… Allowlist (#2869)

## Summary

Fixes a Copilot finding on the promotion PR #2866. The publisher
concurrency audit accepted any actor exclusion list in the run-id
suffix, so a caller excluding only an unrelated bot passed. The pattern
now names the two allowlisted actors from `publish-plan-task.yml` in
either order. Whitespace is stripped outside single-quoted strings only,
so a mistyped name cannot collapse onto an allowlisted one. Self-test
cases cover a different actor list, a name with inner whitespace, and
the reversed order.

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

---------

Co-authored-by: Claude Sonnet 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.

🔵 Needs a closer look

Prose linting can incorrectly carry a colon block across a trailing comment gap and skip over-cap sentences.

0 open findings

2 resolved since last review

🧠 Review effort: Lite

@ptr727

ptr727 commented Oct 12, 2026

Copy link
Copy Markdown
Owner Author

Round 2 on head 672e35e: the review states 0 open findings, opens no thread, and its headline caution (a colon block carried across a trailing comment gap skipping over-cap sentences) names no file, line, or case. It matches the documented design of the change this PR already carries from #2863: prose_lint.py treats an indented comment run after a colon line, or after a bare-marker gap that follows one, as a command or table, per that function's docstring and its tests. No defect is claimed against that behavior, so no change is made here.

@ptr727

ptr727 commented Oct 12, 2026

Copy link
Copy Markdown
Owner Author

Evidence for the decline above, on the round-2 headline "Prose linting can incorrectly carry a colon block across a trailing comment gap and skip over-cap sentences".

I probed the prose gate at develop 672e35ef with constructed files. In each, the last comment line holds one 30-word sentence, and --check sentence-length was run on each file:

Case Layout Result
trail.py x = 1 # Usage:, then #, then # <sentence> reported
trail.sh the same layout in shell reported
trail.js let x = 1; // Usage:, then //, then // <sentence> reported
codegap.js a trailing // Usage:, then a code line, then // <sentence> reported
leading.py a leading # Usage:, then #, then # <sentence> not reported, by design

A trailing comment ending in a colon does not carry a code run across a gap in any of these languages. The one case that skips the sentence is the documented rule: an indented run after a leading colon line and a bare-marker gap is a command or table. If the headline means a layout other than these, a concrete case would reopen it.

@ptr727
ptr727 merged commit 687d5bd into main Oct 12, 2026
14 checks passed
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