prerelease Prerelease stable Latest
Kumoss
prerelease Prerelease stable Latest

Upgrade notes

Breaking changes to check before upgrading Kumoss: the intent check replacing the LLM compliance audit, the project identifier and IaC contract 2.1.0, the OPA compliance policy and the removal of forbidden_actions, Langfuse replaces Phoenix, providers read from the root module, Terraform provider type names, sidecar contracts 2.0.0, the bundled mapping sidecar, removed request fields, and the new managed state key.

This page lists the changes that need action from an operator, an integrator or a custom sidecar implementation when upgrading. Read it before rolling out a new core image.

Intent check replaces the LLM compliance audit

The LLM half of the compliance check is now the intent check: it judges only whether the plan does what the session’s requests ask (scope_exceeded, scope_incomplete, same ids and severities). It no longer receives or audits the conventions — the Terraform guidelines, the providers' resource_creation, networking and permissions guidelines, and the resource prompts. Those still guide generation, but after generation only the compliance policies enforce rules. The orchestration.enable_compliance_checker switch is unchanged and still gates both halves; see How compliance works. What changes:

  • Prompt moved. The rules prompt is now general/intent/rules, seeded on the next boot from core/prompts/seed/general/intent/rules.yaml. general/compliance/report is no longer read and can be deleted from Langfuse; general/compliance/impact is unchanged. If you customized general/compliance/report, port your changes to a new version of general/intent/rules and move the environment label to it; see Change a prompt. Rules about conventions rather than intent belong in a compliance policy now.

  • Tool and trace names. The agent’s sentinel tool is report_intent_findings (was report_compliance_findings), without a passed argument: the verdict is computed from the severities. Its Langfuse observation is Chain - INTENT_CHECKER (was Chain - COMPLIANCE_CHECKER).

  • Finding source. Findings of the intent check carry source: "intent" (was "llm"). Stored reports keep loading: "llm" is read as "intent". The web UI marks them with an intent badge, next to the policy badge of policy findings.

  • New warning. The general policy gains provider_version_pin, a warn for every root module provider with no version constraint or one not of the form ~> X.Y, such as an exact pin. It never locks a session, but workspaces with missing or exact provider pins start reporting it. A general policy you customized does not get it; see The shipped rules.

Project identifier; IaC contract 2.1.0

A repository can be named by a project identifier, such as sistemas-kumoss-rsg-esc1-dev, that the mapping sidecar resolves to its URL. A session now keeps that name and sends it to the IaC sidecar, so an IaC service implementation can pick the credentials a command runs with by it. Nothing is required of an operator; what changes:

  • Database. Migration 0003 adds the nullable workspaces.project_identifier column. The core applies it at startup, like the others; existing sessions get null. See Database schema.

  • Core API. POST /api/v1/repository/parse also answers project_identifier, the input echoed. The first generate, drift or import call may send it back as project_identifier, as the web application does; the core then checks through the mapping sidecar that it resolves to repo_uri and answers 422 otherwise, before any session is created. It is optional: clients that do not send it behave as before. See Core API.

  • Manifest. kumoss.yaml gains an optional top-level project_identifier, written only when the session has one. It never makes the manifest drift, but a first call saves the manifest when only the identifier changed. The layout version stays "1"; earlier cores ignore the key when reading and drop it when they save. See Root module manifest.

  • IaC contract 2.1.0 (additive). Every IaC call of such a session carries the optional Kumoss-Project header. An implementation may ignore it, as the bundled one does, so 2.0.0 implementations keep working unchanged. See IaC sidecar API.

  • Session cache. The cached session context moved to a new key version; entries in the old shape are rebuilt from the database on first use. Nothing to flush.

Compliance policy with OPA; forbidden_actions removed

With orchestration.enable_compliance_checker on, generate rounds now also evaluate Rego policies with OPA against the final plan, before the LLM audit, and all results go into one compliance report. The policies are the Langfuse text prompts general/policies/compliance, evaluated on every round, and <provider>/policies/compliance, evaluated when the root module declares that provider (skipped for a provider without one), all seeded on the next boot. See Compliance policy.

