Skip to content

Black Friday

Annual Pro is $90 for the first year, normally $120. Or start monthly at $6 for two months, then $12.

Ends Dec 4, 11:59 PM PT.

Create an account
← Public packages

@danj/hey-email

HEY.com email for Kody: search threads, read messages, download PDF attachments, and write drafts. Sending is barred until you allow it.

FollowFork

Files

verification.md

60 lines Β· 6.3 KB Β· Markdown

Verification

The words below name the ways this package's work is verified. Use them in docs, comments, commit messages, and agent reports. The glossary is a copy of the owner's toolbox rule, refreshed by bb verification-index there; do not edit it here.

Report a run by its term in bold with its emoji, then its duration and load in code font, then its outcome: "Ran the test suite πŸ“¦ (4 s; CPU) βœ… pass." scripts/sending-policy-check.mjs ends its output with status=pass, fail, or blocked, and a reason= line when it does not pass. npm test reports in the Node test runner's own format.

Glossary

TermMeaningAvoid
CheckπŸ§ͺThe smallest verification that runs and reports alone: an artifact compared with stated expectations by a fixed procedure, not by judgment, ending in a verdict.test (for the runnable unit as a whole), probe
Contract checkπŸ§ͺA check whose expectation is a recorded exact value, such as a list of exports or required text, which changes only on purpose; it ends in a verdict.pin (for a check; pin means fixing an input to an exact value), snapshot test, invariant (a rule that never changes)
Kit check🧰A check whose artifact is what a stage or action needs, such as tools, permissions, credentials, or settled earlier records; it ends in a verdict, and when it fails, the work that needed it is blocked.preflight, capability probe, sanity check
AssertionOne expectation inside a check, never reported alone.check (for a single expectation)
SuiteπŸ“¦A named set of different checks run together, ending in one verdict.validation, full verification, unit gate
SurveyπŸ—ΊοΈOne check or measurement run across a whole space, such as every combination of settings or every member of a group, ending in a table over that space, and in a verdict when each cell has an expectation.sweep, census, matrix (as a kind)
MeasurementπŸ”¬A workload run against an artifact, ending in numbers with their spread and no verdict of its own.benchmark (as a kind), perf check
ReviewπŸ‘€One reviewer's judgment of a plan or change against a brief, ending in findings and a verdict.
Audit🧭A look at a standing state against its own rules, ending in drift findings and no verdict.audit (for a check that has a verdict), scan
PanelπŸ‘₯Several reviewers judging the same revision against one brief, ending in one verdict that passes only when every review passes.
Gate🚧A rule that lets a stage proceed only when what it holds passes; a measurement it holds passes when its numbers meet the gate's threshold; it ends in a verdict.gate (for anything that blocks nothing)
KeeperπŸ”‘Who decides at a gate: a script, an outside service, a panel, or the owner.
VerdictThe one-word outcome of a run whose kind ends in one: pass, fail, unproven, or blocked, with a reason when it is not a pass; a run of several parts takes the first of fail, blocked, unproven, and pass that any part has.status (for the outcome itself)
Passβœ…Every expectation held.ok, green
Fail❌At least one expectation broke.miss, mismatch, red
Unproven❔The run ended, but its evidence cannot decide.stale (for old evidence; say unproven, reason stale), inconclusive
Blockedβ›”The run could not start or finish.error (as a verdict), refused
Change requestA fix a reviewer requires before the revision can pass; a review with one fails.named changes, ship with changes, blocker (for a required fix)
SuggestionAn optional improvement a reviewer offers, which leaves the verdict unchanged.nit (as a requirement)
ProofπŸ“ŽEvidence about the artifact that a reader can inspect.
Receipt🧾The record of one run: what ran, on which revision, when, and its outcome.receipt (for a product's own results)
Limits⚠️What a pass does not prove, stated with the outcome.
DepthHow far a run goes into each behavior: shallow or thorough.smoke
CoverageHow much of the possible cases a run reaches: targeted, sampled, or exhaustive.complete (unless exhaustive)
DurationHow long a run takes: measured, a cap, or unmeasured.about, β‰ˆ, "a bit", "a while"
LoadWhat a run uses up: CPU, disk (churn of many small files), network, browser, quota (a metered allowance), exclusive (a resource only one run may hold), or attention (the owner's eyes or machine).
StageA step where verification can happen: in a change's life, plan, edit loop, checkpoint, pre-merge, pre-publish, publish, post-publish, or upkeep; outside a change, before a data operation or a risky action.

In this package

NameKindStageDuration and loadLimits
npm testSuite πŸ“¦edit loop, checkpoint4–7 s; CPU (3 runs)fetch and kody:runtime are stubbed, so it proves nothing against live HEY.
scripts/sending-policy-check.mjsCheck πŸ§ͺcheckpoint≀ 1 s; CPUCompares SENDING with origin/main only. It passes a branch that inherits 'allowed' from main.
sending-policy-suite (GitHub Actions)Suite πŸ“¦: the policy check, then npm testcheckpoint: pull requests and pushes to branches other than main12–16 s; CPU + quota (GitHub, 3 runs)Not a gate: GitHub offers no branch protection on this private repository's plan, so a failure blocks no merge or push.
PromoteGate 🚧, keeper πŸ”‘ the ownerpublishattentionThe package is publish-locked on Kody; no change goes live before the owner promotes it.
Post-publish check (AGENTS.md)Check πŸ§ͺ, shallowpost-publishunmeasured; networkExpects only that identity, search, and listDrafts return without an error.

The runtime sending gate (SENDING in src/config.js) is product behavior, not a verification run: it blocks a send. test/sending-gate.test.js and test/sending-allowed.test.js are checks of that gate.