Skip to content

fix(discovery): namespace sub-slice claim IDs in check-restatement-labels - #16880

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-16352-44126298542-1
Nov 17, 2026
Merged

melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-16352-44126298542-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #16352

Summary

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

check-restatement-labels.py --sub-slice now keys each sub-slice's claims by <sub-slice dir name>/<id>, so a fan-out whose researchers each declare X1 is graded (exit 0 or 1) instead of exiting 2. A root line may cite the qualified <sub-slice>/X2, graded against that one claim, or a bare X2, which names every claim declaring it and so must carry each one's label (decision recorded on the issue: namespace in the checker, accept both forms). Exit 2 stays for a root claim that reuses a sub-slice ID, an ID declared twice in one sub-slice, and two sub-slices sharing a directory name. The verifier fallback for a cross-sub-slice collision is gone from dispatch.md and research-verifier.md, and dispatch.md's row 14 count now counts one claim per <sub-slice>/<id>.

Gate paths checked (acceptance item 6): plugins/discovery/skills/research/SKILL.md:48 (gate step 5) reads the restatement check's exit status 'as in step 4' (SKILL.md:46: 0 pass, 1 a violation, 2 ungradeable, both non-zero values are FAILs), so it does turn exit 2 into a FAIL. That was the defect's route: a cross-sub-slice ID collision produced exit 2. After this change that collision no longer produces exit 2, so the FAIL only fires on a genuinely ungradeable root, which is intended. context/deep-tier.md:182-183 runs the --sub-slice check on a claim-free root and deep-tier.md:196 says 'any non-zero halts'; it has no collision-specific path and needed no change. dispatch.md:258-296, the one place that special-cased a collision exit 2 (verifier fallback), now sends any non-zero exit back for rewriting and keeps only the renumber rule for a root claim that reuses a sub-slice ID.

Not verified

  • plugins/discovery/scripts/check-restatement-labels.test.sh was not executed: this lane's Bash runs only the named wrappers, so neither python3 nor the test suite could run here; left to the PR's CI. The cases were traced by hand by the review subagent.
  • A qualifier that names no declared sub-slice (e.g. typo/X2) is not reported: the bare X2 after the slash still matches and is graded against every claim declaring X2. Reviewer flagged it as a possible gap; not in the issue's acceptance criteria.
  • Python lint (ruff) and markdownlint were not run on the touched files: not available through this lane's wrappers; left to the PR's CI.
  • tidy pass 5 (ai-slop:audit fix) ran only as a manual rubric read: the lane's Bash cannot run detect.sh or digest-guard.sh, so the deterministic detector and the semantic-diff guard did not run. Passes 1-4 ran (one simplify edit in the checker, one wording edit in research-verifier.md).

Fix

  • plugins/discovery/scripts/check-restatement-labels.py: sub-slice claims keyed <name>/<id>; a token on a line resolves to every key it names (bare ID: every declaring claim; qualified: one); label check runs per key; a quote of a bare shared ID may quote any of its claims; sweep-word…
  • plugins/discovery/scripts/check-restatement-labels.test.sh: replaced the 'one ID in two sub-slices is ambiguous' exit-2 case with cases for three sub-slices each declaring X1 (exit 0 with summary line), a bare shared ID with all labels (pass) and missing one (fail), a qualified ID graded against…
  • plugins/discovery/skills/research/context/dispatch.md: describes the namespacing and both citation forms, removes the cross-sub-slice collision verifier fallback (both the claim-free and the claim-adding root paths), and counts row 14 per <sub-slice>/<id>
  • plugins/discovery/agents/research-verifier.md: removes the 'unless two sub-slices declare one ID' hand-check fallback and states how a shared ID is cited
  • .changes/discovery/work-resolve-issue-issue-16352-44126298542-1-2e409f1e.md: patch changelog fragment for the fix

Verification

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

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

The run reports:

  • check-changelog-fragments: all 6 fragments valid (run before and after tidy and review fixes)
  • check-changed-skills: research skill PASS, 0 errors, 14 pre-existing warnings
  • check-affected: 17 passed, 5 skipped (typos not installed; checks that run code from the checked tree), over 5 changed files
  • fresh-context review subagent traced every new and existing test case by hand against the code and found one confirmed bug (a sweep word inside a sub-slice name failed a correct qualified pointer), fixed with a new test, plus a row-14 counting gap in dispatch.md (fixed) and a stderr-order change…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44126298542

Left out: the items under Not verified.

Related

#16352

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

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #16880 (incremental since cfb37d1): no security issues found

Scope. This review covers only what changed since cfb37d1. That is one file, plugins/discovery/scripts/check-restatement-labels.test.sh, and I read its whole hunk in .claude-lane/incremental.diff. The file matches none of the trusted-path globs, and no plugin manifest changed. This lane already reviewed an earlier head, so this review reports only CRITICAL and IMPORTANT findings.

What changed. The push deletes a three-line # comment in the test script, the one explaining that sub-slice IDs are namespaced by directory name, and puts a blank line in its place. No test case, command or assertion changed.

What I checked.

  • Behavior. The hunk changes no executable line, so the test suite runs exactly as it did at the head I reviewed last.
  • Instruction-surface lens. A comment in a shell test script is not a standing instruction to a model. Removing it takes away no guardrail.
  • Prior findings. The only earlier entry is the last review's summary comment, which reported 0 findings. There are no open inline findings to repeat.
  • Embedded text. The PR context has no instructions aimed at this lane.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental, cfb37d1 → a55d207): #16880

Blocking-only review: no findings. This lane reviewed an earlier head of this PR (blocking only: yes), so this pass reports only blocking findings. It covered one file, plugins/discovery/scripts/check-restatement-labels.test.sh, and I read the whole of its change.

What changed since the last review

  • The commit removes three comment lines before the X1 namespacing cases and leaves a blank line in their place. The removed lines said that sub-slices may reuse an ID, that a <name>/X1 names one claim, and that a bare X1 names every claim declaring it.
  • No executable line changed. The x1_a/x1_b/x1_c setup and every run/expect_out case are the same as at the head reviewed earlier. Each case's description string still explains its own intent.
  • The namespacing explanation is still in the docstring of grade() in check-restatement-labels.py (reviewed last round). Losing the test-side comment is advisory at most, so I don't report it here.

Closing issue #16352. None of its acceptance criteria rests on the changed lines. The test cases that cover criteria 1–4 are unchanged, so the earlier assessment still holds.

Not verified. This lane has no shell, so I ran no tests or linters. The author's verification is their own claim and I could not confirm it.

Other notes

  • No text in the PR context tried to direct this review.
  • No plugin manifest changed.
  • The change spends nothing.
  • Loosened-check verdict: does not apply. The change only removes comments and loosens no check. The wrapper gave no loosened-check verdict line, so the default of fail with no consumer entries was used.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head f835a7381c74164b81b053c656ce94f951034b7c. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/fix-ci
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44143060896

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed cfb37d1
Run 44143060896

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/fix-ci
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44153008696

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed a55d207
Run 44153008696

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for a55d207

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-16880-a55d207d3c3359e6655bbe29188723a104287bcd, expires on 2026-12-17.

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=a55d207d3c3359e6655bbe29188723a104287bcd rubric=10.2.0 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 17, 2026
Merged via the queue into main with commit a283081 Nov 17, 2026
45 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-16352-44126298542-1 branch November 17, 2026 19:29
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit a28308150ef3502c71c57abef6ed159513bf4757; 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.

discovery:research fan-out: sub-slices reuse claim IDs, so the slice-root restatement check exits 2

0 participants