Skip to content

Re-vendor the stale markdownlint and configure.sh carries - #27

Merged
ptr727 merged 0 commit into
developfrom
conformance/revendor-verbatim-carries
Aug 1, 2026
Merged

Re-vendor the stale markdownlint and configure.sh carries#27
ptr727 merged 0 commit into
developfrom
conformance/revendor-verbatim-carries

Conversation

@ptr727

@ptr727 ptr727 commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Both files are declared verbatim in the hub's spec/files.json, and the audit reports each as matching a past hub revision rather than the current canonical, so the base advanced and this repo's copies did not.

DRIFT  verbatim: .markdownlint-cli2.jsonc matches a past hub revision, not the current canonical - the base advanced, re-vendor it
DRIFT  verbatim: repo-config/configure.sh matches a past hub revision, not the current canonical - the base advanced, re-vendor it

Both files are now byte-identical to ptr727/ProjectTemplate@6501479.

What changed beyond the comment reflow

.markdownlint-cli2.jsonc gains MD033: { allowed_elements: ["details", "summary"] }, so GitHub collapsibles pass while every other inline element still flags. This only relaxes a rule, so it cannot introduce a new lint failure.

repo-config/configure.sh gains real behavior:

  • A per_page cap guard in ruleset_id: a full page of 100 means the single-fetch assumption no longer holds, and a missed lookup would make apply create a duplicate ruleset by name. It now aborts instead.
  • Explicit failure guards on four reads that previously ran bare - the missing ruleset payload, the id resolve, the live ruleset read, and the repository settings read - so an API error is a clean FAIL rather than a set -e abort or a false pass.

The remaining hunks are the comment reflow to one sentence per line.

Verification

  • diff against the hub canonical is empty for both files.
  • configure.sh retains mode 755 and LF endings; editorconfig-checker is clean over the tree.

Part of the conformance sweep against the hub baseline (audit run 2026-08-01T14:29:05Z | hub 6501479).

Copilot AI review requested due to automatic review settings August 1, 2026 15:07
@codecov

codecov Bot commented Aug 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 44.96%. Comparing base (30434d0) to head (768f290).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop      #27   +/-   ##
========================================
  Coverage    44.96%   44.96%           
========================================
  Files           25       25           
  Lines         3398     3398           
  Branches       259      259           
========================================
  Hits          1528     1528           
  Misses        1824     1824           
  Partials        46       46           

☔ 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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR re-vendors two carried “verbatim” files to match the current upstream template baseline, ensuring this repo’s lint and fleet-configuration tooling stays in sync with the hub canonical.

Changes:

  • Relax .markdownlint-cli2.jsonc MD033 to allow only <details> / <summary> for GitHub collapsibles while keeping other inline HTML disallowed.
  • Harden repo-config/configure.sh by failing loudly on ruleset list truncation (per_page=100 cap) and by adding explicit failure guards for several previously-unguarded reads.
  • Reflow comments to one sentence per line for consistency/readability without changing meaning.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
repo-config/configure.sh Adds defensive guards to avoid false passes/partial application when API reads fail or ruleset listing hits the per-page cap.
.markdownlint-cli2.jsonc Updates markdownlint configuration to permit GitHub collapsible markup without opening up other inline HTML.

@ptr727
ptr727 merged this pull request into develop Aug 1, 2026
13 checks passed
@ptr727
ptr727 deleted the conformance/revendor-verbatim-carries branch August 1, 2026 16:48
ptr727 added a commit that referenced this pull request Aug 3, 2026
Both files are declared verbatim in the hub's spec/files.json, and the
audit reports each as matching a past hub revision rather than the
current canonical.

markdownlint gains MD033 allowed_elements for details and summary, so
GitHub collapsibles pass while every other inline element still flags.

configure.sh gains a per_page cap guard in ruleset_id, which fails loud
rather than silently narrowing a lookup that would let apply create a
duplicate ruleset by name, plus explicit failure guards on the missing
ruleset payload, the id resolve, the live ruleset read, and the
repository settings read, so an API error is a clean FAIL rather than a
set -e abort or a false pass. The remaining hunks are the comment
reflow to one sentence per line.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
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