Skip to content

Releases

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 12 Aug 08:43

The first development line. This version is being assembled phase by phase and has not
yet been published; the date is fixed when 0.1.0 is released (see the release runbook in
docs/specs/10-release-versioning-and-cicd.md §9).

Fixed

  • Governance halt veto now actually halts a run (spec 07 §9): a before_superstep middleware
    raising korchestrator.exceptions.GovernanceHaltError was previously caught, logged, and ignored
    like every other hook exception — the documented veto path was unimplemented. HookRegistry
    now lets specifically that exception type propagate out of before_superstep (every other
    exception from any hook still isolates exactly as before); PregelRunner.run catches it and
    returns a terminal RunResult with status=RunStatus.GOVERNANCE_PAUSED instead of running the
    vetoed superstep. The durable runtime is unaffected — it doesn't drive hooks yet. See
    ADR 0019.

Added

  • Private release pipeline (Phase 12, narrowed per ADR 0020):
    .github/workflows/release.yml now publishes a GitHub Release on every vX.Y.Z tag — the built
    wheel, sdist, and SHA256SUMS attached, notes drawn from this CHANGELOG, and an in-pipeline
    install verification (pip install git+https://...@vX.Y.Z) using the run's own scoped token.
    New scripts/cut_release.py automates the mechanical parts of cutting a release (version bump,
    CHANGELOG dating, release-branch/PR creation, tag creation and push) described in
    docs/specs/10-release-versioning-and-cicd.md §9.
  • Tool-calling for WorkerAgent (Phase 10, closes a gap left open since P4/P6): a mounted
    AgentConfig.tools list now runs a real bounded ReAct loop (predict → optionally call one tool
    → feed the result back → repeat, up to max_react_steps) instead of having no effect. Korch/
    Swarm gain a connectors: Sequence[Connector] | ConnectorRegistry | None = None constructor
    parameter (mirrors model_gateway); tools mounted on an agent with no connectors given raise
    a ConfigurationError naming the missing tools. New korchestrator.interfaces.IToolInvoker port
    and its one implementation, korchestrator.tools.RegistryToolInvoker. See
    ADR 0018.
  • TypeScript parity matrix (Phase 9, closes Phase 9): docs/parity-matrix.md settles the
    deferred TypeScript client's contract (ADR 0008) — every KorchestratorClient method, the
    constructor, ApiError, and the models.remote types, each marked TS: planned with its
    settled TypeScript name. Three discrepancies between an earlier TS-facing design sketch and the
    shipped Python implementation are resolved in the Python implementation's favor and labelled.
  • Remote client discovery (Phase 9, completes the KorchestratorClient method surface):
    tools(), models(), swarm_templates() (spec 04 §7.3). models() returns the existing
    korchestrator.models.routing.ModelCard. New korchestrator.models.remote.ToolDescriptor
    (name/description/input_schema) and SwarmTemplate (name/description/agents/
    edges, reusing AgentConfig so a fetched template can be passed straight into run_swarm).
  • Remote client SSE streaming (Phase 9): KorchestratorClient.stream(run_id) (spec 04 §7.3/§7.5)
    — a native async iterator yielding korchestrator.models.remote.RunEvent, the only method on
    the client that isn't a sync wrapper. Reconnects automatically (full-jitter backoff, budget
    reset on each successful reconnect) on a dropped connection; note that reconnecting resumes from
    "now", not the last delivered event — the wire format carries no event id to resume from.
  • Remote client control + identity (Phase 9): KorchestratorClient gains resume, cancel,
    edit_resume (mirrors the local kernel's own edit_resume signal shape), me, my_quota,
    my_runs, and key management (create_key, list_keys, revoke_key) — spec 04 §7.3. New
    korchestrator.models.remote.CallerIdentity/Quota/ApiKey/ApiKeySummary. ApiKey.key (the
    secret, returned once at creation) is a pydantic.SecretStr, never a bare str — an accidental
    repr/log can't leak it; call .get_secret_value() to use it. list_keys never returns the
    secret at all.
  • Remote client run lifecycle (Phase 9): KorchestratorClient gains run, run_swarm,
    run_and_wait, get_run, wait, list_runs, get_run_summary (spec 04 §7.3). Every numeric
    run status the engine can return is normalized to the RunStatus string vocabulary before
    validation (spec 04 §7.4). New korchestrator.models.remote.RemoteRunResult/RunSummary —
    the client's own wire-facing result shapes, distinct from the local kernel's RunResult (no
    nested AgentState). wait/run_and_wait poll; real-time SSE streaming lands in the next
    Phase 9 task. The wire-format details (field names, list-response shape) are the SDK's own
    documented assumption pending a full engine schema — see the P9.3 engineering-log entry.
  • Remote client credential safety (Phase 9): KorchestratorClient.__repr__ shows base_url only,
    never headers or the credential. Test-locked (spec 04 §7.2): the client's repr/str, and
    every error KorchestratorClient can raise (ApiError, NetworkError, TimeoutError), never
    contain the API key — including when a (misbehaving) engine response tries to echo the
    Authorization header back. A static check asserts clients/ performs no file I/O at all, so
    "credentials are never written to disk" can't regress silently.
  • Remote client transport + auth (Phase 9): korchestrator.remote.KorchestratorClient (also
    korchestrator.clients.KorchestratorClient) — the Tier 4 client's authenticated, retrying HTTP
    transport, behind the [remote] extra (spec 04 §7). One Authorization: Bearer header for
    both a static API key and a Keycloak/KIAM JWT; a 30s default timeout, overridable per call; up
    to 3 retries with full-jitter exponential backoff on 429/502/503/504 and connection
    failures, never on any other 4xx. New korchestrator.exceptions.ApiError (status, code,
    trace_id) is raised for a terminal non-2xx response. This first remote-client task ships the
    transport only — run/get_run/resume/stream/etc. land in the following Phase 9 tasks, so
    KorchestratorClient is not yet usable end-to-end.
  • Optional OpenTelemetry telemetry (Phase 8, closes Phase 8): korchestrator.telemetry gains
    start_span(name, *, settings=None, **attributes) and record_metric(name, value, *, settings= None, **attributes), behind KORCH_TELEMETRY_ENABLED (default off) and the [otel] extra.
    Disabled — the default — start_span returns the same module-level no-op singleton on every
    call (no context manager allocation, no OTel import); record_metric returns immediately. Both
    take an explicit settings so a run's actual, injected Settings decides — not the disconnected
    configure()/get_settings() process singleton. Enabled without the [otel] extra installed,
    both raise an actionable MissingExtraError. services._composition.run_graph wires the outer
    agent.run span (run_id, tenant_id, max_supersteps, status, supersteps attributes) and
    the korch.run.duration/korch.run.status metrics; the rest of the documented span tree
    (agent.superstep/agent.plan/tool.call/gen_ai.call) and the remaining four metrics
    (korch.superstep.duration, korch.agents.active, korch.tool.calls, korch.model.tokens) are
    defined (correct OTel instrument kind — histogram, up/down counter, or counter — per name) but not
    yet wired into the kernel/tool/gateway call sites; a benchmarks/ regression proving the
    telemetry-off path is within noise of an [otel]-uninstalled build is P10's job. Neither
    start_span nor record_metric joins top-level korchestrator.__all__ (submodule-only, like
    ConfigurationError — not part of the documented public surface).
  • Deterministic, version-tagged serialization (Phase 8): new top-level korchestrator.to_json(model)/
    from_json(payload, model_cls) round-trip AgentState, ExecutionPlan, ModelCard, and
    RunResult byte-for-byte — sorted keys at every nesting level, fixed separators, UTF-8,
    ISO-8601 timestamps with an explicit UTC offset and microsecond precision. Every envelope
    carries schema_version and korchestrator_version; from_json applies registered migrations
    in sequence and raises ValidationError if the payload's schema_version is newer than the
    installed package supports. AgentGraph is deliberately not supported — its nodes carry live,
    non-serialisable compute callables (see
    ADR 0017).
  • Namespaced, disable-able logging (Phase 8): korchestrator.logging gains enable_logging(level= "INFO", *, stream=None) (attaches a single StreamHandler to the korchestrator logger,
    idempotent) and disable_logging(). Off by default — only a NullHandler is attached at import
    time, so the SDK never touches the root logger or calls logging.basicConfig(), and an embedding
    application's own logging configuration is untouched. enable_logging joins top-level
    korchestrator.__all__; disable_logging stays submodule-only, matching spec 04 §6 exactly.
  • Settings finalized (Phase 8): the full spec 08 §1.3 variable table — 16 new fields covering the
    model gateway, kernel/runtime bounds, logging/telemetry toggles, the remote engine client, and
    the durable runtime (TEMPORAL_ADDRESS, TEMPORAL_API_KEY, etc.). Secret-bearing fields
    (kendra_gateway_api_key, korch_engine_api_key, temporal_api_key) use pydantic.SecretStr
    and never appear in repr/str. Settings.from_env() gains opt-in .env file support
    (dotenv_path=, None by def...
Read more