Skip to content

Adopt a stability / breaking-change contract for the engine module surface #114

Closed

Description

@JAORMX

Sibling of #113 (engine-as-its-own-module). Where #113 makes the core importable, this makes it dependable.

Problem

There is no stated semver or breaking-change policy for the engine/ packages. Tags are v0.0.1–v0.0.6 (all 0.0.z, which under semver explicitly signals "no stability guarantee — every release may break"), and the release pipeline tracks reusable-workflow pins rather than an API-stability milestone. The README's only stability language is aspirational ("intended to be importable as a library").

Meanwhile the engine surface is genuinely churning release-over-release — new ports and aggregate seams have landed inside the tag window (e.g. the ResumeApproval/driveFromAwaiting resume path, the durable EventLog port, layered model-routing on the subagent/team event payloads). That is healthy for a young project, but it means an external consumer pinned to main chases a ~30-commit/day upstream with no compatibility promise, and even tag-to-tag offers none.

Why it matters for the convergence

Atrium wants a live, pinned dependency on github.com/stacklok/mecatl/engine (true co-evolution), not a vendored copy (which reintroduces the divergence we're trying to end). A live dependency is only safe if breaking changes to the public surface — engine/port, engine/tool, engine/session, engine/agent, engine/governance, engine/prompt, engine/team — are deliberate and signalled.

Proposed work

  • Declare the public API surface (the seven core packages; explicitly mark anything not part of it).
  • Adopt a policy: cut engine/v0.x with "minor = additive, patch = fixes" discipline now, → engine/v1 when the port set settles. Document it in a short engine/COMPATIBILITY.md or a README section.
  • Add a mechanical guard — golang.org/x/exp/cmd/apidiff (or gorelease) in CI against the last engine tag — that fails the build on an unflagged breaking change to an exported identifier in the core packages, mirroring the spirit of the existing layering_test.go arch guard.

Acceptance

  • A written compatibility policy for the engine module.
  • CI flags a breaking change to the core public surface and requires a deliberate version bump.

Activity

  1. added
    enhancement
    atrium-convergence
    on Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    atrium-convergencedevexenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions