Skip to content

docs: walk new contributors through emitting recipe evidence#976

Merged
njhensley merged 2 commits into
NVIDIA:mainfrom
njhensley:docs/evidence-collection
May 19, 2026
Merged

docs: walk new contributors through emitting recipe evidence#976
njhensley merged 2 commits into
NVIDIA:mainfrom
njhensley:docs/evidence-collection

Conversation

@njhensley

Copy link
Copy Markdown
Member

Summary

Expands the evidence-emission docs so a new recipe contributor can see, in the contributor/integrator surface, exactly how to produce and prepare an evidence bundle before opening a PR — instead of the prior hand-wave at ADR-007.

Motivation / Context

aicr validate --emit-attestation and aicr evidence verify are shipped, but the only end-to-end walkthrough lives in demos/evidence.md. The contributor/integrator pages either skipped the topic (docs/user/validation.md — covers CNCF evidence only) or deferred it to the design doc (docs/integrator/recipe-development.md § Submitting Your Recipe). Contributors creating brand-new recipes for hardware AICR maintainers cannot independently re-run had no task-oriented entry point.

Fixes: N/A
Related: ADR-007 (docs/design/007-recipe-evidence.md), demos/evidence.md

Type of Change

  • Documentation update

Component(s) Affected

  • Docs/examples (docs/, examples/)

Implementation Notes

  • docs/user/validation.md: new ## Emitting recipe evidence for a PR section between the existing CNCF evidence section and "Input modes". Covers the producer-side --emit-attestation / --push flow with the command, bundle layout, self-verify step, a flag-reference table, registry/Referrers-API requirements, OIDC token precedence, and the local-only fallback. Treated as a sibling to the existing CNCF-submission evidence section since both are evidence kinds emitted by aicr validate.
  • docs/integrator/recipe-development.md: replaced the stub "Submitting Your Recipe" section with five concrete subsections written for a brand-new contributor (When You Need Evidence, Producing the Bundle, Self-Verifying Before You Open the PR, What to Include in the PR, If You Cannot Push to a Registry). Cross-links to the user/validation.md section above as the per-flag source of truth so the content does not duplicate.
  • Anchor slugs were verified against GitHub's slug algorithm before linking (notably evidenceexempt-bypass-policy — the / in evidence/exempt is stripped without replacement).
  • No code changes. No new files. No emoji.

Testing

# Doc-only PR. No Go changes; lint and test gates unaffected.
# Verified heading structure and anchor slugs by inspection; lychee
# (the CI link checker on docs/**) will run on push.

Risk Assessment

  • Low — Isolated change, well-tested, easy to revert

Rollout notes: N/A — additive documentation only.

Checklist

  • Tests pass locally (make test with -race) — N/A, doc-only
  • Linter passes (make lint) — N/A, doc-only
  • I did not skip/disable tests to make CI green
  • I added/updated tests for new functionality — N/A
  • I updated docs if user-facing behavior changed
  • Changes follow existing patterns in the codebase
  • Commits are cryptographically signed (git commit -S)

@njhensley njhensley requested a review from a team as a code owner May 19, 2026 21:40
@github-actions

Copy link
Copy Markdown
Contributor

@coderabbitai

coderabbitai Bot commented May 19, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR expands documentation for the recipe evidence bundle workflow across two guides. The user validation guide introduces the technical mechanics of producing evidence bundles via aicr validate --emit-attestation --push, including output directory structure, pointer.yaml commitment, self-verification, and OCI registry requirements. The integrator recipe-development guide provides the full PR submission workflow: defining evidence bundles, explaining when evidence is required based on criteria/ownership, detailing the step-by-step production and self-verification process, specifying PR requirements (digest-pinned ref, attestation details, exit-code handling), addressing registry-access limitations, and linking to reference documentation.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • NVIDIA/aicr#917: Both PRs document the same “recipe evidence bundle” flow—main PR specifies the aicr validate --emit-attestation/--push evidence bundle + aicr evidence verify workflow, and the retrieved PR adds a GKE demo that runs that validate-and-emit-then-verify sequence.
  • NVIDIA/aicr#972: Both PRs update documentation around ADR-007 “evidence bundle”/aicr evidence verify semantics for recipe PR workflows—main PR expands the author-side “Submitting Your Recipe”/evidence-emission guide, while #972 adds the maintainer-side runbook and links it from docs/integrator/recipe-development.md (including the exit-1 process).

Suggested labels

documentation

Suggested reviewers

  • lalitadithya
  • mchmarny
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding documentation to guide new contributors through the recipe evidence emission workflow.
Description check ✅ Passed The description is well-related to the changeset, providing clear context about what was added (two documentation sections with evidence bundle workflow guidance) and why (contributors lacked a task-oriented entry point).
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@coderabbitai coderabbitai 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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/integrator/recipe-development.md`:
- Around line 549-554: Add a brief inline definition of "material-slice" in this
paragraph: state which recipe fields are considered material (e.g., criteria,
component refs, constraints, validation) and which are non-material (e.g.,
comments, displayName, description, key order), so readers immediately
understand what "material-slice digest" and "material-slice canonicalization"
mean without following the ADR-007 link; keep it to one concise sentence
inserted after the first mention of "material-slice digest" or before the
ADR-007 reference.
- Around line 610-612: Update the sentence containing "fingerprint match against
the recipe's criteria" to briefly define what "fingerprint" means on first use
(for example: "fingerprint match against the recipe's criteria (the bundle's
recorded cluster characteristics such as OS, architecture, and distribution
identifiers)") or move the later clarifying sentence that mentions "fingerprint
dimensions are in the predicate" earlier so the term is explained before it's
used; ensure you edit the same paragraph that currently reads "Exit 0 means
signature, schema, inventory, manifest hashes, fingerprint match against the
recipe's criteria, and BOM cross-reference all passed" and keep the added
clarification concise and inline.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 2731db2c-a1e3-412f-893a-20cc76eab1f8

📥 Commits

Reviewing files that changed from the base of the PR and between 335e388 and 851398b.

📒 Files selected for processing (1)
  • docs/integrator/recipe-development.md

Comment thread docs/integrator/recipe-development.md
Comment thread docs/integrator/recipe-development.md
@njhensley njhensley merged commit 8bb189b into NVIDIA:main May 19, 2026
32 checks passed
@njhensley njhensley deleted the docs/evidence-collection branch June 23, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants