{
 "schema": "skillalmanac-eval-bundle-v1",
 "skill": "/skills/skill-almanac/skill-authoring-and-evals",
 "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": "skill-authoring-and-evals",
  "procedure": "measured-v1",
  "runs_per_config": 3,
  "executor_model": "claude-haiku-5-5",
  "grader_model": "claude-sonnet-5-5",
  "date": "2026-11-22",
  "tasks": [
   {
    "task": "t1-runbook-to-skill",
    "authored": false,
    "authored_date": null,
    "assertions_authored": true,
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "tie",
      "with_pass": 4,
      "with_total": 7,
      "base_pass": 4,
      "base_total": 7,
      "with_score": 7,
      "base_score": 5,
      "reason": "Both pass 4/7: X is perfectly faithful but its description has no wrong-job boundary and its reply lacks trigger or with/without testing. Y has the boundary and a strong test plan but invents a 15m timeout, wait command and report format.",
      "ab": "X=baseline"
     },
     {
      "run": 2,
      "status": "ok",
      "preference": "baseline",
      "with_pass": 4,
      "with_total": 7,
      "base_pass": 5,
      "base_total": 7,
      "with_score": 7,
      "base_score": 6,
      "reason": "Y keeps the runbook faithful and meets the script checks, though its description names no wrong job and its trigger test is thin. X has the better description and test plan but adds confirmation gates the runbook does not contain and sits in a nested path.",
      "ab": "X=with_skill"
     },
     {
      "run": 3,
      "status": "ok",
      "preference": "with_skill",
      "with_pass": 5,
      "with_total": 7,
      "base_pass": 5,
      "base_total": 7,
      "with_score": 6,
      "base_score": 6,
      "reason": "X's description has the wrong-job boundary and its test plan is far more rigorous, which matters most for loading correctly. Y is more faithful with no invented commands, so the margin is small.",
      "ab": "X=with_skill"
     }
    ]
   },
   {
    "task": "t2-fix-silent-skill",
    "authored": false,
    "authored_date": null,
    "assertions_authored": true,
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "with_skill",
      "with_pass": 5,
      "with_total": 7,
      "base_pass": 5,
      "base_total": 7,
      "with_score": 7,
      "base_score": 6,
      "reason": "X adds a 'Do not use for' boundary and covers .sql files, which Y lacks. Both leave the user without a way to confirm the fix, and X's reply is longer and partly blames the body.",
      "ab": "X=with_skill"
     },
     {
      "run": 2,
      "status": "ok",
      "preference": "with_skill",
      "with_pass": 5,
      "with_total": 7,
      "base_pass": 5,
      "base_total": 7,
      "with_score": 7,
      "base_score": 5,
      "reason": "Y adds the boundary clause (not for writing, optimizing or running SQL or other languages) that X lacks. X also spent reply space on a path mix-up, though both lack confirmation steps.",
      "ab": "X=baseline"
     },
     {
      "run": 3,
      "status": "ok",
      "preference": "with_skill",
      "with_pass": 6,
      "with_total": 7,
      "base_pass": 5,
      "base_total": 7,
      "with_score": 7,
      "base_score": 5,
      "reason": "X includes a plausible boundary (not for writing SQL, running queries, tuning) and .sql wording; Y has no boundary. Y's reply also ends with an odd 'Confirmed:' line.",
      "ab": "X=with_skill"
     }
    ]
   },
   {
    "task": "t3-eval-set",
    "authored": false,
    "authored_date": null,
    "assertions_authored": true,
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "with_skill",
      "with_pass": 7,
      "with_total": 7,
      "base_pass": 3,
      "base_total": 7,
      "with_score": 9,
      "base_score": 4,
      "reason": "Y saved the exact JSON shapes with runnable checks (order regex, absent-section, size caps) and a list of labeled queries, while X's files use a different dict/prose structure that a harness cannot execute. X's content is sensible but unusable as checks.",
      "ab": "X=baseline"
     },
     {
      "run": 2,
      "status": "ok",
      "preference": "with_skill",
      "with_pass": 7,
      "with_total": 7,
      "base_pass": 3,
      "base_total": 7,
      "with_score": 9,
      "base_score": 5,
      "reason": "X delivered the required list/object formats with executable checks plus actual input PR files, including traps (reverted pair, unnumbered line). Y's content is thoughtful but in a non-conforming shape with no machine checks.",
      "ab": "X=with_skill"
     },
     {
      "run": 3,
      "status": "ok",
      "preference": "with_skill",
      "with_pass": 7,
      "with_total": 7,
      "base_pass": 3,
      "base_total": 7,
      "with_score": 9,
      "base_score": 4,
      "reason": "Y produced runnable, discriminating checks (invented-number regex, hype-word ban, group headings) in the required shape with 20 balanced queries. X's prose-only evals and dict query file cannot be run and it has only 8 positives.",
      "ab": "X=baseline"
     }
    ]
   },
   {
    "task": "t4-container-triage",
    "authored": true,
    "authored_date": "2026-11-22",
    "assertions_authored": false,
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "baseline",
      "with_pass": 4,
      "with_total": 7,
      "base_pass": 5,
      "base_total": 7,
      "with_score": 6,
      "base_score": 5,
      "reason": "Y has the exact Gate line and the right release-notes/skill reasoning, while X's gate line has extra text and its rationale is thinner. X gets lint right and Y does not, but Y passes more assertions overall.",
      "ab": "X=with_skill"
     },
     {
      "run": 2,
      "status": "ok",
      "preference": "baseline",
      "with_pass": 5,
      "with_total": 7,
      "base_pass": 6,
      "base_total": 7,
      "with_score": 5,
      "base_score": 6,
      "reason": "Y states the release-day-only rationale explicitly and gives a determinism reason for the count script. X has the nicer script/skill split but gives neither rationale.",
      "ab": "X=with_skill"
     },
     {
      "run": 3,
      "status": "ok",
      "preference": "with_skill",
      "with_pass": 6,
      "with_total": 7,
      "base_pass": 4,
      "base_total": 7,
      "with_score": 1,
      "base_score": 4,
      "reason": "Y's plan gets lint, vendor, release-day and counting rationale right, while X puts lint in a script and vendor in the always-on file. Y left no reply.md (score 1 per brief), so the preference is on the plan only.",
      "ab": "X=baseline"
     }
    ]
   },
   {
    "task": "t5-trigger-overfit-diagnosis",
    "authored": true,
    "authored_date": "2026-11-22",
    "assertions_authored": false,
    "runs": [
     {
      "run": 1,
      "status": "ok",
      "preference": "tie",
      "with_pass": 5,
      "with_total": 7,
      "base_pass": 5,
      "base_total": 7,
      "with_score": 6,
      "base_score": 6,
      "reason": "Both keep the dedupe description and reach the same numbers and next step, so both fail the keyword and overfit-reasoning assertions. Y also computes 20% literally, X only as 20.0%, a cosmetic difference.",
      "ab": "X=baseline"
     },
     {
      "run": 2,
      "status": "ok",
      "preference": "with_skill",
      "with_pass": 7,
      "with_total": 7,
      "base_pass": 6,
      "base_total": 7,
      "with_score": 8,
      "base_score": 6,
      "reason": "Y passes every assertion, reverting the last keyword per the overfit rule with a candid unmeasured-cost caveat. X's rewrite adds the word 'repeated' straight from a held-out failure, which breaks the script check and the README's no-tuning-on-held-out rule.",
      "ab": "X=baseline"
     },
     {
      "run": 3,
      "status": "ok",
      "preference": "with_skill",
      "with_pass": 7,
      "with_total": 7,
      "base_pass": 5,
      "base_total": 7,
      "with_score": 9,
      "base_score": 6,
      "reason": "X recognises the held-out gap as overfit and reverts the last keyword, passing all assertions with the unverified cost stated. Y keeps the dedupe wording because the tuning slice passes, which is the reasoning the task rejects.",
      "ab": "X=with_skill"
     }
    ]
   }
  ],
  "with_pass": 84,
  "with_total": 105,
  "base_pass": 69,
  "base_total": 105,
  "pairs": 15,
  "pairs_won_with_skill": 10,
  "consistency": 0.667,
  "harmed_tasks": [],
  "verdict": "LIFT",
  "tokens": {
   "author": 204595,
   "baseline": 1065244,
   "with_skill": 1202269,
   "grader": 500187,
   "check": 107821,
   "total": 3080116
  },
  "notes": [
   "Tasks t1-t3 shipped with empty assertion lists (batch_05_sonnet/skill-authoring-and-evals/evals/evals.json and efficacy_runs/manifest.json); seven assertions per task were authored on 2026-11-22 (new_tasks/skill-authoring-and-evals.assertions.json, flagged assertions_authored) by a Sonnet agent that did not open any run output. The runs themselves had already been executed.",
   "A first grading of t1 in which the grader invented its own five assertions (because none were listed) was discarded; t1 was regraded on the authored assertions. The discarded grading's tokens are in PRODUCTION_LOG.jsonl.",
   "t4 and t5 were authored on 2026-11-22 (Haiku draft, Sonnet check)."
  ],
  "v2_validation": {
   "procedure_applied": "measured-v2 statistics on imported v1 data (no executor re-run)",
   "n_tasks": 5,
   "n_pairs": 15,
   "delta": 0.1429,
   "se": 0.1117,
   "ci95_t": [
    -0.1672,
    0.4529
   ],
   "ci95_bootstrap": [
    -0.0095,
    0.3619
   ],
   "win_score": 0.833,
   "verdict_v2": "LIFT_UNCONFIRMED",
   "credit_v2": 14.2,
   "gate": "continue",
   "mde_80": 0.3234,
   "inconsistent_order_pairs": 4,
   "pass_all_with": 0.2,
   "pass_all_base": 0,
   "corr_arms": -0.5416213669330365,
   "per_task_diff": {
    "t1-runbook-to-skill": -0.048,
    "t2-fix-silent-skill": 0.048,
    "t3-eval-set": 0.571,
    "t4-container-triage": 0,
    "t5-trigger-overfit-diagnosis": 0.143
   },
   "grader_agreement": {
    "sample_tasks": [
     "t3-eval-set",
     "t4-container-triage"
    ],
    "n_assertions": 84,
    "raw_agreement": 0.964,
    "cohen_kappa": 0.916,
    "second_grader": "claude-opus-5-5",
    "threshold": 0.6,
    "flag": null
   },
   "order_bias": {
    "inconsistent_pairs": 4,
    "share": 0.267,
    "flag": "preference_order_inconsistent (>25%)",
    "note": "in the original order the grader preferred baseline in 3 pairs and tied in 2; in the swapped order it preferred the skill in 14 of 15 (tie in 1)"
   },
   "note": "Computed from the existing v1 executor outputs and v1 grader-1 assertion grading; added: swapped-order preference (Sonnet) on all 15 pairs and Opus second-grader assertions on t3 and t4 (6 pairs). Only 5 tasks exist (v2 minimum is 6), so this is a validation of the machinery, not a v2 measurement. No executor was re-run."
  }
 }
}
