<!-- Generated by scripts/sync-skill-references.mjs; edit skills/shared/verify.md. -->

# Verify and report

## 1. Structural check: one call, exceptions only

Run `knowledge_verify` over every published ID (up to 100 per call). Supply
expectations from your plan, never copied from saved output:

- `expectedRevision`/`expectedHash` from receipts (a full hash or a row's
  16-character prefix).
- `owner`, `due_at`, `occurred_at`, `source_page`, `from`, `to`, `label`
  compare exactly; `null` asserts absence; omitted skips.
- `expectedEntities`/`expectedDependencies`: required members (extras allowed).
- `expectedLinks: [{id, href?}]`: authored links to intended IDs. List both pages
  when both directions are required.

It returns exceptions only. Follow `nextOffset` with the same records and
snapshot; restart if the snapshot changes. Passed checks need no structural
readback.

## 2. Investigate exceptions only

- A failed `expectedLinks` check names the link that does not resolve. Fix the
  target in the body and verify again.
- `knowledge_connections` with `links`/`backlinks` for missing neighbors.
  Follow `nextOffset`; restart if `snapshot` changes.

## 3. Semantic review: read only what needs judgment

Structure passing does not prove meaning. Review:

- Prose you wrote: does it say what the source says, with readable citations?
- Quotes and attributions: read the cited lines with
  `knowledge_evidence_read({id, path, sha256, startLine, endLine})`; follow
  `nextCursor`. `evidence.verified` checks bytes, not truth or speaker identity.

Keep reads bounded: a small `maxChars` for identity checks; `includeEvidence:
true` only when reviewing provenance. Don't fetch every body or original just to confirm publication; review prose
from the drafts you published, and read a saved body only when a check fails or
an existing page's merged result needs judgment.
Follow returned offsets; `omitted` names evidence previews left out to fit.

Retrieval: confirm one exact lookup and one distinctive keyword search. An
unavailable index (`total: null`) is not an empty vault.

## 4. Report

- Created, updated and reused records; retained sources; checks run; failures;
  unresolved identities; conflicts; partial work. One receipt never means a
  multi-page workflow is complete.
- In Control UI chat, link titles to
  `/plugin?plugin=knowledge&id=overview&p.agent=AGENT&p.vault=VAULT&p.record=RECORD`
  using `agent` and `vault` from `knowledge_status` (never `writtenByAgentId`)
  and the observed record ID, URL-encoded. Keep a known base path. If you can't
  establish the location, give the title and ID without a link. Never invent an
  origin, port or ID.
