-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathm87-governed-loop.bpmn
More file actions
executable file
·269 lines (269 loc) · 12.9 KB
/
Copy pathm87-governed-loop.bpmn
File metadata and controls
executable file
·269 lines (269 loc) · 12.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
id="Definitions_M87_Governed_Loop"
targetNamespace="https://m87studio.net/bpmn/governed-loop">
<bpmn:collaboration id="Collaboration_M87">
<bpmn:participant id="Participant_M87" name="M87 Governed Execution Substrate" processRef="Process_M87" />
</bpmn:collaboration>
<bpmn:process id="Process_M87" isExecutable="false">
<bpmn:laneSet id="LaneSet_1">
<bpmn:lane id="Lane_Proposer" name="Proposer Agent">
<bpmn:flowNodeRef>Start</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Propose</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_Halt</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_RejManifest</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_RejVerify</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_Gov" name="Governance Layer">
<bpmn:flowNodeRef>Validate</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gw_Constraints</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gw_Manifest</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Contract</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Verify</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gw_Verify</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_Runner" name="Runner (Execution)">
<bpmn:flowNodeRef>Execute</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gw_Budget</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Artifact</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_Memory" name="Memory & Artifact Store">
<bpmn:flowNodeRef>Memory</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_Complete</bpmn:flowNodeRef>
<bpmn:flowNodeRef>FailReceipt</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_Failed</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="Start" name="Task Intake">
<bpmn:outgoing>f1</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:task id="Propose" name="Generate ActionProposal (+ reasoning trace)">
<bpmn:incoming>f1</bpmn:incoming>
<bpmn:outgoing>f2</bpmn:outgoing>
</bpmn:task>
<bpmn:task id="Validate" name="Validate vs governance_policy.yaml">
<bpmn:incoming>f2</bpmn:incoming>
<bpmn:outgoing>f3</bpmn:outgoing>
</bpmn:task>
<bpmn:exclusiveGateway id="Gw_Constraints" name="Constraints satisfied & clear?">
<bpmn:incoming>f3</bpmn:incoming>
<bpmn:outgoing>f4</bpmn:outgoing>
<bpmn:outgoing>f5</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gw_Manifest" name="Tool in manifest?">
<bpmn:incoming>f5</bpmn:incoming>
<bpmn:outgoing>f6</bpmn:outgoing>
<bpmn:outgoing>f7</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:task id="Contract" name="Issue ExecutionContract v1">
<bpmn:incoming>f7</bpmn:incoming>
<bpmn:outgoing>f8</bpmn:outgoing>
</bpmn:task>
<bpmn:task id="Execute" name="Execute within autonomy budget">
<bpmn:incoming>f8</bpmn:incoming>
<bpmn:outgoing>f9</bpmn:outgoing>
</bpmn:task>
<bpmn:exclusiveGateway id="Gw_Budget" name="Budget exceeded or error?">
<bpmn:incoming>f9</bpmn:incoming>
<bpmn:outgoing>f10</bpmn:outgoing>
<bpmn:outgoing>f12</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:task id="Artifact" name="Produce Artifact + Receipt (hash)">
<bpmn:incoming>f12</bpmn:incoming>
<bpmn:outgoing>f13</bpmn:outgoing>
</bpmn:task>
<bpmn:task id="Verify" name="Verify artifact (validation command)">
<bpmn:incoming>f13</bpmn:incoming>
<bpmn:outgoing>f14</bpmn:outgoing>
</bpmn:task>
<bpmn:exclusiveGateway id="Gw_Verify" name="Artifact verified?">
<bpmn:incoming>f14</bpmn:incoming>
<bpmn:outgoing>f15</bpmn:outgoing>
<bpmn:outgoing>f16</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:task id="Memory" name="Route + index structured memory">
<bpmn:incoming>f16</bpmn:incoming>
<bpmn:outgoing>f17</bpmn:outgoing>
</bpmn:task>
<bpmn:endEvent id="End_Complete" name="Loop Complete (artifact-backed)">
<bpmn:incoming>f17</bpmn:incoming>
</bpmn:endEvent>
<bpmn:endEvent id="End_Halt" name="Halt & Escalate to Human">
<bpmn:incoming>f4</bpmn:incoming>
</bpmn:endEvent>
<bpmn:endEvent id="End_RejManifest" name="Reject - no manifest entry">
<bpmn:incoming>f6</bpmn:incoming>
</bpmn:endEvent>
<bpmn:task id="FailReceipt" name="Emit Failure Receipt">
<bpmn:incoming>f10</bpmn:incoming>
<bpmn:outgoing>f11</bpmn:outgoing>
</bpmn:task>
<bpmn:endEvent id="End_Failed" name="Execution Halted (fail-closed)">
<bpmn:incoming>f11</bpmn:incoming>
</bpmn:endEvent>
<bpmn:endEvent id="End_RejVerify" name="Reject - verification failed">
<bpmn:incoming>f15</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="f1" sourceRef="Start" targetRef="Propose" />
<bpmn:sequenceFlow id="f2" sourceRef="Propose" targetRef="Validate" />
<bpmn:sequenceFlow id="f3" sourceRef="Validate" targetRef="Gw_Constraints" />
<bpmn:sequenceFlow id="f4" sourceRef="Gw_Constraints" targetRef="End_Halt" name="No / unclear" />
<bpmn:sequenceFlow id="f5" sourceRef="Gw_Constraints" targetRef="Gw_Manifest" name="Yes" />
<bpmn:sequenceFlow id="f6" sourceRef="Gw_Manifest" targetRef="End_RejManifest" name="No" />
<bpmn:sequenceFlow id="f7" sourceRef="Gw_Manifest" targetRef="Contract" name="Yes" />
<bpmn:sequenceFlow id="f8" sourceRef="Contract" targetRef="Execute" />
<bpmn:sequenceFlow id="f9" sourceRef="Execute" targetRef="Gw_Budget" />
<bpmn:sequenceFlow id="f10" sourceRef="Gw_Budget" targetRef="FailReceipt" name="Yes" />
<bpmn:sequenceFlow id="f11" sourceRef="FailReceipt" targetRef="End_Failed" />
<bpmn:sequenceFlow id="f12" sourceRef="Gw_Budget" targetRef="Artifact" name="No" />
<bpmn:sequenceFlow id="f13" sourceRef="Artifact" targetRef="Verify" />
<bpmn:sequenceFlow id="f14" sourceRef="Verify" targetRef="Gw_Verify" />
<bpmn:sequenceFlow id="f15" sourceRef="Gw_Verify" targetRef="End_RejVerify" name="No" />
<bpmn:sequenceFlow id="f16" sourceRef="Gw_Verify" targetRef="Memory" name="Yes" />
<bpmn:sequenceFlow id="f17" sourceRef="Memory" targetRef="End_Complete" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_M87">
<bpmndi:BPMNShape id="DI_Pool" bpmnElement="Participant_M87" isHorizontal="true">
<dc:Bounds x="160" y="80" width="2240" height="600" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_Lane_Proposer" bpmnElement="Lane_Proposer" isHorizontal="true">
<dc:Bounds x="190" y="80" width="2210" height="150" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_Lane_Gov" bpmnElement="Lane_Gov" isHorizontal="true">
<dc:Bounds x="190" y="230" width="2210" height="150" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_Lane_Runner" bpmnElement="Lane_Runner" isHorizontal="true">
<dc:Bounds x="190" y="380" width="2210" height="150" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_Lane_Memory" bpmnElement="Lane_Memory" isHorizontal="true">
<dc:Bounds x="190" y="530" width="2210" height="150" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_Start" bpmnElement="Start">
<dc:Bounds x="222" y="137" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_Propose" bpmnElement="Propose">
<dc:Bounds x="350" y="118" width="110" height="74" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_Validate" bpmnElement="Validate">
<dc:Bounds x="515" y="268" width="110" height="74" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_Gw_Constraints" bpmnElement="Gw_Constraints" isMarkerVisible="true">
<dc:Bounds x="710" y="280" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_Gw_Manifest" bpmnElement="Gw_Manifest" isMarkerVisible="true">
<dc:Bounds x="875" y="280" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_Contract" bpmnElement="Contract">
<dc:Bounds x="1010" y="268" width="110" height="74" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_Execute" bpmnElement="Execute">
<dc:Bounds x="1175" y="418" width="110" height="74" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_Gw_Budget" bpmnElement="Gw_Budget" isMarkerVisible="true">
<dc:Bounds x="1370" y="430" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_Artifact" bpmnElement="Artifact">
<dc:Bounds x="1505" y="418" width="110" height="74" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_Verify" bpmnElement="Verify">
<dc:Bounds x="1670" y="268" width="110" height="74" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_Gw_Verify" bpmnElement="Gw_Verify" isMarkerVisible="true">
<dc:Bounds x="1865" y="280" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_Memory" bpmnElement="Memory">
<dc:Bounds x="2000" y="568" width="110" height="74" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_End_Complete" bpmnElement="End_Complete">
<dc:Bounds x="2202" y="587" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_End_Halt" bpmnElement="End_Halt">
<dc:Bounds x="717" y="137" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_End_RejManifest" bpmnElement="End_RejManifest">
<dc:Bounds x="882" y="137" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_FailReceipt" bpmnElement="FailReceipt">
<dc:Bounds x="1340" y="568" width="110" height="74" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_End_Failed" bpmnElement="End_Failed">
<dc:Bounds x="1542" y="587" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_End_RejVerify" bpmnElement="End_RejVerify">
<dc:Bounds x="1872" y="137" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="DI_f1" bpmnElement="f1">
<di:waypoint x="258" y="155" />
<di:waypoint x="350" y="155" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DI_f2" bpmnElement="f2">
<di:waypoint x="460" y="155" />
<di:waypoint x="515" y="305" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DI_f3" bpmnElement="f3">
<di:waypoint x="625" y="305" />
<di:waypoint x="710" y="305" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DI_f4" bpmnElement="f4">
<di:waypoint x="735" y="280" />
<di:waypoint x="735" y="173" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DI_f5" bpmnElement="f5">
<di:waypoint x="760" y="305" />
<di:waypoint x="875" y="305" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DI_f6" bpmnElement="f6">
<di:waypoint x="900" y="280" />
<di:waypoint x="900" y="173" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DI_f7" bpmnElement="f7">
<di:waypoint x="925" y="305" />
<di:waypoint x="1010" y="305" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DI_f8" bpmnElement="f8">
<di:waypoint x="1120" y="305" />
<di:waypoint x="1175" y="455" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DI_f9" bpmnElement="f9">
<di:waypoint x="1285" y="455" />
<di:waypoint x="1370" y="455" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DI_f10" bpmnElement="f10">
<di:waypoint x="1395" y="480" />
<di:waypoint x="1395" y="568" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DI_f11" bpmnElement="f11">
<di:waypoint x="1450" y="605" />
<di:waypoint x="1542" y="605" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DI_f12" bpmnElement="f12">
<di:waypoint x="1420" y="455" />
<di:waypoint x="1505" y="455" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DI_f13" bpmnElement="f13">
<di:waypoint x="1615" y="455" />
<di:waypoint x="1670" y="305" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DI_f14" bpmnElement="f14">
<di:waypoint x="1780" y="305" />
<di:waypoint x="1865" y="305" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DI_f15" bpmnElement="f15">
<di:waypoint x="1890" y="280" />
<di:waypoint x="1890" y="173" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DI_f16" bpmnElement="f16">
<di:waypoint x="1890" y="330" />
<di:waypoint x="2055" y="568" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DI_f17" bpmnElement="f17">
<di:waypoint x="2110" y="605" />
<di:waypoint x="2202" y="605" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>