Skip to content

Stabilize checksum-verified TLA+ runtime installation - #75487

Merged
pelikhan merged 10 commits into
mainfrom
pelikhan/tla-runtime-reliability
Nov 7, 2026
Merged

pelikhan merged 10 commits into
mainfrom
pelikhan/tla-runtime-reliability

Conversation

@pelikhan

@pelikhan pelikhan commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Why

Three formal-verification workflows failed in Prepare pinned TLA+ runtime because the pinned JAR checksum no longer matched the artifact served by upstream's v1.8.0 URL. 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.0 tag. 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

  • Replace the rolling JAR with the repository's existing stable TLA+ Tools v1.7.4 / TLC 2.19 pin. Cross-check the existing SHA256 against a real download and the publisher's release-note checksum; retain the independently corroborated Temurin JRE 21 pin.
  • Keep the installer, tests, and reviewed TLA+/JRE pins in .github/scripts, outside the distributed setup action. Reuse the existing verify_release_digest helper for the three agent consumers and the work-queue custom job. Work-queue's TLC version is unchanged.
  • Verify isolated installer/helper copies against workflow-owned SHA256 literals before execution, including the JAR-only custom job. Refresh these bindings after script/helper changes and check the actual source hashes in all four compiled locks.
  • Stage HTTPS-only, bounded downloads; verify SHA256 before extraction or execution; publish only after successful setup and smoke checks. Java startup must independently succeed; TLC help must produce its expected text and intentional exit status 1. Failures clean staging and never publish a partial runtime. Existing destinations are rejected.
  • Synchronize both security-model runners, regression contracts and runtime documentation with the reviewed stable JAR. Preserve historical model reports rather than rewriting their evidence.
  • Document installation, failure handling, provenance and reviewed updates; regenerate all four consumer locks. Permissions, credentials, sandbox paths and workflow names remain 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

  • Passed 15 installation fixture groups covering full/JAR-only success, JAR and JRE checksum mismatches, both download failures, extraction, JVM startup and class-loading failures, incorrect TLC help statuses, and platform/argument/destination guards. Installer/tests are excluded from the distributed setup action.
  • Passed real checksum-verified JAR-only installation before relocation; passed final shellcheck and both TestSmokeAndCoverageFailureContracts and TestTLARuntimeWorkflowContracts.
  • Passed all 7 directly impacted Python runtime-pin and transport-runner tests. Full Python discovery passed 26/27; the unrelated IssueRelationshipAuthorization expectation also fails unchanged HEAD and remains outside this fix.
  • Passed make fmt, compilation of 359 workflows, the original final make agent-report-progress gate, and final follow-up make agent-report-progress-no-test gate. All generated locks are synchronized.
  • Read-only source/lock security reviews passed, including corrected installer/helper bindings and the bounded local execution plan; no confirmed vulnerabilities found.
  • Review batch published in commit 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.sh failed 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.

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>
@pelikhan
pelikhan marked this pull request as ready for review November 6, 2026 22:19
Copilot AI adaptive review requested due to automatic review settings November 6, 2026 22:19
@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

Generated by PR Specification Reviewer for #75487

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

✅ 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: reported_no_action

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.

Generated from Design Decision Gate 🏗️ · routed: gpt56 max · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.7K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

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.

Generated from Ponytail Reviewer · routed: gpt56 max · ~4 AIC · ⌖ ~1 AIC · ⊞ 118 · ◷

Generated by Ponytail Reviewer for #75487

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

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.

Generated from Test Quality Sentinel · routed: haiku55 xhigh · ~1 AIC · ⌖ ~1 AIC · ⊞ 6.3K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 thread .github/workflows/shared/tla-plus.md Resolved
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (pr-code-quality-reviewer)
reviewed_at: 2026-11-06T22:23:05Z
review_event: REQUEST_CHANGES
top_themes: [trusted installer boundary, checkout ordering]
files_reviewed: [.github/workflows/shared/tla-plus.md, .github/scripts/install_tla_runtime.sh, .github/scripts/install_tla_runtime_test.sh, .github/workflows/daily-work-queue-formal-verification.md, pkg/workflow/compiled_lock_files_test.go]
comment_count: 1

Note

This comment is managed by comment memory.

Expand the saved memory block to view or edit the persistent context for this thread.
Edit only the text inside the backtick fences; workflow metadata and the footer are regenerated automatically.

Learn more about comment memory

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.6K · ◷
Comment /review to run again

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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)

Comment thread .github/scripts/install_tla_runtime.sh Resolved
Comment thread .github/scripts/install_tla_runtime.sh Resolved

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.sh passes all 12 cases on the committed HEAD (162525b), and shellcheck -x is 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.0 URL or old 011267fc... 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/rejected assertions in compiled_lock_files_test.go read only the .md sources, not the compiled .lock.yml files (see inline comment).

Limits of this review

  • Could not independently recompute the v1.7.4 tla2tools.jar SHA-256 (936a2620...) because sandbox TLS interception blocked the download. Please confirm it against a fresh download.
  • release_integrity_test.sh fails in this sandbox inside install_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-triage was 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

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (.github/workflows/shared/tla-plus.md:11): This violates the new runtime contract in .github/aw/formal-methods.md (run the installer from a trusted workflow-repository checkout before untrusted PR code) and undermines Security Architecture section 6.8 TT-02 trusted setup baseline. The generated agent jobs perform the normal Checkout repository before this shared step, and daily-work-queue-formal-verification checks out model sources before invoking the same installer. Therefore $GITHUB_WORKSPACE/.github/scripts/install_tla_runtime.sh is taken from the workflow/PR checkout and its reviewed pins and helper path can be replaced before execution. Please source this script (and its integrity helper) from an immutable trusted checkout obtained before any untrusted checkout, or otherwise establish and verify that provenance; apply the same fix to the custom job. - Stabilize checksum-verified TLA+ runtime installation #75487 (comment)
  3. Review (.github/workflows/daily-work-queue-formal-verification.md:70): This runs the installer from GITHUB_WORKSPACE after the workflow has checked out the model sources, so the executable, sourced integrity helper, and SHA-256 pins are taken from the selected checkout rather than a separately trusted revision; a branch/PR can therefore change what binary is accepted, defeating the documented trust boundary. - Stabilize checksum-verified TLA+ runtime installation #75487 (comment)
  4. Review (pkg/workflow/compiled_lock_files_test.go:69): [/tdd] This contract test only reads the .md sources (filepath.Join(workflowsDir, test.name+\".md\")), so the rejected checks never inspect the compiled .lock.yml files that actually run. A regression that reintroduces releases/download/v1.8.0 or the old digest into a lock would pass unnoticed. - Stabilize checksum-verified TLA+ runtime installation #75487 (comment)

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
Sous-chef requested-work: 1b4065a3553e1e9c5f523479cb0c97b4ab137f509746567bd404f561e2d34975 48f02ed858f0d367223d3cbfdda165dfa0bcf09426a4a4ff77cc4adcb8e8809a fa1a965654b77637026a93e584e58253b5e04acb987230a812d899c38c8566d4
Sous-chef requested-state: 23d9105463d38806a8b59d3d81edc23ff24c16025cd1d9a64b81e3b3a932e9b6

Generated by 👨🍳 PR Sous Chef · pi · haiku45 · ~12 AIC · ⌖ ~14 AIC · ⊞ 1.2K · ◷
Comment /souschef to run again

Copilot AI commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

@copilot

Copilot assignment requested for the following outstanding work:...

Copilot assignment is running:

  1. Update this branch with latest main using make merge-main, resolving conflicts while preserving intended changes.
  2. Establish immutable trusted installer and helper provenance for the shared TLA+ setup.
  3. Apply the same trusted provenance to the work-queue custom job.
  4. Extend regression checks to inspect the four compiled workflow locks.

Sous-chef requested-head: 162525b
Sous-chef requested-work: 1b4065a3553e1e9c5f523479cb0c97b4ab137f509746567bd404f561e2d34975 48f02ed858f0d367223d3cbfdda165dfa0bcf09426a4a4ff77cc4adcb8e8809a fa1a965654b77637026a93e584e58253b5e04acb987230a812d899c38c8566d4
Sous-chef requested-state: 23d9105463d38806a8b59d3d81edc23ff24c16025cd1d9a64b81e3b3a932e9b6

Copilot AI and others added 3 commits November 6, 2026 23:22
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>
pelikhan and others added 2 commits November 6, 2026 19:00
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>
@pelikhan

pelikhan commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

pelikhan commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

pelikhan commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

pelikhan commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

pelikhan commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

pelikhan commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

pelikhan commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

pelikhan commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator Author

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.

@pelikhan

pelikhan commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator Author

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>
@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Fix failing check Docker root-owned staging cleanup (FAILURE): https://github.com/github/gh-aw/actions/runs/42333468930/job/128285089367.
  3. Fix failing check JS Tests (shard 7/8) (FAILURE): https://github.com/github/gh-aw/actions/runs/42333468930/job/128285089481.

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
Sous-chef requested-work: 1233d7d521d5a5d4c95d951ce598fd234d873db85a7b5b39aa899a83269fe32b 47f188a12b316525c2202f4f75b82185d76be0a140c0f99eae185cf2b7d8acb1
Sous-chef requested-state: b5c65bd524dc73b48453f04e6a3c74a3196757e3bda35a68a8a6688293ec4e76

Generated by 👨🍳 PR Sous Chef · pi · haiku45 · ~5 AIC · ⌖ ~10 AIC · ⊞ 1.2K · ◷
Comment /souschef to run again

Copilot AI commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

@copilot

Copilot assignment requested for the following outstanding work:...

Copilot assignment is running:

  1. Refresh main and run make merge-main, preserving the TLA+ runtime changes.
  2. Investigate and fix Docker root-owned staging cleanup.
  3. Investigate and fix JS Tests (shard 7/8).

Sous-chef requested-head: 5ed62bc
Sous-chef requested-work: 1233d7d521d5a5d4c95d951ce598fd234d873db85a7b5b39aa899a83269fe32b 47f188a12b316525c2202f4f75b82185d76be0a140c0f99eae185cf2b7d8acb1
Sous-chef requested-state: b5c65bd524dc73b48453f04e6a3c74a3196757e3bda35a68a8a6688293ec4e76

Copilot AI and others added 2 commits November 7, 2026 04:03
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>
@pelikhan
pelikhan merged commit e3a4491 into main Nov 7, 2026
62 of 64 checks passed
@pelikhan
pelikhan deleted the pelikhan/tla-runtime-reliability branch November 7, 2026 04:37
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.2

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.

4 participants