Release candidate 0.2.0-rc.2
OFR · Example
{
"ofr": {
"version": "0.1.0",
"operations": [
{
"id": "okham.memory.operation.save.classify",
"name": "classify typed save",
"intent": "execute",
"version": "0.1.0",
"inputs": [
{
"name": "request",
"type": "okham.memory.type.save.request"
}
],
"outputs": [
{
"name": "handoff",
"type": "okham.memory.type.save.classified"
}
],
"sideEffects": [],
"metadata": {
"hostBinding": "classify",
"execution": "Trusted fixed adapter binding; not arbitrary function or command execution.",
"validationRuleset": "okham.memory.ruleset.save.outputs",
"typeBindings": [
{
"typeRef": "okham.memory.type.record",
"kinds": [
"context",
"task",
"decision",
"note",
"architecture",
"process",
"policy"
],
"fact": "saveRecord",
"prepare": "prepare-record"
},
{
"typeRef": "okham.validation.type.verification.suite",
"kinds": [
"test_suite"
],
"fact": "saveSuite",
"prepare": "prepare-suite",
"recognizeFields": [
"id",
"name",
"scope",
"appliesTo",
"cases"
]
}
],
"normative": {
"typeRef": "okham.standards.type.normative.profile",
"standard": "BCP14",
"requirements": []
}
}
},
{
"id": "okham.memory.operation.save.prepare.record",
"name": "prepare.record typed save",
"intent": "execute",
"version": "0.1.0",
"inputs": [
{
"name": "handoff",
"type": "okham.memory.type.save.classified"
}
],
"outputs": [
{
"name": "prepared",
"type": "okham.memory.type.save.prepared"
}
],
"sideEffects": [],
"metadata": {
"hostBinding": "prepare-record",
"execution": "Trusted fixed adapter binding; not arbitrary function or command execution.",
"validationRuleset": "okham.memory.ruleset.save.outputs",
"validationOutput": "prepared",
"normative": {
"typeRef": "okham.standards.type.normative.profile",
"standard": "BCP14",
"requirements": []
}
}
},
{
"id": "okham.memory.operation.save.prepare.suite",
"name": "prepare.suite typed save",
"intent": "execute",
"version": "0.1.0",
"inputs": [
{
"name": "handoff",
"type": "okham.memory.type.save.classified"
}
],
"outputs": [
{
"name": "prepared",
"type": "okham.memory.type.save.prepared"
}
],
"sideEffects": [],
"metadata": {
"hostBinding": "prepare-suite",
"execution": "Trusted fixed adapter binding; not arbitrary function or command execution.",
"validationRuleset": "okham.memory.ruleset.save.outputs",
"validationOutput": "prepared",
"normative": {
"typeRef": "okham.standards.type.normative.profile",
"standard": "BCP14",
"requirements": []
}
}
},
{
"id": "okham.memory.operation.save.authorize",
"name": "authorize typed save",
"intent": "execute",
"version": "0.1.0",
"inputs": [
{
"name": "handoff",
"type": "okham.memory.type.save.prepared"
}
],
"outputs": [
{
"name": "handoff",
"type": "okham.memory.type.save.prepared"
}
],
"sideEffects": [],
"metadata": {
"hostBinding": "authorize",
"execution": "Trusted fixed adapter binding; not arbitrary function or command execution.",
"validationRuleset": "okham.memory.ruleset.save.outputs",
"normative": {
"typeRef": "okham.standards.type.normative.profile",
"standard": "BCP14",
"requirements": []
}
}
},
{
"id": "okham.memory.operation.save.persist",
"name": "persist typed save",
"intent": "execute",
"version": "0.1.0",
"inputs": [
{
"name": "handoff",
"type": "okham.memory.type.save.prepared"
}
],
"outputs": [
{
"name": "result",
"type": "okham.memory.type.save.receipt"
}
],
"sideEffects": [
"Persist an admitted record through the internal native storage primitive."
],
"metadata": {
"hostBinding": "persist",
"execution": "Trusted fixed adapter binding; not arbitrary function or command execution.",
"normative": {
"typeRef": "okham.standards.type.normative.profile",
"standard": "BCP14",
"requirements": []
}
}
}
]
}
}