Skip to content

Provision Coq from pinned, sha-checked packages in CI - #40

Merged
hyperpolymath merged 1 commit into
mainfrom
claude/pinned-coq-provisioning
Nov 30, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
claude/pinned-coq-provisioning

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

CI now installs Coq 8.18 once, from 12 pinned, sha256-checked Ubuntu noble packages shared through actions/cache. This replaces the per-job apt-get install coq=… steps. Run 46426329421 (PR #39) failed three replay jobs because security.ubuntu.com returned 503s and dropped connections mid-install; a re-run passed. That flakiness is fixed here, at its source, and any package that doesn't match its pinned sha now fails the job.

Changes

  • ci/coq-8.18.debs.sha256 (new): the exact 12-package closure apt installs on a fresh ubuntu-24.04 runner (coq 8.18.0+dfsg-1build2 plus ocaml/findlib/zarith).
  • scripts/atoma-provision-coq.sh (new):
    • Fetches each missing package from archive.ubuntu.com with retries, falling back to snapshot.ubuntu.com/ubuntu/20241001T000000Z.
    • Runs sha256sum --check --strict and installs nothing unless every file verifies.
    • Then runs dpkg -i and requires coqc to report 8.18.0.
    • --self-test-bad-sha flips one sha and requires a rejection.
  • scripts/atoma-ci-replay-toolchain.sh: apt now installs only jq, libssl-dev and pkg-config; Coq comes from the provision script.
  • .github/workflows/atoma.yml:
    • Cache step plus the provision script in the 7 Coq jobs: word_source, wrapper_source, heap_source, scalar, heap_consumers, core_soundness and byte_translation.
    • New job coq_pin_selftest, required by Atoma soundness gate. The gate gets stricter, not weaker.
  • .github/workflows/actions.lock: actions/cache@55cc8345… (v6.1.0) recorded for atoma.yml. The repo already pins that SHA in other workflows.
  • ci/README.adoc: a row for the new lock.

Follow-up: #39 (from a fork) adds a native_word job with its own inline apt Coq install. Once #39 merges, that job needs the same one-step swap.

RSR Quality Checklist

Required

  • Tests pass. Hosted CI on this PR is the evidence; see Testing.
  • Linter is clean: actionlint 1.7.7 on atoma.yml, no findings. bash -n is clean on both scripts.
  • No banned language patterns (bash only)
  • SPDX headers on the new script
  • No secrets

Testing

Local, on Ubuntu noble:

  • All 12 shas re-verified against packages downloaded from the archive pool.
  • Cold run from an empty cache: fetched 12, verified 12, coqc reports 8.18.0, exit 0.
  • Warm run: 12 files served from the cache, verified, exit 0.
  • Negative self-test: SELF-TEST PASS: corrupted sha … was rejected (exit 1).
  • Tampered package (one byte appended): FAIL: sha256 verification failed; refusing to install, exit 1.

Not verified locally (hosted CI will show these):

  • Installing on a fresh runner. Locally the packages were reinstalled over an existing Coq.
  • Cache save and restore.
  • The snapshot fallback path end to end. Only curl -I returned 200 for it.

Commits are unsigned (there is no signing key in the agent environment). The owner squash-merges, and GitHub signs the squash.

Screenshots

N/A


Generated by Claude Code

CI run 46426329421 failed three Coq jobs on 503s from security.ubuntu.com
during `apt-get install coq=...`. Install the 12-package Coq 8.18.0 closure
from a sha256 lock instead, shared by every replay job, cached with
actions/cache, with a snapshot.ubuntu.com fallback and a negative self-test
that must reject a corrupted checksum.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDhw8xwzXdN8W3PYJdG
@gitnotebooks

gitnotebooks Bot commented Nov 30, 2026

Copy link
Copy Markdown

Review these changes at https://app.gitnotebooks.com/hyperpolymath/atoma/pull/40

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Hypatia grid green

🟢 clean · commit 393de1fe48ba · run 46533501042 · scope: this change (6 file(s))

Advisory: 11 row(s), worst 🔴 high (0 critical, 9 high in grid scope) — reported, never grading the change.

Unique graded findings across gating and advisory rows: 20 (20 reporter observations; 19 without sufficient identity to corroborate). Row counts remain per reporter; unique totals do not change gating.
Raw Hypatia alert-derived observations: 50 (code-scanning, Dependabot and secret-scanning; some may also be in SARIF; not an extra total).

Reporter Gate Status Critical High Medium Minor Since previous revision
Hypatia scan gating 🟢 clean 0 0 0 0 — same commit (no revision comparison)
panic-attack assail advisory 🟢 clean 0 0 0 0 — same commit (no revision comparison)
pons asinorum advisory 🟢 clean 0 0 0 0 — same commit (no revision comparison)
echidnabot advisory ⚪ not applicable 0 0 0 0 — same commit (no revision comparison)
rhodibot (RSR compliance) advisory 🟢 clean 0 0 0 0 — same commit (no revision comparison)
panicbot advisory ⚪ not applicable 0 0 0 0 — same commit (no revision comparison)
sustainabot advisory ⚪ not applicable 0 0 0 0 — same commit (no revision comparison)
glambot (presentation quality) advisory 🔵 minor 0 0 0 6 — same commit (no revision comparison)
seambot advisory ⚪ not applicable 0 0 0 0 — same commit (no revision comparison)
finishingbot (release readiness) advisory 🔴 high 0 9 5 0 — same commit (no revision comparison)
cipherbot advisory ⚪ not applicable 0 0 0 0 — same commit (no revision comparison)
accessibilitybot advisory ⚪ not applicable 0 0 0 0 — same commit (no revision comparison)
Hypatia scan: 4 finding(s)
  • 4 further finding(s) in files this change does not touch: reported, not graded (0 critical, 3 high).
panic-attack assail: 23 finding(s)
  • 23 further finding(s) in files this change does not touch: reported, not graded (0 critical, 3 high).
pons asinorum: 9 finding(s)
  • 9 further finding(s) in files this change does not touch: reported, not graded (0 critical, 0 high).
echidnabot: not_applicable — template default: enrol once the repository carries proofs and an ECHIDNA engine is configured
  • ⚪ not applicable: template default: enrol once the repository carries proofs and an ECHIDNA engine is configured
rhodibot (RSR compliance): 11 finding(s)
  • 11 further finding(s) in files this change does not touch: reported, not graded (0 critical, 10 high).
panicbot: not_applicable — panic-attack is already graded by the verdict grid's own panic-attack row, from static-analysis-gate.yml evidence; enrolling panicbot would report one scanner twice and give two rows that can disagree
  • ⚪ not applicable: panic-attack is already graded by the verdict grid's own panic-attack row, from static-analysis-gate.yml evidence; enrolling panicbot would report one scanner twice and give two rows that can disagree
sustainabot: not_applicable — reserved fleet slot; no adapter exists (gitbot-fleet bots/sustainabot/README.adoc)
  • ⚪ not applicable: reserved fleet slot; no adapter exists (gitbot-fleet bots/sustainabot/README.adoc)
glambot (presentation quality): 105 finding(s)
  • info GS-001 — Install git-seo for comprehensive SEO analysis: https://github.com/hyperpolymath/git-seo
  • info MACH-007 — ECOSYSTEM.scm not found in .machine_readable/ directory.
  • info MACH-007 — META.scm not found in .machine_readable/ directory.
  • info MACH-007 — STATE.scm not found in .machine_readable/ directory.
  • info MACH-005 — No robots.txt found. Consider adding one for crawler control.
  • info VIS-005 — ci/README.adoc:29 — Line 85 characters exceeds max length of 80.
  • 99 further finding(s) in files this change does not touch: reported, not graded (0 critical, 2 high).
seambot: not_applicable — template default: enrol once a seam register exists at spec/seams/seam-register.json
  • ⚪ not applicable: template default: enrol once a seam register exists at spec/seams/seam-register.json
finishingbot (release readiness): 185 finding(s)
  • high V1-DOC-ROADMAP.adoc — Required file ROADMAP.adoc not found (Project roadmap).
  • high TOOL-001 — .tool-versions file not found for asdf/mise version management.
  • high SCM-001-NEUROSYM.scm — Required SCM file NEUROSYM.scm not found (Neurosymbolic AI documentation).
  • high SCM-001-AGENTIC.scm — Required SCM file AGENTIC.scm not found (Agentic AI integration documentation).
  • high SCM-001-PLAYBOOK.scm — Required SCM file PLAYBOOK.scm not found (Operational playbooks and procedures).
  • high SCM-001-ECOSYSTEM.scm — Required SCM file ECOSYSTEM.scm not found (Project's place in the ecosystem).
  • high SCM-001-META.scm — Required SCM file META.scm not found (Meta-level information and architectural decisions).
  • high SCM-001-STATE.scm — Required SCM file STATE.scm not found (Project state and progress tracking).
  • high PH-100 — Found 128 placeholders, exceeds maximum allowed (0)
  • medium V1-COM-CONTRIBUTING.md — CONTRIBUTING.md file not found (Contribution guidelines).
  • medium V1-COM-CODE_OF_CONDUCT.md — CODE_OF_CONDUCT.md file not found (Code of conduct).
  • medium V1-SEC-001 — SECURITY.md not found for responsible disclosure.
  • medium TEST-001 — Could not determine if this is a Rust or Deno project.
  • medium REL-004 — No SECURITY.md file found
  • 171 further finding(s) in files this change does not touch: reported, not graded (0 critical, 4 high).
cipherbot: not_applicable — template default: enrol once the repository implements cryptography
  • ⚪ not applicable: template default: enrol once the repository implements cryptography
accessibilitybot: not_applicable — template default: enrol once the repository serves HTML
  • ⚪ not applicable: template default: enrol once the repository serves HTML

Scope: static findings reported by each row's tool at the named commit. The table grades only findings in files this change touches, so the colour answers "does this change introduce anything?", not "what does the whole repository still carry?". Standing findings are counted in each accordion and in report.json; the baseline filter remains the place where acknowledged debt is recorded. The lane state is the worst GATING row; advisory rows are listed and counted but never set it. Purple, red, yellow and blue grade the worst GRADED finding present; orange is evidence missing, malformed or a scanner that did not run; grey is an explicit scope exclusion with its reason. No row is a security certification. report.json, badge.json and the raw findings are in the verdict-grid artifact on the linked run.

@hyperpolymath
hyperpolymath marked this pull request as ready for review November 30, 2026 23:49
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-30T23:50:03.385406Z
We couldn’t complete this review. Comment @codex review to try again.
393de1f Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@hyperpolymath
hyperpolymath merged commit 7c6bbbf into main Nov 30, 2026
62 of 63 checks passed
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.

2 participants