8000 feat: verify retained publication attestations by Mnehmos · Pull Request #23 · Mnehmos/MathOS · GitHub
[go: up one dir, main page]

Skip to content

feat: verify retained publication attestations - #23

Merged
Mnehmos merged 1 commit into
mainfrom
feat/publication-attestation-verification
Jul 19, 2026
Merged

Mnehmos merged 1 commit into
mainfrom
feat/publication-attestation-verification

Conversation

@Mnehmos
@Mnehmos Mnehmos commented Jul 19, 2026
Copy link
Copy Markdown
Owner

Closes the second infrastructure slice of #21 without claiming proof authority.

Product outcome

  • pins GitHub CLI 2.96.0 by official release archive and executable SHA-256
  • verifies the exact retained report and Sigstore bundle under exact repository, workflow, certificate identity, main ref, commit, predicate, and GitHub-hosted-runner constraints
  • retains both raw verifier output and a closed publication_attestation_verification/1 record
  • permanently rejects self-asserted authority in the verification record
  • corrects the documented boundary to one Lean thread and a 4 GiB address-space ceiling
  • records the first successful protected main boundary evidence and dev diary entry 32

Local evidence

  • exact local and remote tree: a2f57f427d5e59b4042bcbdd703436595014bdd3
  • cargo fmt --check
  • warnings-denied offline Clippy
  • all 80 Rust unit tests
  • real Lean worker integration
  • 3 MCP subprocess tests
  • 9 CLI integration tests
  • 39 legacy Python regressions
  • shell syntax and fail-closed malformed-source-digest check

Trust boundary

This PR does not create authoritative evidence and cannot derive mathematical status. The protected main workflow must first prove the real pinned attestation-verification path. Controlled canonical ingestion of a real publication_report/1 and authoritative exact proof or refutation evidence remain open in #21.

Pin the GitHub CLI verifier by archive and executable digest, challenge the exact retained Sigstore bundle under closed workflow identity constraints, and preserve a non-authoritative typed verification record.
@coderabbitai
coderabbitai Bot commented Jul 19, 2026 •
Copy link
Copy Markdown

Warning

Review limit reached

@Mnehmos, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 37 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 633cccbc-b27a-4fb4-b7bb-98bd00d1d4ee

📥 Commits

Reviewing files that changed from the base of the PR and between 31ccfdd and 3e5e04c.

📒 Files selected for processing (13)
  • .github/workflows/publication.yml
  • docs/decisions/ADR-0006-oidc-attested-publication-authority.md
  • docs/dev-diary/0032-a-signature-is-a-memory-with-a-witness.md
  • docs/dev-diary/README.md
  • docs/implementation/STATUS.md
  • docs/trust/PUBLICATION_AUTHORITY.md
  • policies/lean-publication-1.json
  • policies/lean-publication-1.sha256
  • schemas/publication/publication-attestation-verification-1.schema.json
  • schemas/publication/publication-policy-1.schema.json
  • scripts/publication-attestation-verify.sh
  • src/domain/mod.rs
  • src/domain/publication.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/publication-attestation-verification

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

Comment @coderabbitai help to get the list of available commands.

@Mnehmos
Mnehmos marked this pull request as ready for review July 19, 2026 23:51
Mnehmos commented Jul 19, 2026
Copy link
Copy Markdown
Owner Author

Fresh-runner checkpoint: CI run 29708510408 passed all five jobs on exact head 3e5e04ca0da25008120e8146eff76d1b8f010a4b and exact tree a2f57f427d5e59b4042bcbdd703436595014bdd3, including Linux, Windows, legacy regressions, real storage, pinned Lean, and the isolated boundary smoke. The PR is ready for review. The protected attestation-verification path is intentionally tested only after merge to main, because pull requests are not allowed to mint publication authority provenance.

@Mnehmos
Mnehmos merged commit 47346cd into main Jul 19, 2026
6 checks passed
@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3e5e04ca0d

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


jq -e --arg report_hash "$report_hash" --arg predicate_type "$predicate_type" '
type == "array" and length > 0 and
all(.[].verificationResult.statement.predicateType == $predicate_type) and
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Apply all directly to each verification result

When gh attestation verify --format json produces the array this filter expects, jq's one-argument all(condition) already evaluates the condition against each array element. The extra .[] here—and in the timestamp check on line 68—descends into each attestation's field values, where .verificationResult is absent, so the filter returns false even for a valid result. Because the script uses set -e, every successful protected-main verification stops here and the verification artifacts are never uploaded; remove the inner .[] or use jq's generator form of all.

Useful? React with 👍 / 👎.

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

0