coding-policy schema (v0.1)
The coding-policy file is validated by the normative JSON Schema published at its canonical URL:
- $id: https://contextbrew.dev/schemas/coding-policy/v0.1/schema.json
- Format version:
0.1.0 - Schema dialect: draft-07
- Validate with:
ctx schema coding-policyor any JSON Schema validator (ajv, VS Code, …)
Root object: CodingPolicy
Section titled “Root object: CodingPolicy”| Property | Type | Required | Description |
|---|---|---|---|
format | "cb.coding-policy/v1" | yes | |
schemaVersion | "0.1.0" | yes | |
policyId | Uuid | yes | |
policyRevision | number | yes | |
targetDefaults | TargetPolicyDefaults[] | yes | |
mode | "observe" | "assist" | "manage" | yes | |
branchNaming | object | yes | |
trailers | object | yes | |
notesEnabled | boolean | yes | |
pushPolicy | "manual" | "on-task-completion" | yes | |
gitNotesPolicyRef | string | yes |
Definitions
Section titled “Definitions”CommitTrigger
Section titled “CommitTrigger”Type: "coherent-unit" | "task-completion" | "selected-input-checkpoint" | "periodic-safe-boundary" | "manual"
RepoRelativePath
Section titled “RepoRelativePath”Normalized repository-relative POSIX path (no leading /, no ..).
Type: string
TargetPolicyDefaults
Section titled “TargetPolicyDefaults”| Property | Type | Required | Description |
|---|---|---|---|
targetId | string | yes | |
triggers | CommitTrigger[] | yes | |
eligiblePathPrefixes | RepoRelativePath[] | yes | |
qualityFloor | object | yes | |
checkpoint | object | yes | |
destination | "task-branch" | "integration-branch" | yes | |
publication | "manual" | "tracked-remote" | yes |
Opaque UUID (v4 or v7) assigned by the owning server.
Type: string
See the schemas overview for the versioning policy and how these files are generated and kept in sync.
