You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
discovery:research fan-out: sub-slices reuse claim IDs, so the slice-root restatement check exits 2 #16352
On a multi-topic /discovery:research fan-out, each discovery:researcher numbers its claims independently. Two sub-slices of one run both declared X2 (and both used D1). The slice-root check the deep-tier reference prescribes for a synthesis that cites by ID then cannot grade:
check-restatement-labels.py <slice-root> --sub-slice <a> --sub-slice <b> --sub-slice <c>
error: <b>/RESEARCH-x-posts.md: claim 1: id X2 is already declared in <a>/RESEARCH-posts.md
status=ungradeable (exit 2)
The skill treats exit 2 as a FAIL, so every fan-out whose workers pick overlapping prefixes ends with a root index that cannot pass its own gate.
Evidence
One run, three sub-slices, discovery plugin 2.1.2. The collision follows from the design (no worker knows another's IDs), so it is not transient.
Options
The parent assigns each sub-slice an ID prefix in the dispatch envelope.
The checker namespaces IDs by sub-slice when --sub-slice is given.
Done when
A three-topic fan-out whose workers each declare X1 produces a slice-root index that check-restatement-labels.py --sub-slice ... grades with exit 0 or 1, never 2 for a cross-slice ID collision.
Size: Medium
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: the discovery plugin's check-restatement-labels.py, its test script, dispatch.md and research-verifier.md. Anyone running /discovery:research fan-outs reads or runs these.
Reversible: yes; revert the change.
Open questions: none
Decision recorded. The acceptance checklist below adopts intake's recommended answers to the refinement's four questions, under the owner's answer to the batch question for issues with only implementation questions.
A (recommended, chosen): an agent session posts a **Decision recorded.** comment on each, adopting triage's own answers as the acceptance checklist, so admission takes them.
B: the owner reviews each first.
Owner's answer, 2026-11-17, typed in an agent session, verbatim: "Go with recommendations."
[quote truncated; the full decision is at the link]
The decision settles every open question. The checker namespaces IDs by sub-slice, a bare ID must carry each matching claim's label, and the qualified <sub-slice>/X2 form is accepted. The collision fallback is removed from the docs. The acceptance checklist in the decision is the done-when. No duplicate or merged fix was found.
Not admitted to the issue lane yet: no trusted-human acceptance criteria: a listed human must put the confirmed - [ ] criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited; intake's refinement of this body is due and may supply them.
melodic-automation-lanes commented on Nov 15, 2026
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: Make the check-restatement-labels.py --sub-slice run grade a fan-out whose sub-slices reuse claim IDs with exit 0 or 1 instead of exit 2, most likely by namespacing IDs per sub-slice in the checker.
Which mechanism fixes the collision: the checker namespaces IDs by sub-slice, the parent assigns each worker an ID prefix in the dispatch envelope, or both?
RECOMMENDED: Namespace in the checker, so correctness does not depend on workers following a prefix rule. Basis: .base/plugins/discovery/scripts/check-restatement-labels.py:261
If the checker namespaces IDs, how does a root line cite a sub-slice claim when a bare X2 matches two claims? A qualified token like <sub-slice>/X2, or a bare ID that must carry every matching claim's label?
RECOMMENDED: Accept a bare ID as matching every declaration, so the line must carry each claim's label, and also accept the qualified form for a precise cite. Basis: .base/plugins/discovery/scripts/check-restatement-labels.py:275
Once the checker handles collisions, should the documented exit-2 fallback that sends the root to the verifier be removed from dispatch.md and research-verifier.md, and the checker's exit-code docs updated?
RECOMMENDED: Yes, remove the cross-sub-slice collision fallback and keep exit 2 only for a root claim that reuses a sub-slice ID. Basis: .base/plugins/discovery/skills/research/context/dispatch.md:286
The issue says the skill treats exit 2 as a FAIL, but dispatch.md:286 routes a cross-sub-slice collision to the verifier rather than a FAIL. Is the defect the checker's ungradeable result, or a gate path elsewhere (for example deep-tier.md or SKILL.md) that does treat it as a FAIL?
RECOMMENDED: Treat the checker as the defect, and confirm in SKILL.md's gate step 5 that no other path turns exit 2 into FAIL. Basis: .base/plugins/discovery/skills/research/context/deep-tier.md:182
Sources read
.base/plugins/discovery/scripts/check-restatement-labels.py:42-50: --sub-slice joins each sub-slice's declared IDs and says an ID declared in two sub-slices is ambiguous and ungradeable.
.base/plugins/discovery/scripts/check-restatement-labels.py:261-264: raises Ungradeable (exit 2) when a claim ID is already in the declared dict, which produces the reported error.
.base/plugins/discovery/scripts/check-restatement-labels.py:243-275: declared, texts and labeled are keyed by bare ID, so namespacing needs changes in several places.
.base/plugins/discovery/skills/research/context/dispatch.md:258-296: the --sub-slice check for a root; exit 2 on a shared ID sends the root to the verifier.
.base/plugins/discovery/agents/research-verifier.md:130-135: the brief says so when two sub-slices declare one ID, and the verifier checks those pointers by hand.
.base/plugins/discovery/skills/research/context/deep-tier.md:175-185: the root restatement check runs with --sub-slice per sub-slice.
To answer, post a comment that starts with this line:
**Decision recorded.** <answer>
Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.
Decision recorded. The acceptance checklist below adopts intake's recommended answers to the refinement's four questions, under the owner's answer to the batch question for issues with only implementation questions.
A (recommended, chosen): an agent session posts a **Decision recorded.** comment on each, adopting triage's own answers as the acceptance checklist, so admission takes them.
B: the owner reviews each first.
Owner's answer, 2026-11-17, typed in an agent session, verbatim: "Go with recommendations."
The owner approved this agent session posting triage's answers as the checklist; he did not answer each implementation question himself. Triage flagged nothing (triage). The answers adopted are the RECOMMENDED lines of the refinement:
The checker namespaces IDs by sub-slice, so correctness does not depend on workers following a prefix rule.
A bare ID in a root line matches every declaration, so the line must carry each matching claim's label; the qualified form <sub-slice>/X2 is also accepted for a precise cite.
The cross-sub-slice collision fallback is removed from dispatch.md and research-verifier.md, and the checker's exit-code docs are updated; exit 2 stays only for a root claim that reuses a sub-slice ID.
The checker is the defect; the change confirms that no other gate path (SKILL.md gate step 5, deep-tier.md) turns exit 2 into a FAIL.
The collision error is still on main (plugins/discovery/scripts/check-restatement-labels.py:263).
Acceptance criteria
check-restatement-labels.py <slice-root> --sub-slice <a> --sub-slice <b> --sub-slice <c> over three sub-slices that each declare X1 exits 0 or 1, never 2; a case in plugins/discovery/scripts/check-restatement-labels.test.sh covers it.
With --sub-slice, a root line citing a bare ID that two sub-slices declare passes only when it carries each matching claim's label; a test covers both the pass and the fail case.
A root line citing the qualified form <sub-slice>/X2 is graded against that one sub-slice's claim; a test covers it.
A root claim that reuses a sub-slice ID still exits 2; a test covers it.
plugins/discovery/skills/research/context/dispatch.md and plugins/discovery/agents/research-verifier.md no longer describe the cross-sub-slice collision fallback to the verifier, and the checker's exit-code docs match its new behavior.
The PR body names the lines of plugins/discovery/skills/research/SKILL.md gate step 5 and context/deep-tier.md it checked, and states that neither turns exit 2 into a FAIL (or fixes the one that does).
Activity
github-actions commentedon Nov 15, 2026
Size: Medium
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: the discovery plugin's check-restatement-labels.py, its test script, dispatch.md and research-verifier.md. Anyone running /discovery:research fan-outs reads or runs these.
Reversible: yes; revert the change.
Open questions: none
Decision comment: #16352 (comment)
The decision settles every open question. The checker namespaces IDs by sub-slice, a bare ID must carry each matching claim's label, and the qualified
<sub-slice>/X2form is accepted. The collision fallback is removed from the docs. The acceptance checklist in the decision is the done-when. No duplicate or merged fix was found.Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 15, 2026
Not admitted to the issue lane yet: no trusted-human acceptance criteria: a listed human must put the confirmed
- [ ]criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited; intake's refinement of this body is due and may supply them.melodic-automation-lanes commentedon Nov 15, 2026
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: Make the check-restatement-labels.py --sub-slice run grade a fan-out whose sub-slices reuse claim IDs with exit 0 or 1 instead of exit 2, most likely by namespacing IDs per sub-slice in the checker.
Related work
Open questions
RECOMMENDED: Namespace in the checker, so correctness does not depend on workers following a prefix rule. Basis: .base/plugins/discovery/scripts/check-restatement-labels.py:261
RECOMMENDED: Accept a bare ID as matching every declaration, so the line must carry each claim's label, and also accept the qualified form for a precise cite. Basis: .base/plugins/discovery/scripts/check-restatement-labels.py:275
RECOMMENDED: Yes, remove the cross-sub-slice collision fallback and keep exit 2 only for a root claim that reuses a sub-slice ID. Basis: .base/plugins/discovery/skills/research/context/dispatch.md:286
RECOMMENDED: Treat the checker as the defect, and confirm in SKILL.md's gate step 5 that no other path turns exit 2 into FAIL. Basis: .base/plugins/discovery/skills/research/context/deep-tier.md:182
Sources read
To answer, post a comment that starts with this line:
Automated refinement by the lanes App. Answer with a comment whose first line is
**Decision recorded.**.kyle-sexton commentedon Nov 17, 2026
Decision recorded. The acceptance checklist below adopts intake's recommended answers to the refinement's four questions, under the owner's answer to the batch question for issues with only implementation questions.
Question as put to the owner (Q42, covering #15499, #16352, #16353, #16524, #16579 and #16748): six issues with only implementation questions.
**Decision recorded.**comment on each, adopting triage's own answers as the acceptance checklist, so admission takes them.Owner's answer, 2026-11-17, typed in an agent session, verbatim: "Go with recommendations."
The owner approved this agent session posting triage's answers as the checklist; he did not answer each implementation question himself. Triage flagged nothing (triage). The answers adopted are the RECOMMENDED lines of the refinement:
<sub-slice>/X2is also accepted for a precise cite.dispatch.mdandresearch-verifier.md, and the checker's exit-code docs are updated; exit 2 stays only for a root claim that reuses a sub-slice ID.deep-tier.md) turns exit 2 into a FAIL.The collision error is still on
main(plugins/discovery/scripts/check-restatement-labels.py:263).Acceptance criteria
check-restatement-labels.py <slice-root> --sub-slice <a> --sub-slice <b> --sub-slice <c>over three sub-slices that each declareX1exits 0 or 1, never 2; a case inplugins/discovery/scripts/check-restatement-labels.test.shcovers it.--sub-slice, a root line citing a bare ID that two sub-slices declare passes only when it carries each matching claim's label; a test covers both the pass and the fail case.<sub-slice>/X2is graded against that one sub-slice's claim; a test covers it.plugins/discovery/skills/research/context/dispatch.mdandplugins/discovery/agents/research-verifier.mdno longer describe the cross-sub-slice collision fallback to the verifier, and the checker's exit-code docs match its new behavior.plugins/discovery/skills/research/SKILL.mdgate step 5 andcontext/deep-tier.mdit checked, and states that neither turns exit 2 into a FAIL (or fixes the one that does).Posted by an agent session.
github-actions commentedon Nov 17, 2026
A listed human released the issue's Work status hold, so it goes back to intake triage.
melodic-automation-lanes commentedon Nov 17, 2026
{"v":1,"actor_id":337595936,"title_sha256":"ec89a6a4eb6bd6e6dd0218d04a78885caf7d98c886891d5e67378a307572e21d","body_sha256":"bcf157174949cadc84ce4e0955bfb7ef1030e7289893bbe1afb3639ccd72c43c"}
github-actions commentedon Nov 17, 2026