Repository navigation
Description
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.xwith "minor = additive, patch = fixes" discipline now, →engine/v1when the port set settles. Document it in a shortengine/COMPATIBILITY.mdor a README section. - Add a mechanical guard —
golang.org/x/exp/cmd/apidiff(orgorelease) in CI against the lastenginetag — that fails the build on an unflagged breaking change to an exported identifier in the core packages, mirroring the spirit of the existinglayering_test.goarch guard.
Acceptance
- A written compatibility policy for the
enginemodule. - CI flags a breaking change to the core public surface and requires a deliberate version bump.
Activity