Summary
Add doc-approval.analyze — the capability all doc-approval reference clients invoke today. Without this, doc-approval apps cannot execute against a real runtime (clients hardcode doc-approval.analyze).
Distinct from doc-approval.extract (#538): analyze produces the flat analysis fields the Phase 1 submitter UI renders.
Why
App-References doc-approval (7 platforms) uses capability ID doc-approval.analyze with input { document }. No Traverse WASM agent exists yet.
Unblocks: reference-apps doc-approval E2E on dev sidecar before pipeline (#111) lands.
Input
Output (runtime-owned)
{
"docType": "string",
"parties": ["string"],
"amounts": ["string"],
"confidence": "string",
"recommendation": "string"
}
Deterministic text extraction — no model dependency. Same input → same output.
Depends on
Blocked by
Definition of Done
Validation
curl -sf -X POST http://127.0.0.1:8787/v1/workspaces/local-default/execute \
-H 'Content-Type: application/json' \
-d '{"capability_id":"doc-approval.analyze","input":{"document":"Invoice from Acme Corp for $500"}}'
Downstream unblocked
Summary
Add
doc-approval.analyze— the capability all doc-approval reference clients invoke today. Without this, doc-approval apps cannot execute against a real runtime (clients hardcodedoc-approval.analyze).Distinct from
doc-approval.extract(#538): analyze produces the flat analysis fields the Phase 1 submitter UI renders.Why
App-References doc-approval (7 platforms) uses capability ID
doc-approval.analyzewith input{ document }. No Traverse WASM agent exists yet.Unblocks: reference-apps doc-approval E2E on dev sidecar before pipeline (#111) lands.
Input
{ "document": "string" }Output (runtime-owned)
{ "docType": "string", "parties": ["string"], "amounts": ["string"], "confidence": "string", "recommendation": "string" }Deterministic text extraction — no model dependency. Same input → same output.
Depends on
Blocked by
Definition of Done
contracts/examples/doc-approval/capabilities/analyze/contract.jsonexamples/doc-approval/analyze-agent/(Rust + compiled.wasm)traverse-cli app validatepasses for doc-approval manifest including analyze componentPOST /v1/workspaces/local-default/executewithcapability_id: doc-approval.analyzereturns all five output fieldsValidation
Downstream unblocked