Skip to content

Converge the intent-carried docs and config on the current hub - #93

Merged
ptr727 merged 4 commits into
developfrom
resync/intent-docs-and-config
Aug 15, 2026
Merged

ptr727 merged 4 commits into
developfrom
resync/intent-docs-and-config

Conversation

@ptr727

@ptr727 ptr727 commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Resync against ptr727/ProjectTemplate main@0e84805. Drift class 2 of 3: the intent-carried docs and config.

Audit run 2026-08-15T14:30:53Z | hub 0e84805. These are intent-fidelity files, so each was judged against the hub's change since this repository's copy rather than byte-matched.

CODESTYLE.md

The hub moved each language section behind a Skill pointer, so the expanded .NET and Python bodies are replaced by the current summaries. This repository's own content is kept rather than dropped, and moved under the section it belongs to:

  • the widened CI spelling scope (**/README.md, DEVICES.md, HISTORY.md), which is the owner's option to widen rather than a divergence
  • the easystart/python lint-only profile, with the uvx [email protected] pin recorded as a deliberate divergence from the fleet's unpinned default
  • the whole C++ section, which the hub does not carry at all

Both repo-local facts were re-verified against the tree before being restated: the cspell file list against test-pull-request.yml, and the ruff pin against both the workflow step and .vscode/tasks.json.

WORKFLOW.md

Re-carried whole from the hub. The previous copy was a stale baseline plus local edits, and predated several hub sweeps. This repository's one local addition, the set -euo pipefail divergence note, is kept on the hub's current Shells bullet, and its counts were re-checked against the tree: thirteen of fourteen workflow shell surfaces, plus easystart/tools/pull-apk.sh.

The carried text now states that an operational repository's pull_request trigger names develop alongside main. The workflow change that makes this true is #91, kept separate so the CI behavior change is reviewable on its own.

Config

  • version.json and repo-config/settings.json reindented to the fleet's 4-space canonical JSON. No value changes.
  • spec/secrets.json drops the all-null targetMechanisms map. The hub's repo-config carry doc has a source-only repository whose publish targets all map to a null mechanism carry baseline alone, since the audit enumerates baseline plus mechanisms and never reads targetMechanisms, so an all-null routing map with no mechanisms beside it reads as a schema bug.

Checked and left alone

.editorconfig, .gitattributes, and cspell.json were flagged by the timestamp heuristic, but every hub change since this repository's copy touches hub-only paths (scripts/, host-setup/, catalog/, .husky/) or hub-only vocabulary. AUDIT.md and spec/secrets.json are governed by the carry doc rather than the hub's own copies of those files, and this repository's adapted AUDIT.md already carries the current ruleset-field comparison.

Verification

markdownlint-cli2 over **/*.md, cspell at this repository's widened file list, editorconfig-checker, and the hub prose_lint.py over the changed lines. All clean.

CODESTYLE.md: the hub moved each language section behind a Skill
pointer, so the expanded .NET and Python bodies are replaced by the
current summaries. This repository's own content is kept and moved
under the section it belongs to rather than dropped: the widened CI
spelling scope (**/README.md, DEVICES.md, HISTORY.md), the
easystart/python lint-only profile with its uvx [email protected] pin
divergence, and the whole C++ section, which the hub does not carry.
Both repo-local facts were re-verified against the tree before being
restated.

WORKFLOW.md: re-carried whole from hub main@0e84805. This repository's
one local addition, the set -euo pipefail divergence note, is kept on
the hub's current Shells bullet, and its counts were re-checked
against the tree (thirteen of fourteen workflow shell surfaces, plus
easystart/tools/pull-apk.sh).

version.json and repo-config/settings.json: reindented to the fleet's
4-space canonical JSON. No value changes.

spec/secrets.json: drop the all-null targetMechanisms map. The
repo-config carry doc has a source-only repo whose targets all map to
a null mechanism carry baseline alone, since the audit enumerates
baseline plus mechanisms and never reads targetMechanisms.

Audit run 2026-08-15T14:30:53Z, hub 0e84805.
Copilot AI lite review requested due to automatic review settings August 15, 2026 14:53

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 pull request resyncs this repository’s intent-carried documentation and configuration files to align with the current fleet hub guidance, while preserving repo-specific divergences (e.g., widened spelling scope, ruff pin, and C++ section).

Changes:

  • Update WORKFLOW.md to the current hub contract text, including updated operational-model guidance and expanded deploy/retention guarantees.
  • Update CODESTYLE.md to the hub’s skill-pointer structure while retaining repo-local rules (notably spelling scope, ruff pin rationale, and C++).
  • Normalize JSON formatting and simplify spec/secrets.json by removing an unused all-null routing map.

Reviewed changes

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

