Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,20 @@ session, which sets the flag afresh; drift rounds never change it.
. Failed sessions cannot be resumed; ask the owner to start a new
session with the corrected request.

[#unlock-a-session]
=== Locking or unlocking the apply of a session (panel `editor` or higher)

Use a lock when a report looks risky but the automatic lock did not
trigger, or when a change must wait for an out-of-band approval. Use an
unlock after the automatic lock (failed compliance or `high` impact) has
been reviewed and accepted.
been reviewed and accepted. Editors receive the "Compliance check
failed" and "High impact changes detected" notifications for every
session when the notifications sidecar is enabled. Before unlocking,
read the round's compliance report: findings from the compliance policy
carry a *policy* badge, the others come from the LLM audit. For what each
cause means, see
xref:main:guides/merge-and-apply.adoc#session-locked[If the session is
locked].

. Admin panel, Sessions tab. Find the session (search by user e-mail,
project, or session id).
Expand Down
85 changes: 70 additions & 15 deletions docs/src/modules/main/pages/guides/merge-and-apply.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,76 @@ and apply the reviewed plan.
[#session-locked]
== If the session is locked

A session is locked automatically when the compliance audit fails or,
where your deployment enables it, when the impact is *High*. You are
notified ("Session blocked") and, when you try to continue with a pull
request, you see the *High Impact Deployment* screen: the changes have
been blocked, the support team has been notified, and a specialist will
review your request. Two buttons: *Back to Report* and *Contact Team*.

While locked you can still read everything, continue the conversation, and
create the pull request so reviewers can read the diff. You cannot merge
it or apply: the server answers that the session is blocked. A reviewer
with the appropriate panel role unlocks the
xref:main:guides/administer-users-and-locks.adoc#session-locks[session
lock], or you send a new request whose result passes cleanly, which
clears the lock. Your own sessions list shows the lock state in the
*Apply* column.
At the end of every generate round Kumoss decides whether the plan may be
merged and applied. Three independent checks can lock the session:

[cols="1,3,2",options="header"]
|===
|Cause |What triggers it |Switch

|*Compliance policy* (deterministic)
|The Rego policy, evaluated by Open Policy Agent on the plan JSON,
returns a `deny` finding. The shipped rule, `critical_deletion`, denies
any resource that is destroyed without being recreated, *even when you
asked for the deletion*. A policy that cannot be evaluated also locks
the session (`policy_unavailable`). These findings carry a *policy*
badge.
|`orchestration.enable_compliance_checker`

|*Compliance audit* (LLM)
|A language-model agent compares the plan with your requests and your
organization's conventions. `scope_exceeded`: the plan changes something
you did not ask for, for example it removes a block or sets an attribute
to null. `scope_incomplete`: part of your request has no matching change
in the plan. Any other `error` or `critical` finding comes from the
conventions. Findings of severity `warning` are reported and never lock.
|`orchestration.enable_compliance_checker`

|*High impact*
|The report's impact assessment rates the change `high`: destructive
actions, restarts, service downtime, or critical networking changes. The
impact banner is shown either way; the switch only decides whether it
locks.
|`orchestration.block_on_high_impact`
|===

Both switches default to `false` in code, and the shipped `config.yaml`
turns both on; see
xref:main:reference/configuration.adoc[Configuration]. Drift and import
rounds are never checked and never lock a session.

*What you see.* When you continue to the pull request, the *Deployment
Blocked* screen opens. Expand *Why* to see which cause applies: *High
impact* with the impact summary, *Compliance* with each blocking finding
(severity, rule id, and resource), or both. *Check again* reads the lock
again, for example after a reviewer unlocked it; *Back to Report*
returns to the report; *Contact Team* sends a support request.

*Who is notified.* When the notifications sidecar is enabled, Kumoss
sends a "Compliance check failed" notification, a "High impact changes
detected" notification, or both, to you and to every user with the panel
role `editor` or higher. If your browser tab is hidden when the round
finishes, you also get a "Session blocked" browser notification.

*While locked* you can still read everything, continue the conversation,
and create the pull request so reviewers can read the diff. You cannot
merge it or apply: the server answers `409` because the session is
blocked. Your own sessions list shows the lock state in the *Apply*
column.

*Getting unlocked.* Either:

* send a follow-up request whose round passes all three checks, which
clears the lock; or
* ask a reviewer with the panel role `editor` or `admin` to review the
session in the admin panel and unlock it; see
xref:main:guides/administer-users-and-locks.adoc#unlock-a-session[Locking
or unlocking the apply of a session].

