{
 "schema": "skillalmanac-eval-bundle-v1",
 "skill": "/skills/skill-almanac/workflow-automation-builder",
 "note": "Stored per-task, per-run records of the measured with/without comparison. Executor outputs and grading folders are not included. Both models are AI models from one family; there is no human grader.",
 "record": {
  "slug": "workflow-automation-builder",
  "procedure": "measured-v2",
  "stage": "final",
  "executor_model": "claude-haiku-5-5",
  "grader_model": "claude-sonnet-5-5",
  "second_grader_model": "claude-opus-5-5",
  "date": "2026-11-22",
  "runs_per_config": 1,
  "tasks": [
   {
    "task": "v2-t1-double-slack-orders",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "Assertion 4 (literal token absent) penalises Y for quoting the leaked token only to say it must be revoked; the script and the judge criterion (reference by name) disagree for Y.",
     "Dead-letter assertion needs specific vocabulary; Y has an equivalent (failed status, scheduled recovery, alert) and fails on wording.",
     "Assertions 1, 2 and 5 are passed trivially by almost any serious attempt.",
     "No assertion checks that dedupe is atomic (insert-as-check vs read-then-write race) or that a crash after the early reply cannot lose orders; Y covers both, X only partly.",
     "No assertion checks that unfilled placeholders (owner, addresses) are flagged for the builder."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "baseline",
      "order_a": "baseline",
      "order_b": "baseline",
      "order_consistent": true,
      "with_pass": 7,
      "with_total": 8,
      "with_unknown": 0,
      "base_pass": 6,
      "base_total": 8,
      "base_unknown": 0,
      "with_score": 6,
      "base_score": 8,
      "reason": "Y delivers a complete buildable spec with explicit empty-email handling, a test plan including the repeated delivery and crash recovery; its only blemish is quoting the exposed token string. X is clean on secrets and has dead-letter, but omits 1004 handling and the test plan."
     }
    ]
   },
   {
    "task": "v2-t2-lead-intake-rate-limit",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "Test-event assertions say 'has an email' at event level, but both sides nest it (body/submission); a naive top-level script would fail both, so the check is ambiguous.",
     "'stop' or 'paused' is a keyword check; X partly passes via 'Silent stop' (a different meaning), so it does not verify a real pause procedure.",
     "Script assertions 1-3 and 5 are trivially passed by both.",
     "No assertion checks the 'contains test' substring risk (Latest/Contest); both flagged it, X chose whole-word matching which deviates from the stated rule.",
     "No assertion checks the drain-time arithmetic (800 calls at 60/min) or that a no-email high-score US/CA lead gets no sales alert."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "tie",
      "order_a": "with_skill",
      "order_b": "baseline",
      "order_consistent": false,
      "with_pass": 8,
      "with_total": 8,
      "with_unknown": 0,
      "base_pass": 7,
      "base_total": 8,
      "base_unknown": 0,
      "with_score": 8,
      "base_score": 8,
      "reason": "X adds dedupe, dead-letter, kill switch, heartbeat and many failure tests, making it more complete for on-call use. Y is leaner with a clearer explicit queue and token bucket and an accurate drain estimate, but its runbook lacks a stop/pause procedure and its test set is thinner."
     }
    ]
   },
   {
    "task": "v2-t3-invoice-approval",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "The numeric-amount script check penalises Y for string amounts, which match how a spreadsheet delivers values; it tests format, not correctness.",
     "'Two events share invoice_no' is ambiguous when a scenario holds several rows.",
     "Assertion 3 (remind/escalat/cfo keywords) is passed trivially by both and does not verify working-day timing; only the judge assertion does.",
     "No assertion checks that rejected invoices go back to the requester with the reason, or the case of a missing department head.",
     "No assertion checks that a resent duplicate with a changed amount is not paid."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "baseline",
      "order_a": "baseline",
      "order_b": "baseline",
      "order_consistent": true,
      "with_pass": 7,
      "with_total": 8,
      "with_unknown": 0,
      "base_pass": 7,
      "base_total": 8,
      "base_unknown": 0,
      "with_score": 7,
      "base_score": 8,
      "reason": "Y uses real working-day timers and has richer scenarios (simultaneous duplicate, changed-amount resend, double-click approve), whereas X approximates working days as calendar days, which the task rules out. X wins only on numeric amounts in the test file and extra payment-API failure tests."
     }
    ]
   },
   {
    "task": "v2-t4-stopped-running",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "The four diagnosis keyword assertions are passed trivially by both sides.",
     "The fixed_design keyword assertion is easy to game; 'alert','retr' and 'credential' appear in almost any design.",
     "The replay-without-resending-emails requirement is bundled with three other criteria in one judge item, hiding partial credit.",
     "No assertion checks handling of the gap after 11-04; both flagged the log ends 11-04 and did not invent numbers."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "baseline",
      "order_a": "baseline",
      "order_b": "baseline",
      "order_consistent": true,
      "with_pass": 6,
      "with_total": 7,
      "with_unknown": 0,
      "base_pass": 7,
      "base_total": 7,
      "base_unknown": 0,
      "with_score": 7,
      "base_score": 8,
      "reason": "X's design includes an explicit backfill of the missed leads that skips welcome emails, which Y leaves out of its JSON. Y's design is more detailed (reconcile, cursor, heartbeat) but does not cover replaying the 7 missed days."
     }
    ]
   },
   {
    "task": "v2-t5-orders-script-near-miss",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "All assertions are passed trivially by both sides; the task is too easy to separate them.",
     "No assertion checks robustness (whitespace/case in status, bad rows) or rerunnability.",
     "Reading from the folder root rather than files/<task>/orders.csv is undecidable from the task text and unchecked."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "tie",
      "order_a": "tie",
      "order_b": "tie",
      "order_consistent": true,
      "with_pass": 6,
      "with_total": 6,
      "with_unknown": 0,
      "base_pass": 6,
      "base_total": 6,
      "base_unknown": 0,
      "with_score": 9,
      "base_score": 9,
      "reason": "Both scripts are near-identical (csv, Decimal rounding, paid filter) and produce the correct summary.json. Both noted the missing files/ path and read orders.csv from the script folder."
     }
    ]
   },
   {
    "task": "v2-t6-onboarding-ambiguous",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "All five script assertions are passed by both sides; keywords like 'start' and 'alert' are trivially present.",
     "Stable-key judge item is passed by both even though Y's hire_id column is assumed rather than derived from the notes.",
     "No assertion checks that the spec avoids fabricating an HR API or that open questions are specific.",
     "The 'sk-' secret regex check is weak and cannot detect secrets in other formats."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "baseline",
      "order_a": "baseline",
      "order_b": "baseline",
      "order_consistent": true,
      "with_pass": 6,
      "with_total": 7,
      "with_unknown": 0,
      "base_pass": 7,
      "base_total": 7,
      "base_unknown": 0,
      "with_score": 6,
      "base_score": 9,
      "reason": "X handles the forgotten-laptop and missing-Slack cases with reminders, escalation, a pre-start readiness check and a day-one check, plus explicit personal-data rules. Y is a clean idempotent pipeline but has no check before the start date and fires laptop/buddy only at row creation."
     }
    ]
   },
   {
    "task": "v2-t7-ticket-routing",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "Rows/CSV assertions (3-5) are passed by both sides; they only test sample handling.",
     "The 'trigger'/'filter' word check penalises a valid spec that uses other vocabulary (Y), so it measures wording, not design.",
     "No assertion checks the billing-vs-incidents tie-break or that the incidents route actually pages on-call.",
     "No assertion checks that the Slack webhooks for #billing/#incidents exist (rules name only one secret)."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "with_skill",
      "order_a": "with_skill",
      "order_b": "with_skill",
      "order_consistent": true,
      "with_pass": 8,
      "with_total": 8,
      "with_unknown": 0,
      "base_pass": 6,
      "base_total": 8,
      "base_unknown": 0,
      "with_score": 9,
      "base_score": 6,
      "reason": "X covers Slack failure (retry, dead letter, alert), persisted dedupe state and a tie-break, with a fuller runbook. Y routes the sample correctly but omits failure handling and misses the trigger/filter wording."
     }
    ]
   },
   {
    "task": "v2-t8-weekly-report-rerun",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "The 'trigger' word check fails a spec that uses 'schedule' (X) while the design is equivalent.",
     "The 'safe' word in the guide is a wording test; both sides fail it despite good guides.",
     "Sunny-Day-77 and Europe/Berlin checks are trivially passed by both.",
     "No assertion checks the DST ambiguity beyond the zone string, or that a crash mid-send does not auto-resend."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "tie",
      "order_a": "baseline",
      "order_b": "tie",
      "order_consistent": false,
      "with_pass": 6,
      "with_total": 7,
      "with_unknown": 0,
      "base_pass": 5,
      "base_total": 7,
      "base_unknown": 0,
      "with_score": 7,
      "base_score": 8,
      "reason": "X's single resume-by-run-key button with per-recipient states, stored summary and explicit unknown-after-attempt handling is cleaner and safer for the person pressing it. Y is sound too but its loop wiring is awkward and any non-ambiguous send failure leaves rows needing manual edits."
     }
    ]
   },
   {
    "task": "v2-t9-review-existing-spec",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "Rate-limit/numeric and 'idempotency'/'retry' keyword checks are passed trivially by both.",
     "Neither side flags per-minute polling, so the judge item on that is failed by both and does not discriminate.",
     "No assertion checks that the Slack post is gated on invoice success or that fixed_spec follows a consistent workflow schema (X has steps/next, Y keeps ad hoc structure).",
     "The literal-key check only looks for the full key; a partial leak would not be caught."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "with_skill",
      "order_a": "with_skill",
      "order_b": "with_skill",
      "order_consistent": true,
      "with_pass": 7,
      "with_total": 8,
      "with_unknown": 0,
      "base_pass": 6,
      "base_total": 8,
      "base_unknown": 0,
      "with_score": 9,
      "base_score": 6,
      "reason": "X fixes more (dead-letter, owner/alert, processed-store) and never prints the live key. Y reprints the full live key in review.md and has a thinner failure path."
     }
    ]
   },
   {
    "task": "v2-t10-donation-mailing",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "Assertion 5 is brittle: refund-for-suppressed events (X T07, Y T08) and a live-list event (Y T06) legitimately do not say 'suppressed' yet fail it; both sides fail on it.",
     "Assertions 1-4 are trivial for any attempt since the sample CSV supplies all the cases.",
     "The 'suppress' keyword in assertions 1 and 5 can be satisfied by a filter name such as not_suppressed.",
     "Nothing checks that a duplicate does not cause a second email, or that a suppressed donor's refund is handled."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "with_skill",
      "order_a": "with_skill",
      "order_b": "with_skill",
      "order_consistent": true,
      "with_pass": 6,
      "with_total": 7,
      "with_unknown": 0,
      "base_pass": 6,
      "base_total": 7,
      "base_unknown": 0,
      "with_score": 8,
      "base_score": 7,
      "reason": "Y checks suppression live, which directly answers the weekly-stale-list risk, hashes the address, and covers many more failure paths (outage fail-closed, lost response, 429). X is clean and compact but only reloads the CSV per batch and does not flag staleness as a risk."
     }
    ]
   },
   {
    "task": "v2-t11-delivery-audit-near-miss",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "All five assertions are passed trivially by both sides; the task is deterministic from 25 log lines.",
     "Assertion 2 'no line mentions E02/E05/E11' would wrongly penalise an answer that explains them inside failures.txt.",
     "Nothing checks the reply wording or that the reported status is the last attempt status."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "tie",
      "order_a": "tie",
      "order_b": "tie",
      "order_consistent": true,
      "with_pass": 5,
      "with_total": 5,
      "with_unknown": 0,
      "base_pass": 5,
      "base_total": 5,
      "base_unknown": 0,
      "with_score": 9,
      "base_score": 9,
      "reason": "The failures.txt files are identical and both replies are correct plain audits. Y lists the nine delivered ids, X names the three eventual successes; equal value."
     }
    ]
   },
   {
    "task": "v2-t12-never-miss-complaints-ambiguous",
    "authored": true,
    "held_out": true,
    "has_reference": true,
    "assertions_authored": false,
    "critique": [
     "Script assertion 1 requires the word 'trigger', penalising Y for vocabulary rather than design.",
     "Assertion 3 accepts 'dedup' or 'escalat' alone, so the judge assertion carries the escalation check; X passes script 3 via dead-letter without escalating unacknowledged complaints.",
     "The no-positive-promise check is trivially passed by both.",
     "Nothing checks per-record owner and deadline, or that the phone-log delay is addressed in the design itself."
    ],
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "baseline",
      "order_a": "baseline",
      "order_b": "baseline",
      "order_consistent": true,
      "with_pass": 6,
      "with_total": 7,
      "with_unknown": 0,
      "base_pass": 6,
      "base_total": 7,
      "base_unknown": 0,
      "with_score": 6,
      "base_score": 8,
      "reason": "Y delivers what the owner asked for: one log with owners, timers and escalation for unacknowledged complaints plus a silent-source check. X has a cleaner integration skeleton but no per-complaint deadline or escalation, and unassigned owners mean complaints can still be missed; Y's only script miss is the keyword 'trigger'."
     }
    ]
   }
  ],
  "with_pass": 78,
  "with_total": 86,
  "base_pass": 74,
  "base_total": 86,
  "inconsistent_order_pairs": 2,
  "stats": {
   "n_tasks": 12,
   "n_pairs": 12,
   "with_rate": 0.9092261904761905,
   "base_rate": 0.8690476190476191,
   "delta": 0.04017857142857142,
   "se": 0.03384766212904123,
   "ci_low": -0.034320132917448336,
   "ci_high": 0.11467727577459116,
   "win_score": 0.4166666666666667,
   "win_ci_low": 0.151446604855972,
   "win_ci_high": 0.6818867284773613,
   "corr_arms": 0.20789593502674716,
   "between_task_var": 0.013747970779220782,
   "within_task_var": null,
   "pass_all_with": 0.3333333333333333,
   "pass_all_base": 0.3333333333333333,
   "mde_80": 0.17557221686056523,
   "harmed_tasks": [
    "v2-t4-stopped-running",
    "v2-t6-onboarding-ambiguous"
   ],
   "saturated_tasks": [
    "v2-t5-orders-script-near-miss",
    "v2-t11-delivery-audit-near-miss"
   ],
   "verdict": "HARMED"
  },
  "verdict": "HARMED",
  "tokens": {
   "authoring": 107308,
   "refcheck": 214449,
   "with_skill": 1062478,
   "baseline": 868599,
   "grading": 891297,
   "total": 3144131
  }
 }
}
