fix(al): self-heal corrupt cached alc + chmod (unblock compile hang) - #4
Merged
Conversation
A stale/garbage alc on the shared state volume (e.g. a 252-byte self-exec shell wrapper) survived the version-marker cache skip and made every compile hang in an infinite exec loop (root cause of the WI-79397 coder "hang"). fetch now: - re-extracts when the cached bin/linux/alc is not a real ELF, even if the version marker matches (is_real_alc check); - chmod +x the alc compiler after extraction (the VSIX ships it non-exec, which otherwise fails with EACCES posix_spawn).
Contributor
There was a problem hiding this comment.
Pull request overview
This PR addresses a production “compile hang” caused by a corrupted cached alc on the shared state volume by adding cache self-healing/permission fixes in the AL extension fetch script, and it adds a design + implementation plan to move long-term ownership of alc into the Continia CLI via NuGet.
Changes:
- Add an ELF-magic guard in
docker/fetch-al-extension.shto force re-extraction when cachedbin/linux/alcis corrupt, even if the.versionmarker matches. - Ensure extracted compiler binaries are executable (
chmod +x) to avoidEACCESat runtime. - Add design/spec + implementation plan docs for migrating AL toolchain acquisition from VSIX scraping to NuGet-managed
.Tools.Linux.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| docs/superpowers/specs/2026-06-22-al-toolchain-nuget-redesign-design.md | New design spec describing moving alc ownership to CLI via NuGet. |
| docs/superpowers/plans/2026-06-22-al-toolchain-nuget-redesign.md | New step-by-step implementation plan for the NuGet-based toolchain manager. |
| docker/fetch-al-extension.sh | Adds cache validation/self-heal for corrupt alc and fixes executable permissions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
SShadowS
added a commit
that referenced
this pull request
Jul 13, 2026
fix(al): self-heal corrupt cached alc + chmod (unblock compile hang)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root cause of the WI-79397 coder "hang": a 252-byte self-execing shell wrapper had overwritten the real ELF
alcon the shareddo-pipeline-statevolume and survived the version-marker cache skip → every compile looped forever (proven: 25s timeout vs real alc 1s).Guard:
fetch-al-extension.shnow re-extracts whenbin/linux/alcis not a real ELF (even if the version marker matches) andchmod +xthe compiler. Verified: a poisoned version-matched cache auto-re-extracts a clean ELF.Also includes the design spec for the proper fix (CLI owns alc via the self-contained
.Tools.LinuxNuGet package, default prerelease channel) underdocs/superpowers/specs/.Live volume already repaired out-of-band; this makes the fix durable + ships on the next image build.