Diagnose a workload
curl --request POST \
--url https://useorgx.com/api/v1/doctor/workload \
--header 'Content-Type: application/json' \
--data '
{
"schema_version": "workload-diagnosis/0.1",
"workload": {
"name": "Review the launch plan",
"outcome": "Deploy the reviewed change.",
"time_horizon": "single_turn",
"agent_count": 1,
"coordination": "none",
"systems": [
{
"category": "code_repository",
"access": "read",
"side_effect": "none",
"data_class": "public"
}
],
"authority": {
"actions": [
"research"
],
"approval_policy": "not_applicable",
"budget_control": "not_applicable"
},
"accountability": {
"evidence": "none",
"acceptance": "none",
"consequence": "low",
"retention": "none"
}
}
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
schema_version: 'workload-diagnosis/0.1',
workload: {
name: 'Review the launch plan',
outcome: 'Deploy the reviewed change.',
time_horizon: 'single_turn',
agent_count: 1,
coordination: 'none',
systems: [
{
category: 'code_repository',
access: 'read',
side_effect: 'none',
data_class: 'public'
}
],
authority: {
actions: ['research'],
approval_policy: 'not_applicable',
budget_control: 'not_applicable'
},
accountability: {evidence: 'none', acceptance: 'none', consequence: 'low', retention: 'none'}
}
})
};
fetch('https://useorgx.com/api/v1/doctor/workload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://useorgx.com/api/v1/doctor/workload"
payload = {
"schema_version": "workload-diagnosis/0.1",
"workload": {
"name": "Review the launch plan",
"outcome": "Deploy the reviewed change.",
"time_horizon": "single_turn",
"agent_count": 1,
"coordination": "none",
"systems": [
{
"category": "code_repository",
"access": "read",
"side_effect": "none",
"data_class": "public"
}
],
"authority": {
"actions": ["research"],
"approval_policy": "not_applicable",
"budget_control": "not_applicable"
},
"accountability": {
"evidence": "none",
"acceptance": "none",
"consequence": "low",
"retention": "none"
}
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"schema_version": "workload-diagnosis/0.1",
"diagnosis_id": "3a7e2b54-b5b0-4d4e-9a5f-19dbf2f4c021",
"recommendation": {
"verdict": "needed",
"mode": "none",
"summary": "Launch plan reviewed with supporting evidence.",
"rationale": [
"The workload has a bounded outcome and an explicit approval boundary."
],
"active_boundary_count": 0
},
"boundaries": {
"time": {
"state": "absent",
"score": 0,
"reason": "No external system access is required for this boundary."
},
"agents": {
"state": "absent",
"score": 0,
"reason": "No external system access is required for this boundary."
},
"systems": {
"state": "absent",
"score": 0,
"reason": "No external system access is required for this boundary."
},
"authority": {
"state": "absent",
"score": 0,
"reason": "No external system access is required for this boundary."
},
"accountability": {
"state": "absent",
"score": 0,
"reason": "No external system access is required for this boundary."
}
},
"missing_capabilities": [
{
"id": "2d4b7f66-3a2a-4e9d-9ad1-3b2d1b2e4101",
"boundary": "time",
"reason": "No external system access is required for this boundary."
}
],
"proposed_resources": [
{
"resource": "launch-planning repository",
"requested_access": "read",
"scope_intents": [
"read launch evidence"
],
"purpose": "Coordinate a launch review from proposal through verified completion.",
"credential_input_required": false
}
],
"what_remains_local": [
{
"item": "Open review findings",
"reason": "No external system access is required for this boundary."
}
],
"risks": [
{
"id": "2d4b7f66-3a2a-4e9d-9ad1-3b2d1b2e4101",
"severity": "low",
"boundary": "time",
"description": "Launch plan reviewed with supporting evidence.",
"mitigation": "Require explicit approval before proceeding."
}
],
"capabilities_after_installation": [
"review evidence"
],
"human_approvals": [
{
"id": "2d4b7f66-3a2a-4e9d-9ad1-3b2d1b2e4101",
"owner_role": "workload_owner",
"timing": "before_installation",
"decision": "Approve the proposed access scope.",
"scope": [
"launch review"
]
}
],
"approval_handoff": {
"kind": "none",
"url": "https://useorgx.com/tasks/7fbb727d-17c4-4bc7-9fc7-60eb15e9314d",
"mutates_state": false,
"carries_sensitive_data": true,
"approval_ids": [
"approval-launch-review"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"issues": [
{}
]
},
"ok": true,
"valid": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"issues": [
{}
]
},
"ok": true,
"valid": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"issues": [
{}
]
},
"ok": true,
"valid": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"issues": [
{}
]
},
"ok": true,
"valid": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"issues": [
{}
]
},
"ok": true,
"valid": true
}Workload diagnosis
Diagnose a workload
Score a workload across time, agents, systems, authority, and accountability.
POST
/
doctor
/
workload
Diagnose a workload
curl --request POST \
--url https://useorgx.com/api/v1/doctor/workload \
--header 'Content-Type: application/json' \
--data '
{
"schema_version": "workload-diagnosis/0.1",
"workload": {
"name": "Review the launch plan",
"outcome": "Deploy the reviewed change.",
"time_horizon": "single_turn",
"agent_count": 1,
"coordination": "none",
"systems": [
{
"category": "code_repository",
"access": "read",
"side_effect": "none",
"data_class": "public"
}
],
"authority": {
"actions": [
"research"
],
"approval_policy": "not_applicable",
"budget_control": "not_applicable"
},
"accountability": {
"evidence": "none",
"acceptance": "none",
"consequence": "low",
"retention": "none"
}
}
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
schema_version: 'workload-diagnosis/0.1',
workload: {
name: 'Review the launch plan',
outcome: 'Deploy the reviewed change.',
time_horizon: 'single_turn',
agent_count: 1,
coordination: 'none',
systems: [
{
category: 'code_repository',
access: 'read',
side_effect: 'none',
data_class: 'public'
}
],
authority: {
actions: ['research'],
approval_policy: 'not_applicable',
budget_control: 'not_applicable'
},
accountability: {evidence: 'none', acceptance: 'none', consequence: 'low', retention: 'none'}
}
})
};
fetch('https://useorgx.com/api/v1/doctor/workload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://useorgx.com/api/v1/doctor/workload"
payload = {
"schema_version": "workload-diagnosis/0.1",
"workload": {
"name": "Review the launch plan",
"outcome": "Deploy the reviewed change.",
"time_horizon": "single_turn",
"agent_count": 1,
"coordination": "none",
"systems": [
{
"category": "code_repository",
"access": "read",
"side_effect": "none",
"data_class": "public"
}
],
"authority": {
"actions": ["research"],
"approval_policy": "not_applicable",
"budget_control": "not_applicable"
},
"accountability": {
"evidence": "none",
"acceptance": "none",
"consequence": "low",
"retention": "none"
}
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"schema_version": "workload-diagnosis/0.1",
"diagnosis_id": "3a7e2b54-b5b0-4d4e-9a5f-19dbf2f4c021",
"recommendation": {
"verdict": "needed",
"mode": "none",
"summary": "Launch plan reviewed with supporting evidence.",
"rationale": [
"The workload has a bounded outcome and an explicit approval boundary."
],
"active_boundary_count": 0
},
"boundaries": {
"time": {
"state": "absent",
"score": 0,
"reason": "No external system access is required for this boundary."
},
"agents": {
"state": "absent",
"score": 0,
"reason": "No external system access is required for this boundary."
},
"systems": {
"state": "absent",
"score": 0,
"reason": "No external system access is required for this boundary."
},
"authority": {
"state": "absent",
"score": 0,
"reason": "No external system access is required for this boundary."
},
"accountability": {
"state": "absent",
"score": 0,
"reason": "No external system access is required for this boundary."
}
},
"missing_capabilities": [
{
"id": "2d4b7f66-3a2a-4e9d-9ad1-3b2d1b2e4101",
"boundary": "time",
"reason": "No external system access is required for this boundary."
}
],
"proposed_resources": [
{
"resource": "launch-planning repository",
"requested_access": "read",
"scope_intents": [
"read launch evidence"
],
"purpose": "Coordinate a launch review from proposal through verified completion.",
"credential_input_required": false
}
],
"what_remains_local": [
{
"item": "Open review findings",
"reason": "No external system access is required for this boundary."
}
],
"risks": [
{
"id": "2d4b7f66-3a2a-4e9d-9ad1-3b2d1b2e4101",
"severity": "low",
"boundary": "time",
"description": "Launch plan reviewed with supporting evidence.",
"mitigation": "Require explicit approval before proceeding."
}
],
"capabilities_after_installation": [
"review evidence"
],
"human_approvals": [
{
"id": "2d4b7f66-3a2a-4e9d-9ad1-3b2d1b2e4101",
"owner_role": "workload_owner",
"timing": "before_installation",
"decision": "Approve the proposed access scope.",
"scope": [
"launch review"
]
}
],
"approval_handoff": {
"kind": "none",
"url": "https://useorgx.com/tasks/7fbb727d-17c4-4bc7-9fc7-60eb15e9314d",
"mutates_state": false,
"carries_sensitive_data": true,
"approval_ids": [
"approval-launch-review"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"issues": [
{}
]
},
"ok": true,
"valid": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"issues": [
{}
]
},
"ok": true,
"valid": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"issues": [
{}
]
},
"ok": true,
"valid": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"issues": [
{}
]
},
"ok": true,
"valid": true
}{
"error": {
"code": "<string>",
"message": "<string>",
"issues": [
{}
]
},
"ok": true,
"valid": true
}Body
application/json
Response
Deterministic workload diagnosis
Allowed value:
"workload-diagnosis/0.1"Pattern:
^wdg_[a-f0-9]{24}$Show child attributes
Show child attributes
Show child attributes
Show child attributes
Maximum array length:
15Show child attributes
Show child attributes
Maximum array length:
13Show child attributes
Show child attributes
Required array length:
1 - 6 elementsShow child attributes
Show child attributes
Maximum array length:
15Show child attributes
Show child attributes
Maximum array length:
10Required string length:
1 - 300Maximum array length:
32Show child attributes
Show child attributes
Show child attributes
Show child attributes
