Guard named source dependencies

Type: types/instruction.md

Inspect the candidate for every addition or material change that depends on a named external source, regardless of the target collection. The guard applies when, for example:

  • the user or brief names a source, URL, or ingest as support;
  • the candidate adds or materially changes an attribution, quotation, empirical result, or borrowed mechanism tied to a named source; or
  • a review finding asks for exact claim/source grounding.

A passing mention or adjacent example that the candidate does not use as support is not a source dependency. In edit mode, compare against the incumbent and do not retrigger the guard for unchanged source-dependent wording.

For each guarded dependency, resolve exactly one direct tracked kb/sources/<slug>.ingest.md from the supplied ingest, canonical source URL, or unambiguous source identity. Read its complete Quotes section and the semantic/grounding-alignment gate from the library's review-gate catalog (./review-gates/, resolved from this instruction's real location).

  • When the retained verbatim quotes contain enough source material for the gate to judge the candidate's use, apply the gate directly to that use. Quote enough that a verbatim passage is unique in its eligible source region; if the citation form supports a range and you give one, the quote must fall wholly inside it. Link the ingest without a snapshot marker and keep target-specific transfer reasoning in the target. Ignore every ingest section outside Quotes as source support.
  • Use the snapshot route only when an earlier grounding run returned snapshot required. Put the exact marker (snapshot required) in the ingest link text. Derive the exact name-paired snapshot, require its exact-byte SHA-256 and canonical source to match the ingest, read it, and apply the same gate to the candidate's use. Stop if the snapshot is absent, mismatched, or does not support the use.
  • Otherwise, if Quotes is insufficient and the ingest exists, invoke cp-skill-ground with Target: <ingest path> and Claim needed: <the source-side proposition or question>, then act on its route: quotes sufficient or quotes added — re-read the Quotes section and apply the gate as in the first bullet; snapshot required — take the snapshot route above; a blocker — stop before saving and report it. Record every quotes added result, with the ingest path, in the author’s final report so the append is never a silent side effect of a write.
  • If the dependency names a URL with no tracked ingest, stop before saving and report the exact URL for a separate cp-skill-ingest run; this writer does not create source records.

If neither an exact ingest nor a canonical URL can be resolved, stop and ask for that source identity rather than inventing an input. This guard invokes the grounding skill; the writer does not create or edit an ingest as a way to ground a source dependency. An authorized connect-report edit targeting an existing ingest leaves its capture metadata and Quotes unchanged. This guard introduces no separate result protocol. It reads a source snapshot only for a declared snapshot required dependency.