Repository navigation
Description
Problem Statement
People who run a software factory inside an agent workspace (an ADE) keep their loops (the alarm clocks that wake a fleet, post a status or kick a workflow) only inside that ADE's settings. They can't review a loop in a pull request, copy a working loop to another project, or see what changed. Cloudroom, the first ADE we use, has rich loops but no export or import, and no other ADE stores loops in a portable form. OpenWiz's own factory runs on about twenty such loops that exist nowhere as files.
Solution
WizLoops is a new public repository, openwizdev/WizLoops, and the home of loops as files:
- One Markdown file per loop. Frontmatter holds the trigger, an optional check script, the thread (same or new), the agent, the secrets (none by default) and the priority; the body is the prompt.
- A starter catalog of five loops taken from the loops that already run OpenWiz's factory: fleet check, hourly status, morning digest, stall sweep and workflow kick. Each is parameterized, needs no secrets unless it says so, and has a cheap check script so a quiet wake costs no agent tokens.
- The Cloudroom adapter's rules: exactly how each field maps to Cloudroom's loops, and what it refuses rather than silently changing.
- A README and its map that explain WizLoops in one page and one hand-drawn picture.
The commands that read and apply these files are the OpenWiz CLI's (openwiz loop validate, plan, apply and export), planned in the OpenWiz spec for 0.0.17. WizLoops owns the format, the catalog and the adapter rules; OpenWiz owns the code that runs them.
Changelog headline
Keep your agent loops as files: one Markdown file per loop, five starter loops from a real factory, and a Cloudroom adapter you drive with openwiz loop.
User Stories
- As a factory owner, I want each loop as one Markdown file, so that I can review and version it like code.
- As a factory owner, I want the prompt as the file's body, so that a loop reads like a skill.
- As a factory owner, I want a loop's trigger as a cron with a timezone, a one-off time, a delay or a webhook, so that every schedule I use today fits.
- As a factory owner, I want an optional check script that runs first and skips the agent when it prints nothing, so that quiet wakes cost no tokens.
- As a factory owner, I want secrets to default to none, so that a loop gets only the keys it names.
- As a factory owner, I want a loop's thread (same or new), agent and priority in the file, so that applying it twice gives the same loop.
- As a factory owner, I want a catalog of loops that already run a real factory, so that I start from something proven.
- As a factory owner, I want catalog loops to take parameters (a spec number, a repository, a time), so that I can reuse them without editing the prompt.
- As a Cloudroom user, I want a written mapping from each field to Cloudroom's loop settings, so that I know exactly what will be created.
- As a Cloudroom user, I want the adapter to refuse a loop it can't represent, naming the field, so that nothing degrades silently.
- As a user of another ADE, I want the format to say nothing Cloudroom-specific outside the adapter rules, so that other adapters can come later.
- As a reader, I want one README with a map, so that I understand WizLoops in a minute.
- As a contributor, I want CI to validate every catalog file with
openwiz loop validate, so that a broken loop never merges. - As OpenWiz's maintainer, I want our own factory's loops to match the catalog's shapes, so that the maker and the user run the same thing.
Implementation Decisions
- Repository split. WizLoops holds the loop file format contract, its fixtures, the Cloudroom adapter rules, the catalog, the README and its map, and a CI check. OpenWiz holds the CLI (
openwiz loop …), which pins an exact copy of the format contract from a WizLoops commit. No code that runs loops lives in WizLoops in 0.1.0. - Format v1. One file per loop. Frontmatter fields:
id(stable, unique in a folder),name,trigger(exactly one of cron plus timezone, at, in, or webhook),check(a script path and a timeout; empty output means no agent; exit 0 or 1 is fine),thread(sameornew),agent(provider, model, reasoning; omitted means the caller's),secrets(a list, default empty),priority(1 to 4),params(named values the prompt and check use). The body is the prompt. - No new dependency. The frontmatter is a strict, documented subset that reads as YAML but parses without a YAML library: one
key: valueper line, values as JSON scalars, arrays or objects. The contract states the subset exactly. - Not carried over from OpenWiz's earlier loop contract: budgets, shadow mode and in-file approval. Approval is the pull request that adds the file.
- The Cloudroom adapter rules map every field to
room-cli loopflags and back fromroom-cli loop listJSON. They name each limit the adapter must report: checks run at most 60 seconds in Cloud, a loop without a check runs at most every 15 minutes, a webhook address is shown once, and loops can't be created from a loop-started thread. - A loop must be able to wake or message the orchestrator. That is the rule for any future adapter; there is no GitHub Actions fallback.
- The catalog is five loops: fleet-check, hourly-status, morning-digest, stall-sweep and workflow-kick. Each is generalized from the live loop it comes from (read-only), with every private name, thread id, repository and address replaced by a parameter.
- Repository settings (fleet settings, labels, merge rules, CI ruleset) come from the
setupskill, run once by the orchestrator, before any ticket here starts.
Testing Decisions
- A good test here checks a loop file from the outside: the validator accepts it or refuses it with the named field.
- Seam:
openwiz loop validateon the repository's files. The format's fixtures (valid and invalid, each invalid one with its expected refusal) are the shared seam that OpenWiz's CLI tests also run. - CI runs
openwiz loop validateon every catalog file and fixture, from a pinned OpenWiz commit, and is the repository's required check. - Prior art: OpenWiz's earlier loop contract fixtures, and its contract-plus-fixtures pattern (
contracts/*.v1.mdwith fixtures). - The test rule (OpenWiz #687) applies to every ticket: each test names the bug it catches, or the pull request says why no test is needed.
Proof
| Claim | Evidence |
|---|---|
| W1 The format contract and its fixtures exist and are exact | Review of the contract; every invalid fixture names its refusal |
| W2 Each catalog loop is valid and secret-minimal | openwiz loop validate in CI on each file, red first on a broken copy |
| W3 Each catalog loop comes from a loop that runs the factory today | Review against the live loop's shape, recorded privately, with no private names in the public file |
| W4 The Cloudroom adapter rules cover every field both ways | Review; OpenWiz's export and plan tests run on the same fixtures |
| W5 The README explains WizLoops with its map | Review of the README and the picture |
Out of Scope
- The CLI code (
openwiz loop validate,plan,apply,export): OpenWiz 0.0.17's loop spec. - Applying a catalog loop to a live account: after this version, on Jake's go.
- Adapters for Claude Code, Codex and Cursor, and any local fallback timer.
- Budgets, ledgers and shadow mode.
Further Notes
- From the J87 grill (2026-11-15, private): the factory stays ADE-native; Loops = WizLoops in its own repository from day one. Research: the WizLoops research of 2026-11-15 (private).
- Planned together with OpenWiz 0.0.17's loop CLI and engine retirement specs and the Infra test-value campaign, in one approval.
Activity
jparker2006 commentedon Nov 15, 2026
{ "schema": "openwiz.decisions.v1", "kind": "spec_confirmation", "id": "spec-1-confirm-j87-1", "status": "resolved", "fingerprint": "639420ac236947b657414c7e1d7e23f4101371cb7781ed18b1c03c29f0907f59", "risk": "ordinary", "spec": 1, "summary": [ "WizLoops is a new public repository, openwizdev/WizLoops: loops for coding agents, as files.", "One Markdown file per loop: frontmatter for trigger, check, thread, agent, secrets (none by default) and priority; the prompt is the body.", "A starter catalog of five loops from the ones running our factory: fleet-check, hourly-status, morning-digest, stall-sweep and workflow-kick.", "The Cloudroom adapter rules map every field both ways and refuse what they can't represent.", "The code lives in OpenWiz: openwiz loop validate, plan, apply and export; WizLoops CI runs validate.", "A README and one hand-drawn map.", "First, the orchestrator sets the repository up for the fleet, and Jake answers its merge rule." ], "headline": "Keep your agent loops as files: one Markdown file per loop, five starter loops from a real factory, and a Cloudroom adapter you drive with `openwiz loop`.", "tickets": [], "graph": [] }jparker2006 commentedon Nov 15, 2026
Plan graph written, waiting for Jake's approval. Approving starts every ticket as soon as its blockers have merged, and each one merges by the project's merge rules.
This spec is one of four planned together for one approval (the J87 grill and cleanup walkthrough 1): WizLoops 0.1.0 (#1), the
openwiz loopCLI (#785), the engine retirement (#786) and the test-value campaign (#787). Jake asked for the specs and tickets written at once, with one approval covering the spec confirmations and the graphs, so no separate proposal comment was posted.Longest chain: 4 links (#2 WL0, #3 WL1, OpenWiz #789 LC1, OpenWiz #790 LC2, #10 WL7, with the OpenWiz blockers). Can start at approval: 1 of 9 (WL0, the orchestrator's setup).
File links: none. Cross-repository blocker: #10 WL7 is blocked by openwizdev/OpenWiz#790 (LC2), shown above as #790.
Link check:
jparker2006 commentedon Nov 15, 2026
{ "schema": "openwiz.decisions.v1", "kind": "plan_approval", "id": "plan-1-rev1-j87-1", "status": "resolved", "fingerprint": "9caace63d5bc9ec845c6a577fe9210fcd6b25be9df26cc1b1ef3a4564eee5c43", "risk": "ordinary", "spec": 1, "summary": [ "WizLoops is a new public repository, openwizdev/WizLoops: loops for coding agents, as files.", "One Markdown file per loop: frontmatter for trigger, check, thread, agent, secrets (none by default) and priority; the prompt is the body.", "A starter catalog of five loops from the ones running our factory: fleet-check, hourly-status, morning-digest, stall-sweep and workflow-kick.", "The Cloudroom adapter rules map every field both ways and refuse what they can't represent.", "The code lives in OpenWiz: openwiz loop validate, plan, apply and export; WizLoops CI runs validate.", "A README and one hand-drawn map.", "First, the orchestrator sets the repository up for the fleet, and Jake answers its merge rule." ], "headline": "Keep your agent loops as files: one Markdown file per loop, five starter loops from a real factory, and a Cloudroom adapter you drive with `openwiz loop`.", "tickets": [ { "number": 2, "title": "0.1.0 WL0: set up the repository for the fleet (a person: the orchestrator, with Jake's merge-rule answer)", "blockers": [] }, { "number": 3, "title": "0.1.0 WL1: the loop file format v1 and the Cloudroom adapter rules, first", "blockers": [ 2 ] }, { "number": 4, "title": "0.1.0 WL2: catalog: the fleet-check loop", "blockers": [ 3 ] }, { "number": 5, "title": "0.1.0 WL3: catalog: the hourly-status loop", "blockers": [ 3 ] }, { "number": 6, "title": "0.1.0 WL4: catalog: the morning-digest loop", "blockers": [ 3 ] }, { "number": 7, "title": "0.1.0 WL5: catalog: the stall-sweep loop", "blockers": [ 3 ] }, { "number": 8, "title": "0.1.0 WL6: catalog: the workflow-kick loop", "blockers": [ 3 ] }, { "number": 9, "title": "0.1.0 WL8: the README and its map", "blockers": [ 3 ] }, { "number": 10, "title": "0.1.0 WL7: CI validates every loop file with openwiz loop validate", "blockers": [ 3, 790 ] } ], "graph": [ { "blocker": 2, "ticket": 3 }, { "blocker": 3, "ticket": 4 }, { "blocker": 3, "ticket": 5 }, { "blocker": 3, "ticket": 6 }, { "blocker": 3, "ticket": 7 }, { "blocker": 3, "ticket": 8 }, { "blocker": 3, "ticket": 9 }, { "blocker": 3, "ticket": 10 }, { "blocker": 790, "ticket": 10 } ] }jparker2006 commentedon Nov 15, 2026
Spec confirmed by Jake, 2026-11-15: Jake confirmed this spec as written: WizLoops 0.1.0: loops as files, one Markdown file per loop, a five-loop starter catalog and the Cloudroom adapter rules, with the code in OpenWiz's CLI. One approval covered it together with the other J87 specs.
Private record: https://github.com/jparker2006/ClosedWiz/issues/325#issuecomment-6902640937
Next: its plan graph, approved in the same decision.
jparker2006 commentedon Nov 15, 2026
Plan graph approved by Jake, 2026-11-15, revision 1: Jake approved this plan graph as proposed, in one decision with the other J87 specs, with the planner's recommendations on the open questions.
Private record: https://github.com/jparker2006/ClosedWiz/issues/325#issuecomment-6902640937
Fingerprint:
9caace63d5bc9ec845c6a577fe9210fcd6b25be9df26cc1b1ef3a4564eee5c43Revision text
4 remaining items
Merge pull request #19 from openwizdev/room/9-readme-map
Merge pull request #15 from openwizdev/room/8-workflow-kick
jparker2006 commentedon Nov 16, 2026
Proposed change, for Jake's approval: new ticket WL9, plus OpenWiz LC1 waiting for it (from #15's logged gap; orchestrator log-and-merge decision). Nothing is applied yet. OpenWiz #789 (LC1) is held first; its builder is already stopped.
Why: the adapter rules paste each
{{name}}value into the check script's text before Cloudroom sees it (adapters/cloudroom.v1.md, "Params"). So a crafted value, multi-line or quoted, can run code in any catalog loop whose check uses params, not only workflow-kick. Each check script can't fix this on its own.WL9: params reach a check as environment variables, and values are one line
format/loop.v1.md, schema, fixtures): a check script may not contain{{name}}placeholders (new refusalparam-in-check) and readsWIZLOOP_PARAM_<NAME>instead. Placeholders stay allowed in the body (the prompt, which is not run). A param value that contains a line break is refused (new refusalmultiline-param). One invalid fixture for each refusal.adapters/cloudroom.v1.md): the adapter puts a fixed preamble in front of the check, oneexport WIZLOOP_PARAM_<NAME>='<value>'line per param, with POSIX single-quote escaping, and nothing else is substituted into the script. Export reads params back from that preamble, which fixes today's "params do not read back". The plan diff compares the preamble exactly.A new ticket here and a new cross-repository link on OpenWiz #785 are plan changes beyond PG1, so this needs Jake. On his yes, the planner creates WL9, adds the links, runs the checks, records spec #1's revision 2 and #785's revision 2, and releases LC1. LC1's builder then resumes from its pushed work and pins the final rules.
Merge pull request #14 from openwizdev/room/7-stall-sweep
Merge pull request #18 from openwizdev/room/5-hourly-status
jparker2006 commentedon Nov 16, 2026
Plan graph approved by Jake, 2026-11-15, revision 2: Jake approved the planner's drafted follow-up WL9 (J105): params reach a loop's check as environment variables, never pasted into script text, and a param value with a line break is refused. It lands before OpenWiz LC4 and LC5.
Private record: https://github.com/jparker2006/ClosedWiz/issues/325#issuecomment-6904971524
Changed since revision 1: WL9 (#27) added, blocked by #5 and #7.
Fingerprint:
ba4e2b32d37aa5d78a1a127424356b9274002fcc07ecbdbe5525a32d4dd495acRevision text
jparker2006 commentedon Nov 16, 2026
{ "schema": "openwiz.decisions.v1", "kind": "plan_approval", "id": "plan-1-rev2-j105-1", "status": "resolved", "fingerprint": "ba4e2b32d37aa5d78a1a127424356b9274002fcc07ecbdbe5525a32d4dd495ac", "risk": "ordinary", "spec": 1, "summary": [ "WizLoops is a new public repository, openwizdev/WizLoops: loops for coding agents, as files.", "One Markdown file per loop: frontmatter for trigger, check, thread, agent, secrets (none by default) and priority; the prompt is the body.", "A starter catalog of five loops from the ones running our factory: fleet-check, hourly-status, morning-digest, stall-sweep and workflow-kick.", "The Cloudroom adapter rules map every field both ways and refuse what they can't represent.", "The code lives in OpenWiz: openwiz loop validate, plan, apply and export; WizLoops CI runs validate.", "A README and one hand-drawn map.", "First, the orchestrator sets the repository up for the fleet, and Jake answers its merge rule." ], "headline": "Keep your agent loops as files: one Markdown file per loop, five starter loops from a real factory, and a Cloudroom adapter you drive with `openwiz loop`.", "tickets": [ { "number": 2, "title": "0.1.0 WL0: set up the repository for the fleet (a person: the orchestrator, with Jake's merge-rule answer)", "blockers": [] }, { "number": 3, "title": "0.1.0 WL1: the loop file format v1 and the Cloudroom adapter rules, first", "blockers": [ 2 ] }, { "number": 4, "title": "0.1.0 WL2: catalog: the fleet-check loop", "blockers": [ 3 ] }, { "number": 5, "title": "0.1.0 WL3: catalog: the hourly-status loop", "blockers": [ 3 ] }, { "number": 6, "title": "0.1.0 WL4: catalog: the morning-digest loop", "blockers": [ 3 ] }, { "number": 7, "title": "0.1.0 WL5: catalog: the stall-sweep loop", "blockers": [ 3 ] }, { "number": 8, "title": "0.1.0 WL6: catalog: the workflow-kick loop", "blockers": [ 3 ] }, { "number": 9, "title": "0.1.0 WL8: the README and its map", "blockers": [ 3 ] }, { "number": 10, "title": "0.1.0 WL7: CI validates every loop file with openwiz loop validate", "blockers": [ 3, 790 ] }, { "number": 27, "title": "0.1.0 WL9: params reach a check as environment variables, and values are one line", "blockers": [ 5, 7 ] } ], "graph": [ { "blocker": 2, "ticket": 3 }, { "blocker": 3, "ticket": 4 }, { "blocker": 3, "ticket": 5 }, { "blocker": 3, "ticket": 6 }, { "blocker": 3, "ticket": 7 }, { "blocker": 3, "ticket": 8 }, { "blocker": 3, "ticket": 9 }, { "blocker": 3, "ticket": 10 }, { "blocker": 5, "ticket": 27 }, { "blocker": 7, "ticket": 27 }, { "blocker": 790, "ticket": 10 } ] }Merge pull request #28 from openwizdev/room/27-params-env
jparker2006 commentedon Nov 16, 2026
Needs you: #10 (WL7, CI runs
openwiz loop validate) is held: #28 (WL9) changedformat/loop.v1.mdandformat/loop.v1.schema.json, which #10 relies on. It needs re-approval through plan-graph's next revision before it can start. It is still also blocked by openwizdev/OpenWiz#790. WL9 merged atc7c2ed434dd984d3e984df2a45eb66d43bcdf759: that is the commit OpenWiz LC1 pins WizLoops at.jparker2006 commentedon Nov 16, 2026
Plan graph approved by Jake, 2026-11-16, revision 3: approved under Jake's standing approval for holds caused by a contract change a ticket consumes within its unchanged scope (ON1, 2026-11-07).
Private record: https://github.com/jparker2006/ClosedWiz/issues/325#issuecomment-6695890695
Changed since revision 2: none; #10 (WL7) is released after #28 (WL9) changed
format/loop.v1.mdandformat/loop.v1.schema.json(params reach a check as environment variables; single-line values). WL7 validates loop files against the format as it stands; its body, owned paths, acceptance criteria and links need no edit. It still waits for OpenWiz #790.Fingerprint:
ba4e2b32d37aa5d78a1a127424356b9274002fcc07ecbdbe5525a32d4dd495acRevision text
Merge pull request #29 from openwizdev/room/10-ci-validate
jparker2006 commentedon Nov 16, 2026
launch-fleet: spec summary
Every planned ticket of WizLoops 0.1.0 is done. Live check: none required. The spec plans no live-check ticket, and applying a catalog loop to a live account is out of scope (after this version, on Jake's go).
What merged:
c7c2ed434dd984d3e984df2a45eb66d43bcdf759). Plan revision 2, J105; OpenWiz LC1 pins WizLoops here.openwiz loop validate, pinned to OpenWizef63380829f2aa946c7dae867c85ea1ec21a61f9.checksis required onmain(ruleset 27371017, confirmed by the orchestrator). PR #10: 0.1.0 WL7: CI validates every loop file with openwiz loop validate #29, merge01c0bb2a63a4e35fdb5a012b09853a23ae6fc592.Open follow-ups (polish, none blocks the spec): #12 #13 #20 #21 #22 #23 #24 #25 #26.
jparker2006 commentedon Nov 16, 2026
launch-fleet: closed: every planned ticket of spec #1 is done (summary above). Polish follow-ups #12 #13 #20 #21 #22 #23 #24 #25 #26 stay open in the polish backlog.