Přeskočit obsah

Sensorium Patch Policy v1

Source schema: doc/schemas/sensorium-patch-policy.v1.schema.json

Closed, content-addressable admission policy for Workbench patches. It names every admitted target by a logical root and a relative path, the admitted change operations, and a line-oriented content shape. It does not apply patches; the Workbench enforces it before staging.

Governing Basis

Project Lineage

Requirements

Stories

Fields

Field Required Shape Description
schema yes const: sensorium-patch-policy.v1
schema/v yes const: 1
patch-policy/ref yes ref: #/$defs/ref
targets yes array
patch/max-bytes yes integer Largest total content, in bytes, of one patch across all its written files. Each written file is also bounded by it and by its target's max-bytes; a Workbench that stages one file at a time can enforce only the per-file bound, so plan compilation enforces the total.

Definitions

Definition Shape Description
ref string
relativePath string Relative path below the logical root: components of [A-Za-z0-9._-] separated by single slashes, with no leading slash and no . or .. component. A leading dot is admitted (for example alias/.qmail-root); globs, backslashes and whitespace are not.
target object
## Field Semantics

schema

  • Required: yes
  • Shape: const: sensorium-patch-policy.v1

schema/v

  • Required: yes
  • Shape: const: 1

patch-policy/ref

  • Required: yes
  • Shape: ref: #/$defs/ref

targets

  • Required: yes
  • Shape: array

patch/max-bytes

  • Required: yes
  • Shape: integer

Largest total content, in bytes, of one patch across all its written files. Each written file is also bounded by it and by its target's max-bytes; a Workbench that stages one file at a time can enforce only the per-file bound, so plan compilation enforces the total.

Definition Semantics

$defs.ref

  • Shape: string

$defs.relativePath

  • Shape: string

Relative path below the logical root: components of [A-Za-z0-9._-] separated by single slashes, with no leading slash and no . or .. component. A leading dot is admitted (for example alias/.qmail-root); globs, backslashes and whitespace are not.

$defs.target

  • Shape: object