@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.
Files
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
| Term | Meaning | Avoid | |
|---|---|---|---|
| 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 |
| Assertion | One 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. | |
| Verdict | The 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 request | A fix a reviewer requires before the revision can pass; a review with one fails. | named changes, ship with changes, blocker (for a required fix) | |
| Suggestion | An 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. | |
| Depth | How far a run goes into each behavior: shallow or thorough. | smoke | |
| Coverage | How much of the possible cases a run reaches: targeted, sampled, or exhaustive. | complete (unless exhaustive) | |
| Duration | How long a run takes: measured, a cap, or unmeasured. | about, β, "a bit", "a while" | |
| Load | What 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). | ||
| Stage | A 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
| Name | Kind | Stage | Duration and load | Limits |
|---|---|---|---|---|
npm test | Suite π¦ | edit loop, checkpoint | 4β7 s; CPU (3 runs) | fetch and kody:runtime are stubbed, so it proves nothing against live HEY. |
scripts/sending-policy-check.mjs | Check π§ͺ | checkpoint | β€ 1 s; CPU | Compares 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 test | checkpoint: pull requests and pushes to branches other than main | 12β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. |
| Promote | Gate π§, keeper π the owner | publish | attention | The package is publish-locked on Kody; no change goes live before the owner promotes it. |
Post-publish check (AGENTS.md) | Check π§ͺ, shallow | post-publish | unmeasured; network | Expects 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.