Add traverse-starter validate and summarize WASM agents (spec 058)#599
Open
enricopiovesan wants to merge 3 commits into
Open
Add traverse-starter validate and summarize WASM agents (spec 058)#599enricopiovesan wants to merge 3 commits into
enricopiovesan wants to merge 3 commits into
Conversation
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>
* 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Governing Spec
058-workflow-pipeline-execution017-ai-agent-packaging009-expedition-example-artifactsProject 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):
traverse-starter.validate{ note }{ valid, issues[] }traverse-starter.summarize{ summary, wordCount }contracts/examples/traverse-starter/capabilities/{validate,summarize}/contract.json, mirroring the existingprocesscontract (wasm, wasi-command, no host/network/filesystem access, manual-approval policy).examples/traverse-starter/{validate,summarize}-agent/with manifest, stub Rust source, fixture build script, and.wasmartifact (fnv1a64:dffc31d6401c84d6digest, same fixture bytes as the process agent).examples/traverse-starter/runtime-requests/{validate,summarize}.json.ExpeditionExampleExecutorused byserve,AgentPackageExampleExecutorused byexecute-agent): no network, no model, no randomness.validate: empty/whitespace note →valid: falsewith 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-agentoutput rendering extended for both capabilities (extractedpush_capability_output_lineshelper 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, andexecute-agentruns 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
traverse-starter.pipelinesteps 1 and 3)Closes #554.
🤖 Generated with Claude Code