What that changes:

  • forbidden_actions is gone. The six <provider>/guidelines/forbidden_actions seeds are deleted and no agent reads that prompt any more: not the request filter, not the IaC generator, not the compliance checker. The request filter no longer declines requests as prohibited. Versions already in Langfuse (including those the Phoenix migration script imported) stay there, unused; the seeder never deletes. This removes guardrails: an install that relied on those lists and writes no policy has no replacement for them beyond the shipped policies. Those deny standalone deletions, removed customer-managed keys and command execution (general policy) and, per provider, three of the most critical prohibitions the lists held that can be decided from the plan alone, such as security groups open to the internet or cluster-admin bound to a ServiceAccount. Rules that allowed an exception on an explicit user request were not translated. Write the other prohibitions you need as Rego rules in <provider>/policies/compliance or general/policies/compliance.

  • critical_deletion moved to the policy. The seed of general/compliance/report no longer defines it; the policy does, deterministically. If you customized that prompt, your version keeps its critical_deletion section and standalone deletions are reported twice, once by each source. Delete the section from your version.

  • Three more general rules. The general policy also denies customer_managed_key_removed (a resource the plan updates or replaces losing its customer-managed encryption key) and command_execution (a null_resource or a provisioner on a resource the plan creates or updates, or any data "external" in the configuration, repository code included), and warns with unprotected_credential_output (a root module output named like a credential and not marked sensitive = true). A round that updates a repository resource carrying a provisioner, or whose configuration holds a data "external", is now locked. The OCI policy’s oci_public_ingress now also checks oci_core_default_security_list. See Compliance policy.

  • Bans removed from the prompts. What a policy enforces is no longer restated in the guideline and resource prompts, which feed both the IaC generator and the LLM audit. The seeds lost the "No arbitrary command execution" section of general/guidelines/terraform, the "guest configuration only through user data or cloud-init" bullets of the compute resource prompts and vsphere/guidelines/resource_creation, the bans on internet-open ingress (security groups, NSGs, firewalls, OCI security lists, the OCI default security list, bastions), on basic roles and service account keys (google), cluster-admin (kubernetes), Allow any-user (oci) and Owner and similar assignments (azurerm), the vsphere provider-block and TLS bullets, and the deletion safeguards bullet of oci/guidelines/resource_creation. Bullets were removed whole, so the generator is no longer told to avoid these patterns: a round that generates one is locked by the policy instead of being written correctly. The parts of those bullets no policy checks (no secrets in user data, Owner or User Access Administrator at narrower scopes, the alternatives to service account keys, locking down the OCI default security list, OCI delete-protection defaults…​) are now checked by nothing; restore them in your own prompts if you need them. Prompts you customized keep your text, bans included. See Customize prompts.

  • The core image ships opa (OPA 1.22.4). A custom core image must provide it on the PATH.

  • Startup check. With the checker on, the core evaluates the general policy and the policy of every provider that ships a seed (aws, azurerm, google, kubernetes, oci, vsphere) against an empty plan after seeding, and refuses to start if that fails: no opa binary, a broken policy, or Langfuse unreachable. A provider policy missing from Langfuse is skipped.

  • Fail closed. A policy that cannot be evaluated during a round adds a blocking policy_unavailable finding, so the session is locked and the compliance failure notification is sent.

  • Compliance reports. Each violation has source (llm or opa; absent on older reports, meaning llm) and the report has policy_revisions, the Langfuse prompt versions of the policies that ran, each as "<prompt name>@<version>", the general policy first, for example ["general/policies/compliance@3", "aws/policies/compliance@1"] (empty when no policy ran). It replaces the single policy_revision string of earlier builds; reports stored with policy_revision are still read, into the list. Consumers of the report JSON must read the new field.

Langfuse replaces Phoenix

Traces and prompts moved from Arize Phoenix to a self-hosted Langfuse v4. See Monitor with Langfuse and Customize prompts.

