Skip to content

Commit 784622b

Browse files
hyperpolymathclaude
andcommitted
chore(ci): track bag-of-actions ci-checks.exs (owned-compute gate manifest)
The manifest the bag-of-actions `mix bag.report` dispatcher runs to execute the snifs proof + ABI gates on an owned nix-capable node and post each verdict back as a GitHub commit status (snifs-proofs -> 'bag / Formal proofs (owned compute)', snifs-abi -> 'bag / ABI conformance (owned compute)'). Both Justfile recipes it names (proof-check-all, abi-conformance) exist. Pairs with bag-of-actions PR #7. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent c733615 commit 784622b

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

ci-checks.exs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# SPDX-License-Identifier: MPL-2.0
2+
# Copyright (c) Jonathan D.A. Jewell <j.d.a.jewell@open.ac.uk>
3+
#
4+
# bag-of-actions CI manifest for snifs — runs the proof gate + ABI conformance on
5+
# OWNED compute (a `nix`-capable estate node, e.g. mesh-server-1) with ZERO GitHub
6+
# Actions minutes, and posts each verdict back to the PR commit as a status that
7+
# satisfies a branch-protection required check.
8+
#
9+
# Run on the node, from the snifs repo root, after `git fetch`/checkout of the PR head:
10+
#
11+
# GITHUB_REPOSITORY=hyperpolymath/snifs GITHUB_SHA=<head-sha> \
12+
# mix bag.report /path/to/snifs/ci-checks.exs
13+
#
14+
# (`mix bag.report` lives in bag-of-actions; run it from there with this manifest
15+
# path, or `cd` into bag and pass an absolute path.)
16+
#
17+
# `required_cap: "nix"` routes each check to a node that has the `nix` capability;
18+
# the commands fetch the actual toolchain (idris2/lean4/agda/zig/wasm-tools/python/just)
19+
# via `nix shell` at run time. `github_context` is the required-status-check NAME the
20+
# verdict posts to — point branch-protection's required contexts at these.
21+
[
22+
%{
23+
check_id: "snifs-proofs",
24+
command: [
25+
"bash",
26+
"-lc",
27+
"nix shell nixpkgs#idris2 nixpkgs#lean4 nixpkgs#agda nixpkgs#just --command bash -c 'just proof-check-all'"
28+
],
29+
required_cap: "nix",
30+
github_context: "bag / Formal proofs (owned compute)"
31+
},
32+
%{
33+
check_id: "snifs-abi",
34+
command: [
35+
"bash",
36+
"-lc",
37+
"nix shell nixpkgs#zig nixpkgs#wasm-tools nixpkgs#python3 nixpkgs#just --command bash -c 'just abi-conformance'"
38+
],
39+
required_cap: "nix",
40+
github_context: "bag / ABI conformance (owned compute)"
41+
}
42+
]

0 commit comments

Comments
 (0)