Repository navigation
Description
What this records
CODESTYLE.md carries a section per language, .NET, Python, and Shell. It carries no section for PowerShell or for Batch, and the fleet's own reusable validation workflow already gates PowerShell.
ptr727/HomeAutomation-Config is the carrier that surfaced this. It ships:
- PowerShell:
host-install/windows/install.ps1,host-install/windows/upgrade-host.ps1, with aPSScriptAnalyzerSettings.psd1at the repository root. - Batch:
host-install/windows/host-upgrade.cmd,host-install/linux/windows-backup/Backup-Lightroom.cmd,host-install/linux/windows-backup/Backup-Profile.cmd.
That repository's CODESTYLE.md "This Repository's Scripts" already names both languages, so a reader is not told the repository is bash-only. Naming a language is not routing it: nothing says how a .ps1 in a fleet repository is written, formatted, or verified.
Why it matters
The hub's reusable validation workflow runs PSScriptAnalyzer for a repository carrying .ps1 files, and PSScriptAnalyzerSettings.psd1 configures it. So an agent writing PowerShell in a fleet repository has a gate it can fail and no rule text saying what that gate wants. That is the same routing defect the carrier recorded for Python one language over, which was fixed by adding the section rather than by narrowing the claim.
A repository-local PowerShell section is not the fix, because CODESTYLE.md is carried content and a local addition reads as drift on the next fidelity check. The rule has to exist here or nowhere.
What would resolve it
Decide whether the fleet guide covers PowerShell and Batch at all.
- If it does, a
CODESTYLE.mdsection for each, at the granularity the Shell section uses, stating the formatter, the analyzer, and what the gate requires. - If it does not, say so explicitly in
CODESTYLE.md, so a carrier shipping those languages knows the omission is a decision rather than a gap, and so the PSScriptAnalyzer gate's expectations are documented somewhere a carrier can reach.
Either answer lets a carrier's own OPERATIONS.md "Local Verification" name the invocation, which is the half that can be fixed downstream.
Provenance
Filed from ptr727/HomeAutomation-Config issue #300, with the maintainer's explicit permission to open an issue here and no code change. That issue was found while fixing its own #289, which corrected the language claims in CODESTYLE.md and GOVERNANCE.md and deliberately added no rule text for a language the fleet guide does not cover.
Activity
ptr727 commentedon Nov 1, 2026
Decision needed (decision triage, 2026-11-01)
Question: Should the fleet CODESTYLE.md gain PowerShell and Batch language sections, given the carried validation workflow already gates
.ps1with PSScriptAnalyzer, or state explicitly that it does not cover them?Options, recommended first:
PSScriptAnalyzerSettings.psd1), the hub tracks 10.ps1files, and General already carries PowerShell rules, so a short section at the Shell section's granularity routes what is partly there. Batch has no analyzer and appears only as shim naming, so one sentence saying that is a decision covers it. Edits carried CODESTYLE.md, so a resync is owed. No work in flight..cmd/.batfiles to model it on. No work in flight.Evidence: CODESTYLE.md language sections are .NET (78), Python (86), Shell (101) only. Gate at validate-task.yml:247-265.
spec/divergences.json:25covers the settings file. f308185 (#3652) added a PowerShell rule to General without a section.Blocks: none
ptr727 commentedon Nov 1, 2026
Maintainer answer (decision triage, 2026-11-01): Option 1: add a short PowerShell section to CODESTYLE.md at the Shell section's granularity, covering when PowerShell is allowed, PSScriptAnalyzer defaults plus the settings file's documented exclusions, and the local invocation. Add one sentence saying Windows batch (.cmd/.bat) appears only as PATH shims, by decision. A resync is owed. This is now work for the next burndown round.
ptr727 commentedon Nov 24, 2026
Released (2026-11-24): PR #4404 merged to develop at c7f3a4c; branch and worktree cleaned up, so this claim holds no files.
Backlog burndown claim (away-mode run, round 2, scope
develop)Group: #1748, with #1153 items 1 and 2 only. Branch:
burndown/codestyle-powershell-section.Predicted files:
CODESTYLE.mdAGENTS.md.agents/skills/shell-codestyle/SKILL.md, plus the generated copiesscripts/build_dist.pywrites from itScope: the PowerShell section and batch sentence #1748's 2026-11-01 answer decided. The narrowed Shell sentence #1153's 2026-09-07 and 2026-09-11 answers decided, kept byte-parallel in
shell-codestyle"When shell, not Python". The Shell scope note, #1153 item 2. TheAGENTS.mdsentence naming the language sections and their Skills. The remaining #1153 items stay open and unclaimed. Whether the new section gets apowershell-codestyleSkill is split out to #4403, and this group adds no Skill.Add a PowerShell Section to CODESTYLE.md and Narrow the Shell Rule (#…