API reference › Skills
Authoring
Design, draft and commit WorkStreams, the repeatable multi-step jobs Archie runs.
Operations
This is the older name for workstream_draft (public name workstream.draft), kept so existing integrations keep working. It needs a description of the workflow in plain language, and can anchor the draft to a Topic or iterate on a prior draft. It returns a draft id, a name, a step count and a warning count for the workstream it drafted.
Promotes a draft to an active workstream. Supply the
draft_id of a draft that passes validation, and the reply gives the workstream_id, the permakey and the status. If validation fails the commit is refused and the draft stays a draft.Starts the design interview for a workstream from the
description input and returns its spec: each decision with its question, the builder's proposal, its reason, its citation and its status, plus the spec_hash and the next question to answer. The spec is stored so workstream.spec can read it back and workstream.spec.answer can settle open decisions. It creates no steps and no workstream.Describe the workstream you want in the
description input and Archie drafts a structured, reviewable definition with typed steps, dependencies and validation. The reply gives the draft id, name, step count, validation warning count and version, or the one question to answer next. Drafting never activates a workstream; workstream.commit does that.Records the answer to one open decision on a workstream spec. Supply the
workstream_id, the decision_id and your answer, and add provenance to note where the answer came from. The reply carries the new version holding the answer; the earlier version is left unchanged.Reads the stored spec of one workstream, named by the
workstream_id input. It returns the latest version unless you set version, together with the decisions, the spec_hash and the definition_hash. This call only reads and changes nothing.