Repository navigation
Description
Parent/controller: #3318
Umbrella: EffortlessMetrics/ripr#1542
Depends on architecture/receipts/fixtures: #3323, #3324, #3325
Consumers: exact merge-subject producer, portable verifier, reusable product CI, source admission
One-PR outcome
Define the versioned Rust/schema contract for portable product proof without yet producing it from live GitHub runs.
This issue removes schema and verdict design from the later CI implementation. It adds types, validation, deterministic JSON/Markdown fixtures, spec/traceability, and pure negative controls only.
Subject model
Represent distinctly:
repository identity
PR number and base/head SHA/tree
merge-group or synthetic merge SHA/tree when evaluated
resulting accepted squash SHA/tree
required-check policy identity
workflow/producer identity
review/thread snapshot identity
toolchain, lockfile, feature/profile identity
selected artifact/receipt references
Do not collapse PR head, merge subject, and accepted squash subject into one ambiguous sha.
Verdict model
Use closed per-proposition and aggregate states equivalent to:
passed
failed
not_run
skipped
cancelled
timed_out
stale
unavailable
instrument_failure
not_proven
Only a terminal current passed proposition may contribute to reusable proof. Unknown strings and missing applicable fields fail validation.
Tree correspondence
The model must express exactly one of:
merge_result_tree_equals_squash_tree
exact_squash_reproved
not_proven
It records the compared commits/trees and the method/evidence. PR green status without tree correspondence cannot serialize as reusable.
Required-check snapshot
Bind the proof to the complete required product policy used for that subject:
context/check identity and GitHub App where applicable
applicability/profile/lifecycle
required/advisory role
exact evaluated SHA/tree
terminal conclusion
receipt/artifact identity
Review state and CI state remain separate.
Portability and identity
- Root-independent normalized receipt identity through schema(sync): add a content-addressed convergence receipt envelope, index, retention, and migration contract #3325.
- Equivalent exact Git/GitHub observations serialize byte-identically.
- Mutable branch names, author display name, timestamps, URLs, and check presentation order are not semantic proof identity.
- Producer workflow version and product-contract version remain distinct.
- Cross-repository verifier can parse and validate without GitHub-specific workflow prose.
Required fixtures
- passed exact tree correspondence;
- exact squash reproof;
- green PR with different squash tree =
not_proven; - missing/skipped/stale required check;
- advisory failure that does not enter required denominator;
- check bound to another SHA;
- changed lockfile/toolchain/policy identity;
- current review clean versus review unavailable;
- unsupported future schema;
- deterministic field-order/root fixture.
Acceptance
- One schema/model/spec owns portable product-proof meaning.
- PR, evaluated merge, and accepted squash identities are distinct.
- Required-check and review states are typed and non-conflated.
- Tree correspondence is explicit and fail-closed.
- Deterministic schema/golden/mutation fixtures are load-bearing.
- No workflow, live check collection, ref, PR, release, or publication mutation occurs.
Non-goals
- No GitHub producer or post-merge observer.
- No receipt index publication beyond schema fixtures.
- No reusable external-tree CI.
- No source projection/admission.
Agent packet
The issue must name the spec, schema, Rust module, fixtures, golden, and focused tests. An implementing agent should not decide field names from the #3318 prose while writing a workflow.
Activity
coderabbitai commentedon Aug 18, 2026
🔗 Related PRs
#3068 - feat(schema): bind non-riprAgent published schemas to canonical producers (
#2923) [merged]#3078 - release(denominator): adjudicate P..C to zero decisions for the 0.11.0 hard cut (
#2825) [merged]#3103 - release(control): verify ancestry-preserving back-sync [merged]
#3190 - fix(output): keep mixed health repairs visible [merged]
#3193 - test(fixtures): isolate unchanged proof identity [merged]
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!