Skip to content

Fix hub bugs surfaced by the config-repo convergence - #447

Merged
ptr727 merged 1 commit into
developfrom
hub-fixes-configrepo-feedback
Jul 25, 2026
Merged

Fix hub bugs surfaced by the config-repo convergence#447
ptr727 merged 1 commit into
developfrom
hub-fixes-configrepo-feedback

Conversation

@ptr727

@ptr727 ptr727 commented Jul 25, 2026

Copy link
Copy Markdown
Owner

Five fixes routed back from the ESPHome-Config convergence (ESPHome-Config#65), items 7/3/1/4/8:

  • configure.sh check_ruleset guards a missing payload (fail; return) instead of aborting under set -Eeuo pipefail - it was dying on exactly the drift check exists to catch. Matches check_settings.
  • AGENTS.md Release Model dead cross-reference fixed (named README, linked WORKFLOW.md, heading existed in neither) - verbatim, re-vendors.
  • .markdownlint-cli2.jsonc MD033 gains allowed_elements: [details, summary] (GitHub collapsibles have no markdown equivalent; all other HTML still flags).
  • Python tasks snippet notes the Scripts-profile uvx adaptation.
  • ESPHome-Config driftNote reconciled (clang-format now added; subtree gates on ruff + pyright).

Deferred as a scope question (item 2): ESPHome's stale configure.sh/.markdownlint-cli2.jsonc were routine past-revisions, not the hand-forks the divergences.json dispositions cover, so it does not belong in those curated lists. Items 5/6/clang-format await the maintainer.

spec/validate.py OK; spec/audit.py --selftest PASS.

🤖 Generated with Claude Code

From the ESPHome-Config convergence (ESPHome-Config#65):
- configure.sh check_ruleset now guards a missing payload with fail; return
  instead of crashing under set -Eeuo pipefail on the exact drift check
  exists to catch (matches check_settings).
- Release Model's cross-reference named the README but linked WORKFLOW.md
  with a heading that exists in neither; point it at WORKFLOW.md plainly.
- .markdownlint-cli2.jsonc allows details/summary (GitHub collapsibles have
  no markdown equivalent); every other element still flags.
- The Python tasks snippet notes the Scripts-profile uvx adaptation.
- ESPHome-Config's driftNote reconciled (clang-format added; the subtree
  gates on ruff + pyright, not mypy).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 25, 2026 20:18

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.

Pull request overview

This pull request applies a small set of governance and tooling fixes routed back from the ESPHome-Config convergence, tightening failure behavior in repo configuration checks and aligning documentation/linting guidance with current practice.

Changes:

  • Prevent repo-config/configure.sh check_ruleset from aborting under set -Eeuo pipefail when a ruleset payload file is missing, while still reporting drift via the existing FAILED mechanism.
  • Allow GitHub <details>/<summary> collapsibles under MD033 while keeping other inline HTML flagged, and fix a Release Model cross-reference in AGENTS.md.
  • Update governance/catalog notes to reflect the Scripts-profile uvx workflow and reconcile the ESPHome-Config drift note to current tooling (ruff + pyright, clang-format).

Reviewed changes

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

Show a summary per file
File Description
repo-config/configure.sh Adds a guard so missing ruleset payloads are reported as drift (FAIL + continue) instead of causing an early abort under set -e.
AGENTS.md Fixes a dead/misnamed cross-reference in the Release Model section by linking directly to WORKFLOW.md.
.markdownlint-cli2.jsonc Configures MD033 to allow details/summary for GitHub collapsibles while continuing to flag other HTML.
catalog/snippets/configs/vscode-tasks-python.json Documents the Scripts-profile uvx pattern for lint-only Python subtrees without a uv project/lockfile.
registry/repos.json Reconciles the ESPHome-Config drift note to reflect current formatting/type-check tooling expectations.

@ptr727
ptr727 merged commit e75fd39 into develop Jul 25, 2026
7 checks passed
@ptr727
ptr727 deleted the hub-fixes-configrepo-feedback branch July 25, 2026 20:28
ptr727 added a commit that referenced this pull request Jul 25, 2026
Promotes #447 - the five hub-bug fixes from the ESPHome-Config
convergence (configure.sh crash guard, Release Model dead xref, MD033
details allowance, tasks Scripts note, ESPHome driftNote). Carried-file
changes, so downstream repos re-vendor them; needs to be on main for the
config-repo agents to pick up. Docs/config/spec only - no release.

`spec/validate.py` OK; `spec/audit.py --selftest` PASS.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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