Skip to content

docs(work-items): cut restated GitHub role mapping from label-provenance passages - #17100

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16835-44271918053-1
Nov 18, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-16835-44271918053-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16835

Summary

Opened by the work-resolve-issue lane. The run's own summary:

The label-provenance passages in item-content-trust.md and work-class-labels.md restated that GitHub's triage role holds label rights with read permission; both now state only that label rights reach roles below write and point to GitHub's role permissions table ("Apply/dismiss labels" row). CONTRACT.md's label-provenance paragraph restated how maintain and triage map; label-provenance.sh relies on that field, so it is rewritten as our own rule with its reason (the adapter reads permission, never role_name, because the trust rule compares against a fixed set of roles and role_name can name a custom role), with the mapping left at the existing REST pointer. measure-delivery's metric table already states this skill's own measure in its "Measured here as" column, so it stays; one sentence now says each row is the skill's own measure and the definition stays at the DORA pointer, whose "Throughput and instability" section was confirmed to name the same five metrics.

Not verified

  • check-affected skipped typos (not installed), comment-hygiene (fetch of the ci-workflows action failed in the sandbox) and three validate-plugins sub-checks plus changed-skills that run checked-tree code; these are left to the PR's CI.
  • Tidy: passes 1-3 had no code lines. write-for-agents trimmed the measure-delivery sentence and write-for-humans left the fragment unchanged. The ai-slop deterministic detector (detect.sh) could not run because this lane's Bash allows only the named wrappers, so only the rubric was applied, by…
  • Review LOW note, not acted on: CONTRACT.md no longer says inline that maintain reads as write. Restating it would bring back the restatement the issue removes, and the anchored pointer still covers it.
  • Review LOW note, out of scope: the same maintain/triage mapping is restated in the header comment of plugins/work-items/tools/work-item-tracker/adapters/github/label-provenance.sh:5 and in adapters/github/README.md:516. Neither file is named in this issue's done-when.
  • Review LOW note, kept: the measure-delivery sentence sits close to the Purpose pointer. It is kept as the recorded reason the flagged table stays.
  • No build or test suite applies to these markdown-only edits, so verify is recorded as skipped. The git status shows untracked dotfiles at the checkout root (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) that this run did not create; they are…
  • Changes are left uncommitted in the working tree as the runner's instructions require; the runner turns them into the patch.

Fix

  • plugins/work-items/reference/item-content-trust.md: "Who applied the label" no longer restates the triage-to-read mapping; it points to the Permissions for each role table instead.
  • plugins/work-items/reference/work-class-labels.md: "Who applied the role label" no longer restates the triage-to-read mapping; it points to the same table.
  • plugins/work-items/tools/work-item-tracker/CONTRACT.md: the label-provenance paragraph says the adapter reads the permission field (not role_name) and why, leaving the role mapping at the REST pointer.
  • plugins/work-items/skills/measure-delivery/SKILL.md: one sentence above the metric table says each row is this skill's own measure and the definition stays at the DORA pointer.
  • .changes/work-items/work-resolve-issue-issue-16835-44271918053-1-4502d0e5.md: patch changelog fragment for work-items.

Verification

The runner ran each check from the base copy against f6686f5:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • read https: //docs.github.com/en/rest/collaborators/collaborators#get-repository-permissions-for-a-user: permission gives the legacy base roles admin, write, read and none, with maintain mapped to write and triage to read; role_name gives the assigned role's name, custom roles included.
  • read https: //docs.github.com/en/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/repository-roles-for-an-organization: in the Permissions for each role table, Triage can apply and dismiss labels and Read cannot.
  • read https: //dora.dev/guides/dora-metrics/: the "Throughput and instability" section defines change lead time, deployment frequency, failed deployment recovery time, change fail rate and deployment rework rate, matching the skill's table.
  • Read plugins/work-items/tools/work-item-tracker/adapters/github/label-provenance.sh:85-95: the adapter trusts a label only on .permission admin or write and reads role_name for reporting only, matching the CONTRACT.md wording.
  • check-changelog-fragments: all 6 fragments valid (run before and after tidy).
  • check-changed-skills: measure-delivery PASS, 0 errors, 2 warnings (the description is 430 chars, over the 419 warning threshold, which predates this change; the body grew by 3 lines from 144 to 147).
  • check-affected: 14 passed, 8 skipped over 5 changed files (run before and after tidy).
  • Fresh-context review subagent over the full diff: no HIGH or MEDIUM findings; 3 LOW notes, none acted on (see not_done).
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44271918053

