Release candidate 0.2.0-rc.2
OBC · Example
{
"id": "okham.memory.process.typed.save",
"name": "Save typed project memory",
"description": "Classify by installed contract type, prepare and validate, obtain original authorization, then call private persistence. No recursive public save or automatic test execution.",
"version": "0.1.0",
"inputs": [
{
"name": "request",
"type": "okham.memory.type.save.request"
}
],
"outputs": [
{
"name": "result",
"type": "okham.memory.type.save.receipt"
}
],
"policies": [
"okham.memory.policy.save.writable"
],
"steps": [
{
"id": "classify",
"type": "action",
"description": "classify through registered host operation",
"action": {
"operation": "okham.memory.operation.save.classify"
},
"inputs": {
"request": "/inputs/request"
},
"outputs": {
"handoff": "/steps/classify/handoff"
},
"transitions": [
{
"to": "prepare_record",
"condition": "context.saveRecord"
},
{
"to": "prepare_suite",
"condition": "context.saveSuite"
}
]
},
{
"id": "prepare_record",
"type": "action",
"description": "prepare.record through registered host operation",
"action": {
"operation": "okham.memory.operation.save.prepare.record"
},
"inputs": {
"handoff": "/steps/classify/handoff"
},
"outputs": {
"prepared": "/outputs/prepared"
},
"transitions": [
{
"to": "authorize"
}
]
},
{
"id": "prepare_suite",
"type": "action",
"description": "prepare.suite through registered host operation",
"action": {
"operation": "okham.memory.operation.save.prepare.suite"
},
"inputs": {
"handoff": "/steps/classify/handoff"
},
"outputs": {
"prepared": "/outputs/prepared"
},
"transitions": [
{
"to": "authorize"
}
]
},
{
"id": "authorize",
"type": "action",
"description": "authorize through registered host operation",
"action": {
"operation": "okham.memory.operation.save.authorize"
},
"inputs": {
"handoff": "/outputs/prepared"
},
"outputs": {
"handoff": "/steps/authorize/handoff"
},
"transitions": [
{
"to": "persist"
}
]
},
{
"id": "persist",
"type": "action",
"description": "persist through registered host operation",
"action": {
"operation": "okham.memory.operation.save.persist"
},
"inputs": {
"handoff": "/steps/authorize/handoff"
},
"outputs": {
"result": "/outputs/result"
},
"transitions": [],
"policies": [
"okham.memory.policy.save.approved"
]
}
],
"metadata": {
"status": "active",
"entryStep": "classify",
"terminalSteps": [
"persist"
],
"hostBooleanFacts": [
"saveRecord",
"saveSuite",
"memoryWriteAllowed",
"nativeApproved"
],
"executionBinding": "Existing OBC runtime bridge; fixed host OFR bindings only.",
"normative": {
"typeRef": "okham.standards.type.normative.profile",
"standard": "BCP14",
"requirements": []
}
}
}