@@ -41,7 +41,7 @@ export const VALIDATOR_PROMPT_VARIANTS: ValidatorPromptVariant[] = [
4141 key : 'structure' ,
4242 label : 'Structure & YAML' ,
4343 description : 'YAML correctness, duplicate IDs, ID format, schema conformance' ,
44- rules : [ 'yaml-correctness' , 'schema-conformance' , 'duplicate-ids' , 'id-format' ] ,
44+ rules : [ 'yaml-correctness' , 'schema-conformance' , 'duplicate-ids' , 'id-format' , 'thinking-block' ] ,
4545 prompt : `${ PREAMBLE }
4646
4747Focus ONLY on structural and YAML issues. Generate an event registration system with these exact components, each with intentional structural problems:
@@ -94,7 +94,7 @@ IMPORTANT: Only generate \`\`\`mdma blocks when explicitly asked or on the first
9494 key : 'bindings' ,
9595 label : 'Bindings & References' ,
9696 description : 'Binding syntax, resolution, deep field validation, action references' ,
97- rules : [ 'binding-syntax' , 'binding-resolution' , 'action-references' ] ,
97+ rules : [ 'binding-syntax' , 'binding-resolution' , 'action-references' , 'thinking-block' ] ,
9898 prompt : `${ PREAMBLE }
9999
100100Focus ONLY on binding and reference issues. Generate a contact submission workflow with these exact components, each with intentional binding/reference problems:
@@ -146,7 +146,7 @@ IMPORTANT: Only generate \`\`\`mdma blocks when explicitly asked or on the first
146146 key : 'pii' ,
147147 label : 'PII & Sensitive Data' ,
148148 description : 'Sensitive flags, required markers' ,
149- rules : [ 'sensitive-flags' , 'required-markers' ] ,
149+ rules : [ 'sensitive-flags' , 'required-markers' , 'thinking-block' ] ,
150150 prompt : `${ PREAMBLE }
151151
152152Focus ONLY on PII and data sensitivity issues. Generate a KYC (Know Your Customer) verification form with these exact components, each missing sensitive/required flags:
@@ -192,7 +192,7 @@ IMPORTANT: Only generate \`\`\`mdma blocks when explicitly asked or on the first
192192 key : 'forms' ,
193193 label : 'Form Validation' ,
194194 description : 'Select options, field name typos, placeholder content, expected components' ,
195- rules : [ 'select-options' , 'field-name-typos' , 'placeholder-content' , 'expected-components' ] ,
195+ rules : [ 'select-options' , 'field-name-typos' , 'placeholder-content' , 'expected-components' , 'thinking-block' ] ,
196196 prompt : `${ PREAMBLE }
197197
198198Focus ONLY on form-specific issues. Generate a single job application form with intentional problems:
@@ -232,7 +232,7 @@ IMPORTANT: Only generate \`\`\`mdma blocks when explicitly asked or on the first
232232 key : 'tables-charts' ,
233233 label : 'Tables & Charts' ,
234234 description : 'Table data keys, chart axis validation' ,
235- rules : [ 'table-data-keys' , 'chart-validation' ] ,
235+ rules : [ 'table-data-keys' , 'chart-validation' , 'thinking-block' ] ,
236236 prompt : `${ PREAMBLE }
237237
238238Focus ONLY on table and chart data issues. Generate a sales dashboard with these exact components, each with intentional problems:
@@ -262,8 +262,8 @@ Generate all 4 components with the intentional mismatches described above.`,
262262 {
263263 key : 'flow' ,
264264 label : 'Stepper Flow' ,
265- description : 'Flow ordering, unreferenced components , action targets, expected components' ,
266- rules : [ 'flow-ordering' , 'unreferenced-components ' , 'action-references' , 'expected-components' ] ,
265+ description : 'Flow ordering, thinking block , action targets, expected components' ,
266+ rules : [ 'flow-ordering' , 'thinking-block ' , 'action-references' , 'expected-components' ] ,
267267 prompt : `${ PREAMBLE }
268268
269269Focus ONLY on component flow and reference issues. Generate a user registration and approval workflow with ALL of these intentional problems:
@@ -307,7 +307,7 @@ IMPORTANT: Only generate \`\`\`mdma blocks when explicitly asked to generate a s
307307 key : 'approval' ,
308308 label : 'Approval & Webhooks' ,
309309 description : 'Field name typos on approval-gate, action references on webhooks' ,
310- rules : [ 'field-name-typos' , 'action-references' , 'schema-conformance' ] ,
310+ rules : [ 'field-name-typos' , 'action-references' , 'schema-conformance' , 'thinking-block' ] ,
311311 prompt : `${ PREAMBLE }
312312
313313Focus ONLY on approval gate and webhook issues. Generate an expense approval workflow with these exact components, each with intentional problems:
@@ -611,21 +611,31 @@ export const SAMPLE_TABLE_DATA: Record<string, Record<string, Array<Record<strin
611611 */
612612export const FLOW_EXPECTED_COMPONENTS : Record < string , Record < string , ExpectedComponent > [ ] > = {
613613 flow : [
614- // Step 1: Registration form
614+ // Step 1: Registration form + success callout
615615 {
616616 'registration-form' : {
617617 type : 'form' ,
618618 fields : [ 'full-name' , 'email' , 'department' ] ,
619+ actions : { onSubmit : 'registration-submitted' } ,
619620 } ,
621+ 'registration-submitted' : { type : 'callout' } ,
620622 } ,
621- // Step 2: Approval gate
623+ // Step 2: Approval gate + success callout
622624 {
623- 'approval-gate' : { type : 'approval-gate' } ,
625+ 'approval-gate' : {
626+ type : 'approval-gate' ,
627+ actions : { onApprove : 'approval-complete' } ,
628+ } ,
629+ 'approval-complete' : { type : 'callout' } ,
624630 } ,
625- // Step 3: Webhook + button
631+ // Step 3: Webhook + button + success callout
626632 {
627- 'notify-webhook' : { type : 'webhook' } ,
633+ 'notify-webhook' : {
634+ type : 'webhook' ,
635+ actions : { trigger : 'send-notification' } ,
636+ } ,
628637 'send-notification' : { type : 'button' } ,
638+ 'workflow-complete' : { type : 'callout' } ,
629639 } ,
630640 ] ,
631641} ;
0 commit comments