Repository navigation
Description
Parent
Ticket WL9 of spec #1 (0.1.0).
What to build
Today the adapter rules paste each {{name}} param value into the check script's text before Cloudroom sees it, so a crafted value (multi-line or quoted) can run code in any catalog loop whose check uses params. Fix it in the format and the adapter rules. A check script may not contain {{name}} placeholders (new refusal param-in-check) and reads WIZLOOP_PARAM_<NAME> instead; placeholders stay allowed in the body (the prompt, which is not run). A param value containing a line break is refused (new refusal multiline-param). The adapter puts a fixed preamble in front of the check, one export WIZLOOP_PARAM_<NAME>='<value>' line per param with POSIX single-quote escaping, and substitutes nothing else into the script. Export reads params back from that preamble (fixing today's 'params do not read back'), and the plan diff compares the preamble exactly. Every catalog check that uses params moves to the environment form, with each loop's behaviour unchanged.
Owned paths
format/loop.v1.mdformat/loop.v1.schema.jsonformat/fixtures/adapters/cloudroom.v1.mdcatalog/(shared: only the check scripts that use params, and their tests)README.md(shared: only a sentence on params, if it describes them)
Relies on: format/loop.v1.md, adapters/cloudroom.v1.md
Links
- 0.1.0 WL3: catalog: the hourly-status loop #5 real: hourly-status's merged check script, which this ticket moves to the environment form
- 0.1.0 WL5: catalog: the stall-sweep loop #7 real: stall-sweep's merged check script, which this ticket moves to the environment form
Acceptance criteria
- The two new refusals fire, each with an invalid fixture, red first
- Every injection payload from PR #8: 0.1.0 WL6: catalog: the workflow-kick loop #15's review runs as plain data in the environment form
- Export reads params back from the preamble, and plan compares it exactly
- Every catalog loop that uses params keeps its behaviour, shown by its fixtures
- Test rule (The test rule: what earns a test, and what never does OpenWiz#687): every new test protects a supported behaviour, a contract others rely on or a safety invariant, and the pull request says per test
catches: <the bug>, orno new test: <why>. No mock-returns-stub, source mirroring, compiler re-checks, quota tests or unreachable cases; a bug gets a failing test first. - Every test the pull request deletes names its keeper (a test that still catches its bug) or says the behaviour it protected is gone.
Proof
W1, W2 and W4: the format's fixtures and the catalog tests, red first.
Activity
jparker2006 commentedon Nov 16, 2026
launch-fleet: start checked, branch room/27-params-env
jparker2006 commentedon Nov 16, 2026
Builder question: may I edit two lines of
catalog/README.md("The parameter rule")? It sits outside this ticket's owned paths (catalog/here covers only check scripts that use params, and their tests).After this ticket, two of its bullets would be wrong:
{{name}}". A check may no longer use{{name}}(param-in-check).Smallest change, nothing else in the file:
Options: (a) widen the paths to these lines (recommended: otherwise the catalog's own rule contradicts the format), or (b) leave them for a polish ticket. I'm building everything else meanwhile.
jparker2006 commentedon Nov 16, 2026
launch-fleet: asked the orchestrator
Builder question on #27 (#27 (comment)): widen WL9's owned paths by two bullets of
catalog/README.md("The parameter rule"), which would contradict the format once WL9 moves check params to$WIZLOOP_PARAM_<NAME>. It's a path widening, not a J110 kind, so it goes to the orchestrator. Fleet recommendation: (a) yes, limited to the exact diff in the question. It's the same intent as the approved ticket, every catalog ticket that touched that file has merged, and no open ticket owns it (#10 ownsci/). The builder keeps building the rest meanwhile.#27 WL9: fixture: a check reading an undeclared WIZLOOP_PARAM_ variab…
#27 WL9: undeclared-param refuses a check reading a WIZLOOP_PARAM_ va…
#27 WL9: format: rewrap the check refusals paragraph
jparker2006 commentedon Nov 16, 2026
Orchestrator ruling: granted. WL9 may change exactly the two bullets of
catalog/README.mdunder 'The parameter rule' so they match the new environment-variable params; nothing else in that file. Record it in the PR's Facts.#27 WL9: catalog README: params are {{name}} in the prompt and WIZLOO…
Merge pull request #28 from openwizdev/room/27-params-env
jparker2006 commentedon Nov 16, 2026
launch-fleet: archived