Commit a8ac18e
ci(governance): non-blocking drift check for check-ts-allowlist .affine/.deno.js (closes #312)
After #311 swapped the workflow to executing the committed `.deno.js`
artifact, the .affine source can silently drift if a maintainer edits
it without recompiling. This adds:
- `just check-ts-allowlist-drift` recipe — invokes the AffineScript
compiler against the .affine source into a temp file and diffs
against the committed .deno.js. Exit 0 = in sync.
- Non-blocking `continue-on-error: true` CI step in
governance-reusable.yml that runs the same diff and surfaces a
`::warning::` on drift. Skipped gracefully when the AffineScript
compiler isn't on the runner (notice, exit 0).
- Pointer comment in check-ts-allowlist.affine header so maintainers
see the drift recipe at the obvious place.
Non-blocking until the compiler output is hash-pinned per compiler
version — the compiler currently stamps a moving "Generated by
AffineScript compiler" header. Promotion to blocking is a separate
follow-up.
Closes #312
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5f83ea9 commit a8ac18e
3 files changed
Lines changed: 46 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
202 | 229 | | |
203 | 230 | | |
204 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
128 | 141 | | |
129 | 142 | | |
130 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| |||
0 commit comments