Skip to content

ci(governance): non-blocking drift check for check-ts-allowlist .affine/.deno.js (closes #312)#318

Merged
hyperpolymath merged 1 commit into
mainfrom
cicd/drift-detection-lint
May 30, 2026
Merged

ci(governance): non-blocking drift check for check-ts-allowlist .affine/.deno.js (closes #312)#318
hyperpolymath merged 1 commit into
mainfrom
cicd/drift-detection-lint

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

Summary

  • Adds just check-ts-allowlist-drift recipe — re-compiles scripts/check-ts-allowlist.affine and diffs against committed scripts/check-ts-allowlist.deno.js.
  • Adds 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 (exit 0) when AffineScript compiler isn't on the runner.
  • 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 (compiler currently stamps a moving "Generated by AffineScript compiler" header). Promotion to blocking is a separate follow-up.

Closes

🤖 Generated with Claude Code

…ne/.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>
@hyperpolymath hyperpolymath enabled auto-merge (squash) May 30, 2026 22:10
@hyperpolymath hyperpolymath merged commit c9e9027 into main May 30, 2026
0 of 18 checks passed
@hyperpolymath hyperpolymath deleted the cicd/drift-detection-lint branch May 30, 2026 22:39
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