/dos-kernel:dos-witness-claimfrom DOS — the trust substrate for agent fleets
Routes subagent claims through independent read-back before another agent relies on them. Use at parallel, pipeline, or synthesis barriers where shipped effects must be witnessed.
Ships in DOS — the trust substrate for agent fleets. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This is the screenplay for the one move the whole substrate exists to make: when a subagent hands you a result, the result is a claim, not a fact. A claim re-narrating the agent's own work is consistency, not grounding (docs/138). Belief is earned only by a read-back whose byte-author is not the judged agent (a fresh GET, a git existence check, an OS exit code, a state diff). This skill never decides ground truth itself — it shells
dosverbs and reads the verdict. The kernel decides; the skill narrates.
The shape is domain-free: discover the layout → classify the claim type →
witness it on a non-forgeable rung → fold ONLY confirmed. The policy (which
lanes, which plan grammar, where state lives) is data the screenplay reads from
dos doctor --json, never literals it hardcodes.
The seed-2 payoff. This makes the worker's MODEL TIER irrelevant to trust. A weak worker and a strong worker face the SAME witness gate: both have their claimed effect re-read from a surface they did not author. A confident, fluent, frontier-strength narration of a success the world does not corroborate is exactly the silent fail this gate catches (docs/177) — and a weak worker that actually shipped the effect passes it. Distrust is aimed at the byte-author of the evidence, not at the worker's eloquence.
parallel() barrier or a pipeline() stage. A result is
the thing you are tempted to interpolate directly (${result}) — don't.(plan, phase), a created file
path, a DB row key, a sent-message id). If the worker emitted no checkable
effect, that is a real outcome (NO_CLAIM), not a pass — see Step 2.Run the doctor verb and read the result. This is the WCR on-ramp: every path/lane/exit-code below comes from here, never a literal.
dos doctor --workspace . --json
Parse the JSON object. The fields this skill uses:
exit_codes.verify — {shipped, not_shipped, contract_error}. Branch on these,
never on parsing the prose, for the git-phase claim type (Step 3a).exit_codes."verify-result" — {healthy, unreadable, dead, contract_error}
(dead=3). Branch on these for the terminal-state witness (Step 3, the
prerequisite gate every claim type runs first).paths.plans_glob / lanes / stamp — the host's plan grammar and lane
taxonomy, if a claim names a (plan, phase).git — if false, the git-existence witness (Step 3a) has no history to read;
every git-phase claim will be source="none". Say so; do not silently pass it.You may also read admission_predicates and overlap_policy here, but they are
not load-bearing for witnessing — they describe the arbiter, not the witness rung.
Run this BEFORE you read the worker's return string at all. A return string is
worthless if the "worker" was a harness-synthesized death (a rate-limit / quota /
auth / server error the harness wrote and the worker never authored). ~32% of real
subagents return such a string (docs/197 §2), and it survives a naive
.filter(Boolean) to be banked as a finished finding.
dos verify-result --workspace . --transcript <agent-transcript.jsonl>
echo "exit=$?"
Branch on exit_codes."verify-result":
3 DEAD — the terminal record was harness-authored (message.model == "<synthetic>", the unforgeable authorship marker). Do NOT fold this result.
Route the worker's OWN unit for re-dispatch, and count it in the denominator
(a 4-of-7 fan-out is 4/7, never silently 7/7). The catch is grounding because it
read a DIFFERENT byte-author than the worker — the harness, not the model.0 HEALTHY — a real terminal result; proceed to Step 2. (0 also covers
UNREADABLE, the fail-safe floor: a read fault never fabricates a death. An
UNREADABLE result is not trusted as confirmed — it simply isn't classified
DEAD; its effect still must be witnessed in Step 3.)2 — a contract error (no transcript). Fix the wiring; do not treat as HEALTHY.This step is itself the cheap, shipped form of "byte-author ≠ judged agent": the liveness of the worker is read from the harness's own authorship marker.
For each HEALTHY result, decide what checkable effect it claims. Extract the claim at the boundary — abstain, never invent. Free prose ("I'm done", "shipped the auth work") yields NO claim: there is no honest way to derive the effect's identifier from prose without inventing it (docs/134 §2.1). A claim you cannot name is a NO_CLAIM — surface it for a human, do not manufacture one to witness.
Map each named claim to its witness rung:
| Claim type | What the worker asserts | Witness (byte-author ≠ agent) | Verb today |
|---|---|---|---|
| git phase | "(plan, phase) shipped" | git ancestry + ship-stamp grammar | dos verify (Step 3a) — SHIPPED |
| terminal state | the result itself is real | harness authorship marker | dos verify-result (Step 1) — SHIPPED |
| created file / DB row / sent message / deploy | "I created X / inserted row Y / sent Z" | a fresh GET / state-diff / OS exit / counterparty record | NO CLI verb (Step 3b) — Python API gap |
The first two are shipped CLI verbs. The third is the open seam — handled honestly in Step 3b.
For a (plan, phase) claim, never trust the worker's "I committed it" and never
grep commit subjects yourself:
dos verify --workspace . <PLAN> <PHASE> --json
echo "exit=$?"
Read the ShipVerdict: {shipped, source, sha?}. Branch on exit_codes.verify
(shipped:0, not_shipped:1, contract_error:2), and read the rung:
source: "registry" — the strongest git ship; a ship row exists. Fold it.source: "grep-subject" — a commit subject carried the phase token. SHIPPED,
but weaker — a subject can flip the verdict even if little was built. Fold it,
but mark the rung; do not treat it as equal to registry.source: "none" — no positive git evidence. The worker CLAIMED the phase but
git does not corroborate it. Do NOT fold the claim — this is the narrated
success the world does not back. Surface it; route the unit for re-dispatch.This is grounding because git is a witness the worker did not author: the commit's existence in ancestry is a fact about the repository, not about the worker's prose.
There is NO dos verify-effect (or dos witness) CLI verb. The effect-witness
join is shipped in the kernel as a Python API, not a command — exactly like
tool_stream has no dos tool-stream verb (see EXAMPLES.md Recipe 5). So for any
effect outside git, the skill documents the pattern and logs the gap at
runtime, rather than pretending a verb exists.
The pattern (kernel modules, all pure; the read-back I/O lives in a drivers/*
witness, never in the skill):
from dos.claim_extract import extract_claims # (a) abstain, never invent
from dos.effect_witness import EffectClaim, witness_effect
from dos.evidence import gather_evidence, resolve_evidence_source # (b) read-back at the boundary
# (a) Extract the claim from the worker's terminal text (boundary read done already).
# extract_claims fires only on an explicit ID-shaped token or a DOS-CLAIM:
# marker — free prose yields []. That [] is a NO_CLAIM, not a pass.
# (b) Gather a read-back from a witness the agent did not author. A real witness
# (a fresh HTTP GET, an OS exit code, a state-snapshot diff) lives in a driver
# registered under the `dos.evidence_sources` entry-point group; the skill
# resolves it by name and runs it at the boundary:
source = resolve_evidence_source("<your-witness-name>") # built-in `null` if none wired
facts = gather_evidence(source, subject="<effect key>", config=cfg)
# (c) Fold ONLY confirmed: the join is capped by the read-back's accountability.
verdict = witness_effect(EffectClaim(key="<effect key>", narrated="<what worker said>"),
(facts,))
# verdict.verdict -> CONFIRMED | REFUTED | UNWITNESSED | NO_CLAIM
# verdict.believe -> True ONLY on CONFIRMED (a non-forgeable witness saw it PRESENT)
The load-bearing rule, enforced structurally by believe_under_floor: a read-back
on the forgeable floor (AGENT_AUTHORED — the agent re-reading its own
surface, a pasted receipt, an mtime) is recorded but structurally incapable of
granting belief. Belief requires a OS_RECORDED / THIRD_PARTY witness. So the
worst a lying same-surface read-back can do is be ignored (a safe-direction
no-op), never manufacture a CONFIRMED.
The four outcomes a consumer routes on:
Log the gap, never silently skip it. The first time a non-git effect needs
witnessing and no dos.evidence_sources driver is wired (so gather_evidence
returns null → UNWITNESSED), emit a one-line log naming the unwitnessed effect
and the missing witness — so the capability gap is surfaced at runtime, not buried
here. An UNWITNESSED effect must be reported up, never laundered into the fold.
Fold the results into three buckets, and carry the count into whatever consumes the fold (a synthesis prompt, a downstream stage):
The coverage fact (confirmed M of declared N, plus the bucket each result landed
in) is data the synthesizer must SEE — a synthesis told "7/7 returned" when only
4/7 were witnessed will confidently launder the gap.
dos.judges seam — but it is advisory, fail-to-abstain, and applies
to the residue the oracle ABSTAINED on, fed independent evidence, never the
worker's own string as a substitute for the witness.)dos verify-effect verb (there isn't one). Non-git effects are witnessed
via the Python API of Step 3b, and the gap is logged at runtime. The skill does
not pretend a CLI verb exists where it does not (the EXAMPLES.md Recipe 5
discipline).dos.evidence_sources driver the host wires; the skill resolves it
by name, never names a host backend as a literal.${result} (a worker's return string) directly into a synthesis
prompt — that folds the worker's self-report as ground truth. Witness first..filter(Boolean). Run dos verify-result first.dos doctor --json and resolve witnesses by name.A subagent's result is a claim with a byte-author. Fold it only when a witness whose byte-author is not the worker corroborates the claimed effect. The worker's model tier, its confidence, and its eloquence are irrelevant to that gate — which is the whole point: the part that decides ground truth is never the part being judged.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub anthony-chaudhary/dos-kernel --plugin dos-kernel18 skills in this plugin
/dos-class-cycleRun one DOS plan-class lifecycle tick from the workspace `[lifecycle]` table: evaluate declared transitions, have a judge approve/defer them, write gated plan-meta edits, and log the cycle. Use when gardening plan lifecycle classes automatically./dos-dispatchPlan and ship the next batch on one lane: run `dos-next-up`, acquire a lease with `dos arbitrate`, gate empty work, dispatch the packet, and archive the run. Use when a single lane should move end to end with collision safety./dos-dispatch-loopRun recurring `dos-dispatch` cycles, switching to `dos-replan` when the backlog drains and stopping on the kernel's loop verdict. Use for unattended dispatch->replan->dispatch work across disjoint lanes./dos-enforce-tuneTune DOS enforcement policy knobs (`[intervention_policy]`, `[intervention]`, `[improve]`) from false-deny versus held-catch evidence. Use when running `dos enforce-tune` to keep only measured net_task_delta gains and escalate repeated non-keeps./dos-goal-fleetLaunch multiple goal-scoped workers in waves, each with a witness-gated stop condition and `dos arbitrate` file-tree safety. Use when an operator asks to run several independent goals in parallel and fold only verified ships./dos-goal-gateGround a keep-working goal in evidence the worker did not author by wiring `dos hook stop` to refuse false done claims. Use for one self-stopping agent or loop worker; use `dos-witness-claim` for fold barriers.Other plugins' skills for the same job