Skip to content

Document ruleset full-payload PUT and markdownlint --fix adoption - #126

Merged
ptr727 merged 2 commits into
developfrom
template-refine-from-downstream-learnings
Jun 8, 2026
Merged

Document ruleset full-payload PUT and markdownlint --fix adoption#126
ptr727 merged 2 commits into
developfrom
template-refine-from-downstream-learnings

Conversation

@ptr727

Copy link
Copy Markdown
Owner

Captures two lessons from realigning the derived repos (Utilities/LanguageTags/NxWitness/PlexCleaner) into the durable template docs, so they propagate downstream on the next re-sync rather than living only in a maintainer's head.

  • README "Rules / Rulesets" caveat: renaming or updating an existing ruleset via API needs a full-payload PUT, not name-only - a partial update 422s with Unexpected parameter 'allowed_dismissal_actors' because GitHub re-validates the stored pull_request rule (which carries fields the GET doesn't return). Documented the GET -> change -> PUT-the-writable-subset -> verify flow. This is exactly what was needed to rename the legacy Develop/Main rulesets to develop/main on LanguageTags and NxWitness.
  • AGENTS verbatim-carry list: on first adoption of .markdownlint-cli2.jsonc, a repo's docs usually have pre-existing structural debt (MD022/MD031/MD032/MD040). Documented the markdownlint-cli2 --fix one-pass cleanup, the manual MD040 fence-labeling, and the re-verify-CRLF caution (--fix can rewrite a CRLF file as LF - hit this on Utilities).

markdownlint clean (0 errors); CRLF preserved.

…om downstream realignment)
Two lessons learned while realigning derived repos, captured in the durable docs
so they propagate downstream:
- README 'Rules / Rulesets': renaming/updating an existing ruleset needs a
full-payload PUT (name-only 422s on a hidden allowed_dismissal_actors param);
GET, change the field, PUT the whole writable subset, and verify protections.
- AGENTS verbatim-carry list: on first adoption of the shared markdownlint
config, run 'markdownlint-cli2 --fix' to clear pre-existing structural debt,
hand-label remaining MD040 fences, and re-verify CRLF (--fix can flip endings).
CopilotAI review requested due to automatic review settings June 8, 2026 16:02

CopilotAI 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 PR updates the template documentation to capture two operational lessons that came up while re-aligning derived repositories, so the guidance propagates downstream on the next re-sync instead of remaining tribal knowledge.

Changes:

  • Document that updating/renaming an existing GitHub ruleset via API requires a full-payload PUT of the writable field subset (not a name-only partial update).
  • Expand the verbatim-carry guidance for .markdownlint-cli2.jsonc with a first-adoption cleanup workflow (--fix, manual MD040 fence labeling) and an explicit CRLF re-verification warning.

Reviewed changes

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

FileDescription
README.mdAdds a ruleset API caveat describing the required GET/edit/full-payload PUT flow for renames/updates.
AGENTS.mdAdds first-adoption markdownlint cleanup guidance, including --fix usage and line-ending re-verification caution.

US-English violation surfaced by a Copilot review on a derived repo that carries
this section verbatim (the bidirectional upstream-defect contract in action).

CopilotAI 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

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

@ptr727
ptr727 merged commit 13faf8c into developJun 8, 2026
8 checks passed
ptr727 added a commit that referenced this pull request Jun 8, 2026
Promotes `develop` to `main`: template-doc refinements captured from the
downstream realignment - the ruleset full-payload-PUT caveat (README)
and the markdownlint `--fix` first-adoption step incl. CRLF re-check
(AGENTS), plus the US-English 'judgment' fix. (#126)
@ptr727
ptr727 deleted the template-refine-from-downstream-learnings branch July 7, 2026 21:05
Sign up for freeto 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

@ptr727