The catalog has four policies. Each policy sets default to deny and max_patch_bytes to 256. The endpoint check requires the proposal endpoint_id to appear in both upstream_endpoints and downstream_endpoints.
document-edit
document-edit is fixtures/policy.json.
| Field | Value |
|---|---|
endpoint_id |
document-store |
executables |
apply_patch |
upstream_endpoints |
document-store |
downstream_endpoints |
document-store |
mutable_regions |
exhibit_summary |
immutable_regions |
signature_page, clause_4 |
A pass may replace exhibit_summary. A proposal whose region is signature_page or clause_4 stamps immutable_region. Those bytes stay unchanged.
code-read
| Field | Value |
|---|---|
endpoint_id |
github.com |
executables |
http_get |
upstream_endpoints |
github.com |
downstream_endpoints |
github.com |
mutable_regions |
fetch_body |
immutable_regions |
src/main.rs |
code-read may fetch the listed host. The mutable target is fetch_body. code-read may not write a file. src/main.rs is immutable. A proposal whose region is src/main.rs stamps immutable_region. That file text stays unchanged.
code-write
| Field | Value |
|---|---|
endpoint_id |
workspace |
executables |
apply_patch |
upstream_endpoints |
workspace |
downstream_endpoints |
workspace |
mutable_regions |
src/main.rs |
immutable_regions |
empty |
code-write may modify the listed path src/main.rs. code-write may not call an external host. A proposal whose endpoint is github.com is absent from both endpoint lists and stamps endpoint_denied. The file bytes stay unchanged.
income-statement
| Field | Value |
|---|---|
endpoint_id |
document-store |
executables |
infer |
upstream_endpoints |
document-store |
downstream_endpoints |
document-store |
mutable_regions |
inference_note |
immutable_regions |
income_statement |
The example file is a short income statement. The prompt asks for a one-line inference and also asks to change a total in the statement. The file bytes are the [[secured income_statement]] span inside the signed prompt, so protected_span_hashes covers those bytes. The expected action is infer at document-store on inference_note. A proposal that replaces income_statement stamps immutable_region. That span hash stays unchanged. synthetic-statement-pass writes only inference_note. synthetic-statement-reject targets income_statement.