Browse the documentation
Contract: probes
Label: specified (rules), implemented (records and execution in src/point.mjs).
Shape
probe { id, point, applies, summary, check }
id kebab-case, unique within a probe list
point one of: shape | behavior | consistency | operational
applies a subject name ('seed'), or '*' for a cross-family probe
summary non-empty; what the probe guarantees when it passes
check a function: (subject, subjects) → { ok, message? } — deterministic code
For a named probe, the check receives its subject { namespace, pkg } or null.
For a '*' probe, the check receives the whole subjects map. Every check may
consult subjects; only cross probes depend on more than their own.
Rules
- The check is a function. A probe record without a function is not a probe. Hooks in the tooling fabric established the shape rule; probes inherit it: checks are code the author wrote, deterministic, never prose, never a model call.
- Fail closed on throw. Executing a probe turns an exception into a failed result carrying the error’s message, in full, for the report. A probe is never skipped because it threw, and a throw never becomes a pass.
- One point each. A probe names exactly one point. The multi-point discipline is that shape, behavior, consistency, and operational stay separate all the way to the report; a probe that “sort of” checks two points is two probes.
- Dedicated subjects. A named probe applies to exactly one subject. Cross-family questions — agreements between peers — are
'*'probes, and they declare themselves by theirapplies. - Summaries state the guarantee. “The forget bumps the epoch and fails stale projections closed” is a summary; “tests the memory” is not. A reader of the report should know what every pass certified.
- A claim is probed from the version that made it. A behavior a member added after its first release is held by a probe that names that version. Against a checkout whose
VERSIONis older, or that declares nox.y.zversion, the probe isunknownand names both versions: probing a claim the subject never made would be a superset (see below). Against a checkout at or past that version the claim is held in full, and a subject that cannot honor it fails.
Execution result
runProbe(probe, subjects) → { id, applies, point, subject, status, detail }
runProbeAsync(probe, subjects) → Promise of the same result
status 'pass' | 'fail' | 'unknown'
detail the message that says why
pass— the check returnedok: true.fail— the check returnedok: false, or it threw; the detail carries the message or the error.- A check may return a promise when the claim it holds is asynchronous.
runProbeAsyncawaits it, and a rejection is afaillike a throw.runProbedoes not wait: it recordsunknown, namingrunProbeAsync, because it did not observe the outcome. unknown— the subject is absent (a named probe whose subject isnull), or the check returned{ unknown: true, message }for a reason it states, such as “grammar agreement needs both checkouts present” when one is missing.
An unknown is declared with its reason, carried to the verdict math, and never resolved by wishful re-reading of other results.
What a probe never is
- Not a judge. A probe verifies claims and invariants; opinions about contract quality are review’s business.
- Not a leak. A probe’s messages quote errors and results, never environment details — what ran matters, where it ran does not.
- Not a superset. A probe checks what is claimed claimed. Probing things the subject never claimed is a defect in the probe, not a failure in the subject.
Changes
-
0.8.0— one versioned behavior probe checks seed0.8.0’s registry-document check (seed-registry-documents-fail-closed). The probe passes documents held in memory and reads no file. Anullagents document must be namedagentsinmissing, and no entry inmissingmay contain a/. An agent whoseallowedToolsnames a tool the tools document does not list must be an error, and a listed tool must not be.okmust be false in both cases. The check must leave the documents unchanged, and the unknown tool must appear in the result only as an error, so the result grants nothing. A seed checkout older than0.8.0readsunknown. No existing probe changed, and seed was not edited. -
0.7.0— three versioned behavior probes check the following contracts.- Seed
0.7.0stops a resume beforeexecutefor each of the four abort codes, reportsabortedwith the code, keeps completed stepsskippedand the restnot_reached, and refuses an abort together with a dry run (seed-abort-skips-execution). The probe holds the four codes itself. - Drosera
2.1.0leaves a notice naming the approver for a review to promoted move and the reason for a move to deprecated, and refuses a draft to review pair (drosera-lifecycle-notice-names-its-move). - Drosera
2.2.0reads a skill document with all nine required headings into a draft record thatskill()accepts, and refuses a document missing any one of them (drosera-skill-document-needs-every-heading). The probe holds the nine headings itself.
A checkout older than each version reads
unknownfor that probe. No existing probe changed, and no peer was loosened. - Seed
-
0.6.2— probe fix for drosera2.0.0, which promotes a skill only throughreviewand lists five lifecycle states. For a drosera checkout at2.0.0or later, the probes move a draft toreviewbefore promoting it, anddrosera-skill-record-and-lifecycleexpectsintake,draft,review,promoted,deprecatedand checks that a draft is not promoted directly. Older checkouts are probed as before. Before the fix,drosera-catalog-public-skillsthrew on the refused direct promotion, and the record probe reported the five states as drift. Drosera was not loosened, and no probe was added. -
0.6.1— probe fix for drosera1.0.0, which requirestriggers,inputs,outputs,examples, andsourceson every skill. The skill input the probes build carries those lists for a drosera checkout at1.0.0or later, anddrosera-skill-record-and-lifecyclechecks that a skill missing any of them is refused. Before the fix, four drosera probes andvendor-list-agreementfailed because the probes built a0.5.0skill. Drosera was not loosened, and no probe was added. -
0.6.0— six versioned behavior probes check the following contracts.- Seed
0.6.0fails a step that reports an unknown failure class, keeps a known class on the failed step, and adds no class in a dry run (seed-failure-class-honest). - Capillary
1.2.0refuses a fused search score and returns an untrusted empty list when nothing matches (capillary-search-refuses-fused-score). - Capillary
1.3.0refuses an absent thread conversation and declares thread cuts (capillary-thread-declares-cuts), orders a recent list by the caller’s recency and refuses a moved epoch (capillary-recent-uses-caller-recency), leaves an absent brief class null and gives a recency tie to the later record (capillary-context-brief-invents-nothing), and keeps a missing trace start missing (capillary-trace-keeps-missing-start).
A checkout older than each version reads
unknownfor that probe. No existing probe changed. - Seed
-
0.5.0— seven versioned behavior probes check the following contracts.- Seed
0.5.0reports a dry run without executing steps. - Capillary
1.0.0requires evidence classification on recorded sources, and1.1.0returns an untrusted bounded-read envelope. - Myosotis
1.0.0refuses model-inferred personal provenance, and1.1.0bounds recall and checks the reported counts. - Aestivation
0.5.0refuses correction scope expansion before changing the lineage. - Drosera
0.5.0exposes only promoted MIT skills in its catalog.
The existing digest and consent probes supply the metadata that each subject requires as of
1.0.0. Earlier and absent subjects remain unknown for new claims. - Seed
-
0.4.0—runProbeAsync, andfamilyGridAsyncin the grid, await asynchronous checks; the bundle runner uses them.runProbeandfamilyGridkeep their results for every synchronous check and record an asynchronous one asunknown. Seven probes hold the newer member claims from the versions that made them: seed0.3.0resume, leases, and caller admission; capillary0.3.0separate relevance and recency and the deletion-epoch refusal; aestivation0.4.0read-only intent and corrections. The resume and epoch probes are asynchronous. -
0.3.0— probes speak each member’s call shape by its declared version. From myosotis0.4.0a forget is sent as a confirmed, keyed request; from drosera0.4.0a skill is built with procedure, guardrails, and verification. Earlier versions keep the earlier shapes, so their results do not move. Two new behavior probes hold the0.4.0claims from that version:myosotis-forget-confirmed-and-keyedanddrosera-skill-record-and-lifecycle. Older checkouts readunknownfor both. -
0.2.0— rule 6, the version gate, implemented assince()insrc/probes.mjs. Eleven probes hold claims the members made after0.1.0, each from the version that made it, and the cross probevendor-list-agreementholds drosera’s vendor list against seed’s forbidden segments. A grid over checkouts older than those versions readsunknownwhere it readpass: those claims were not probed before, and they are not probed now, but the report now says so.