jev-assert
Skill20 starsChanged 13 days agoMITView on GitHub
Asserts a UI expectation semantically by asking TypeSafe's Jev model whether an outcome holds in a page's captured text state, mapped to a verify-behavior receipt. Use when an exact locator or string match is brittle; triggers on "assert semantically", "does the page show", "semantic UI assertion", "/jev-assert".
- Reads credentials
In this repository48 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- skills/workflow/autonomous-workflow/CLAUDE.mdCLAUDE.md
- ideateSkill
- interviewSkill
- playwright-trace-analyzerSkill
- profile-optimizerSkill
- rum-trackingSkill
- screencastSkill
- video-analyserSkill
- youtube-transcriptSkill
- create-skillSkill
- docsSkill
- handoffSkill
- optimize-claude-mdSkill
- persistent-memorySkill
- attach-mediaSkill
- ci-auto-fixSkill
- create-prSkill
- github-actions-authorSkill
- resolve-conflictsSkill
- animations-nativeSkill
- animationsSkill
- behavioral-designSkill
- chartingSkill
- storybookSkill
- uxSkill
- visual-designSkill
- ai-engineeringSkill
- confidenceSkill
- criticalSkill
- impact-mapSkill
- measurableSkill
- optimize-approachSkill
- polishSkill
- pr-reviewSkill
- review-loopSkill
- tddSkill
- verify-behaviorSkill
- aw-verifySkill
- e2e-testing-mobileSkill
- e2e-testingSkill
- telemetry-verifySkill
- ui-verifySkill
- autonomous-workflowSkill
- aw-create-planSkill
- aw-create-walkthroughSkill
- fix-bugSkill
- implement-suggestionSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 73
Run these three steps in order.
- Distinctive: line 91
When omitted, the caller passes the state inline (the spec runners do this).
- Very specific: line 148
Fail honest, not confident: No key, no state, or an unreachable API is unobtainable — a verdict about the tooling, never a guessed pass or …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
jev-assert
Turns a natural-language, user-observable UI expectation into an executed
semantic verdict.
It reads a page's captured text state, asks TypeSafe's Jev model one
narrow judgment, and emits a verify-behavior receipt the rest of this repo
already consumes.
It never drives a browser, never applies a fix, and never writes code — it is a
read-only verification primitive, the semantic sibling of
verify-behavior.
This
SKILL.mdis a thin index. Detailed rules live inrules/*.mdand load on demand.
What it returns
The terminal deliverable is one receipt line, byte-compatible with the
canonical vocabulary in
verification-receipt.md:
[receipt] tier: 3 | tool: jev | target: <page/spec>
[receipt] question: Does the page state show that <expectation>?
[receipt] jev: noul=0.94
[receipt] verdict: confirmsThe five verdicts and when each is emitted are owned by
rules/receipt-mapping.md.
null (ran, no support) and unobtainable (could not run) are distinct and
never collapsed — the same rule verification-receipt.md enforces.
Why Jev, and why text-only
Jev is a TypeSafe System One model: it takes structured natural-language
state and returns a typed answer with a probability (Noul / Choice /
Score), not generated prose.
That is exactly the shape a test assertion needs — a decision code can gate on,
with calibrated confidence.
Jev evaluates text, not images, so the browser side must feed it an
accessibility snapshot or page text; a screenshot is never a valid input.
See rules/state-extraction.md.
Workflow
Run these three steps in order; each has a gate.
| Step | Name | Rule file | Gate |
| 0 | Provenance guard | rules/provenance.md | Expectation is a user-observable OUTCOME, not a restatement of the state text |
| 1 | State extraction | rules/state-extraction.md | Page TEXT state captured (a11y tree / page text); no screenshot |
| 2 | Jev call + mapping | rules/receipt-mapping.md | Jev primitive resolved and mapped to exactly one receipt verdict |
Invocation contract
Callers supply two things — the page text state and the expectation — and receive one receipt.
<expectation>— a user-observable outcome in plain language, phrased as something a person looking at the screen could confirm. Provenance (Step 0) rejects an expectation that merely restates the captured text (assertion-by-construction).--state-file <path>— a file holding the captured text state. When omitted, the caller passes the state inline (the spec runners do this).--threshold-high N/--threshold-low N— override the default decision bands (seerules/receipt-mapping.md); both are calibration knobs, not magic numbers.
The concrete call path is the committed, zero-dependency script — it builds the
Noul question, POSTs it, and maps the probability to a verdict per
receipt-mapping.md:
node ${CLAUDE_SKILL_DIR}/scripts/jev-call.mjs \
--expectation "the user sees an order-confirmation number" \
--state-file <captured-state.txt> --target <page-or-spec-id>State also reads from stdin when --state-file is omitted (the runners pipe
captured page text in). The script follows the TypeSafe HTTP API contract
documented by the official typesafe@typesafe-ai skill — install that skill for
the API guidance, prompting patterns, and SDK; this skill owns only the
semantic contract (question template, thresholds, receipt mapping) and does not
fork the wire format. The API is keyed by the TYPESAFE_API_KEY environment
variable. When TYPESAFE_API_KEY is unset or the API is unreachable, the check
could not run — the script emits unobtainable, never a confirms /
contradicts guess. Run node ${CLAUDE_SKILL_DIR}/scripts/jev-call.mjs
--self-test to verify the mapping offline.
Consumer: the semantic THEN assertion
The primary consumer is the shared UI spec grammar
(spec-run-contract.md).
A spec author writes a semantic assertion with the semantic: prefix, mirroring
the existing network: form:
- WHEN {role: "button", name: "Place order"} is clicked
THEN semantic: the user sees an order-confirmation numberBoth runners (aw-tester
and aw-tester-chrome)
capture the page text state, call this skill, and fold its receipt into the
spec verdict: confirms → the assertion passes; contradicts / null → it
fails; ambiguous / unobtainable → the spec is inconclusive, never a
silent pass.
ui-verify reuses that grammar verbatim, so a semantic THEN flows through to
PR/preview verification with no extra wiring.
Core Principles
- A receipt, not a score. This skill emits a
verify-behaviorverdict and the raw Jev probability; it never invents its own grading number —confidence(code)owns any score. - User-observable outcomes only. An expectation the agent could confirm by
re-reading the state text it was handed is assertion-by-construction and is
refused, mirroring
telemetry-verify's by-construction rule. - Text in, typed out. Jev never sees a screenshot; the input is always captured accessibility/page text.
- Fail honest, not confident. No key, no state, or an unreachable API is
unobtainable— a verdict about the tooling, never a guessed pass or fail. - Driver-agnostic. The same call works over Playwright or claude-in-chrome state; there is one implementation, not one per driver.
Evaluation
- Golden set separates user-observable-outcome expectations (accept) from
by-construction / DOM-restatement expectations (reject), balanced and
resistant to a single-keyword shortcut — see
evals/evals.json. evals/triggers.jsonlcovers should-trigger and adjacent near-miss queries.- The repo eval obligation is met: the accept/reject provenance decision is an enumerable judgment guarded by a golden set.
Anti-patterns
- Feeding Jev a screenshot or an image path — it is text-only.
- Phrasing the expectation as "the page contains the string I just read".
- Treating
unobtainableas a failure, ornullas a pass. - Duplicating the TypeSafe API guidance instead of installing
typesafe@typesafe-ai—jev-call.mjsfollows its documented contract, it does not replace the guidance. - Emitting a bespoke verdict word outside the five canonical receipt tokens.
Definition of Done
- Every planned file written and within its line cap.
name/descriptionvalidate;node ${CLAUDE_SKILL_DIR}/scripts/validate-skill.mjs(run fromcreate-skill) reports PASS.- The receipt tokens match
verification-receipt.mdexactly. - The
semantic:assertion form is wired intospec-run-contract.md,specs.md.template, and both runners. - Inventory rows added to
CLAUDE.mdandREADME.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

