Xuehao Xu 169002a4c9
feat(workflows): add Phase 2 approvals, immutable artifacts and configuration evidence (#6920)
* feat(workflows): add versioned approvals and run configuration evidence

* docs: trim repeated setup guidance to respect inherited size limit

* docs: leave room in inherited agent guidance

* test(channels): align Buzz capability expectation with upstream registry

* fix(workflows): fence file consumers and preserve review access

* fix(runtime): reuse assembly evidence key at run admission
2026-10-17 09:41:15 +08:00

7 lines
732 B
JavaScript

// Requires authenticated browser approval and read_workflow_artifact enabled.
await agent({stepId:'write',agentRef:'lead_agent',task:'Write a concise report to /mnt/user-data/outputs/report.md and return its path.'});
const file = await captureArtifact({stepId:'report-file',sourceStepId:'write',path:'/mnt/user-data/outputs/report.md'});
await humanCheckpoint({stepId:'confirm-report',sourceStepId:'report-file',artifactVersion:file.artifactVersion});
const review = await agent({stepId:'review',agentRef:'lead_agent',task:'Read the approved report version using read_workflow_artifact, then summarize it.',artifacts:[file.artifactVersion]});
return {artifactVersion:file.artifactVersion,sha256:file.sha256,review:review.output};