chore: align with j4k-align 17.17.1 #17
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/align-17-17-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds align 17.17's baked-Node guard before every
actions/setup-nodestep in the Forgejo workflows. A job now stops with an error, instead of downloading Node from GitHub, when its image does not bake the version in.node-version(26.13.0).The same repair syncs align's other managed files since 17.15.4: a readable PR-field parser in the commit-msg workflow, a
scripts/check-msg.shrejection message that lists the allowed types, and comment fixes in the workflows.With the workflows current, align's audit of this repository passes clean. Align had refused the typed-lint conversion because of the drifted workflows, and the
tsconfigdrift andtypecheckscript findings that came with that refusal no longer appear.Review
01M6JN0Q5ZX3AW0PE8AC5ZXAKQ— head0c5597a3776623b59407165b9ee69346d5544713Review — j4k-oss/conventional-commit-msg @
3deba9d392Scope: diff against base tree
47433b4d5ebcReview finished: 6 succeeded, 0 failed, 4 skipped by dispatch
Triage: settled
Facts: current review-wide projection
Computed under:
Findings (1)
low — The baked-Node step's REQUIRED_NODE_VERSION mode can never run, because the step's own env always sets REQUIRED_NODE_VERSION_FILE
01M6JNM899KQGFZ7RBGSAFRG6G.forgejo/workflows/checks.yml(snippet)01M6JNN864C6M5K0NMG4NTPPEX· valid: The grounded excerpt shows that the first branch runs only when REQUIRED_NODE_VERSION is set and REQUIRED_NODE_VERSION_FILE is empty. The anchor of the sibling claim 01M6JNKVJD5ZE6Z15M8F83Y3E2 is also grounded and shows the same step setting REQUIRED_NODE_VERSION_FILE: ".node-version" in its step-level env. Because that value is always non-empty, the literal-version branch can never run. If REQUIRED_NODE_VERSION were ever set elsewhere, the step would fail with the 'exactly one' error instead of using it. The reviewer's grep, which finds no REQUIRED_NODE_VERSION assignment in the tree, is consistent with this. Readers of each copy therefore parse a two-mode dispatch with only one reachable mode, which is the Special-General Mixture / Nonobvious Code red flag, and the reviewer quotes AGENTS.md's rule against options no caller passes. Remedy gap: if a j4k-align template renders these files, a local edit to read .node-version directly would be overwritten. The fix then belongs in the template, which should render only the applicable branch, as the reviewer also notes. Low severity is appropriate.Other claims
01M6JNKVJD5ZE6Z15M8F83Y3E2medium — The 30-line baked-Node check is pasted verbatim into checks.yml, release.yml and dedupe-check.ymlCoverage
Coverage pass: 01M6JN0Q64DHFV7MQ34X70F2EK
Accounting: complete (all slots terminal; see slot results for failures)
Slot health: healthy
@ -184,0 +186,6 @@REQUIRED_NODE_VERSION_FILE: ".node-version"run: |set -euif [ -n "${REQUIRED_NODE_VERSION:-}" ] && [ -z "${REQUIRED_NODE_VERSION_FILE:-}" ]; thenversion="$REQUIRED_NODE_VERSION"pin="this workflow's Node pin"low — The baked-Node step's REQUIRED_NODE_VERSION mode can never run, because the step's own env always sets REQUIRED_NODE_VERSION_FILE
lens
aposd-plain· armdefault· tally 1 valid / 0 invalid / 0 uncertainclaim
01M6JNM899KQGFZ7RBGSAFRG6Gof review01M6JN0Q5ZX3AW0PE8AC5ZXAKQThis repeats a finding already settled in this rollout: j4k/sorcery-rules-skill#28 (comment).
The
REQUIRED_NODE_VERSIONbranch has a caller in align itself:templates/workflows/credential-contract-forgejo.yml.hbsin j4k/align at7a2b6118sets it. The step body is one shared script,BAKED_NODE_CHECK_SCRIPTinsrc/template-scripts/baked-node-check-script.ts, rendered into every managed workflow that runs setup-node. These workflows arej4k-align --fixoutput, so the proposed local edit would be drift that the next audit reports and--fixreverts. Rendering only the applicable branch per workflow is a change for j4k/align's template, and I am reporting it there.Unadjudicated claim
01M6JNKVJD5ZE6Z15M8F83Y3E2(medium, the baked-Node check repeated inchecks.yml,release.ymlanddedupe-check.yml): not a defect in this PR. It repeats a claim settled in this rollout at j4k/sorcery-rules-skill#28 (comment).These workflows are
j4k-align --fixoutput. Each align template emits the step with{{templateScript "baked-node-check" 10}}, whose single source isBAKED_NODE_CHECK_SCRIPTinsrc/template-scripts/baked-node-check-script.ts(j4k/align at7a2b6118). A hand edit to one copy shows up as a drifted managed artifact in the next align audit, so the copies cannot diverge silently.