Show a summary per file
File Description
WORKFLOW.md Resynced workflow contract/conventions text to the hub’s current guidance and expanded operational/deploy-related sections.
CODESTYLE.md Converted expanded per-language rule text into hub Skill pointers while preserving repo-local codestyle/spelling/lint-only Python details.
version.json Reindented to canonical JSON formatting (no semantic change).
spec/secrets.json Removed unused all-null routing metadata and clarified the intent in the note.
repo-config/settings.json Reindented to canonical JSON formatting (no semantic change).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread CODESTYLE.md Resolved
Comment thread CODESTYLE.md Resolved
Two review findings on the carried text, both real.

The intro named the language sections as .NET, Python and Shell while
the file also carries a C++ section, so it misdescribed its own
contents. It now names C++ as this repository's own addition.

The Markdown and Spelling paragraph stated the fleet's README plus
HISTORY spelling scope flatly, one paragraph above the widened list
this repository actually enforces. The fleet scope is now named as the
default it is, and the widening says outright that the default is not
what runs here.

Both files are intent-carried whole, so adapting the prose to describe
this repository is the fidelity the file is held to.

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

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

Suppressed comments (1)

WORKFLOW.md:152

  • This line references spec/secrets.json typeMechanisms, but this repository’s adapted spec/secrets.json contains only baseline (no typeMechanisms). That makes the reference non-actionable for readers of this repo’s copy of WORKFLOW.md; consider pointing to the hub canonical spec (or otherwise clarifying where typeMechanisms is defined).
