Skip to documentation
KonclaveDocumentationSource snapshot · Apache 2.0
Browse documentation

Collaboration policy source

Explore Konclave's authored policy schema: exact selectors, independently proven claims, limit inheritance, null semantics, and deliberate local activation.

Schema referenceSource revision 8d0d3676e9fcView authoritative source

Repository-relative paths and “this checkout” refer to the Konclave source repository, not this website. The source link above identifies the exact revision used here.

On this page

Editable deterministic policy source, not active authority. Compilation creates canonical bytes; a separate explicit local decision activates a conversation binding. Authoring and activation workflow: https://github.com/nexus-software-laboratories/konclave/blob/main/policy/README.md

Source format

These tables are generated from the authored JSON Schema descriptions. The schema and compiler remain authoritative; table formatting does not change validation.

Document

Wide tables scroll horizontally.

FieldShapeRequiredContract
apiVersionkonclave.dev/v2yesSelects source format v2, which rejects model guidance and task instructions. This is not a wire, package or storage version.
kindCollaborationPolicyyesSelects a collaboration-policy document, not a catalog or executable workflow.
metadataobjectyesPolicy naming metadata; neither its presence nor its name grants authority.
specobjectyesDeterministic statements, required evidence and usage limits. No model guidance or task instructions are accepted.

Document.metadata

Wide tables scroll horizontally.

FieldShapeRequiredContract
namestringyesCanonical lowercase policy name, at most 128 characters. The name is not the compiled bundle’s content digest.

Document.spec

Wide tables scroll horizontally.

FieldShapeRequiredContract
statementsarraynoUp to 256 statements, sorted by unique identifier during compilation. Omission means no statements; an action without a matching statement is denied.
requiredHarnessClaimsarraynoUp to 64 namespaced claims that must all be independently proven by the local harness. Declaring a claim is not evidence; missing proof denies. Exact-target harness control is also required.
limitsobjectnoUsage limits resolved against caller-supplied defaults. Omitting this object inherits all defaults; an empty object also inherits them.

Statement

Wide tables scroll horizontally.

FieldShapeRequiredContract
idstringyesCanonical statement identifier, at most 128 characters and unique within the compiled bundle. It identifies the statement, not an action permission.
effectallow / deny / require_local_approvalyesallow permits only after local authority, proven claims/controls and limits pass. deny refuses even with approval. require_local_approval requires fresh local approval after those checks; approval cannot override denial, missing evidence or exhausted limits.
actionsee schemayesExact namespaced action selector. A matching rule alone does not grant local authority or prove harness enforcement.
resourcesee schema / nullnoExact namespaced resource selector. Omission or null matches only an unscoped action, never every resource.

Limits

Wide tables scroll horizontally.

FieldShapeRequiredContract
durationMillisecondsinteger / nullnoElapsed duration in milliseconds, not seconds. A finite policy duration expires when elapsed time reaches this limit.
turnsinteger / nullnoMaximum turn usage; existing usage plus the prospective reservation must fit the finite limit.
tokensinteger / nullnoMaximum token usage; existing usage plus the prospective reservation must fit the finite limit.
concurrentRequestsinteger / nullnoMaximum concurrent-request usage including the prospective reservation: positive u32 from 1 through 4294967295. Omission inherits the caller default; null is unlimited within independent hard bounds; zero is invalid.

Maintained source example

This is the upstream request/reply policy example, not evidence that local authority has been activated.

Code example
{
  "apiVersion": "konclave.dev/v2",
  "kind": "CollaborationPolicy",
  "metadata": {
    "name": "request-reply"
  },
  "spec": {
    "statements": [
      {
        "id": "conversation-reply",
        "effect": "allow",
        "action": "conversation.reply"
      }
    ],
    "requiredHarnessClaims": [
      "harness.native-permission-intersection",
      "harness.pre-tool-policy-gate",
      "harness.session-identity"
    ],
    "limits": {
      "durationMilliseconds": null,
      "turns": null,
      "tokens": null,
      "concurrentRequests": 1
    }
  }
}

Content: Konclave,Apache-2.0. Revision: 8d0d3676e9fc746749a4fc04ddeb4499023c4104.