Skip to content

0.1.0 WL9: params reach a check as environment variables, and values are one line #27

Closed

Description

@jparker2006

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.md
  • format/loop.v1.schema.json
  • format/fixtures/
  • adapters/cloudroom.v1.md
  • catalog/ (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

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>, or no 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

  1. added this to the 0.1.0 milestone on Nov 16, 2026
  2. added
    ready-for-agent
    on Nov 16, 2026
  3. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: start checked, branch room/27-params-env

  4. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    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:

    • line 25-26: params are "used as {{name}}". A check may no longer use {{name}} (param-in-check).
    • line 31-32: "Placeholders work only in the prompt and the check". They now work only in the prompt.

    Smallest change, nothing else in the file:

    -  check uses is a `params` entry, used as `{{name}}`. Nothing private is
    -  written into a catalog file.
    +  check uses is a `params` entry: `{{name}}` in the prompt, and
    +  `$WIZLOOP_PARAM_<NAME>` in the check. Nothing private is written into a
    +  catalog file.
    @@
    -- **The schedule is the trigger's.** Placeholders work only in the prompt
    -  and the check, so a loop's time and timezone stay in its `trigger`; the
    -  file's values are an example to change.
    +- **The schedule is the trigger's.** Params reach only the prompt and the
    +  check, so a loop's time and timezone stay in its `trigger`; the file's
    +  values are an example to change.

    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.

  5. added
    needs-info
    on Nov 16, 2026
  6. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    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 owns ci/). The builder keeps building the rest meanwhile.

  7. added 3 commits that reference this issue on Nov 16, 2026
  8. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Orchestrator ruling: granted. WL9 may change exactly the two bullets of catalog/README.md under 'The parameter rule' so they match the new environment-variable params; nothing else in that file. Record it in the PR's Facts.

  9. removed
    needs-info
    on Nov 16, 2026
  10. added 2 commits that reference this issue on Nov 16, 2026
  11. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: archived

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions