openawf 0.1.0 unreleased

Ecosystem

Tools built on the spec.

A tool is any program that works with an OpenAWF workflow. Each category below does one job with the same file, and a workflow made with one tool works in every other.

Tool available

awf-cli

awf-cli is the reference CLI, written in Go. It covers four categories: it renders, distributes and exports workflows, and serves the language server behind IDE support. Its runner is in development.

It keeps your workflows in an .awf directory and validates every file against the spec before it writes a version.

$ awf init
$ awf new workflow pr-review     # .awf/_/workflow/pr-review/draft.yaml
$ awf validate workflow pr-review
valid
$ awf seal workflow pr-review    # draft.yaml becomes 0.1.0.yaml
sealed sha256-4351e4fd57be…

# on another machine
$ awf install example.com/team/flows#pr-review@0.1.0
$ awf render workflow example.com/team/flows#pr-review@0.1.0

# install
$ go install github.com/dwwescalelol/awf-cli/cmd/awf@latest

Try awf-cli in the browser

Edit a workflow on the left and see the render on the right. Run awf commands on it in the terminal.

Source
Renderawf render
loading awf.wasm
Terminal
awf …Files live in memory and reset on reload.

The tag a run would leave

A runner tags each artifact with the sealed workflow that produced it. The commit reads the file open in the playground. A draft has no sha, so it leaves no tag. Seal it to see the trailers. The trailer names are a proposal.

git log -1no run
Loading…

Build a tool

A tool needs the spec and nothing else.

Where a tool stores workflows and what commands it offers are its own design. A workflow moves between tools when every tool keeps the rules below.

CategorySpec rules it keepsTool todayCommand
RunnersResults, retries, limits, tool grants and credentials (§3, §4, §6).awf-cli, in developmentawf run
AdaptersOne-prompt conversion (§4.1), argument order (§4.3), model splitting (§2.4).awf-cliawf export --format claude
RenderersRead every field as the spec defines it (§2).awf-cliawf render
DistributionA copied version keeps its hash (§8). Exact pins, no ranges (§9).awf-cliawf install
IDE supportReport every validation error (§7).awf-cliawf lsp
Every MUST in 0.1.0 document · tool · validator · sealer · runner

a document

  • §1A sealed document never changes.
  • §2YAML is valid under the YAML 1.2 core schema.
  • §2.1openawf is 0.1.0. No field the spec leaves undefined appears, except x- keys.
  • §3No branch has an outcome named task.
  • §4.2A task document's frontmatter holds no body.
  • §4.5No task has both outcomes and output. No outcome schema declares outcome.
  • §5A sealed workflow holds no references.
  • §6No server name contains /.
  • §6.1No server has both allow and deny, and allow is never empty. A server carries only the fields its type takes.
  • §6.4No credential value appears. Secrets arrive only through ${NAME}.
  • §6.6A package version is exact, never a range or latest.

every tool

  • §2Rejects duplicate keys and expands aliases before processing.
  • §2.2Keeps every x- key when it bundles or seals.
  • §2.4Splits a model on its first / only.
  • §4.1Converts to a single prompt as body, or system, two line breaks, then body.
  • §4.3Orders positional arguments as the fields of input are written.

a validator

  • §7Runs structure, then graph, then hash. Reports every error and accepts no document with one.
  • §8.2Accepts sha256-, sha384- and sha512- and recomputes with the named algorithm.

a sealer

  • §8.1Requires a version and sealed referenced tasks, bundles, then writes the sha.
  • §11Produces the same sha as every other conformant sealer.

a runner

  • §2.2Ignores x- keys it does not understand.
  • §4.1Passes a task only data that satisfies its input.
  • §4.3Replaces every {{field}} before the agent sees the text, and never inside an inserted value.
  • §4.5Accepts only a result that names a declared outcome and satisfies its schema.
  • §6.1Never lets a task call a tool that allow leaves out or deny lists.
  • §6.4Replaces every ${NAME} before it starts a server, and refuses to start one whose variable is missing.

Open a pull request on the specification repository to list a tool here.