Left out: the items under Not verified.

Related

#16835

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed f6686f55c25a781371af378daa8124fd360e3f20: read 5 of 5 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #17100

I found no security issues. This was a full review, not blocking-only, since no earlier head was reviewed. I read every hunk of all 5 changed files. None of them matches a trusted-path glob.

What changed. The PR only edits documentation and adds a changelog fragment. It touches no code, workflow, manifest, hook or trust control.

  • item-content-trust.md and work-class-labels.md used to say "triage has label rights with read". They now say "label rights reach roles below write" and point to GitHub's role-permissions table. Both passages keep the admission rule exactly as it was: a role label counts only when its latest labeler holds write, maintain or admin, and a triage or read labeler, a missing event or a failed read is refused.
  • CONTRACT.md drops the inline note on how GitHub maps maintain and triage. In its place it explains why the adapter reads the permission field and never role_name. The trust condition (admin or write only) is unchanged. The new wording is stricter, if anything: it states that role_name, which can name a custom role, must never be used to decide trust.
  • measure-delivery/SKILL.md gains one sentence saying the metric table is the skill's own measure. It has no security surface.
  • The changelog fragment is prose only.

Instruction-surface lens. No standing rule is removed, narrowed or softened. The text that was cut described GitHub's behaviour, not a rule of ours, and each passage still states the label-provenance admission gate in full. The adapter that enforces that gate (adapters/github/label-provenance.sh) is not part of this diff. The protected-class list in the instruction exception register was not consulted: I matched by consequence, and no removed text was a guardrail.

The PR context contains no embedded instructions aimed at this review lane.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed f6686f55c25a781371af378daa8124fd360e3f20: read 5 of 5 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings

I read the full diff for all 5 files. The change is documentation only. It removes text that restated GitHub's role mapping and adds one framing sentence to measure-delivery.

Closing issue #16835 (done-when): met. Here is how each named passage was handled:

  • reference/item-content-trust.md and reference/work-class-labels.md: the triage-to-read restatement is cut. Both now point to the section-anchored "Permissions for each role" table.
  • tools/work-item-tracker/CONTRACT.md: rewritten as our own rule with a reason: read permission, never role_name, because role_name can name a custom role. The mapping stays behind the REST pointer. I checked this against the adapter. adapters/github/label-provenance.sh:90-95 trusts a label only on .permission admin/write and reads role_name for reporting only, so the new wording matches the code.
  • skills/measure-delivery/SKILL.md: the new sentence points to the DORA pointer that already sits in Purpose (lines 27-29). The table already states the skill's own measure for each metric.

No test could fail on these prose criteria, and none could reasonably be added, so I don't report a test gap.

Path-scoped rules: cost-claims.md and skill-bodies-state-current-rules.md match the changed files. Neither is broken. The new text states our decision and keeps the section-anchored pointers, with no as-of date.

Out of scope, noted by the author, not a finding: the same maintain/triage mapping is still restated in label-provenance.sh line 5 and in adapters/github/README.md. Neither file is named in the issue's done-when.

Verification: I ran nothing. The PR body's check results (changelog-fragment and changed-skills checks) are author-claimed and unverified.

Changelog fragment: a patch bump for a docs-only change is the right level.

Loosened-check verdict: fail (default; the prompt gave no loosened_check_verdict: line); patterns: 0. No check is loosened.

No embedded instructions found in the PR context. Nothing is settled or prior (0 earlier heads, not blocking only).

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head f6686f55c25a781371af378daa8124fd360e3f20, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for f6686f5

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-17100-f6686f55c25a781371af378daa8124fd360e3f20, expires on 2026-12-18.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=LOW demote=false head=f6686f55c25a781371af378daa8124fd360e3f20 rubric=10.3.2 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit afa31f9 Nov 18, 2026
49 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16835-44271918053-1 branch November 18, 2026 11:01
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit afa31f937624221d764bf7566a92198a0f9808cc; later checks count it verified from this comment.

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.

docs: cut restated upstream behavior left by the stamp sweep (batch 6) - part 3 of 6

0 participants