Repository navigation
Stabilize checksum-verified TLA+ runtime installation - #75487
Conversation
Use the reviewed stable TLA+ Tools v1.7.4 pin instead of upstream's mutable v1.8.0 rolling asset. Share staged fail-closed installation with work-queue checks and cover success and failure paths. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Move the installer, tests, and reviewed runtime pins out of the distributed setup action. Update consumers and formal-methods setup, failure, and update instructions while preserving shared digest verification. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
✅ PR Specification Reviewer completed successfully!
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
There was a problem hiding this comment.
Reviewed head 162525b54d5404b4f011920c6533eb36b06eca7c against .github/aw/formal-methods.md runtime-install contract and Security Architecture Specification v1.1.9 §6.8 TT-02. One blocking finding was published: the installer is loaded from $GITHUB_WORKSPACE after checkout, so the reviewed installer/pins are not actually sourced from a trusted immutable workflow checkout as required; the custom work-queue job has the same ordering issue. No specification synchronization proposal is appropriate until provenance is corrected. Generated lock files were inspected; no live execution or conformance tests were run in this static review.
Generated by PR Specification Reviewer for #75487 · copilot · gpt50 · ~5 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review-specs to run again
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
Verdict
Request changes: the custom verification job executes the installer from the checked-out workspace, so the toolchain and its trust pins are not isolated from the checked-out sources.
Highlights
- Preserve a separately trusted, pinned installer revision before checking out model or other untrusted sources.
- Apply the same trust-boundary guarantee to every TLA+ runtime consumer.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
There was a problem hiding this comment.
🟡 Changes recommended
The new runtime digest conflicts with existing checker pins and tests, while the health probe rejects a valid TLC runtime because of its nonzero help exit status, blocking all full-runtime consumers.
2 open issues
What changed in this PR
This PR centralizes TLA+ runtime setup for gh-aw’s formal-verification workflows, replacing the rolling v1.8.0 JAR with the reviewed v1.7.4 pin while retaining checksum verification.
Changes:
- Add a repository-owned installer with staged HTTPS downloads, checksum checks, cleanup, and runtime smoke checks.
- Integrate the installer into shared agent setup and the work-queue custom job, regenerating four workflow locks.
- Add regression fixtures and document trusted setup, provenance, and runtime updates.
| File | Description |
|---|---|
pkg/workflow/compiled_lock_files_test.go |
Update runtime setup contract assertions. |
Makefile |
Include installer fixtures in script tests. |
.github/workflows/shared/tla-plus.md |
Replace inline downloads with the shared installer. |
.github/workflows/daily-workflow-security-model.lock.yml |
Regenerate shared runtime setup and metadata. |
.github/workflows/daily-work-queue-formal-verification.md |
Use JAR-only installation and update the JAR path. |
.github/workflows/daily-work-queue-formal-verification.lock.yml |
Regenerate work-queue installer integration. |
.github/workflows/daily-tlc-test-expert.lock.yml |
Regenerate shared runtime setup and metadata. |
.github/workflows/daily-formal-spec-verifier.lock.yml |
Regenerate shared runtime setup and metadata. |
.github/scripts/install_tla_runtime.sh |
Add pinned, staged runtime installation. |
.github/scripts/install_tla_runtime_test.sh |
Cover installation, failure cleanup, and input guards. |
.github/aw/formal-methods.md |
Document runtime pins, installation, provenance, and updates. |
Review effort: Max (auto)
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /tdd and /codebase-design. Requesting one test-coverage change; the installer itself looks sound.
📋 Key Themes & Highlights
Verified
- ✅
install_tla_runtime_test.shpasses all 12 cases on the committed HEAD (162525b), andshellcheck -xis clean on both new scripts. - ✅ Every digest is verified before extraction or execution, and a mismatch aborts under
set -e. Staging is cleaned up on exit and the runtime is published only after all checks pass. - ✅ The HEAD lock files for all four consumers call the installer and contain no
releases/download/v1.8.0URL or old011267fc...digest. - ✅ The JRE pin matches the Temurin asset digest reported by the GitHub API. The JAR sha1 in the v1.7.4 release notes matches the one in the PR.
Themes
- Test scope: the
required/rejectedassertions incompiled_lock_files_test.goread only the.mdsources, not the compiled.lock.ymlfiles (see inline comment).
Limits of this review
- Could not independently recompute the v1.7.4
tla2tools.jarSHA-256 (936a2620...) because sandbox TLS interception blocked the download. Please confirm it against a fresh download. release_integrity_test.shfails in this sandbox insideinstall_awf_binary.sh. That looks environmental, not caused by this PR. The PR body reports the same failure pre-existing on macOS.- Skill selection used the inline fallback heuristic;
pr-triagewas not run.
@copilot please address the review comment above.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~1 AIC · ⊞ 5.4K
Comment /matt to run again
|
Copilot assignment requested for the following outstanding work:
Once you start work, post this work summary as a PR comment without the leading Copilot mention, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI. Sous-chef requested-head: 162525b
|
Copilot assignment is running:
Sous-chef requested-head: 162525b |
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
…reliability Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Regenerate the four conflicting TLA workflow locks from merged sources, preserving repository-owned verified installer provenance. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Separate JVM startup from TLC's expected help status, align security-model runners with the reviewed stable runtime, and refresh installer/helper provenance bindings and compiled locks. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
In reply to #75487 (comment): no separate code change is needed for this completion notice. The specification review's actionable installer-provenance feedback is handled in its inline thread. |
|
In reply to #75487 (comment): no code change is needed because this reports no actionable design finding. I have not treated the no-op outcome as proof of runtime correctness. |
|
In reply to #75487 (comment): the skills review's compiled-lock coverage request is accepted and handled in its inline thread. This completion notice needs no additional code change. |
|
In reply to #75487 (comment): no change is needed for this no-action reviewer result. It does not replace the focused runtime and contract checks for the accepted fixes. |
|
In reply to #75487 (comment): no independent change is requested by this no-action test-quality result. The accepted TLC probe feedback adds explicit failure-status and class-loading regression coverage. |
|
In reply to #75487 (comment): the code-quality review's installer-provenance request is accepted and handled in the shared setup and custom-job threads. The completion notice itself requires no extra code change. |
|
In reply to #75487 (comment): the saved checkout-ordering/provenance finding is addressed by the workflow-owned installer/helper hash checks. I am leaving this bot-managed historical memory unchanged rather than rewriting an earlier review result. |
|
In reply to #75487 (comment): accepted; the latest base merge is already on this branch, and installer provenance plus all four compiled-lock contracts are preserved. This batch synchronizes the checker pins and fixes the Java/TLC probe boundary without merging the PR or dispatching a workflow. |
|
In reply to #75487 (comment): the earlier assignment's base merge, provenance protection, and compiled-lock coverage are incorporated in the current branch. No duplicate implementation or workflow dispatch is needed for this historical running-status notice. |
Preserve TLA runtime provenance and regenerate workflow locks with the latest upstream MCP image pin. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Copilot assignment requested for the following outstanding work:
Once you start work, post this work summary as a PR comment without the leading Copilot mention, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI. Sous-chef requested-head: 5ed62bc
|
Copilot assignment is running:
Sous-chef requested-head: 5ed62bc |
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
|
🎉 This pull request is included in a new release. Release: |

