Repository navigation
Description
Goal
Make pkg/client/v1 the complete and defensibly stable integration surface for the core AICR workflow.
An integrator must be able to complete:
snapshot → criteria → recipe → validate → bundle → verify
without importing another AICR pkg/* package.
v1 closure scope
| Issue | Status | Required outcome |
|---|---|---|
| #2120 | open | Concurrent snapshot collection satisfies the facade's published isolation contract. |
| #2245 | open | Bundle, validation, and snapshot configuration no longer require Config.Unwrap() or pkg/config. |
| #2437 | landed | The facade derives recipe criteria from a snapshot without exposing pkg/fingerprint or pkg/recipe. |
| #2028 | open | A merge-blocking architecture test prevents CLI/server business-logic bypasses around the facade. |
| #2029 | open | The integrator guide and compile-only example demonstrate the complete workflow using only pkg/client/v1. |
Acceptance criteria
- The complete workflow compiles using only
pkg/client/v1, standard-library packages, and explicitly stable third-party types. - Snapshot collection is safe for concurrent SDK consumers.
- All configuration needed by the workflow is available through the facade.
- The exported-surface stability test and released-baseline API-diff gate remain green.
- The CLI/server architecture gate rejects new unstable-package bypasses.
- Documentation contains no unstable-package escape hatch for the core workflow.
Post-v1 follow-up
These open native children remain valuable but are not required by the v1 exit gate:
- sdk: expose mirror inventory on the facade; retain trust maintenance in CLI #2025 — mirror inventory.
#2225, #2227, and #2256 have since closed.
Native sub-issue inventory
The native graph contains 20 children: 15 closed and 5 open. Four open children are v1 blockers (#2120, #2245, #2028, #2029); one is post-v1 (#2025).
#2025 does not gate #2028 or #2029. Mirror inventory is outside the snapshot → criteria → recipe → validate → bundle → verify workflow this epic scopes, so until it closes the CLI's mirror/trust use is a reasoned allowlist exception naming #2025 rather than an unfinished workflow silently accepted.
Out of scope
- Making every CLI capability available through the SDK.
- Publishing trust-cache maintenance before its underlying operation supports reliable cancellation.
- General component upgrade-lifecycle safety.
- Tagging
v1.0.0; this epic is a prerequisite, not the release action.
Activity
13 remaining items
mchmarny commentedon Aug 28, 2026
Triaged: confirmed at P2 / Backlog / v1. The epic remains an umbrella; its updated description now names the actionable closure sequence and the child issues carry execution priority.
fix(architecture): repoint pkg/evidence/cncf tracking to #2561
mchmarny commentedon Sep 3, 2026
Closing: the v1 exit criteria are met. 19 of 20 native children are closed, and the one that remains is post-v1 by this issue's own scoping.
Acceptance criteria, verified on
5cda08fb7pkg/client/v1, stdlib, and explicitly stable third-party typesExample_workflowinpkg/client/v1/example_test.go— and it runs, rather than only compiling (#2565)pkg/client/v1/stability_test.go+tools/api-diff, both merge-blockingtests/architecture/facade_boundary_test.go(#2028)pkg/*imports remain indocs/integrator/go-library.md(#2565)What the last three PRs actually changed
84983e876) tookpkg/clifrom eightpkg/configimports to zero, so every spec section now has a value-shaped facade derivation the CLI reads field by field.fdde92bb9) added the architecture gate. It is not ceremonial: during review an unrecordedvalidator.WithVersioncall was injected intopkg/serverin a throwaway worktree and the gate failed withunclassified: pkg/validator.WithVersion. It also classifies method calls on business-owned types, so a call likerec.Resolve()— which carries norecipe.selector and is invisible to an import-level check — is caught.5cda08fb7) reconciled the integrator guide with what actually shipped. The guide had drifted into contradicting itself: the quick start saidOCISourcewas "not yet implemented" while the same file documented it as production, and the snapshot-to-criteria path still routed integrators throughpkg/fingerprint(Internal) behind a caveat advertising a gap sdk: derive facade Criteria from Snapshot #2437 had already filled.Why the workflow example is runnable, not compile-only
#2029 asked for a compile-only example. A Go
Examplewithout an// Output:block never executes — it only has to compile. Most of this chain is hermetic, so compile-only would have pinned signatures while proving nothing about behavior.Example_workflowexecutes in under a second on every test run and catches a resolve returning nothing, a bundle writing no files, or a verify silently degrading. The two legs that genuinely need a cluster, liveCollectSnapshotandValidateState, are documented and deliberately not executed rather than faked.That distinction is not academic: of the 19 examples that predated this work, only 5 carried an
Output:.What remains, and why it does not block
#2025 (mirror inventory on the facade) stays open and continues independently. This issue's own Post-v1 Follow-up section scopes it out — mirror inventory sits outside the
snapshot → criteria → recipe → validate → bundle → verifyworkflow the epic covers — and it carries no v1 milestone.pkg/mirrorandpkg/trustare recorded intests/architecture/facade-policy.yamlastracking: "#2025"exceptions, so the gate will force their removal when it lands rather than letting them linger.Three follow-ups were filed from this work, none blocking:
pkg/cli's direct use ofpkg/evidence/cncfis a real tracked gap rather than a settled design.Resolveboundary.The parity this epic bought is now mechanically defended: if
pkg/cliorpkg/serverreaches pastpkg/client/v1again, the build fails.