Setting the file. One moment.
SSL · Error Messages · github/gh-aw · Skills Docs
ContentsBack to the top of the page
Raw file
ssl.json
JSON · 84 lines · 4 KB
: [
"$error_message"
],
9 "dependencies" : [],
10 "control_flow_features" : [ "conditional" , "sequential" ],
11 "entry_scene" : "scene_reason" ,
12 "subscene_refs" : []
13 },
14 "scenes" : [
15 {
16 "id" : "scene_reason" ,
17 "type" : "REASON" ,
18 "goal" : "Determine error category and required message components" ,
19 "entry_condition" : "$error_context and $validation_rule are available" ,
20 "exit_condition" : "$error_category and $message_components are selected" ,
21 "next_scene_rules" : [{ "condition" : "category determined" , "target" : "scene_act" }],
22 "inputs" : [ "$error_context" , "$invalid_input" , "$validation_rule" ],
23 "outputs" : [ "$error_category" , "$message_components" ],
24 "entry_logic_step" : "step_reason_classify"
25 },
26 {
27 "id" : "scene_act" ,
28 "type" : "ACT" ,
29 "goal" : "Compose error message string using the three-part template" ,
30 "entry_condition" : "$error_category and $message_components are ready" ,
31 "exit_condition" : "$error_message is composed" ,
32 "next_scene_rules" : [{ "condition" : "success" , "target" : "scene_verify" }],
33 "inputs" : [ "$error_category" , "$message_components" , "$invalid_input" ],
34 "outputs" : [ "$error_message" ],
35 "entry_logic_step" : "step_act_compose"
36 },
37 {
38 "id" : "scene_verify" ,
39 "type" : "VERIFY" ,
40 "goal" : "Verify that the composed error message is complete and actionable" ,
41 "entry_condition" : "$error_message is composed" ,
42 "exit_condition" : "$error_message passes completeness check" ,
43 "next_scene_rules" : [
44 { "condition" : "message is complete and actionable" , "target" : "END_SUCCESS" },
45 { "condition" : "message is incomplete" , "target" : "END_FAIL" }
46 ],
47 "inputs" : [ "$error_message" ],
48 "outputs" : [ "$error_message" ],
49 "entry_logic_step" : "step_verify_check"
50 }
51 ],
52 "logic_steps" : [
53 {
54 "id" : "step_reason_classify" ,
55 "scene_id" : "scene_reason" ,
56 "action_type" : "SELECT" ,
57 "resource_scope" : "MEMORY" ,
58 "description" : "Classify the error as format, type, enum, or configuration validation to determine required message components" ,
59 "inputs" : { "context" : "$error_context" , "rule" : "$validation_rule" },
60 "outputs" : { "category" : "$error_category" , "components" : "$message_components" },
61 "next" : "YIELD_SUCCESS"
62 },
63 {
64 "id" : "step_act_compose" ,
65 "scene_id" : "scene_act" ,
66 "action_type" : "WRITE" ,
67 "resource_scope" : "MEMORY" ,
68 "description" : "Compose the error message string: [what is wrong]. [what is expected]. [example of correct usage]" ,
69 "inputs" : { "category" : "$error_category" , "components" : "$message_components" , "input" : "$invalid_input" },
70 "outputs" : { "message" : "$error_message" },
71 "next" : "YIELD_SUCCESS"
72 },
73 {
74 "id" : "step_verify_check" ,
75 "scene_id" : "scene_verify" ,
76 "action_type" : "VALIDATE" ,
77 "resource_scope" : "MEMORY" ,
78 "description" : "Check that $error_message contains all three template components: problem statement, expected format or values, and a concrete usage example" ,
79 "inputs" : { "message" : "$error_message" },
80 "outputs" : { "validated" : "$error_message" },
81 "next" : "YIELD_SUCCESS"
82 }
83 ]
84 }