What changes:

  • Stack. phoenix and phoenix-db are gone. Langfuse brings langfuse-web, langfuse-worker, langfuse-db (PostgreSQL), langfuse-clickhouse, langfuse-redis and a langfuse bucket on the object storage. Plan for the extra memory, mostly ClickHouse’s.

  • UI address. Langfuse is served on its own port, 3000 (http://localhost:3000 in Compose), not under /monitoring/: the stock image cannot be served under a path. It has a login: the stack provisions admin@example.com / kumoss-admin-1 (Compose) or a generated password (Helm, see Deploy with Helm). The admin panel’s link now reads Langfuse; it goes to /langfuse on the proxy, which redirects to the UI.

  • Configuration. telemetry.collector_url is replaced by telemetry.langfuse_url, and the core authenticates with a project key pair from LANGFUSE_PUBLIC_KEY / LANGFUSE_SECRET_KEY. A config.yaml still carrying collector_url is refused at boot. See the telemetry section.

  • Projects. The nine Phoenix projects (dev-terraform-day2, pro-terraform-drift, …​) become one Langfuse project. The environment is Langfuse’s environment field, and the operation and providers are trace tags.

  • Prompt tags are labels. The seeder labels versions instead of tagging them, with the same names (development, staging, production, seed).

  • Prompt names are folders. aws-guidelines-networking is now aws/guidelines/networking, which Langfuse shows as an aws folder holding a guidelines one. The migration script below renames your prompts accordingly.

  • Helm. phoenix. and postgres.phoenix are replaced by langfuse. and postgres.langfuse; secrets.phoenixDbPassword by the secrets.langfuse* values. A Secret given as secrets.existingSecret must hold the new keys (see the Helm guide). The proxy gets a langfuse port (3000) and the Ingress an optional ingress.langfuseHost. charts/kind-up.sh maps Langfuse to host port 3000; delete and recreate an existing kind cluster to get the mapping.

  • Local Compose overrides. A docker-compose.override.yml that still configures phoenix or phoenix-db makes Compose refuse the project; remove those entries.

Moving your prompts

Traces are not migrated: Phoenix keeps them until you delete its volume. Prompts are moved with core/scripts/migrate_phoenix_prompts.py, which needs only Python 3.10 or later and runs in two steps, so the two stacks never have to run together:

  1. Before upgrading, with Phoenix still running, export every prompt version and its tags:

    python3 core/scripts/migrate_phoenix_prompts.py export \
        --phoenix-url http://localhost/monitoring/ --out phoenix-prompts.json
  2. Upgrade, and start Langfuse alone (in Compose, docker compose up -d langfuse-web langfuse-worker; starting the whole stack is fine too).

  3. Import the file. The key pair is the one the core uses (pk-lf-kumoss-dev / sk-lf-kumoss-dev in the Compose stack):

    LANGFUSE_PUBLIC_KEY=pk-lf-kumoss-dev LANGFUSE_SECRET_KEY=sk-lf-kumoss-dev \
    python3 core/scripts/migrate_phoenix_prompts.py import \
        --langfuse-url http://localhost:3000/ --in phoenix-prompts.json

    Each Phoenix version becomes a Langfuse version, oldest first, carrying its tags as labels, so every label ends up on the version its tag was on. A prompt with no seed tag (Phoenix installs older than that tag) gets seed on its oldest version, the one the seeder created, so the next core start never moves labels off your own versions. Versions that are not a single text are listed and skipped: the core cannot read them. --dry-run shows what would be created; running the import again skips what it already imported.

  4. Start (or restart) the core. The seeder finds the seed label where Phoenix had the seed tag and carries on as before: a seed changed since reaches only the environments still on the seed.

If the core started before the import, it seeded the shipped prompts first; the import then adds your versions on top and moves the labels to them, and the next core start brings the seeds up to date as above.

When the prompts are in Langfuse, remove the old Phoenix volume (docker volume rm kumoss_phoenix_db_data for a Compose project named kumoss; with Helm, the PersistentVolumeClaim data-<fullname>-phoenix-db-0, data-kumoss-phoenix-db-0 for a release named kumoss).

Database migrations with Alembic

The core no longer builds its tables with create_all. It runs Alembic migrations at startup instead, in one transaction and under a PostgreSQL advisory lock.

  • Existing databases. The first start adopts them: it applies the provider rename below if still pending, records the baseline revision in a new alembic_version table, and runs the later revisions. The first of those adds histories.user_queries. Nothing to do by hand, but back the database up first.

  • Pre-authentication volumes. A database with sessions but no users table is refused at startup; migrate it by hand or recreate it.

  • Schema changes in forks. Change the models and add a revision; see Changing the schema.

Providers come from the root module

Sessions no longer take a provider and a scope from the user. The core reads the providers from the root module’s required_providers and keeps the scopes, variable answers and picked var files in a kumoss.yaml manifest committed in the module. See Root module manifest.

What that changes:

  • Web application. The wizard asks for the request, the repository URL and the root module, then shows an inputs form only when the module needs something. The provider and scope questions, the permissions step and the call to the mapping service are gone.

  • First session on each module. The first session after the upgrade sets the module’s manifest up: the user answers its scopes (and any required variable without a value) once, and the session commits kumoss.yaml to its branch. Merge that pull request so later sessions find the manifest on the default branch.

  • Core API. generate, drift and import no longer take terraform_providers or scope_id. Unknown fields are ignored, so an old client is not rejected, but what it sends has no effect. Probe the module with POST /api/v1/manifest/probe and send the answers in manifest on the first call. See Core API.

  • Session read models. Session summaries and details expose providers: [{name, scope_id}] instead of provider and scope_id.

  • Tracing. The span metadata carries providers (a list of provider type names) instead of cloud.

Provider names are Terraform provider types

Providers are named everywhere by their Terraform provider type, the last segment of the source address:

Before Now

azure

azurerm

gcp

google

aws

aws

oci

oci

kubernetes

kubernetes

vmware

vsphere

Any other provider a module uses (random, helm…​) is a session provider too, under its own type name.

  • Database. The terraform_providers table is migrated at startup: the provider column becomes varchar(64) with the new names, scope_id becomes nullable, and the old enum type is dropped. Nothing to do by hand. See Database schema.

  • Prompts. Phoenix prompt names follow the provider type: azure-guidelines- is now azurerm-guidelines-, gcp- is google- and vmware- is vsphere-, and the seed folders under core/prompts/seed/ were renamed to match. The seeder creates the new names on the next boot, with the shipped content. Versions you curated under the old names are not moved and no longer read: copy them to the new names in Phoenix and move the environment tag. See Customize prompts.

  • Prompt selection. A session uses the prompts of every provider of its module that has them. A provider without prompts no longer aborts a session with Prompt not found; it gets the general-* prompts only.

Sidecar contracts 2.0.0

The IaC, authorization and mapping contracts moved to 2.0.0 together. A custom implementation of any of them must be upgraded with the core.

Contract Breaking change

IaC (iac.v1.yaml)

The request is a plain CLI invocation. init, plan, apply and import drop the required scope_id + terraform_provider pair, and plan and import drop variables. Every engine command takes an optional env (environment variables it may add but never replace), and plan and import an optional vars (input variable values, passed as the last -var-file); var_files stays, with any path shape inside the workspace. The service knows no provider: the core sends each scope as env or vars, so a deployment must leave ARM_SUBSCRIPTION_ID and GOOGLE_PROJECT unset on the service. The bundled service no longer checks the AWS account with STS before each command: existing AWS modules that do not pass var.aws_account_id to the provider’s allowed_account_ids run in whatever account the service’s credentials belong to. /v1/import/scope-resource-ids takes provider (azurerm, google or aws) instead of terraform_provider, and rejects any other provider with 422 instead of answering exit code 2. See IaC sidecar API.

Authorization (authz.v1.yaml)

resource.properties.provider is any Terraform provider type name instead of an enum of the former names. The core sends one evaluation per provider scope of the session’s root module, or one module-level evaluation with an empty resource.id and no provider when the module has no scoped provider. First calls are evaluated inside the session, after the 202. Update PDP policies that match azure, gcp or vmware. See Authorization sidecar API.

Mapping (mapping.v1.yaml)

The request takes identifier only and the response answers repo_url and identifier only: terraform_provider, scope_id and the TerraformProvider enum are gone, and a request that still sends terraform_provider is 422. The core’s POST /api/v1/mapping/resolve passthrough was removed; the core now calls the service from POST /api/v1/repository/parse instead (see below). A 404’s `detail is shown to the user. See Mapping sidecar API.

The mapping sidecar is bundled and on by default

The wizard’s repository step now resolves what the user types through the mapping sidecar, so a bare repository name works as well as a URL. Kumoss bundles a mapping service (services/mapping, image kumoss-mapping) that appends a name to MAPPING_PREFIX_IDENTIFIER with a .git suffix, and the shipped config.yaml enables it (services.mapping.enabled: true, endpoint: "http://mapping:8081").

What that changes:

  • Core boot. With mapping enabled, the core refuses to boot without KUMOSS_MAPPING_TOKEN. Add it to core/.env (and the same value to services/mapping/.env), or set services.mapping.enabled: false. The Helm chart generates the token itself; a secrets.existingSecret must now also hold KUMOSS_MAPPING_TOKEN.

  • Compose. Copy services/mapping/env.sample to services/mapping/.env and set MAPPING_PREFIX_IDENTIFIER to your organization’s base URL (e.g. https://github.com/my-org/). Left empty, only full https:// URLs resolve, as before.

  • Your own mapping implementation. Keep your services.mapping.endpoint and remove the bundled mapping service from your deployment (Helm: mapping.enabled: false disables both; set config.services.mapping back on with your endpoint).

  • Core API. POST /api/v1/repository/parse accepts a repository name as repo_uri and answers repo_url next to roots; send that repo_url on later calls. It can now also answer 404 (name not resolvable) and 504 (mapper timeout). See Core API.

Kumoss-managed state keys changed

With Kumoss-managed state the state key is now the SHA-256 of the repository and the root module path only; earlier releases also hashed the cloud scope. State written under the old keys is not migrated. Left as is, the first session on each project plans against empty state and proposes creating resources that already exist.

Before running sessions on an existing project, copy its state object in the state bucket from <old_state_id>/terraform.tfstate to <state_id>/terraform.tfstate. The old key appears in the Terraform state: …​ key= log lines of the previous release; the new one in the same line the upgraded core logs on the project’s first init. Do not apply a plan made before the copy. See State keys.

Projects whose repository declares its own backend, or whose backend comes from the IaC sidecar, are not affected.