Kumoss’s agents read their conventions, intent rules, impact criteria, and exception lists from prompts stored in the prompt management of Langfuse. This page is the reference for how that registry works: where prompts live, the seed file conventions, how seeding and runtime lookup work, which agent reads which prompt, and the shipped inventory. To change a prompt, see Customize prompts.
Where prompts live
| Layer | Where | Who changes it | When it takes effect |
|---|---|---|---|
Runtime prompts |
Langfuse prompt management (Prompts in the Langfuse UI, on port 3000
in the default stack; persisted in |
Prompt maintainers, in the Langfuse UI or API |
Immediately on the next request; the core caches nothing |
Seed files |
|
Contributors, and operators preparing a new deployment |
At core startup: missing prompts are created, and a changed seed is published to the environments still on the previous seed (see How seeding works) |
The seed files are the initial content of the registry, nothing more. The core always reads Langfuse; it never falls back to a seed file at runtime.
Seed file conventions
Path
core/prompts/seed/<scope>/<type>/<name>.yaml
core/prompts/seed/<scope>/policies/<name>.rego
-
<scope>isgeneralor a Terraform provider type name, the last segment of the provider’s source address, such asazurermforhashicorp/azurerm. It must match^[a-z0-9][a-z0-9_-]{0,63}$. The shipped seeds usegeneral,aws,azurerm,google,oci,kubernetes, andvsphere; any other provider (helm,datadog…) can be given prompts by adding a folder with its type name. -
<type>is one ofguidelines,resources,compliance,intent, orpolicies. Seeds of typepoliciesare.regofiles; every other type is a.yamlfile. -
<name>must match^[a-z0-9_]+$(lowercase letters, digits, and underscores).
The loader rejects any other depth, scope, type, or name at startup
with a PromptSeedLoadError, for example Invalid prompt name
'Bad-Name' in …; must match ^[a-z0-9_]+$. A .rego file under a type
other than policies, or a .yaml file under policies, is rejected
too. The loader only globs .yaml and .rego, so a .yml file, or
any other extension, is skipped without an error: a typo in the
extension produces a missing prompt, not a failed boot.
Qualified name
The Langfuse prompt name is derived from the path, never declared inside the file, so a misfiled prompt cannot misreport its identity:
<scope>/<type>/<name>
Langfuse shows each / as a folder, so its Prompts view is laid out
like core/prompts/seed/: a folder per scope, and in it one per type.
A prompt you create by hand must carry the full name, slashes included,
to be found.
| File | Langfuse prompt name |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Two files that would produce the same qualified name abort the boot
with Duplicate qualified name ….
Content
| Key | Required | Type | Meaning |
|---|---|---|---|
|
Yes |
Non-empty string |
The prompt text, usually Markdown. Stored as a Langfuse text prompt. |
|
No |
String |
The commit message of each version the seeder creates, shown in the Langfuse version history. |
Every shipped seed provides both keys and starts with the repository’s
SPDX comment header. The loader reads body and description and
ignores every other key.
A .rego seed has no keys: the whole file, comments included, is the
body, so opa fmt and opa test run on the very file that is seeded.
It must not be empty. The commit message of its versions is generated
(Rego policy evaluated by OPA (<name>).).
How seeding works
A Langfuse prompt has numbered versions, and labels that each point
at one version at a time: setting a label on a version takes it off any
other. Langfuse keeps the latest label on the newest version itself.
Kumoss uses one label per environment value and one of its own,
seed.
At every core startup, after the database, Redis, and object storage have been initialized, the seeder:
-
Loads every seed file, sorted and validated as above.
-
Makes an authenticated read against Langfuse at
telemetry.langfuse_url, retrying for about 90 seconds while Langfuse does not answer. If it stays unreachable, the boot fails withLangfuse unreachable after 15 attempts; if it rejects the key pair, withLangfuse refused the API key pair (401). Langfuse must therefore be available whenever the core starts. -
For each seed, reads the prompt’s version labeled
seed, the one the seeder last pushed. A prompt without that label gets it on its latest version first. -
If the prompt does not exist, creates it as a text prompt whose first version carries every
environmentvalue as a label (development,staging, andproduction) plusseed. -
If the text of the
seedversion differs from the seed file, creates a new version with the seed’s text and moves to it, in one request, every environment label that is still on theseedversion, together withseed. A label on any other version, or a label you removed, is left alone. If the latest version already holds the seed’s text because you saved it by hand, the labels move to it instead of to a copy. -
Logs
Prompt seeding complete: N created, M updated, K unchanged.
Only the text counts: the seeder compares the seed version’s text
with the seed file and ignores its config and commit message.
What this means in practice:
-
Seeding never moves a label off your versions. A seed changed by a release reaches every environment label that is still on the
seedversion. Once you move a label to your own version, that label keeps it on every later boot, and seed changes for it are yours to merge by hand. Do not moveseedonto your own version, and do not remove it: without it, the seeder takes the latest version as its own, which may be yours. -
New seed files are pushed too. Adding a seed file and restarting the core creates the new prompt, even on an existing deployment.
-
A write fails whole. A version is created together with its labels, and labels move in one request, so a failed write leaves the prompt as it was. The boot fails with an error naming the prompt (and, for a label move, the version and labels), and the next boot tries again.
-
The environment label matters. Seeded versions carry all three environment labels, so changing
environmentkeeps working for them. It does not for prompts you created by hand, or for labels you removed: the seeder never adds a label it did not find on itsseedversion.
Runtime lookup
Each time an agent runs, the core fetches the prompts it needs from
Langfuse by <scope>/<type>/<name> and the environment label, and
reads the version’s text: the text of a text prompt, or the content of
a chat prompt holding a single message. Any other shape is an error. The
text is used as it is: Langfuse’s {{variable}} placeholders are not
filled in. There is no cache: every session sees the version the label
is on now, so a change in Langfuse takes effect on the next run without
rebuilding or restarting the core.
Which provider prompts a session uses depends on its root module: the
core asks for the <provider>/* prompts of every provider the module’s
required_providers declares.
-
A missing provider prompt is skipped. A provider without prompts, such as
random,helm, or a module that declares no provider yet, gets thegeneral/*prompts only. -
A missing general prompt, or one without a version carrying the environment label, stops the run with
prompt_name=<name>. No version labeled '<environment>'. The session does not fail visibly; see A session stops without an error. -
When several providers of a module have the same guideline, for example
azurermandkubernetesboth havepermissions, the agent receives all of them, each as a section headed by its provider name. -
A resource prompt the compositor picks is taken from the first provider that has it.
Which agent reads which prompt
For a generate or drift round, the core builds the round’s conventions in two model passes and then gives each agent its prompts:
-
First compositor pass. The prompt compositor receives the
resources_listandabbreviationsof every provider of the root module that has them. The small model reads the request and calls theconstruct_informationtool with the resource names and abbreviations it considers relevant. Names must match theresources_listentries exactly. -
Second compositor pass. The compositor runs again with the full text of the resource prompts selected in the first pass, looks for dependencies (a subnet needs a network, a function needs a storage account), and returns more resources and abbreviations. Both passes are merged into the round’s conventions.
-
Prompts for each agent, as in the table below.
| Agent | Prompts it receives |
|---|---|
Prompt compositor (every generate and drift round) |
|
IaC generator |
|
Intent checker (generate rounds, when
|
|
Compliance policies (same condition; evaluated by OPA, not a model) |
|
Report generator (generate reports) |
|
Request filter |
|
Drift target generator (partial drift rounds) |
|
Drift exception filter (every drift round and every generate round’s drift pre-check) |
Each provider’s |
Import scope diff (import rounds that find unmanaged resources; parsed by the core, not a model) |
Each provider’s |
Discovery depends on resources_list
Nothing enumerates the <provider>/resources/* prompts that exist in
Langfuse. The compositor can only pick names that appear in
resources_list:
-
A name listed in
resources_listwithout a matching resource prompt is logged as a warning, and its conventions are missing from the round. -
A resource prompt that exists but is not named in its provider’s
resources_listis never selected. The loader does not cross-check the seed files againstresources_listat startup.
Every shipped resources_list names all of its provider’s resource
seeds. The name only needs to appear in the body: the AWS, Azure, GCP,
OCI, and vSphere lists name entries in backticks with a description,
while the Kubernetes list uses plain bullets (- namespace). Follow the
style of the file you edit.
Shipped seed inventory
The aws, azurerm, google, and oci scopes ship the same seven
guideline prompts; kubernetes and vsphere ship six, without
import_exceptions. The resource prompts differ per provider. Every
scope, general included, also ships one policy,
policies/compliance.rego.
| Scope | guidelines |
resources |
compliance |
intent |
|---|---|---|---|---|
|
|
None |
|
|
|
|
|
None |
None |
|
|
|
None |
None |
|
|
|
None |
None |
|
|
|
None |
None |
|
|
|
None |
None |
|
|
|
None |
None |
The oci import exception list ships but is not read: only Azure, GCP,
and AWS scopes can be listed for import.
Seed file examples
A provider guideline, core/prompts/seed/aws/guidelines/networking.yaml
(shipped; body shortened), producing aws/guidelines/networking:
# SPDX-FileCopyrightText: 2026 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)
#
# SPDX-License-Identifier: Apache-2.0
description: AWS networking conventions (VPCs, subnets, gateways, security groups).
body: |
# AWS Networking Guidelines
## Topology
- Default to a multi-AZ VPC with public and private subnets per
availability zone.
## Address space
- Use RFC1918 ranges. Avoid overlapping with on-premises CIDRs
or other VPCs that will be peered.
- Allocate `/16` per VPC by default; carve `/24` subnets within.
A resource prompt, core/prompts/seed/aws/resources/s3_bucket.yaml
(shipped; body shortened), producing aws/resources/s3_bucket:
# SPDX-FileCopyrightText: 2026 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)
#
# SPDX-License-Identifier: Apache-2.0
description: AWS S3 Bucket default configuration (encryption, versioning, public access, lifecycle, logging).
body: |
# AWS S3 Bucket
For an S3 Bucket, unless explicitly requested otherwise, use the
following default configuration:
- Naming convention: `<project>-<purpose>-<environment>`. Bucket
names are globally unique, lowercase, 3-63 characters.
- Versioning must be enabled.
- Server-side encryption must use aws:kms with bucket key enabled.
Related pages
-
Customize prompts to change a prompt, add a resource prompt, or write exception lists.
-
Compliance policy for the contract of
general/policies/complianceand the provider policies. -
Monitor with Langfuse for where Langfuse runs and how to log in.