A manual unlock lasts only until your next generate round on the
session, which runs the checks again and sets the lock afresh. To write
your own policy rules, see
xref:main:reference/compliance-policy.adoc[Compliance policy].

== Steps

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ findings carry `"llm"`; reports stored before the policy existed have
no `source` and are LLM findings), and the report's `policy_revision`
is the version of the policy that ran, as the string
`"<prompt name>@<version>"`, for example
`general/policies/compliance@4` (`null` when no policy ran). The policy's findings come first. The report has `passed: false`
`general/policies/compliance@4` (`null` when no policy ran). The
policy's findings come first. The report has `passed: false`
when either source has an `error` or `critical` finding, and the
session is locked exactly as for any failed compliance check. When the
policy blocks, the summary starts with `Blocked by the compliance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,5 +303,8 @@ first session.
the credentials each provider needs in the IaC sidecar.
* xref:main:guides/customize-prompts.adoc[Customize prompts] for how the
module's providers select the prompts a session uses.
* xref:main:reference/compliance-policy.adoc#input[Compliance policy]
for how the module's provider type names reach the Rego policy as
`input.kumoss.providers`.
* xref:main:guides/upgrade-notes.adoc[Upgrade notes] for what changed
when providers moved to the module.
35 changes: 23 additions & 12 deletions docs/src/modules/main/pages/roadmap.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ Kumoss does today.
== How to read the roadmap

The initiatives are grouped into seven themes. Each initiative carries
one of two statuses:
one of three statuses:

* label:green[Done]: the initiative has shipped and is documented; the
section links to its documentation.
* label:blue[In progress]: active development is under way.
* label:grey[Planned]: the initiative is accepted into the roadmap, and
work has not started.
Expand Down Expand Up @@ -55,15 +57,18 @@ indicate priority.
|<<multiproject,Multiproject requests>>
|label:grey[Planned]

.4+|<<quality-and-governance,Quality and governance>>
.5+|<<quality-and-governance,Quality and governance>>
|<<evaluation-harness,Evaluation harness and automated testing>>
|label:grey[Planned]

|<<model-benchmarking,Model benchmarking>>
|label:grey[Planned]

|<<opa,Policy as code with Open Policy Agent>>
|label:blue[In progress]
|label:green[Done]

|<<policy-bundles,Policy bundles and self-repair>>
|label:grey[Planned]

|<<governance-overview,Multicloud governance overview>>
|label:grey[Planned]
Expand All @@ -87,7 +92,7 @@ indicate priority.

.2+|<<deployment-and-adoption,Deployment and adoption>>
|<<helm-chart,Helm chart for Kubernetes>>
|label:blue[In progress]
|label:green[Done]

|<<installation-wizard,Installation wizard>>
|label:blue[In progress]
Expand Down Expand Up @@ -205,14 +210,20 @@ models Kumoss supports today.
Kumoss evaluates the final plan of every generate round against a
deterministic policy written in Rego with
https://www.openpolicyagent.org[Open Policy Agent], alongside the
language-model compliance audit. The first form is a single policy
stored in Langfuse, which ships with one rule, `critical_deletion`; see
xref:main:reference/compliance-policy.adoc[Compliance policy].

Still to come: loading policy bundles an organization already maintains
outside Kumoss, per-cloud policy packages, and feeding denies back into
the generate-and-validate loop so the model can repair the code before
the round is locked.
language-model compliance audit. The policy is stored in Langfuse, ships
with one rule, `critical_deletion`, and locks the session whenever it
denies the plan or cannot be evaluated; see
xref:main:reference/compliance-policy.adoc[Compliance policy] and
xref:main:guides/merge-and-apply.adoc#session-locked[If the session is
locked].

[#policy-bundles]
=== Policy bundles and self-repair

Kumoss will load the policy bundles an organization already maintains
outside Kumoss, ship per-cloud policy packages, and feed policy denies
back into the generate-and-validate loop, so the model can repair the
code before the round is locked.

[#governance-overview]
=== Multicloud governance overview
Expand Down
6 changes: 4 additions & 2 deletions docs/src/modules/main/partials/glossary/session-lock.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
A flag on the session that blocks apply and pull-request merge. It is set
automatically when the compliance audit fails or, where the deployment
enables it, when the impact is High, and cleared either by an admin-panel
automatically at the end of a generate round when the compliance policy
denies the plan (or cannot be evaluated), when the LLM compliance audit
finds an `error` or `critical` violation such as `scope_exceeded`, or,
where the deployment enables it, when the impact is High, and cleared either by an admin-panel
Comment on lines +2 to +5
editor or by a later generate round whose audit passes without a
high-impact verdict. Some internal material calls this a plan lock.
Loading