Repository navigation
v1.0.0-rc.5
Pre-release
Pre-release
·
431 commits
to main
since this release
Fifth release candidate, themed "Parity and reach": the TypeScript SDK gains the simulation helpers and plugin discovery Python has, with a generated parity matrix that fails the test suites on an undocumented gap; attest capture records runs from Pydantic AI, the Vercel AI SDK, Mastra, the OpenAI Agents SDK (Python), the Claude Agent SDK and LangGraph (Python) through their OpenTelemetry instrumentation; and attest view renders a self-contained offline failure page with the failing span highlighted and a baseline diff.
Added
attest view <report.json...> [--baseline <report.json>...] [--mutation <mutate.json>] [--out FILE] [--no-open] [--json]writes one self-contained offline HTML page: the test list, the trace tree with the failing span highlighted, expected versus actual, replay or live provenance, cost, a baseline-versus-head diff (pass rate, cost, latency, changed tool sequences) and surviving mutants. The page has no JavaScript and no external resources, carries adefault-src 'none'Content-Security-Policy, escapes all report content and bounds every field and the page size. It opens in a browser only on a terminal outside CI.--jsonschemacli/view.schema.json; exit 0 written, 2 usage or input error. Guide:docs/guides/viewer.md.ATTEST_REPORT_TRACES=1makes the pytest plugin and the Vitest reporter add a top-leveltracesmap (trace id to trace-v2) and atrace_idon each result row to report-v2. Both fields are optional inreport-v2.schema.json;report_versionis unchanged. Traces hold prompts, outputs and tool arguments, so the variable is off by default.attest init --ci github(Python and TypeScript) adds aWrite the failure viewerstep and uploadsattest-report.htmlin theattest-reportartifact. The test step carriesATTEST_REPORT_TRACES: "1"commented out with a warning: traces are not redacted and artifacts of public repositories are downloadable by any signed-in GitHub user, so enable it only on private repositories.- Framework capture through OpenTelemetry, with no attest-specific adapter:
docs/guides/capture.mdgains a Frameworks section with the instrumentation switch, tested versions and caveats for Pydantic AI, the Vercel AI SDK, Mastra, the OpenAI Agents SDK (Python), the Claude Agent SDK (Python and TypeScript) and LangGraph (Python). Golden OTLP fixtures for each route joinprotocol-tests/trace-v2/otlp/. - The OTLP parser keeps
tool.outputspan events (the first four per span, among the first 256 events); all other events are never read. A malformedtool.outputevent is dropped andtrace checkwarnsmalformed_event. Claude Code records a tool's result there. - Claude Code native traces (beta):
claude_code.llm_requestis a model call with its native model, token and cache-token attributes;claude_code.tooltakes its result from itstool.outputevent;claude_code.tool.executionandclaude_code.tool.blocked_on_userare not steps. A native attribute of the wrong type is skipped with amalformed_native_attributewarning fromtrace checkinstead of failing conversion. - Tool spans without
gen_ai.tool.call.argumentsorgen_ai.tool.call.resultfall back togen_ai.promptandgen_ai.completion, decoding LangSmith's result wrapper shapes on LangSmith spans. - TypeScript simulation helpers in
@attest-ai/core:scenario,faultInject,mockTool,MockToolRegistryandrepeat, withScenarioResultandRepeatResultaggregating verdicts like Python's.TraceBuilder.addToolCallreturns the active mock's result. Guide: simulation. - TypeScript
useAttest().enforce(verdict)andenforceOutcomeaccept aScenarioResultorRepeatResultas well as anAgentResult(fail with diagnostics, skip with the not-evaluated reasons, strict mode fails skips), as Python'sattest.enforcedoes. - TypeScript plugin discovery:
loadPackagePlugins(registry, projectRoot?)loads plugins that an installed dependency declares inpackage.jsonunder"attest": {"plugins": [...]};registerPluginmirrors Python'sregister_plugin. - A parity matrix, docs/guides/parity.md, generated from both SDKs' public surfaces (
sdks/parity/). The existing Python and TypeScript test commands fail on a Python capability with no TypeScript counterpart or documented exception, on a stale exception, and when the snapshots or the guide are out of date (regenerate withATTEST_UPDATE_PARITY=1).
Changed
- A
tool_cardinalitycheck that fails onmaxnow setstrace_node_pathtosteps[N], the first call over the limit, instead oftrace.tool_cardinality; aminviolation keeps the old path. Report-v2 rows and the SDK diagnostics output (trace path:) show the new value;attest report rowsoutput does not change. - A span whose
gen_ai.operation.nameis present but unknown (chain,agent_step,unknown, ...) is no longer a step; its children still attach to the nearest enclosing step. Spans with no operation attribute keep the attribute heuristics. attest capturedoes not verify a fixture where nollm_callortool_callstep was mapped (exit 1, with the cause and a pointer to the capture guide). Thetrace checkno_genai_spansmessage points to the same guide section.
Fixed
- Finish reasons
tool-calls(Vercel AI SDK, Mastra) and a JSON array in a string, as Mastra records it, count as tool requests intrace check; it no longer warnsunrequested_toolon those exports. - TypeScript
executePluginAssertionclears its timeout timer when the plugin finishes, so a completed assertion no longer holds the process open for the timeout.
Published components
| Component | Status |
|---|---|
| Engine binaries and checksums (this release) | published |
PyPI attest-ai==1.0.0rc5 |
published |
npm @attest-ai/core@1.0.0-rc.5 |
published |
npm @attest-ai/vitest@1.0.0-rc.5 |
published |
| Website sync | dispatched (release-sync to attest-framework/attest-framework.github.io) |