Skip to content

Blog post ​

An agent writes a post in the company's voice, and it is published only after a person approves it.

In words ​

The wishA blog post in the company's voice

Step 1 · draft

What to doWrite blog/draft.md about {{asked}}, following blog/voice.md, between 600 and 900 words.
Who does itAn agent
What proves it
  • These must be there: blog/draft.md
  • A command must pass: wordcount blog/draft.md --min 600 --max 900
  • Another agent must find this true: “The post follows every rule of blog/voice.md and claims nothing the company cannot show.”
  • The person answers yes to: “Can this be published under the company's name?”

Step 2 · publish

What to doPublish blog/draft.md on the blog.
Who does itAn algorithm runs blog-publish blog/draft.md
What proves itThe command ends without an error.

The file ​

json
{
  "$schema": "vpf/1",
  "wish": "A blog post in the company's voice",
  "steps": [
    {
      "id": "draft",
      "do": "Write blog/draft.md about {{asked}}, following blog/voice.md, between 600 and 900 words.",
      "by": "agent",
      "tools": [
        "read",
        "write"
      ],
      "proof": [
        {
          "by": "algorithm",
          "needs": [
            {
              "need": "files",
              "path": "blog/draft.md"
            }
          ]
        },
        {
          "by": "algorithm",
          "run": "wordcount blog/draft.md --min 600 --max 900"
        },
        {
          "by": "agent",
          "check": "The post follows every rule of blog/voice.md and claims nothing the company cannot show."
        },
        {
          "by": "person",
          "ask": "Can this be published under the company's name?"
        }
      ]
    },
    {
      "id": "publish",
      "do": "Publish blog/draft.md on the blog.",
      "by": "algorithm",
      "run": "blog-publish blog/draft.md"
    }
  ]
}

Why it is written this way ​

The proofs go from the cheapest to the dearest: the file, a word count, another agent reading it against the voice guide, then a person.

Code, schema and examples under the Apache License 2.0. Guide text also under CC BY 4.0.