Skip to content

Re-sort the two definition blocks #588 pushed out of order - #590

Merged
ptr727 merged 1 commit into
developfrom
fix/reference-definition-sort-order
Aug 6, 2026
Merged

Re-sort the two definition blocks #588 pushed out of order#590
ptr727 merged 1 commit into
developfrom
fix/reference-definition-sort-order

Conversation

@ptr727

@ptr727 ptr727 commented Aug 6, 2026

Copy link
Copy Markdown
Owner

#586 named the collation for reference-definition sort order as the text inside the brackets, and #588 then inserted into two blocks without applying it. Found by Copilot on the promotion pull request #589, which is blocked on both threads.

The two blocks

  • CODESTYLE.md appended the two vscode-tasks links after ruff-link when it repointed them into hub-only catalog/, which stranded uv-link below them. uv-link belongs between ruff-link and vscode-tasks-link.
  • docs/repo-config-carry.md put governance-hub-hosted-tooling at the head of a <!-- Repo --> group Name the collation for the reference-definition sort order #586 had itself just sorted, above governance-documentation-style and governance-git-and-commit-rules.

Both are pure reorderings. No link target, anchor, or reference name changes, so no rendered output changes.

Why a mechanical check did not catch it

This is exactly the trap #586 recorded when it named the key. A plain sort -c over either block compares the whole line rather than the bracketed label, and both blocks pass that reading, so a "sorted" block reaches review looking consistent. Nothing in repo_gate.py or prose_lint.py asserts the order today, which is why the reviewer is the only surface that flagged it.

Verification

A sweep over every reference-definition group in every markdown file in the tree, keyed on the bare label, reports these two groups and no others before the change, and zero after it. scripts/prose_lint.py --diff origin/develop and scripts/repo_gate.py are both clean.

Refs #583

#586 named the collation for reference-definition sort order as the text
inside the brackets, and #588 then inserted into two blocks without
applying it. `CODESTYLE.md` appended the two `vscode-tasks` links after
`ruff-link`, leaving `uv-link` stranded below them, and
`docs/repo-config-carry.md` put `governance-hub-hosted-tooling` at the
head of a group `#586` had itself just sorted.

Both are the trap that rule records. A plain `sort -c` over either block
compares the whole line and reports it ordered, so the defect survives a
mechanical check and reaches review, which is where Copilot caught both.

A sweep over every definition group in the tree, keyed on the bare label,
reports these two and no others, and zero after this change.

Refs #583

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 6, 2026 16:07

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 PR restores the repository’s established reference-definition sort collation (by the bare label inside []) in two Markdown definition blocks that were previously reordered inconsistently, without changing any reference names or link targets.

Changes:

  • Reorders the <!-- Repo --> reference-definition group in docs/repo-config-carry.md so governance-hub-hosted-tooling sorts after the other governance-* entries.
  • Reorders the <!-- External --> reference-definition group in CODESTYLE.md so uv-link sorts between ruff-link and the vscode-tasks-* links.

Reviewed changes

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

File Description
docs/repo-config-carry.md Fixes reference-definition ordering in the <!-- Repo --> group to match the documented collation.
CODESTYLE.md Fixes reference-definition ordering in the <!-- External --> group so uv-link is correctly positioned.

@ptr727
ptr727 merged commit 3d1a0b1 into develop Aug 6, 2026
6 of 7 checks passed
@ptr727
ptr727 deleted the fix/reference-definition-sort-order branch August 6, 2026 16:40
ptr727 added a commit that referenced this pull request Aug 6, 2026
…, and the operational pull-request trigger (#589)

Promotes the five commits develop carried since #582: #584 (a Copilot refusal is not coverage), #586 (the reference-definition collation), #587 (CI on a pull request into an operational develop), #588 (hub-hosted tooling, de-vendoring configure.sh), and #590 (the two definition blocks #588 pushed out of order).

Merge commit, no squash, develop not deleted. git merge-tree reported no conflict and wrote a tree byte-identical to origin/develop.

GOVERNANCE.md is verbatim-carried and three of these commits change it, so a fleet re-vendor is owed, including an entirely new carried section. #588 also turns every downstream repo-config/configure.sh copy into a deletion rather than a convergence, and #587 leaves a one-line trigger change owed by four operational repos.
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