ADR 0002: Add an optional deep-research stage (external evidence)

decision

ADR 0002: Add an optional deep-research stage (external evidence)

About this note
Field Value
Status accepted
Date 260725
Deciders chamin
On this pageContextDecisionAlternatives consideredConsequences

Context#

The kit's corroboration gate produces internal consistency: a slide agrees with the narration, code agrees with its docs. AGENTS.md has always been explicit that this is not truth, and that real confidence needs a second source. Nothing in the kit actually went and got one.

The evidence after two ingests: brain/claims.md holds 23 claims, of which exactly one (#11) is cross-source. Both current sources are practitioner conference talks with no measurements. During the 12-factor ingest the only external artifact fetched - the companion repo README - turned out to share an author with the talk, so it corroborated the framework as stated but not that it works. That distinction had to be spotted and written by hand, which means it would be missed on a tired day.

Separately, chamin's stated goal for the kit is first-principles depth: each source should land into an already-understood conceptual neighbourhood, with the concept one level above it attached (his example: recognising agent skill design as procedural memory). Nothing in the flow reached outward to supply that.

Copilot CLI ships a /research command; Claude Code has no built-in equivalent. Its docs were read before designing this (GitHub Docs).

Decision#

Add deep research as an optional stage between the gate and distillation, triggered only when the user says "deep research" (or runs /research). Never automatic.

Five design commitments, each chosen against an obvious alternative:

  1. Target gated node IDs, not the subject. Open-ended topic research yields adjacent reading and makes the agent a summarizer; node-targeted research returns a verdict that changes a confidence value - supports / contradicts / refines / no-evidence.
  2. Tiered sources (T1-T5) plus a hard independence rule. Same author, organisation or commercial interest = the same leg wearing a different hat: record and cite it, but never let it raise confidence. This encodes the judgement that had to be made manually on the 12-factor repo.
  3. no-evidence is a first-class result. "This rests on one practitioner's experience" is a finding worth recording, not a failed search to pad with weak hits.
  4. Output is a permanent kit file - sources/<id>/context/<NN>_<slug>.md. Copilot CLI writes research to a throwaway session directory; this kit deliberately inverts that, per its standing rule that ephemeral output not captured into a kit file did not happen.
  5. Research stays out of LEARNING.md's body. That file answers exactly one question - what did this source teach? Blending external findings in would destroy the distinction between "the author claims this" and "the field thinks this", which is what the citation discipline exists to preserve. LEARNING.md may cite a context/ note; it must not absorb one.

Borrowed from Copilot CLI's /research: the autonomous stance (never interrupt with clarifying questions; state assumptions in a Confidence assessment section instead) and writing a full markdown report to disk rather than answering in the transcript.

Alternatives considered#

Consequences#