|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" id="defs_qianji_workflow_source_repair_v1"> |
| 3 | + <bpmn:process id="qianji_workflow_source_repair_v1" isExecutable="true"> |
| 4 | + <bpmn:startEvent id="start_repair" /> |
| 5 | + <bpmn:serviceTask id="source_intake" name="Intake authoring source"> |
| 6 | + <bpmn:documentation>Validate source media type, process id, source hash, and repair budget before any model call.</bpmn:documentation> |
| 7 | + <bpmn:ioSpecification> |
| 8 | + <bpmn:dataOutput id="source_intake_Output_sourceIntakeAccepted" name="sourceIntakeAccepted" /> |
| 9 | + <bpmn:outputSet id="source_intake_OutputSet"> |
| 10 | + <bpmn:dataOutputRefs>source_intake_Output_sourceIntakeAccepted</bpmn:dataOutputRefs> |
| 11 | + </bpmn:outputSet> |
| 12 | + </bpmn:ioSpecification> |
| 13 | + <bpmn:dataOutputAssociation> |
| 14 | + <bpmn:sourceRef>source_intake_Output_sourceIntakeAccepted</bpmn:sourceRef> |
| 15 | + <bpmn:targetRef>sourceIntakeAccepted</bpmn:targetRef> |
| 16 | + </bpmn:dataOutputAssociation> |
| 17 | + </bpmn:serviceTask> |
| 18 | + <bpmn:serviceTask id="draft_bpmn" name="Draft BPMN artifacts"> |
| 19 | + <bpmn:documentation>Use the governed qianji LLM activity lane to draft candidate BPMN artifacts from the authoring source and qianji template context.</bpmn:documentation> |
| 20 | + <bpmn:ioSpecification> |
| 21 | + <bpmn:dataOutput id="draft_bpmn_Output_candidateBpmn" name="candidateBpmn" /> |
| 22 | + <bpmn:outputSet id="draft_bpmn_OutputSet"> |
| 23 | + <bpmn:dataOutputRefs>draft_bpmn_Output_candidateBpmn</bpmn:dataOutputRefs> |
| 24 | + </bpmn:outputSet> |
| 25 | + </bpmn:ioSpecification> |
| 26 | + <bpmn:dataOutputAssociation> |
| 27 | + <bpmn:sourceRef>draft_bpmn_Output_candidateBpmn</bpmn:sourceRef> |
| 28 | + <bpmn:targetRef>candidateBpmn</bpmn:targetRef> |
| 29 | + </bpmn:dataOutputAssociation> |
| 30 | + </bpmn:serviceTask> |
| 31 | + <bpmn:serviceTask id="run_qianji_lint" name="Run qianji lint evidence"> |
| 32 | + <bpmn:documentation>Run deterministic qianji lint over the candidate artifact bundle and emit compact structured diagnostics for the reasoning judge.</bpmn:documentation> |
| 33 | + <bpmn:ioSpecification> |
| 34 | + <bpmn:dataOutput id="run_qianji_lint_Output_lintDiagnostics" name="lintDiagnostics" /> |
| 35 | + <bpmn:outputSet id="run_qianji_lint_OutputSet"> |
| 36 | + <bpmn:dataOutputRefs>run_qianji_lint_Output_lintDiagnostics</bpmn:dataOutputRefs> |
| 37 | + </bpmn:outputSet> |
| 38 | + </bpmn:ioSpecification> |
| 39 | + <bpmn:dataOutputAssociation> |
| 40 | + <bpmn:sourceRef>run_qianji_lint_Output_lintDiagnostics</bpmn:sourceRef> |
| 41 | + <bpmn:targetRef>lintDiagnostics</bpmn:targetRef> |
| 42 | + </bpmn:dataOutputAssociation> |
| 43 | + </bpmn:serviceTask> |
| 44 | + <bpmn:serviceTask id="reason_lint_diagnostics" name="Reason over lint diagnostics"> |
| 45 | + <bpmn:documentation>Use the governed qianji LLM reasoning lane to judge lint diagnostics, decide whether repair is required, and emit a bounded artifact-local repair plan.</bpmn:documentation> |
| 46 | + <bpmn:ioSpecification> |
| 47 | + <bpmn:dataOutput id="reason_lint_diagnostics_Output_lintPassed" name="lintPassed" /> |
| 48 | + <bpmn:dataOutput id="reason_lint_diagnostics_Output_repairRequired" name="repairRequired" /> |
| 49 | + <bpmn:dataOutput id="reason_lint_diagnostics_Output_repairPlan" name="repairPlan" /> |
| 50 | + <bpmn:outputSet id="reason_lint_diagnostics_OutputSet"> |
| 51 | + <bpmn:dataOutputRefs>reason_lint_diagnostics_Output_lintPassed</bpmn:dataOutputRefs> |
| 52 | + <bpmn:dataOutputRefs>reason_lint_diagnostics_Output_repairRequired</bpmn:dataOutputRefs> |
| 53 | + <bpmn:dataOutputRefs>reason_lint_diagnostics_Output_repairPlan</bpmn:dataOutputRefs> |
| 54 | + </bpmn:outputSet> |
| 55 | + </bpmn:ioSpecification> |
| 56 | + <bpmn:dataOutputAssociation> |
| 57 | + <bpmn:sourceRef>reason_lint_diagnostics_Output_lintPassed</bpmn:sourceRef> |
| 58 | + <bpmn:targetRef>lintPassed</bpmn:targetRef> |
| 59 | + </bpmn:dataOutputAssociation> |
| 60 | + <bpmn:dataOutputAssociation> |
| 61 | + <bpmn:sourceRef>reason_lint_diagnostics_Output_repairRequired</bpmn:sourceRef> |
| 62 | + <bpmn:targetRef>repairRequired</bpmn:targetRef> |
| 63 | + </bpmn:dataOutputAssociation> |
| 64 | + <bpmn:dataOutputAssociation> |
| 65 | + <bpmn:sourceRef>reason_lint_diagnostics_Output_repairPlan</bpmn:sourceRef> |
| 66 | + <bpmn:targetRef>repairPlan</bpmn:targetRef> |
| 67 | + </bpmn:dataOutputAssociation> |
| 68 | + </bpmn:serviceTask> |
| 69 | + <bpmn:exclusiveGateway id="lint_decision" default="flow_lint_admit" /> |
| 70 | + <bpmn:serviceTask id="repair_bpmn" name="Repair BPMN artifacts"> |
| 71 | + <bpmn:documentation>Use the reasoning lint repair plan and previous artifacts to request the smallest artifact-local repair through the governed qianji LLM activity lane.</bpmn:documentation> |
| 72 | + <bpmn:ioSpecification> |
| 73 | + <bpmn:dataOutput id="repair_bpmn_Output_candidateBpmn" name="candidateBpmn" /> |
| 74 | + <bpmn:outputSet id="repair_bpmn_OutputSet"> |
| 75 | + <bpmn:dataOutputRefs>repair_bpmn_Output_candidateBpmn</bpmn:dataOutputRefs> |
| 76 | + </bpmn:outputSet> |
| 77 | + </bpmn:ioSpecification> |
| 78 | + <bpmn:dataOutputAssociation> |
| 79 | + <bpmn:sourceRef>repair_bpmn_Output_candidateBpmn</bpmn:sourceRef> |
| 80 | + <bpmn:targetRef>candidateBpmn</bpmn:targetRef> |
| 81 | + </bpmn:dataOutputAssociation> |
| 82 | + </bpmn:serviceTask> |
| 83 | + <bpmn:serviceTask id="admit_bpmn_source" name="Admit lint-clean BPMN source"> |
| 84 | + <bpmn:documentation>Admit only lint-clean BPMN through qianji-server BPMN source admission and return the server-owned source reference.</bpmn:documentation> |
| 85 | + <bpmn:ioSpecification> |
| 86 | + <bpmn:dataOutput id="admit_bpmn_source_Output_admittedBpmnSourceRef" name="admittedBpmnSourceRef" /> |
| 87 | + <bpmn:outputSet id="admit_bpmn_source_OutputSet"> |
| 88 | + <bpmn:dataOutputRefs>admit_bpmn_source_Output_admittedBpmnSourceRef</bpmn:dataOutputRefs> |
| 89 | + </bpmn:outputSet> |
| 90 | + </bpmn:ioSpecification> |
| 91 | + <bpmn:dataOutputAssociation> |
| 92 | + <bpmn:sourceRef>admit_bpmn_source_Output_admittedBpmnSourceRef</bpmn:sourceRef> |
| 93 | + <bpmn:targetRef>admittedBpmnSourceRef</bpmn:targetRef> |
| 94 | + </bpmn:dataOutputAssociation> |
| 95 | + </bpmn:serviceTask> |
| 96 | + <bpmn:endEvent id="done_repair" /> |
| 97 | + <bpmn:sequenceFlow id="flow_start_intake" sourceRef="start_repair" targetRef="source_intake" /> |
| 98 | + <bpmn:sequenceFlow id="flow_intake_draft" sourceRef="source_intake" targetRef="draft_bpmn" /> |
| 99 | + <bpmn:sequenceFlow id="flow_draft_lint" sourceRef="draft_bpmn" targetRef="run_qianji_lint" /> |
| 100 | + <bpmn:sequenceFlow id="flow_lint_reason" sourceRef="run_qianji_lint" targetRef="reason_lint_diagnostics" /> |
| 101 | + <bpmn:sequenceFlow id="flow_reason_decision" sourceRef="reason_lint_diagnostics" targetRef="lint_decision" /> |
| 102 | + <bpmn:sequenceFlow id="flow_lint_admit" sourceRef="lint_decision" targetRef="admit_bpmn_source" /> |
| 103 | + <bpmn:sequenceFlow id="flow_lint_repair" sourceRef="lint_decision" targetRef="repair_bpmn"> |
| 104 | + <bpmn:conditionExpression>repairRequired</bpmn:conditionExpression> |
| 105 | + </bpmn:sequenceFlow> |
| 106 | + <bpmn:sequenceFlow id="flow_repair_lint" sourceRef="repair_bpmn" targetRef="run_qianji_lint" /> |
| 107 | + <bpmn:sequenceFlow id="flow_admit_done" sourceRef="admit_bpmn_source" targetRef="done_repair" /> |
| 108 | + </bpmn:process> |
| 109 | +</bpmn:definitions> |
0 commit comments