Files
simple-private-codecollection/codebundles/stg-workspace-smoke/.runwhen/SKILL_TEMPLATE.md
T
stewartshea 027111b49d x
2026-07-06 22:33:32 -04:00

2.6 KiB

    # Staging Workspace Smoke Check

    Verify tool-builder runtime can execute a simple custom task against the stg-test workspace.

    **Bundle:** `stg-workspace-smoke` · **Task title:** `Run staging workspace smoke check` ·
    **Runtime:** tool-builder (python)

    > **Review artifact:** See `raw_script.py` in this directory
    > for the decoded script content that reviewers and automated systems should
    > inspect. Do **not** parse the base64-encoded `GEN_CMD` in the TaskSet template
    > for review purposes — use this SKILL_TEMPLATE.md and the accompanying
    > `raw_script.py` file instead.

    ## When this SLX gets created

    - **Platform:** `runwhen` — workspace-builder matches RunWhen platform resources
    - **Resource types:** `workspace`
    - **Match rules (plain English):**
    - matches every resource (pattern `.+` on name)
    - **Expected cardinality:** one SLX per matched resource, named `<qualifiers>-stg-smoke`
    - **Qualifiers:** `workspace`

    ## What this SLX does

    The task runs a python script via the shared `tool-builder` codebundle in
    `rw-generic-codecollection`. The workspace-builder renders the TaskSet template with
    a base64-encoded `GEN_CMD` at deploy time; the decoded script is available in
    `raw_script.py` in this directory for review.

    ### Environment variables

    | Name | Value | Notes |

|---|---|---| | (none) | | |

    ### Secrets (names only — values live in RunWhen workspace secrets)

    | Name | Required |

|---|---| | (none) | no |

    ### Runtime variables (user-supplied at run time)

    | Name | Default | Description |

|---|---|---| | (none) | | |

    ## Operational metadata

    - **Timeout:** 300s
    - **Access:** `read-only` · **Data:** `logs-bulk`
    - **Owners:** shea@runwhen.com

    ## Provenance

    - Generated by `runwhen-platform-mcp` `render_codecollection_skill` v0.0.0-dev
  • Source workspace: stg-test

  • Generated at: 2026-07-07T02:32:59Z

      ## Deploying this codecollection
    
      Add to your runwhen-local runner `workspaceInfo.yaml`:
    
      ```yaml
      codeCollections:
        - repoURL: https://<host>/<org>/<your-private-codecollection>.git
          ref: main
      ```
    
      Then reconcile (Flux example):
    
      ```bash
      flux reconcile hr runwhen-local -n <runner-namespace> --with-source
      ```
    
      > **Requires runwhen-local with `platform: runwhen` support** (RW-1355). Until that
      > release lands, generation rules using `platform: runwhen` will not render SLXs.