Skip to content

What governs this agent

GET/api/public/v1/agents/{agent_id}/zone

The assigned zone, how it was assigned, the layer stack top-down, and every effective policy with the layer that authored it and whether that layer is the agent's own (authored_here / inherited). Resolved by app/zones/resolution.py — the one implementation every zone surface shares.

Terminal window
curl --fail-with-body -X GET 'https://app.openlatch.ai/api/public/v1/agents/<agent_id>/zone' \
-H "Authorization: Bearer $OPENLATCH_API_KEY"
Role in the organizationThis endpoint
ownerAllowed
adminAllowed
editorAllowed
viewerAllowed

A key carries the role its owner holds in the organization. See Authentication.

API key scope: zones:read

ParameterTypeDescription
agent_idstringRequired.
FieldTypeDescription
assigned_zonestring or nullRequired.
assignment_sourcestringRequired.
capabilitiesobject or null
capabilities.askbooleanRequired. Can show its own prompt to the developer.
capabilities.enforcesstringRequired. all, or shell_only: which tools its refusals actually reach.
capabilities.noticebooleanRequired. Can show a non-blocking message.
capabilities.observes_executionbooleanRequired. Emits a post-execution event, so an answer can be inferred.
clientobjectRequired. What the install last told us about itself.
client.bundle_revisionstring or null
client.omitted_kindsarray of stringRequired.
client.versionstring or null
compatibilityobjectRequired. Per-family compatibility posture for one install, keyed by contract family.
compatibility.familiesobjectRequired.
control_levelstringRequired.
effectivearray of objectRequired.
effective[].dimensionsarray of stringRequired.
effective[].display_titlestringThe AIP's name: its title, else its generated_title, else its statement.
effective[].enforced_on_this_installbooleanRequired.
effective[].modestringRequired.
effective[].optimizearray of object
effective[].optimize_previewarray of object
effective[].origin_layer_idstringRequired.
effective[].origin_layer_labelstringRequired.
effective[].policy_idstringRequired.
effective[].public_idstringRequired.
effective[].standingstringRequired.
effective[].statementstringRequired.
kpisobjectRequired.
kpis.anomalies_14dinteger
kpis.authored_hereintegerRequired.
kpis.enforcing_nintegerRequired.
kpis.enforcing_ofintegerRequired.
kpis.inheritedintegerRequired.
kpis.policies_in_forceintegerRequired.
layersarray of objectRequired.
layers[].depthintegerRequired.
layers[].labelstringRequired.
layers[].unit_idstringRequired.
stalebooleanRequired.
{
"assigned_zone": "string",
"assignment_source": "string",
"capabilities": {
"ask": false,
"enforces": "string",
"notice": false,
"observes_execution": false
},
"client": {
"bundle_revision": "string",
"omitted_kinds": [
"string"
],
"version": "string"
},
"compatibility": {
"families": {}
},
"control_level": "string",
"effective": [
{
"dimensions": [
"string"
],
"display_title": "",
"enforced_on_this_install": false,
"mode": "string",
"optimize": [
{
"atom_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"directive": {
"lever": "effort_clamp",
"params": {}
}
}
],
"optimize_preview": [
{}
],
"origin_layer_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"origin_layer_label": "string",
"policy_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"public_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"standing": "string",
"statement": "string"
}
],
"kpis": {
"anomalies_14d": 0,
"authored_here": 3,
"enforcing_n": 3,
"enforcing_of": 3,
"inherited": 3,
"policies_in_force": 3
},
"layers": [
{
"depth": 3,
"label": "string",
"unit_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10"
}
],
"stale": false
}