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 fromcore/prompts/seed/general/intent/rules.yaml.general/compliance/reportis no longer read and can be deleted from Langfuse;general/compliance/impactis unchanged. If you customizedgeneral/compliance/report, port your changes to a new version ofgeneral/intent/rulesand 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(wasreport_compliance_findings), without apassedargument: the verdict is computed from the severities. Its Langfuse observation isChain - INTENT_CHECKER(wasChain - 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, awarnfor 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
0003adds the nullableworkspaces.project_identifiercolumn. The core applies it at startup, like the others; existing sessions get null. See Database schema. -
Core API.
POST /api/v1/repository/parsealso answersproject_identifier, the input echoed. The firstgenerate,driftorimportcall may send it back asproject_identifier, as the web application does; the core then checks through the mapping sidecar that it resolves torepo_uriand answers422otherwise, before any session is created. It is optional: clients that do not send it behave as before. See Core API. -
Manifest.
kumoss.yamlgains an optional top-levelproject_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-Projectheader. 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_actionsis gone. The six<provider>/guidelines/forbidden_actionsseeds 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 orcluster-adminbound 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/complianceorgeneral/policies/compliance. -
critical_deletionmoved to the policy. The seed ofgeneral/compliance/reportno longer defines it; the policy does, deterministically. If you customized that prompt, your version keeps itscritical_deletionsection 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) andcommand_execution(anull_resourceor a provisioner on a resource the plan creates or updates, or anydata "external"in the configuration, repository code included), and warns withunprotected_credential_output(a root module output named like a credential and not markedsensitive = true). A round that updates a repository resource carrying a provisioner, or whose configuration holds adata "external", is now locked. The OCI policy’soci_public_ingressnow also checksoci_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 andvsphere/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), thevsphereprovider-block and TLS bullets, and the deletion safeguards bullet ofoci/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 thePATH. -
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: noopabinary, 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_unavailablefinding, so the session is locked and the compliance failure notification is sent. -
Compliance reports. Each violation has
source(llmoropa; absent on older reports, meaningllm) and the report haspolicy_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 singlepolicy_revisionstring of earlier builds; reports stored withpolicy_revisionare 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.
phoenixandphoenix-dbare gone. Langfuse bringslangfuse-web,langfuse-worker,langfuse-db(PostgreSQL),langfuse-clickhouse,langfuse-redisand alangfusebucket on the object storage. Plan for the extra memory, mostly ClickHouse’s. -
UI address. Langfuse is served on its own port,
3000(http://localhost:3000in Compose), not under/monitoring/: the stock image cannot be served under a path. It has a login: the stack provisionsadmin@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/langfuseon the proxy, which redirects to the UI. -
Configuration.
telemetry.collector_urlis replaced bytelemetry.langfuse_url, and the core authenticates with a project key pair fromLANGFUSE_PUBLIC_KEY/LANGFUSE_SECRET_KEY. Aconfig.yamlstill carryingcollector_urlis refused at boot. See thetelemetrysection. -
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-networkingis nowaws/guidelines/networking, which Langfuse shows as anawsfolder holding aguidelinesone. The migration script below renames your prompts accordingly. -
Helm.
phoenix.andpostgres.phoenixare replaced bylangfuse.andpostgres.langfuse;secrets.phoenixDbPasswordby thesecrets.langfuse*values. A Secret given assecrets.existingSecretmust hold the new keys (see the Helm guide). The proxy gets alangfuseport (3000) and the Ingress an optionalingress.langfuseHost.charts/kind-up.shmaps Langfuse to host port 3000; delete and recreate an existing kind cluster to get the mapping. -
Local Compose overrides. A
docker-compose.override.ymlthat still configuresphoenixorphoenix-dbmakes 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:
-
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 -
Upgrade, and start Langfuse alone (in Compose,
docker compose up -d langfuse-web langfuse-worker; starting the whole stack is fine too). -
Import the file. The key pair is the one the core uses (
pk-lf-kumoss-dev/sk-lf-kumoss-devin 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.jsonEach 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
seedtag (Phoenix installs older than that tag) getsseedon 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-runshows what would be created; running the import again skips what it already imported. -
Start (or restart) the core. The seeder finds the
seedlabel where Phoenix had theseedtag 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_versiontable, and runs the later revisions. The first of those addshistories.user_queries. Nothing to do by hand, but back the database up first. -
Pre-authentication volumes. A database with sessions but no
userstable 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.yamlto its branch. Merge that pull request so later sessions find the manifest on the default branch. -
Core API.
generate,driftandimportno longer taketerraform_providersorscope_id. Unknown fields are ignored, so an old client is not rejected, but what it sends has no effect. Probe the module withPOST /api/v1/manifest/probeand send the answers inmanifeston the first call. See Core API. -
Session read models. Session summaries and details expose
providers: [{name, scope_id}]instead ofproviderandscope_id. -
Tracing. The span
metadatacarriesproviders(a list of provider type names) instead ofcloud.
Provider names are Terraform provider types
Providers are named everywhere by their Terraform provider type, the last segment of the source address:
| Before | Now |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Any other provider a module uses (random, helm…) is a session
provider too, under its own type name.
-
Database. The
terraform_providerstable is migrated at startup: theprovidercolumn becomesvarchar(64)with the new names,scope_idbecomes 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 nowazurerm-guidelines-,gcp-isgoogle-andvmware-isvsphere-, and the seed folders undercore/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 thegeneral-*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 ( |
The request is a plain CLI invocation. |
Authorization ( |
|
Mapping ( |
The request takes |
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 tocore/.env(and the same value toservices/mapping/.env), or setservices.mapping.enabled: false. The Helm chart generates the token itself; asecrets.existingSecretmust now also holdKUMOSS_MAPPING_TOKEN. -
Compose. Copy
services/mapping/env.sampletoservices/mapping/.envand setMAPPING_PREFIX_IDENTIFIERto your organization’s base URL (e.g.https://github.com/my-org/). Left empty, only fullhttps://URLs resolve, as before. -
Your own mapping implementation. Keep your
services.mapping.endpointand remove the bundledmappingservice from your deployment (Helm:mapping.enabled: falsedisables both; setconfig.services.mappingback on with your endpoint). -
Core API.
POST /api/v1/repository/parseaccepts a repository name asrepo_uriand answersrepo_urlnext toroots; send thatrepo_urlon later calls. It can now also answer404(name not resolvable) and504(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.