Software release
Tests, release notes and a tag, for the version named when the run starts.
In words
The wishA new version of the app, released with its notes
Step 1 · tests
What to doRun the whole test suite.
Who does itAn algorithm runs
make testWhat proves itThe command ends without an error.If the command fails, an agent fixes what stands in the way, and the command runs again as the proof.
Step 2 · notes
What to doWrite CHANGELOG.md's section for {{asked}} from the commits since the last tag.
Who does itAn agent
What proves it
- These must be there:
. - A command must pass:
grep -q "## {{asked}}" CHANGELOG.md - Another agent must find this true: “Every change in the section is in a commit since the last tag, and every commit that changes behaviour is in the section.”
Step 3 · tag
What to doTag the release and publish it.
Who does itAn algorithm runs
make release VERSION={{asked}}What proves itThe command ends without an error.
The file
json
{
"$schema": "vpf/1",
"wish": "A new version of the app, released with its notes",
"limits": {
"repeats": 3,
"minutes": 120
},
"steps": [
{
"id": "tests",
"do": "Run the whole test suite.",
"by": "algorithm",
"run": "make test",
"on_fail": "agent"
},
{
"id": "notes",
"do": "Write CHANGELOG.md's section for {{asked}} from the commits since the last tag.",
"by": "agent",
"tools": [
"read",
"write",
"commands"
],
"proof": [
{
"by": "algorithm",
"needs": [
{
"need": "repository",
"path": ".",
"branch": "main"
}
]
},
{
"by": "algorithm",
"run": "grep -q \"## {{asked}}\" CHANGELOG.md"
},
{
"by": "agent",
"check": "Every change in the section is in a commit since the last tag, and every commit that changes behaviour is in the section."
}
]
},
{
"id": "tag",
"do": "Tag the release and publish it.",
"by": "algorithm",
"run": "make release VERSION={{asked}}"
}
]
}Why it is written this way
The tests have an agent behind them. The notes are proven by a command and by another agent that compares them with the commits.