fix: Normalize formula vars schema (variables[] → vars{})

Convert mol-polecat-lease and mol-polecat-work formulas from the
old "variables" array format to the canonical "vars" map format
used by other formulas.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-12-25 14:07:36 -08:00
parent 786b349e19
commit f0ece94d7d
2 changed files with 7 additions and 10 deletions

View File

@@ -2,18 +2,16 @@
"formula": "mol-polecat-lease",
"description": "Semaphore tracking a single polecat's lifecycle.\n\nUsed by Witness to track polecat lifecycle during patrol. The Witness bonds this proto for each active polecat, creating a lease that tracks the polecat from spawn through work to cleanup.\n\n## Variables\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| polecat | Yes | Name of the polecat |\n| issue | Yes | The issue assigned to the polecat |",
"version": 1,
"variables": [
{
"name": "polecat",
"vars": {
"polecat": {
"required": true,
"description": "Name of the polecat"
},
{
"name": "issue",
"issue": {
"required": true,
"description": "The issue assigned to the polecat"
}
],
},
"steps": [
{
"id": "boot",

View File

@@ -2,13 +2,12 @@
"formula": "mol-polecat-work",
"description": "Full polecat lifecycle from assignment to decommission.\n\nThis proto enables nondeterministic idempotence for polecat work. A polecat that crashes after any step can restart, read its molecule state, and continue from the last completed step. No work is lost.\n\n## Variables\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| issue | Yes | The source issue ID being worked on |",
"version": 1,
"variables": [
{
"name": "issue",
"vars": {
"issue": {
"required": true,
"description": "The source issue ID being worked on"
}
],
},
"steps": [
{
"id": "load-context",