Skip to content

[Epic]: Go SDK — make pkg/client/v1 the complete integration surface #2016

Closed
20 of 20 issues completed
Closed

Description

@mchmarny

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:

#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.

Sub-issues

Sub-issues

20 of 20 Issues completed
Loading 20 sub-issues

Activity

  1. self-assigned this
    on Aug 4, 2026
  2. added
    theme/community
    on Aug 4, 2026
  3. added theissue type on Aug 4, 2026
  4. 13 remaining items

  5. mchmarny commented on Aug 28, 2026

    @mchmarny
    MemberAuthor

    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.

  6. mchmarny commented on Sep 3, 2026

    @mchmarny
    MemberAuthor

    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 5cda08fb7

    Criterion Evidence
    The complete workflow compiles using only pkg/client/v1, stdlib, and explicitly stable third-party types Example_workflow in pkg/client/v1/example_test.go — and it runs, rather than only compiling (#2565)
    Snapshot collection is safe for concurrent SDK consumers #2120
    All configuration needed by the workflow is available through the facade #2245, completed by #2548
    The exported-surface stability test and released-baseline API-diff gate remain green pkg/client/v1/stability_test.go + tools/api-diff, both merge-blocking
    The CLI/server architecture gate rejects new unstable-package bypasses tests/architecture/facade_boundary_test.go (#2028)
    Documentation contains no unstable-package escape hatch for the core workflow Zero escape-hatch pkg/* imports remain in docs/integrator/go-library.md (#2565)

    What the last three PRs actually changed

    Why the workflow example is runnable, not compile-only

    #2029 asked for a compile-only example. A Go Example without 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_workflow executes 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, live CollectSnapshot and ValidateState, 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 → verify workflow the epic covers — and it carries no v1 milestone. pkg/mirror and pkg/trust are recorded in tests/architecture/facade-policy.yaml as tracking: "#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:

    The parity this epic bought is now mechanically defended: if pkg/cli or pkg/server reaches past pkg/client/v1 again, the build fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/apiarea/sdktheme/community

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions