Skip to content

docs(conventions): record why the label separator is colon-space - #288

Merged
kyle-sexton merged 2 commits into
mainfrom
docs/268-label-separator-rationale
Jul 29, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
docs/268-label-separator-rationale

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

The label naming grammar mandated <axis>: <value> with no reasoning recorded. A rule with no
rationale gets re-litigated: a recent design session re-derived the whole balance from scratch,
recommending a switch twice before the evidence was complete. This records the standing reasoning
beside the rule so the next reader finds the answer where the question is asked.

What changed

One file, conventions/process/issue-tracker.md, in the "Naming grammar" section:

  • The separator bullet now says slash is declined on evidence rather than by inheritance —
    neither form is an industry default, so this is a chosen convention — and links github-iac's
    ADR 0009 for the measurement.
  • A short paragraph names the quoting hazard the space costs, the mitigation, and why reversing
    the separator is not worth its cost.

The rule itself is unchanged. This documents the convention; it does not alter it.

Acceptance criteria

Inferred from the issue's own "Acceptance" list, unchanged:

  • The separator bullet states why colon-space, not only that it is colon-space — the
    rationale is in the bullet itself, matching how the "Long-form values" bullet beside it carries
    its own reasoning.
  • The label:<axis>: <value> quoting hazard is named where a reader would hit it — stated
    directly under the grammar it is a consequence of, in the grammar's own placeholder notation
    rather than by naming a live label member (paragraph 7 commits this file to naming no members).
  • The rationale points at the ADR for the measurement rather than restating it — no counts,
    percentages, or repository tallies are reproduced; only the shape that survives the numbers aging.
  • The false "the fleet already migrated, so precedent supports colon-space" argument is not
    reproduced anywhere — verified by grep over the repository, which returns no such claim in any
    tracked file, before or after this change.

Evidence

Both empirical claims were verified rather than inherited from the issue.

The quoting hazard, live against this repository:

Form Result
--search 'label:priority: low' 0 results, exit 0, no error
--search 'label:"priority: low"' 7 results
--label 'priority: low' 7 results

The seam claim, in source: adapters/github/list-items.sh calls gh issue list --json …labels…
with no --search, and lib/frontier.sh filters with jq index() — exact-string, core-side. The
citation targets CONTRACT.md#verbs-core-public-surface, the section that owns that behavior.

Independent review corrected a false claim before this PR opened. The first draft said "this
fleet's own labels are split between the two." That is wrong, and the error originates in the
issue body itself: ADR 0009's 28-repository survey measures external open-source projects
(Kubernetes, Terraform, React, Vue…), not melodic-software's repositories, whose labels are
uniformly colon-space. The text now attributes the ecosystem split to the projects it was actually
measured across. The true fleet state is deliberately not used as an argument — current state is
evidence, never justification.

Review also narrowed a second over-claim. "Automated lanes do not inherit the hazard" was too
broad: ADR 0009 preserves a residual exposure for skill-authored search templates, and
work-items CHANGELOG 0.24.2 records a real silent-zero in e2e-probe.sh (#1256) caused by
exactly this. The text now scopes the mitigation to the tracker seam and states plainly that a
lane building its own query string is still exposed — which keeps ADR 0009's revisit trigger #3
(a real silent-zero incident in a lane) intact rather than pre-empting it.

Two further review findings were applied: cite the seam's contract instead of restating its
filtering behavior, and drop a dash-separator disqualification that would have added a third
prohibition the rule does not carry — a change to the convention, not documentation of it.

Cross-doc reconciliation

conventions/process/issue-tracker.md is a normative doc, so distribution/governance-process.md
requires the author to confirm no other doc is left contradicting the change. Performed:

  • Swept all 104 tracked markdown files for naming grammar, separator, colon, slash,
    gh label, label:, and tracker seam. No other file states a label-separator rule;
    conventions/process/README.md describes this file as owning the grammar, which stays true.
  • conventions/engineering/naming.md does not contradict the added text.
  • No duplication of the gh label list pagination note in paragraph 7, or of the tracker-seam
    mention later in the file — that cites #lease-protocol for lease semantics, this cites
    #verbs-core-public-surface for label filtering. Different facts, different anchors.

No other normative doc is left contradicting this change.

Verification

  • npm run lint:md — 0 issues across 104 files
  • lefthook pre-commit (typos, editorconfig, gitleaks, markdownlint) — all green
  • lychee — 0 errors on the authored tree; the ADR URL is a private-repo link already excluded by
    lychee.toml with a documented rationale, and the same repo is already linked from
    conventions/process/autonomy-binding.md. The link is marked "internal" so a public reader can
    tell an auth-walled target from a rotted one, and the rationale stands on its own without it.

Related

The naming grammar mandated colon-space with no reasoning recorded, so the
question gets re-litigated by whoever reads the clause next — most recently
by a design session that had to re-derive the balance from scratch.

State the reasoning where the question is asked: neither separator is an
industry default, so this is a chosen convention rather than an inherited
one, and the ADR that re-derived it carries the measurement. Name the
search-qualifier quoting hazard the space costs, since a reader hits it at
this grammar, and record why it is accepted rather than fatal — without
overstating the mitigation, because a lane that builds its own query string
is still exposed and a silent zero there is a trigger to re-open the choice.

Closes #268
@claude

claude Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

Claude finished @kyle-sexton's task in 2m 25s —— View job


PR Review

  • Gather context (diff, REVIEW.md, changed file)
  • Review change for correctness, accuracy, and convention alignment
  • Post findings

Summary: Docs-only change to conventions/process/issue-tracker.md. The rule itself is unchanged; the two additions record why slash is declined and what the space-in-value quoting hazard means and how to handle it. No blocking issues. One suggestion-level nit.


Correctness

The factual claims hold up:

  • "GitHub publishes no delimiter guidance" — true; GitHub's label documentation prescribes no naming format.
  • The silent-zero behavior (label:<axis>: <value> → 0 results, no error) is a real GitHub search-qualifier quirk, confirmed by the evidence table in the PR body.
  • The tracker-seam carve-out is correctly scoped: the link to CONTRACT.md#verbs-core-public-surface cites the contract rather than restating behavior, and the residual exposure for lanes building their own label: strings is preserved.
  • The placeholder notation (<axis>: <value>) in the quoting-hazard paragraph honours paragraph 1's promise to name no live label members. ✓

Convention alignment

Both additions match the document's established prose style — long bullets with inline em-dash rationale, and a bold-lead paragraph for secondary observations. The acceptance criteria in the PR body (rationale in the bullet, quoting hazard under the grammar, ADR pointed at rather than restated) are all met.

One suggestion-level nit

conventions/process/issue-tracker.md line 20:

exposing every live attachment to a rename path GitHub does not document

GitHub's REST API does document label renaming (PATCH /repos/{owner}/{repo}/labels/{name}), and that path preserves label-issue associations. The real risk in this context is that Pulumi tracks labels by name, so a rename in code is a destroy-then-recreate — which does drop live attachments. That IaC-specific behaviour is what "GitHub does not document" but the phrasing could mislead a reader who takes the API docs at face value and concludes the sentence is wrong. A more precise reading anchor might be something like "a fleet-wide rename via infrastructure-as-code runs as delete-then-recreate, silently dropping every live attachment" — though the governance section later in the file does establish the IaC context, so a reader who gets there will backfill it.

This is a clarity suggestion, not a correctness blocker. The underlying argument (don't rename unless the cost-benefit is clearly positive) is sound; the ambiguity is only in which "path" is undocumented.


No other findings. The cross-doc reconciliation, lychee result, and lefthook confirmation in the PR body are thorough. The ADR link's private-repo status is already handled with the "internal" descriptor and a lychee.toml exclusion consistent with how other github-iac links in this repo are treated.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 17c35b40a1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread conventions/process/issue-tracker.md Resolved
Comment thread conventions/process/issue-tracker.md Resolved
@kyle-sexton

Copy link
Copy Markdown
Member Author

Merge-lane status: escalating, not resolving. Both Codex threads are correct per this repository's own conventions, and the P2 thread understates its own case. Contributing the evidence below; leaving both threads unresolved because clearing them requires a content decision plus a governance step, neither of which is mine to make.

First, a correction to how this PR is gated

This PR is BLOCKED with all 43 checks green. The blocker is the org-level base ruleset (17988999), which sets required_review_thread_resolution: true with current_user_can_bypass: "never". So these two bot threads are a hard merge gate, not advisory review — regardless of required_approving_review_count: 0.

P1 is correct, and it is a dogfooding failure

conventions/engineering/documentation-and-citations.md:22-24 states the rule this PR breaks:

A recorded upstream default, version gate, or price belongs in durable content only with an explicit recheck trigger — a date, an automation, or a tracked task. A snapshot with no recheck trigger is drift waiting to happen.

"GitHub publishes no delimiter guidance" is exactly such a claim, and AGENTS.md holds a change here to the same bar as downstream consumers.

Recommended remedy: the dated-observation reframe, not a new citation. Adding a GitHub docs URL to prove a negative ("no guidance exists") is not something a citation can do, and inventing one to satisfy a thread that is itself complaining about uncited upstream claims would compound the defect.

P2 is correct — and stronger than the thread argues

The thread hedges with "even if labels with multiword values would remain exposed." That hedge is unnecessary. Read from the IaC authority (melodic-software/github-iac Labels.cs, which this PR's own bullet points to as where labels are set), all 20 governed prefixed labels have single-token values with no internal space:

area: security          governance: managed     status: needs-decision
status: needs-info      status: ready           priority: critical
priority: high          priority: low           priority: medium
priority: needs-triage  wayfind: design         wayfind: interview
wayfind: prototype      wayfind: research       wayfind: task
work-class: mechanical   work-class: read-only   work-class: scoped
work-class: structural   work-class: untrusted-provenance

So for every label that exists fleet-wide today, slash would remove the quoting hazard completely — label:priority/low needs no quoting. "Reversing the separator would buy those lanes nothing" is therefore false as written, not merely overstated.

The nuance that makes this a human decision

The claim is not arbitrary, though — and this is the part neither the thread nor the PR body states. The enforced grammar in github-iac tests/.../LabelsGrammarTests.cs:58 is:

^[a-z][a-z -]*: [a-z0-9][a-z0-9 -]*$

The value class [a-z0-9][a-z0-9 -]* deliberately permits spaces. Multiword values are legal under the governed grammar; they simply are not used yet. So the honest tradeoff is a choice between two premises:

  • Rest the rationale on the current label set → slash eliminates the hazard entirely, and the case for colon-space reduces to migration cost plus the undocumented rename path.
  • Rest it on the permitted grammar → slash only defers the hazard until the first multiword value, and "buys nothing" is defensible as forward-looking, but must say so explicitly.

Those are materially different arguments for the same conclusion. Picking one rewrites why a fleet-wide naming convention exists.

Why the lane is not fixing this

  1. It is a content decision, not a mechanical fix. Removing "buys nothing" leaves the convention resting on "migration cost + undocumented rename path" — an argument this PR never makes. An automated lane should not author the rationale for a fleet naming convention on the author's behalf.
  2. AGENTS.md:29-32 requires a governance step first: a change to a normative file "needs the cross-doc reconciliation self-review step in distribution/governance-process.md before it merges, not after."

@kyle-sexton — this needs your call on which premise the paragraph should rest on, then the reconciliation step. Both threads left unresolved deliberately; no files touched.

Escalated by the autonomous merge lane (instance melo-lap-001-merge-20260729T125518Z).

@kyle-sexton

Copy link
Copy Markdown
Member Author

This was generated by AI during triage.

Raw intake — close-link sanity check only. Outcome: tracked, scope matches. agent-ready applied.

This PR carries Closes #268, so it inherits that issue's triage rather than receiving its own. Full intake was skipped by design; the checks below are the whole audit.

Check Result
Close-link resolves to a tracked issue ✅ #268 is OPEN, labelled agent-ready, status: ready, priority: low
PR scope ⊆ issue scope ✅ one file, conventions/process/issue-tracker.md — exactly the file and section #268 asks to amend
Acceptance criteria addressed ✅ all four of #268's ## Acceptance items are checked off in the PR body with stated evidence
Checks ✅ 43/43 SUCCESS
Mergeability MERGEABLE, mergeStateStatus: BLOCKED — merge-lane business, not a triage finding

One thing worth recording because it is load-bearing elsewhere: this PR writes the colon-space rationale into the grammar clause that #266 Slice 5 would have to amend, and it is consistent with github-iac ADR 0009 (Accepted — 2026-07-24). It is cited as such in the decision summary just posted on #266. No conflict — noted only so the two are not resolved in opposite directions.

No further triage is required on this PR.

@kyle-sexton kyle-sexton added the agent-ready Fully specified and briefed; eligible for autonomous pickup from the frontier. label Jul 29, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Follow-up: the governance requirement here is author-owned, which settles it independently of the prose.

My earlier comment cited AGENTS.md pointing at distribution/governance-process.md. Having now read that file, it is more specific than the pointer suggested, and it resolves the question of whether an automated lane may clear these threads.

distribution/governance-process.md:46-53 defines the scope, and names this exact file:

A normative doc is any file in conventions/ — or elsewhere in this repository — that states a rule another doc cites or assumes: naming.md, process/issue-tracker.md, and review/code-quality.md are representative examples...

And :68-77 assigns the check and its owner:

Ownership. This organization keeps required_approving_review_count at 0 everywhere... The cross-reference check is therefore a self-review checklist item the author performs before merging, not a delegated reviewer gate: the author runs the check and states in the pull request that no other normative doc was left contradicting the change. Until an automated check exists, this is the sole control — treat it as required, not optional, precisely because nothing else backstops it.

Three things follow, and none of them depend on how good a fix anyone could draft:

  1. The required control is an author attestation, not a code change. A merge lane cannot perform it on the author's behalf without forging the one control the repository says nothing else backstops.
  2. It must be stated in the PR, and it must happen before merge — so it is a precondition of clearing these threads, not a follow-up.
  3. Because required_approving_review_count is 0 org-wide, there is deliberately no second reviewer to catch a skipped check. That is exactly why the document calls it required rather than optional.

So the earlier question — whether the P2 correction is mechanically derivable or requires choosing a rationale — is moot for merge purposes. Even a perfect patch would still need @kyle-sexton's cross-reference check and attestation. The evidence in my previous comment stands and should shorten that work; it does not substitute for it.

Both threads remain unresolved. No files touched.

Housekeeping: this lane's claim marker now reads expires=2026-07-29T14:27:42Z, superseding the 14:03:14Z value on my earlier comments on this PR and on #289 — the lease was re-acquired mid-cycle. Same instance, melo-lap-001-merge-20260729T125518Z.

…gle-word quoting benefit

Addresses two Codex review findings on #288: the no-delimiter-guidance
claim now names the GitHub docs page it was checked against with a dated
observation, and the quoting-hazard paragraph acknowledges that a slash
separator removes the hazard for single-word values before weighing that
partial relief against the fleet-wide rename cost.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TkLLDcB8Ht2tm3j688F5ZP
@kyle-sexton
kyle-sexton enabled auto-merge (squash) July 29, 2026 22:30
@kyle-sexton
kyle-sexton merged commit ec6c9c0 into main Jul 29, 2026
1 check passed
@kyle-sexton
kyle-sexton deleted the docs/268-label-separator-rationale branch July 29, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-ready Fully specified and briefed; eligible for autonomous pickup from the frontier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(conventions): record why the label separator is colon-space, not slash

1 participant