Why
Three formal-verification workflows failed in
Prepare pinned TLA+ runtimebecause the pinned JAR checksum no longer matched the artifact served by upstream'sv1.8.0URL. Representative failure: https://github.com/github/gh-aw/actions/runs/42242773750.Upstream's publishing workflow explicitly deletes/replaces these assets and force-moves the
v1.8.0tag. It is a rolling build despite the version label, so refreshing its checksum would only postpone another failure. The failed run's exact JAR bytes are unavailable, but its log confirms the JRE checksum passed and the JAR checksum failed.Approach
.github/scripts, outside the distributed setup action. Reuse the existingverify_release_digesthelper for the three agent consumers and the work-queue custom job. Work-queue's TLC version is unchanged.The releases are not marked immutable by GitHub. The installer therefore continues to fail closed if even the stable artifact is replaced; it never discovers or accepts a new checksum automatically. Source-hash checks prevent execution of altered installer/helper bytes even when obtained from a workspace checkout.
Validation
TestSmokeAndCoverageFailureContractsandTestTLARuntimeWorkflowContracts.IssueRelationshipAuthorizationexpectation also fails unchanged HEAD and remains outside this fix.make fmt, compilation of 359 workflows, the original finalmake agent-report-progressgate, and final follow-upmake agent-report-progress-no-testgate. All generated locks are synchronized.5ed62bc0e7f4722f3eb52c8c31441b76aef75401; all 14 requested comments answered individually and all five addressed inline threads resolved.Remaining verification gaps
Full real Linux JVM/model execution and hosted Actions validation remain unverified. Two bounded, isolated Linux attempts failed during container package bootstrap, before installer/model execution: capability-dropped APT encountered setuid/setgroups restrictions, then archive-directory permissions on a reviewed container-only retry. Isolation was not weakened to force a pass. No workflow was dispatched or rerun.
Dry-run compilation rejected the existing host setup steps/post-steps and emitted no diagnostic lock; normal compilation passed without weakening that gate. Historical v1.8.0 model evidence does not establish equivalence for the new supported runtime.
The supplemental
release_integrity_test.shfailed its first executable assertion on macOS with both the original HEAD helper and the previously modified helper. This pre-existing failure was not changed by this PR; the shared helper has no TLA-specific pin-table changes.