/assay:assay-golden-pathfrom assay
Drives Assay's install-to-evidence golden path and interprets stdout and exit codes. Use when operating or diagnosing Assay.
Ships in assay. 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.
Read when SKILL.md points to them.
Drive the nine steps below in order. Read stdout and the process exit code separately; a policy denial can be a successful JSON-RPC exchange rather than a process failure.
${CLAUDE_PLUGIN_ROOT}/skills/assay-golden-path/references/agent-golden-path.json is the authoritative machine contract.
Read it when exact argv, fields, or per-outcome metadata are needed.
When a step has no working_directory, run it from the invocation cwd.
Fixtures named by the contract under examples/privileged-action-gate are bundled at ${CLAUDE_PLUGIN_ROOT}/skills/assay-golden-path/assets/privileged-action-gate.
A present working_directory in the contract resolves through that mapping.
Replace <python> with python3 on Unix-like hosts or python on Windows.
Empty stdout in a gap row is an observed limitation, not permission for a caller to infer success from missing evidence. Do not replace a linked gap with an inferred clean result.
Claude Code loads this skill from the installed Assay plugin.
Run: assay version
Exit: Success 0.
Stdout: One MAJOR.MINOR.PATCH line.
On failure: A missing or unstartable binary is a host spawn failure: no Assay process runs, so Assay produces no stdout or exit code.
Run: assay doctor --format json --config <config>
Exit: Success 0; no config examined 0; config examined, error-severity diagnostic 2; absent explicit config 2; invalid explicit config 2.
Stdout: Parses as assay.doctor_report.v0. Every report carries config_check.status, one of checked, skipped or failed. Exit 0 on its own does not mean a config was examined: read config_check.status to tell a clean config from no config. A config that was examined and carries an error-severity data_diagnostics[] entry exits 2, the class decide_exit gives that diagnostic for assay validate and assay run too; the text channel returns the same class for the same tree. A config failure remains JSON and carries the top-level reason_code and next_step alongside config_error.code.
On failure: An explicit config that will not load exits 2. assay run gives the same class for the same file. A proven-absent path publishes E_MISSING_CONFIG and assay init; an unloadable path publishes E_CFG_PARSE and the fused doctor argv.
Run: assay init --preset dev --hello-trace
Exit: Success 0; unknown preset 2; success with --format json 0; unknown preset with --format json 2.
Stdout: Default text is human progress; success ends with Next: assay validate --config=eval.yaml --trace-file=traces/hello.jsonl --format json, and a failing run writes partial progress text rather than the fatal diagnosis. --format json replaces that stream with one assay.init_report.v0 document naming reason_code, next_step, and the files created and skipped.
On failure: Under --format json a rejected --preset publishes E_INVALID_ARGS and a next_step on stdout. Failures the reason-code registry does not name, such as a filesystem write error, still produce no document: stdout is empty and the diagnosis stays on stderr.
Run: assay policy validate --input <policy> --format json
Exit: Valid 0; malformed 2.
Stdout: Both paths parse as assay.run_summary.v1; valid has exit 0 and an empty reason, while malformed YAML carries E_POLICY_PARSE. Other load or schema failures remain stderr-only until they receive an honest reason code.
On failure: Malformed policy is exit 2 and names the failing policy in a concrete JSON argv next step. Missing files and schema failures are not classified as parse failures.
Run: assay run --config eval.yaml --trace-file traces/hello.jsonl --format json
Exit: All tests pass 0; completed run with failed tests 1.
Stdout: Both completed outcomes parse as assay.run_report.v1; failed results carry status: fail inside results.
On failure: Exit 1 is a completed results report, not an early-failure diagnosis; reason_code and next_step are absent by design.
Working directory: ${CLAUDE_PLUGIN_ROOT}/skills/assay-golden-path/assets/privileged-action-gate
Run: assay-mcp-server proxy-enforce --upstream-command <python> --upstream-arg -u --upstream-arg mock_github_mcp.py --enforce-policy policies/no-allowance.yaml --declared-mcp-manifest baseline-approved.json
Exit: Policy-denied call after stdin closes 0; startup input failure 1.
Stdout: The denied tools/call response pins error.code: -31999, error.data.origin: assay-proxy, and error.data.reason: no_declared_allowance. Exit 0 after stdin closes is the process outcome, not proof of correct proxy operation or enforcement. The denial response does not by itself prove whether an upstream or protected external action executed or did not execute.
On failure: Policy denial is not a process failure. A missing enforcement policy fails startup with empty stdout and one JSON startup_failure event on stderr, including reason_code: proxy_enforce_policy_invalid and an actionable next_step.
Run: assay evidence show --format json -- <bundle>
Exit: Valid 0; Valid with verification disabled 0; integrity failure 2; unreadable bundle 2; format-contract failure 2.
Stdout: Success parses as an object containing manifest, events, verify_mode, and content_hash_scope; the registered values are enabled and disabled, with --no-verify producing disabled. A recorded-value mismatch parses as assay.run_summary.v1 with E_EVIDENCE_INTEGRITY; an unreadable path uses E_EVIDENCE_UNREADABLE; a typed Contract* defect uses E_EVIDENCE_CONTRACT.
On failure: Only the four verifier codes that establish a recorded-value mismatch map to E_EVIDENCE_INTEGRITY; I/O, gzip, and tar failures use E_EVIDENCE_UNREADABLE. Typed Contract* failures encountered while opening the bundle publish E_EVIDENCE_CONTRACT with a bounded prose next_step. Event-line deserialization plus LIMIT/PATH and PROFILE, where they apply, remain exit 2 with empty stdout until typed on this command.
Run: assay evidence verify-privileged-mcp-action <bundle> --format json
Exit: Valid 0; integrity or profile failure 2.
Stdout: Both paths parse as assay.privileged_mcp_action.verify.report.v0. Success has bundle_integrity: pass and verdict: valid and omits diagnosis. Tamper has bundle_integrity: fail, a bounded finding, no verdict, and E_EVIDENCE_INTEGRITY.
On failure: A recorded-value mismatch publishes E_EVIDENCE_INTEGRITY. A typed Contract* defect publishes E_EVIDENCE_CONTRACT. Untyped I/O and archive-read failures publish E_EVIDENCE_UNREADABLE. A stage-1 pass whose profile verdict is invalid publishes E_EVIDENCE_PROFILE_INVALID. Ceiling refusals and SecurityPathTraversal publish E_EVIDENCE_LIMIT_EXCEEDED and E_EVIDENCE_PATH_REJECTED. Success omits both diagnostic fields. findings[].detail may retain the caller argv path. Unreadable next_step is shell-free caller-argv (concrete JSON Run argv with -- and the caller path), not a shell string. Other owned codes stay prose. Without --profile-version the verifier applies the v0 interpreter and reports profile_selection: default. A bundle carries no profile id, so the intended version comes from the producer contract or the caller's requirement, never from whichever selection passes. Assay 6.9.0 keeps the reissue text for profile-invalid observations. From Assay 6.10.0: When the only violations are observation records that another shipped interpreter of this profile recognizes, and no observation of the selected interpreter is present, the profile-invalid next_step asks for that interpreter check instead of reissue and names no alternative version. Mixed observation versions keep the reissue text.
Run: assay-mcp-server enforcement-sarif --input - --output -
Exit: Valid input 0; malformed non-empty NDJSON 1.
Stdout: Valid input produces SARIF 2.1.0. A malformed non-empty line produces no SARIF document.
On failure: Malformed NDJSON fails before projection and names the invalid input line on stderr. Blank lines remain accepted.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub rul1an/assay --plugin assay2 plugins ship this exact skill · first indexed Oct 15, 2026
Other plugins' skills for the same job