Skip to content

FEAT-105: ship the North Star O3 input as a signed release asset - #255

Merged
avrabe merged 1 commit into
mainfrom
feat/105-o3-asset
Nov 22, 2026
Merged

avrabe merged 1 commit into
mainfrom
feat/105-o3-asset

Conversation

@avrabe

@avrabe avrabe commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

This is FEAT-105's last slice. Each release attaches north-star-input.O3.json, schema_version 1 of pulseengine.eu's data/north-star/input.schema.json (seam pulseengine.eu#393). It is staged before SHA256SUMS.txt, so the cosign-signed manifest and the FEAT-109 published-versus-manifest check both cover it.

Facts, and where each comes from

fact measured from pass when control_failed_as_expected
proof_check_required GET /repos/pulseengine/scry/rules/branches/main at release time "Rocq Formal Proofs" is among the required contexts (13 today) the same lookup, with the context removed, reports "not required"
axiom_audit the first proof-audit: declared N, audited M, ... line in the log of the "Rocq Formal Proofs" job of main's CI run on the tagged commit that job concluded success, the line says PASS, and declared = audited > 0 (101/101, 0 axioms) that job's planted Axiom turned the audit red notice is present
ledger the first proof-audit ledger: ... line in the same log the job concluded success, the line says PASS, and rows = generated + hand (36 = 10 + 26) that job's planted Hypothesis failed the ledger notice is present

A missing input gives ran: false, which the consumer counts as failed. Nothing is zero-filled. not_measured lists five blind spots:

How

  • proof-audit north-star is a pure generator: its inputs are files, with no network access. The binary stays std-only, and serde_json is a dev-dependency.

  • The release step fetches the inputs:

    • the rules via gh api;
    • main's CI run on the tagged commit (git rev-parse "$VERSION^{commit}", waiting up to 15 minutes for the Rocq job to complete);
    • that job's log via curl.

    It then runs the generator, and checks the shape with jq before the sums are taken.

  • release.yml gains actions: read at workflow level, to read that run and its log.

Checked

  • cargo test --locked in tools/proof-audit: 23 of 23 pass, 5 of them new. The new tests use a recorded real main job log (run 45014928739, a GitHub-hosted runner) and the vendored schema (pulseengine.eu 87fc5b0). They check:
    • required keys, additionalProperties: false and types at both levels;
    • that the real lines are read, not the controls' FAIL lines;
    • missing inputs give ran: false;
    • a failed job fails its facts;
    • a missing control notice gives control_failed_as_expected: false;
    • a failing real audit line is not masked by the control.
  • clippy with -D warnings and cargo fmt --check are clean. These tests run in CI's Rocq job ("proof-audit unit tests").
  • I ran the release step locally, extracted verbatim from the YAML, against main's head commit bcdb7c4 with the live API. All three facts came out ran / pass / control true, with evidence pointing at job 137185115199.
  • The lockfile step from Commit, enforce and audit every lockfile; pin the release toolchain to Rust 1.100.0 #252 passes locally with the changed proof-audit lock.

Not covered

  • The release job itself only runs on a tag, so the first real asset appears with the next release.
  • The 15-minute "no CI run found" path is not exercised end to end; only its generator side (ran: false) is tested.
  • The output is not validated by a full JSON Schema engine, only by the structural test above.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KEjmjc82RFgNAWFHuv4XoU

Each release attaches north-star-input.O3.json (schema_version 1 of
pulseengine.eu's data/north-star/input.schema.json, seam
pulseengine.eu#393), staged before SHA256SUMS.txt so the cosign-signed
manifest and the FEAT-109 published-vs-manifest check cover it.

Facts, each from a measurement, each with its control:
- proof_check_required: "Rocq Formal Proofs" in the branch rules API's
  required_status_checks at release time (13 contexts today); control:
  the same lookup with the context removed reports not required.
- axiom_audit: the first "proof-audit: declared N, audited M ..." line of
  the Rocq job in main's CI run on the tagged commit (101/101, 0 axioms);
  control: that job's "planted Axiom turned the audit red" notice.
- ledger: the first "proof-audit ledger: ..." line (36 = 10 + 26);
  control: the "planted Hypothesis failed the ledger" notice.
A fact passes only when the job concluded success. A missing input
gives ran=false, never a zero.

`proof-audit north-star` is a pure generator: inputs are files, no
network. Its tests run on a recorded main job log (run 45014928739) and
the vendored schema (pulseengine.eu 87fc5b0), checking required keys,
additionalProperties and types. serde_json is a dev-dependency only.
release.yml gains `actions: read` to read main's CI run.

Refs: FEAT-105

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KEjmjc82RFgNAWFHuv4XoU
@avrabe
avrabe merged commit 1e50161 into main Nov 22, 2026
13 checks passed
@avrabe
avrabe deleted the feat/105-o3-asset branch November 22, 2026 14:04
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.

1 participant