Repository navigation
Commit 3d35861
committed
📝 docs: make the bounded repair workflow an executable branch
The repair example was a fragment: it showed the failure branch and said
core had no conditional to select it, pointing at #78 for the missing half.
This PR is that half, so the example becomes a whole workflow — <SafeParse>
binds the result, <If> reads result.value on success, and <Else> quotes
result.input, renders result.errors into one corrective prompt, and
validates the reply with <Parse>.
The bound is structural rather than a counter: <If> expands one branch and
never the other, so only the initial attempt and one corrective attempt can
execute, and nothing in the failure branch returns to the start.
Verified by running the documented shape end to end — the success branch
renders the validated value and never sends the repair prompt; the failure
branch renders the input and its issues and validates the correction.1 parent c6f49ca commit 3d35861
1 file changed
Lines changed: 36 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
102 | 112 | | |
103 | 113 | | |
104 | 114 | | |
| |||
110 | 120 | | |
111 | 121 | | |
112 | 122 | | |
113 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
114 | 129 | | |
115 | 130 | | |
116 | 131 | | |
| |||
335 | 350 | | |
336 | 351 | | |
337 | 352 | | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
343 | 361 | | |
344 | 362 | | |
345 | 363 | | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
354 | 375 | | |
355 | 376 | | |
356 | 377 | | |
| |||
0 commit comments