Skip to content

ci(measure): the flip gate runs where its terminology sidecar resolves - #541

Merged
Taleef7 merged 1 commit into
mainfrom
chore/flip-gate-workflow
Sep 8, 2026
Merged

ci(measure): the flip gate runs where its terminology sidecar resolves#541
Taleef7 merged 1 commit into
mainfrom
chore/flip-gate-workflow

Conversation

@Taleef7

@Taleef7 Taleef7 commented Sep 8, 2026

Copy link
Copy Markdown
Owner

A manual workflow_dispatch workflow that vendors a measure's terminology with the VSAC secret, runs pnpm flip-gate --subjects all over the Maui roster, and uploads .flip-gate/<id>-<date>.json. Needed because cms130 and cms165 pin VSAC-completed sidecars that do not resolve locally (docs/DEPLOY.md, "Flipping a measure"), and GitHub only registers a dispatchable workflow once it is on the default branch — so this lands ahead of the flip PR that needs its evidence. No application code.

cms122/cms125/cms130/cms165 pin VSAC-completed sidecars the uncredentialed
local vendor cannot reproduce, so `pnpm flip-gate` on a laptop reads an
UNAVAILABLE deck and a zero initial population for them. This manual
workflow vendors with the VSAC secret, sweeps the Maui roster, and uploads
the gate's JSON for a flip PR. Descriptive, like the gate itself (ADR-072):
routing stays the workflow edit in deploy-maui-mieweb.yml.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f942e17584

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

echo "::error::No VSAC credential in this context. A gate over capped expansions reads a zero initial population and calls it a finding — refusing rather than reporting it."
exit 1
fi
NAME="$(pnpm exec tsx -e "import {officialMeasureName} from './src/standards/official-cases.ts'; process.stdout.write(officialMeasureName('${{ inputs.measure }}') ?? '')")"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Route dispatch inputs through validated environment variables

workflow_dispatch values can be supplied as arbitrary strings through gh workflow run --raw-field or JSON, and GitHub expands ${{ inputs.measure }} before Bash parses this command. A crafted value containing $(...) therefore executes inside the step that exposes WORKWELL_VSAC_API_KEY_VENDOR; the same interpolation pattern later permits fabrication of the uploaded gate evidence. Pass inputs through env:, validate them, and reference only shell variables, matching the boundary already enforced by vendor-workflow-safety.test.ts.

Useful? React with 👍 / 👎.

@Taleef7
Taleef7 merged commit 1ee52ce into main Sep 8, 2026
23 checks passed
@Taleef7
Taleef7 deleted the chore/flip-gate-workflow branch September 8, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant