Skip to content

Commit 690bcf7

Browse files
committed
ci: add the run-gate action that names a gate structurally
The seam the ownership proof will read instead of shell. A lane says which gate it runs in `with.gate`, a typed input the manifest reads straight out of the YAML and validates against CHECK_CATALOG. Nothing here is wired yet — the ~60 call sites and the model change follow. Added first so the target of that conversion is reviewable on its own. `args` cannot select which gate runs; it is appended after the id, so the worst a wrong value does is fail the gate it already named. There is no `|| true` and no output capture: the gate's exit code is the step's exit code, so a gate cannot run without being able to fail its lane. Part of #1429. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SkS4S8XXrfkJ8TD1VBKkvJ
1 parent 5a72c28 commit 690bcf7

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: 'Run gate'
2+
description: 'Run one registered check by its CheckId, so the workflow names the gate structurally'
3+
4+
# The seam that makes gate ownership provable without reading shell.
5+
#
6+
# A lane says WHICH gate it runs in `with.gate` — a typed input the manifest reads straight
7+
# out of the YAML and validates against CHECK_CATALOG. Nothing parses a `run:` body to work
8+
# out what a lane executes, so dead text in one (a multiline string, an uncalled function,
9+
# a heredoc, `echo "pnpm gate x"`) cannot credit anything: it is not where the answer lives.
10+
#
11+
# `args` deliberately cannot change which gate runs. It is appended after the id, so the
12+
# worst a wrong value does is fail the gate it already named.
13+
14+
inputs:
15+
gate:
16+
description: 'The CheckId to run. Must name an entry in CHECK_CATALOG.'
17+
required: true
18+
args:
19+
description: 'Extra arguments for the gate. Never selects which gate runs.'
20+
required: false
21+
default: ''
22+
23+
runs:
24+
using: composite
25+
steps:
26+
# The exit code is the step's exit code — no `|| true`, no capture, nothing that would
27+
# let a gate run without being able to fail the lane.
28+
- shell: bash
29+
env:
30+
INPUT_GATE: ${{ inputs.gate }}
31+
INPUT_ARGS: ${{ inputs.args }}
32+
run: pnpm gate "$INPUT_GATE" $INPUT_ARGS

0 commit comments

Comments
 (0)