Skip to content

Pin and cache Agda, Chez and Idris2 provisioning - #41

Merged
hyperpolymath merged 1 commit into
mainfrom
ci/pinned-agda-idris-chez-provisioning
Dec 2, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
ci/pinned-agda-idris-chez-provisioning

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

Pinned, sha-checked, cached provisioning for Agda, Chez and Idris2 (owner ruling 2026-12-02, same treatment as #40 for Coq).

  • scripts/atoma-provision-debs.sh <lock> <cache-dir> [-- assertion]: fetch (retries, then fixed snapshot) → sha256sum --check --strict → dpkg -i → locked versions installed → assertion. atoma-provision-coq.sh is now a thin wrapper (Coq jobs unchanged); atoma-provision-agda.sh likewise. Fetch locations moved to sibling .pool files.
  • New locks ci/agda-2.6.3.debs.sha256 (74 debs) and ci/idris2-chez.debs.sha256 (3), derived in a fresh ubuntu:24.04 container from apt-get install -s Inst lines (method in each header).
  • Idris2 prefix cached via actions/cache@55cc834… (v6.1.0, already in actions.lock). On a hit: manifest file-list + sha256sum --check --strict, then exact --version. Trust-on-first-build; cache scoping recorded as ASSUMED in the decision doc.
  • Scalar job: agda-bin moved to the pinned closure; zstd stays on apt.
  • Key deviation (doctrine 15): the Idris cache key also hashes scripts/atoma-idris-prefix.sh (manifest format), beyond the brief.

Gate diff (soundness.needs)

-needs: [core_soundness, heap_consumers, byte_translation, native_word, coq_pin_selftest]
+needs: [core_soundness, heap_consumers, byte_translation, native_word, coq_pin_selftest, toolchain_pin_selftest]
+TOOLCHAIN_PIN_RESULT: ${{ needs.toolchain_pin_selftest.result }}
+test "$TOOLCHAIN_PIN_RESULT" = success

Stricter only. No timeout raised.

Local validation (noble container)

  • bash -n on all scripts: OK. scripts/check-lock-sync.sh: OK.
  • actionlint 1.7.7: NOT RUN (binary download denied by the classifier; reported to hub).
  • Cold run (debs fetched from archive, Idris built): agda/chez OK, Idris build + manifest (861 files) + verify OK; toolchain 476 s with debs pre-cached.
  • Warm run (fresh container, debs cached, prefix restored): 24 s, manifest + version re-verified.
  • Must-fail fixtures all PASS with specific reasons: flipped sha (agda, chez), truncated and extra-byte .deb (both), altered/extra/missing file and missing manifest in Idris prefix, wrong --version; untouched controls verify.
  • Snapshot fallback exercised locally only (primary forced down, sha verified).

Hosted evidence

Pending first CI run; will be added (per-job conclusion and cache hit/miss, toolchain duration vs main run 46540110449, whether snapshot fallback fired). Risk: the locks assume the runner image's preinstalled packages match or are absent; dpkg -i failure would be the STOP condition.


Generated by Claude Code

…dris2 prefix

Generalise the Coq provisioner into scripts/atoma-provision-debs.sh (fetch with
retries, snapshot fallback, whole-set sha256 check, dpkg -i, version
assertion); Agda, Chez and Coq are thin consumers. The built Idris2 prefix is
cached and re-verified on every hit against idris2.manifest.sha256 and the
exact --version. toolchain_pin_selftest adds must-fail fixtures to the
soundness gate.

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

gitnotebooks Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review these changes at https://app.gitnotebooks.com/hyperpolymath/Atoma/pull/41

@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

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

Copy link
Copy Markdown
Owner Author

Canon lockstep fails at "no Atoma_chora.deed at 2c0001c". The check derives the filename from the renamed repo (Atoma), but the deed in the tree is atoma_chora.deed. It is red on main too and this PR touches neither the deed nor the check, so it is not caused by this change and I am not altering it here. Waiting on the Atoma soundness jobs for the hosted evidence.


Generated by Claude Code

@sonarqubecloud

sonarqubecloud Bot commented Dec 2, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Hypatia grid green

🟢 clean · commit 2c0001ce85eb · run 46836791001 · scope: this change (14 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: 22 (22 reporter observations; 20 without sufficient identity to corroborate). Row counts remain per reporter; unique totals do not change gating.
Raw Hypatia alert-derived observations: 53 (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 7 — 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 6 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 — docs/decisions/ATOMA-TOOLCHAIN.adoc:15 — Line 96 characters exceeds max length of 80.
  • info VIS-005 — ci/README.adoc:20 — Line 101 characters exceeds max length of 80.
  • 98 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
  • medium CLM-006 — docs/decisions/ATOMA-TOOLCHAIN.adoc — Documentation references non-existent file: actions.lock
  • 170 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 December 2, 2026 15:17
@hyperpolymath
hyperpolymath merged commit d0865de into main Dec 2, 2026
63 of 64 checks passed
@hyperpolymath
hyperpolymath deleted the ci/pinned-agda-idris-chez-provisioning branch December 2, 2026 15:17
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T15:20:18.222216Z 2c0001c Draft marked ready
🔒 Security Review ✅ Completed 2026-12-02T15:22:44.031468Z 2c0001c 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.

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