- **D1.6 Coverage is reported to Codecov (C# and Python).** Input: a C# or Python repo's validation/test job. Output: tests run with coverage collection (`dotnet test --collect:"XPlat Code Coverage"` or `pytest --cov-report=xml`) and a `codecov/codecov-action` step uploads it, **best-effort** (`continue-on-error` and/or `fail_ci_if_error: false`, so a Codecov outage or an absent token never reds the gate). `CODECOV_TOKEN` lives in the repo's **actions** secret store and reaches the reusable validator via `secrets: inherit`. Required for **every** C# and Python repo that has tests (see `spec/secrets.json` `typeMechanisms`). The repo also ships a **`codecov.yml`** that sets the project and patch statuses to **`informational: true`** so a coverage delta never gates a PR (a distinct knob from `fail_ci_if_error`, which only guards the upload step), and excludes intentionally-untested, non-shipped code (an example/demo or benchmark project) from the coverage denominator via `ignore`. A repo may override this to enforce a coverage threshold where its quality bar requires it. Coverage output is a build artifact, so `.gitignore` excludes it (e.g. `coverage/` and `*.cobertura.xml`, with `.gitignore` the full source of truth) so a blanket `git add -A` won't stage the untracked output. *Prevents: coverage silently going unreported; a stale, unused token; a coverage regression blocking an unrelated PR; a coverage artifact committed by a blanket add.*

@ptr727

ptr727 commented Aug 15, 2026

Copy link
Copy Markdown
Owner Author

Answering the round-2 suppressed finding, which opens no thread to resolve.

This line references spec/secrets.json typeMechanisms, but this repository's adapted spec/secrets.json contains only baseline (no typeMechanisms). That makes the reference non-actionable for readers of this repo's copy of WORKFLOW.md

Declined. The observation is accurate and the conclusion does not follow, for three reasons.

WORKFLOW.md is carried whole at intent fidelity, and the whole-file carry is deliberate: a repository keeps the guarantees it does not exercise rather than trimming them, the same model CODESTYLE.md states in its own opening for an unused language section. D1.6 is a coverage guarantee for a C# or Python repository that has tests. This repository's Python is the lint-only profile with no pytest suite, so D1.6 is N/A here, and its pointer is inert rather than broken.

typeMechanisms is fleet vocabulary that is defined at the hub and resolved there. The downstream spec/secrets.json is a repo-scoped adaptation, per the hub's repo-config carry doc, and that doc has a source-only repository whose publish targets all map to a null mechanism carry baseline alone. Its absence here is the adaptation working, not a dangling reference.

Adding a "see the hub canonical" qualifier would put a local edit into byte-carried prose, and GOVERNANCE.md "Documentation Style Conventions" bars a carried file from naming the template repository as a reference, so the suggested remedy is the one edit this file may not take.

If the pointer is worth rewording, it is worth rewording fleet-wide at the hub, where every repository's copy would get it. That is not this pull request.

@ptr727

ptr727 commented Aug 15, 2026 •

Copy link
Copy Markdown
Owner Author

Re-checked against the updated hub, main@b09078e, since this pull request was written against 0e84805.

Not stale, no rebase needed. Between those two hub revisions the only carried file that changed is .github/copilot-instructions.md, which this pull request does not touch. AGENTS.md, GOVERNANCE.md, CODESTYLE.md and WORKFLOW.md are byte-identical across the two, so what this branch vendors is still the current canonical.

spec/audit.py --branch <this branch> ESPHome-Config against b09078e reports zero findings for every file this pull request touches.

One thing did change in this repository's favor: .github/workflows/publish-release.yml was settled accepted in the hub's divergence ledger on 2026-08-15, so the hub-only finding that stood on every audit of this repository is gone. It was the one finding this repository could never converge.

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

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

Suppressed comments (2)

CODESTYLE.md:59

  • The docs say the ruff CI gate runs as uvx ruff check . / uvx ruff format --check ., but the actual workflow and VS Code tasks are pinned to uvx [email protected]. As written, this is slightly inaccurate and suggests running an unpinned ruff version locally.
- **ruff is the only CI gate**, run as `uvx ruff check .` and `uvx ruff format --check .` from the subtree. A `[tool.pyright]` block in **standard** mode keeps Pylance quiet in the editor. There is no mypy gate: the subtree is one script importing an untyped BLE library, so a second type checker adds nothing over Pylance.
- **The ruff version is pinned**, `uvx [email protected]`, in the CI step and in the VS Code tasks alike so the two cannot drift. This is a deliberate divergence from the fleet default of running `uvx <tool>@latest` unpinned. The fleet reasons that a manual pin Dependabot does not track goes stale silently, and this repository reasons that an unpinned linter turns an upstream release into a surprise CI failure on an unrelated change. The divergence is raised with the fleet rather than settled locally, so expect this bullet to move once that is decided.

WORKFLOW.md:175

  • In D4.5 this bullet is scoped to a real publish, but the last clause says "still lets docker build on smoke", which contradicts both the stated input (real publish) and the earlier contract that smoke never publishes. This reads like a typo and is likely meant to refer to a publish run where other builds are skipped (unchanged/disabled) but not failed.
- **D4.5 A build failure blocks every publish target.** Input: a real publish where one enabled build fails. Output: nothing publishes. `github-release` needs every build, so a failed build skips it (no tag, no release), and the terminal registry pusher (Docker) needs every other build and guards its `if` with `!failure() && !cancelled()`, so a failed build skips docker too (no image push) while a disabled or unchanged target (skipped, not failed) still lets docker build on smoke. *Prevents: a partial publish, e.g. a Docker image pushed while the executable build failed and no release was cut.* A repo pushing two registry targets at once would need a build/publish split behind an all-builds gate, which none does today.

The gate bullet showed `uvx ruff check .` unpinned while the bullet
under it says the version is pinned to 0.15.22 in the CI step and the
VS Code tasks alike. A reader copying the first line ran an unpinned
ruff, which is the failure the pin exists to prevent, and the two
lines contradicted each other on the same screen.

Raised as a suppressed finding. Same class as the spelling-scope
contradiction fixed earlier in this pull request, a carried default
stated flatly next to the local rule that overrides it.
@ptr727

ptr727 commented Aug 15, 2026

Copy link
Copy Markdown
Owner Author

Answering the two suppressed findings on the current head, neither of which opens a thread to resolve.

1. CODESTYLE.md:59, the unpinned ruff commands

The docs say the ruff CI gate runs as uvx ruff check . / uvx ruff format --check ., but the actual workflow and VS Code tasks are pinned to uvx [email protected].

Accepted, fixed in f7526e6. Correct, and the two lines contradicted each other on the same screen: the gate bullet showed the unpinned commands while the bullet directly under it said the version is pinned in the CI step and the VS Code tasks alike. A reader copying the first line ran an unpinned ruff, which is the failure the pin exists to prevent. The commands now carry the pin.

Same class as the spelling-scope contradiction fixed earlier in this pull request, a carried fleet default stated flatly next to the local rule that overrides it.

2. WORKFLOW.md:175, D4.5 ending on smoke

In D4.5 this bullet is scoped to a real publish, but the last clause says "still lets docker build on smoke", which contradicts both the stated input (real publish) and the earlier contract that smoke never publishes.

Correct, and deliberately not fixed here. That clause is hub canonical text, introduced in ProjectTemplate #417 (a0903e3) and unchanged since, and WORKFLOW.md is carried whole. Rewording a D-guarantee locally would fork the fleet's behavioral contract wording in one repository, which is worse than the ambiguity it removes. Per this repository's own "Reviewing Carried Fleet Content" rule, a substantive defect in canonical prose is a valid finding whose fix lands at the template and re-vendors.

Filed as ptr727/ProjectTemplate#745, with the reading the mechanics support: !failure() && !cancelled() treats a skipped build as passing, so the sentence is about skipped-versus-failed on a real publish and "on smoke" is the wrong tail.

Coverage

Still PARTIAL, 3 of 5 files, unchanged across all three rounds and at the identical ratio. Per the runbook a re-request has never cleared that, so it is reported rather than retried into, and the merge decision is taken knowing two files in the diff carry no review.

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

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

@ptr727
ptr727 merged commit 3210b32 into develop Aug 15, 2026
8 checks passed
@ptr727
ptr727 deleted the resync/intent-docs-and-config branch September 20, 2026 16:36
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