Skip to content

Add traverse-starter validate and summarize WASM agents (spec 058)#599

Open
enricopiovesan wants to merge 3 commits into
mainfrom
claude/issue-554-starter-wasm-agents
Open

Add traverse-starter validate and summarize WASM agents (spec 058)#599
enricopiovesan wants to merge 3 commits into
mainfrom
claude/issue-554-starter-wasm-agents

Conversation

@enricopiovesan

@enricopiovesan enricopiovesan commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Governing Spec

  • 058-workflow-pipeline-execution
  • 017-ai-agent-packaging
  • 009-expedition-example-artifacts

Project Item

Project 1 item for issue #554 (Status: In Progress, claimed with agent:claude).

Summary

Adds the two WASM agents for the traverse-starter multi-capability pipeline showcase (spec 058, reference-apps #110):

Capability Input Output
traverse-starter.validate { note } { valid, issues[] }
traverse-starter.summarize process output fields { summary, wordCount }
  • Contracts at contracts/examples/traverse-starter/capabilities/{validate,summarize}/contract.json, mirroring the existing process contract (wasm, wasi-command, no host/network/filesystem access, manual-approval policy).
  • Agent packages examples/traverse-starter/{validate,summarize}-agent/ with manifest, stub Rust source, fixture build script, and .wasm artifact (fnv1a64:dffc31d6401c84d6 digest, same fixture bytes as the process agent).
  • Runtime request examples examples/traverse-starter/runtime-requests/{validate,summarize}.json.
  • Deterministic native implementations wired into both example executors (ExpeditionExampleExecutor used by serve, AgentPackageExampleExecutor used by execute-agent): no network, no model, no randomness.
    • validate: empty/whitespace note → valid: false with non-empty issues; note over 2000 chars flagged; valid note → valid: true, issues: [].
    • summarize: deterministic one-line summary from process output fields plus its whitespace word count.
  • execute-agent output rendering extended for both capabilities (extracted push_capability_output_lines helper to stay within the function-length lint).

Validation

  • cargo test — all 25 suites pass; 8 traverse-starter tests including determinism tests for both agents (same input run twice → identical output), empty-note rejection, max-length flagging, process→summarize composition, and execute-agent runs for both runtime requests.
  • cargo clippy --all-targets -- -D warnings — clean.
  • cargo fmt — applied.
  • bash scripts/ci/spec_alignment_check.sh — passes (no governed spec files changed).

Downstream unblocked

Closes #554.

🤖 Generated with Claude Code

Contracts, agent packages, runtime request examples, deterministic
native executor implementations, and execute-agent output rendering
for traverse-starter.validate and traverse-starter.summarize —
pipeline showcase steps 1 and 3 for spec 058.

Closes #554

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
enricopiovesan and others added 2 commits July 9, 2026 22:57
* Implement workflow pipeline execution surface (spec 058)

Adds namespaced step-output publication (publish_to_state_as) and
final-output projection (output_projection) to workflow definitions,
letting one execute call run an ordered capability pipeline and return
merged output under namespaced keys. Ships traverse-starter.pipeline
and doc-approval.pipeline workflow JSON, workflow-backed pipeline
capability contracts, a registerable traverse-starter bundle, and
pipeline integration tests at runtime, CLI, and HTTP levels.

Closes #558

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Fix coverage gap and quarantine doc-approval pipeline in drafts/

The unreached test-executor fallback arm left one uncovered line in
traverse-runtime; fold the summarize arm into the fallback. Move the
doc-approval pipeline workflow and contract under the top-level
drafts/ quarantine — its step capabilities (#538/#556/#555) are not
merged, so the contractual enforcement gate cannot register them yet.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@enricopiovesan enricopiovesan enabled auto-merge (squash) July 10, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add traverse-starter.validate and traverse-starter.summarize WASM agents for pipeline showcase

1 participant