Upstream wayfinder resolves research tickets by calling the Skill tool with `research`, expecting one cited findings note per question. That name landed on bin's reference-tree skill, which researches a tool's docs into topic files plus sources.md and stops to ask for an output path, stalling an AFK subagent. Implementation Notes: - bin's skill becomes `research-docs` (skill 2.0.0, bin 3.0.0) with a boundary clause routing single-question research to `research`. - mattpocock pins upstream research#v1.3.2 (0.4.0). - write-docs, GLOSSARY's Provenance chain and skill-author's template now name `research-docs`. BREAKING CHANGE: `research` now resolves to upstream's single-note skill; invoke `research-docs` for a per-topic reference tree. Fixes: #161 ADR: 0030 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
46 lines
2.7 KiB
Markdown
46 lines
2.7 KiB
Markdown
# `research` is upstream's single-question skill; bin's reference-tree skill becomes `research-docs`
|
|
|
|
**Status: accepted (2026-11-12).** Resolves #161. Builds on ADR-0029.
|
|
|
|
Upstream `wayfinder` (mattpocock `v1.3.2`) resolves a `wayfinder:research` ticket by having a
|
|
fresh-context subagent call the Skill tool with `research` (`SKILL.md` lines 77 and 115). It expects
|
|
upstream's contract: investigate **one question** against primary sources and write **one** cited
|
|
findings note, saved where the repo keeps such notes, that a pending decision waits on.
|
|
|
|
The bare name `research` resolved instead to bin's first-party skill, whose contract differs in
|
|
three ways that matter to wayfinder:
|
|
|
|
- It researches a **tool, library or API**, not an arbitrary question.
|
|
- It writes a **reference tree** (`<topic>.md` files plus a `sources.md` registry), the input of the
|
|
Provenance chain that `factory-audit` validates.
|
|
- It **stops and asks** when no output path is named. A wayfinder research subagent runs AFK, so
|
|
it stalls there.
|
|
|
|
The collision was silent: nothing warned that wayfinder's call landed on another contract.
|
|
|
|
**Decision.** Rename bin's skill to `research-docs` (bin 2.0.0 → 3.0.0, skill 1.0.2 → 2.0.0) and pin
|
|
upstream `mattpocock/skills/skills/engineering/research#v1.3.2` in `plugins/mattpocock` (0.3.0 →
|
|
0.4.0). Callers that want the reference tree route to `research-docs`: `write-docs` does, and
|
|
`GLOSSARY.md`'s Provenance chain and `skill-author`'s template name it.
|
|
|
|
**Rejected.**
|
|
|
|
- **Broaden bin's skill to cover both.** It would carry two output contracts behind one
|
|
description, against ADR-0020/0021's one-boundary rule, and the stop-and-ask gotcha that protects
|
|
the reference-tree run is exactly what stalls the AFK one.
|
|
- **Replace bin's skill with upstream's.** It drops the reference-tree pipeline the Provenance chain
|
|
depends on.
|
|
- **Rename bin's skill alone.** Upstream's call cannot be renamed without forking `wayfinder`, so it
|
|
would resolve to nothing.
|
|
- **Accept the partial fit.** Decision research that is not about one tool's docs keeps failing,
|
|
silently.
|
|
|
|
**Accepted cost: overlapping triggers.** Both skills are model-invoked. Upstream's description
|
|
("docs or API facts gathered") overlaps `research-docs`', and it cannot be edited without a fork.
|
|
`research-docs` carries the boundary clause ("Not a single question a decision waits on, answered in
|
|
one findings note -> `research`"); upstream's side has none, so a request to "research library X"
|
|
may route to either. Revisit if misrouting shows up in practice.
|
|
|
|
**Breaking for consumers.** Anyone invoking `research` for a reference tree now gets upstream's
|
|
single-note skill. That is why bin takes a major bump.
|