SDD: a change counts only after the verifier agrees

An approved specification, one failed attempt, one repair and a receipt — in a local rehearsal of the SDD workflow.

A small code change

One failed check. One repair.

Reconstructed rehearsal with model replies prepared in advance — not a verbatim chat or a live agent run.
  1. Request

    A small local project had a function, sum.mjs, that returned a - b. The intent was simple: make it add.

    sum.mjs
    a - b
  2. Workflow · specification

    only sum.mjs may change, the criterion is sum(2,3) equals 5, the verifier is a local verify.mjs, and one repair attempt is allowed.

  3. Human approvalapproved

    A person approved exactly that specification, bound to its hash.

    Approved specification
    Only sum.mjs · sum(2,3) = 5 · verify.mjs · one repair
  4. Local verifierfailed

    The first proposed change (a*b) failed the verifier.

    sum.mjs · first attempt
    a*b · FAIL
  5. Workflow · one repairrepaired

    One repair produced a+b, which passed as revision 2. The verifier file itself was not changed.

    sum.mjs · revision 2
    a+b · PASS
  6. Run receiptcomplete

    The run ended with a receipt: the pins used, one failed check, one repair, the final pass, zero external sends and zero paid calls.

    Receipt
    One failed check · one repair · final PASS · zero external sends · zero paid calls
Used in this showcase

Use this workflow in your project

    Loading the catalog…

    Evidence

    What the rehearsal verified

    Receipt
    A receipt records the run, its version pins, one failed check, one repair and the final pass; it is fingerprinted with SHA-256.
    Approval
    The specification was approved as one exact version, bound to its hash.
    Independent check
    A wrong hash was rejected without changing the file; the correct approval led to verifier FAIL → repair → PASS.
    Rehearsal
    Model replies in this rehearsal were prepared in advance. It demonstrates the workflow's gates, not a live model.
    Released workflow
    The workflow was installed from the Registry release that was current at run time and run again: approval, verifier FAIL, one repair, PASS. A stale approval was refused, and resume did not repeat a completed step.