Semver + breaking-change policy
How Konstera versions its public surfaces (SDK, manifest schema, platform API, CLI) and what counts as breaking vs non-breaking. Short version: semver with a strict deprecation window.
What's versioned#
| Surface | Version example | What it means |
|---|---|---|
| SDK (Python, .NET, TypeScript) | 0.6.0, 0.5.3 | Package version. One per language. |
| Manifest schema | v3, v3.1 | Schema version in $schema URL. |
| Platform API | v1, v2 | HTTP route prefix (/api/v1/agents/...). |
| CLI | 0.1.0, 0.2.0 | Binary version (konstera version). |
| Context Pack | v1.0.0 | Shared constants package across all three languages. |
Each is versioned independently — SDK v0.6 can target manifest schema v3.1 while using platform API v1.
What counts as breaking#
At a glance — the details per surface follow.
| Surface | MAJOR (breaking) | MINOR (additive) | PATCH |
|---|---|---|---|
| SDK | Remove / rename / narrow public API or ctx.* services; change error-raising behaviour | New methods, optional params, fields; deprecations | Bug fixes, refactors, docstrings, pins |
| Manifest schema | Remove / rename required field; change a field's type; remove an enum value | New optional field or enum value; loosened constraint | Doesn't exist (major.minor only) |
| Platform API | Remove endpoint or response field; change a field's shape or error status codes | Not in the URL — additive changes land under the same major | — |
| CLI | Removed commands or renamed flags | New commands | Standard semver |
| Context Pack | Removing or renaming a canonical name | Adding a canonical name | Metadata-only changes |
SDK#
MAJOR bump (0.x → 1.0, 1.x → 2.0) required when:
- Removing a public method, class, or module
- Renaming a public method or parameter
- Narrowing a parameter type (e.g.
str | None→str) - Widening a return type that callers may branch on
- Removing or renaming a kernel service exposed on
ctx.* - Changing the error-raising behaviour of an existing method (e.g.
previously-returned
Nonebecomes a raised exception)
MINOR bump (0.5 → 0.6) for:
- Adding a new public method, service, or module
- Adding an optional parameter with a default
- Adding a new field to an existing dataclass / interface
- Deprecating (but not removing) a method — the warning is non-breaking
PATCH bump (0.5.0 → 0.5.1) for:
- Bug fixes that don't change the public API
- Internal refactors
- Docstring improvements
- Dependency version pins
Manifest schema#
MAJOR bump (v3 → v4) required when:
- Removing or renaming a required field
- Changing the type of an existing field
- Removing an allowed
autonomyenum value orruntime.kindvariant
MINOR bump (v3 → v3.1) for:
- Adding a new optional field (e.g.
contextRequirementsin v3.1) - Adding a new enum value to an existing field
- Loosening a constraint (e.g. increasing
idmax length)
Patch doesn't exist for the manifest schema — the schema file is
versioned at major.minor only.
Platform API#
MAJOR bump (v1 → v2) required when:
- Removing an HTTP endpoint
- Removing a response field callers may read
- Changing the shape of an existing response field
- Changing error status codes for the same logical failure
MINOR version isn't exposed in the URL — additive changes land under
the same major (v1) and are tracked in release notes.
CLI#
Standard semver. New commands → MINOR. Removed commands or renamed flags → MAJOR.
Context Pack#
Follows a stricter semver per the pack:
| Change | Bump |
|---|---|
| Adding a canonical name (glossary term, skill, entity) | MINOR |
| Removing or renaming | MAJOR |
| Metadata-only (description, display name) | PATCH |
All three Context Pack packages (NuGet, PyPI, npm) must share the same
MAJOR.MINOR as the pack JSON schema version — enforced by CI.
Deprecation policy#
When something is deprecated:
- Deprecated flag
On the public surface — Python
DeprecationWarning, .NET[Obsolete], TypeScript JSDoc@deprecated. Shows up in IDEs. - Release notes
Release notes mention what to migrate to.
- Minimum one minor cycle
Minimum one minor cycle before removal — if deprecated in
0.6, removed no earlier than0.7(and even then, we try to defer to the next major).
For the manifest schema specifically, the platform supports two major
versions concurrently — when v4 ships, v3 manifests keep working
through the next major platform release. So the practical deprecation
window for a manifest field is ~12 months (one platform major cycle).
v4 shipsv3 and v4 both acceptedv3 keeps workingthrough the next major platform releasePre-release conventions#
Reading a version in the SDK#
import konstera_sdk
print(konstera_sdk.__version__) # e.g. "0.6.2"
import { VERSION } from "@konstera/sdk";
console.log(VERSION); // e.g. "0.4.3"
Agents log the SDK version in their /describe response so the kernel can
display what version each instance is running.