Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
macos:
name: macOS (Swift 6.3)
runs-on: macos-26
# Bound a hang. The default is 6 hours, so a job that stops making progress burns the whole budget
# and reports a generic timeout hours later. The full build + suite takes ~2 minutes; 20 leaves ample
# headroom while turning a stall into a fast, legible failure.
timeout-minutes: 20
permissions:
contents: read
env:
Expand All @@ -39,6 +43,7 @@ jobs:
linux:
name: Ubuntu (Swift 6.3)
runs-on: ubuntu-latest
timeout-minutes: 20
container: swift:6.3 # official Swift image — deterministic toolchain, no third-party setup action
permissions:
contents: read
Expand Down
21 changes: 14 additions & 7 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ structured evidence, and ship a `SKILL.md` edit only after a previously-failing
> [Specs/010](Specs/010-ab-baseline/plan.md), [Specs/011](Specs/011-grounded-judge/plan.md),
> [Specs/012](Specs/012-deterministic-scorers/plan.md)).
> **Phase 3 — F26+F32 (`skillet capture`, scrubbed + scored session bundles) shipped; Phase 4 — F33
> (`skillet triage`, the free corpus failure taxonomy) shipped** ([Specs/013](Specs/013-capture-session-evidence/plan.md)–[Specs/016](Specs/016-corpus-triage/plan.md)).
> (`skillet triage`, the free corpus failure taxonomy) shipped; Phase 6 — F41 (`skillet suggest`,
> drafted `SKILL.md` edits from observed evidence) shipped** ([Specs/013](Specs/013-capture-session-evidence/plan.md)–[Specs/018](Specs/018-draft-edit-proposals/plan.md)).
> `Package.swift` plus `EDDCore`, `TraceKit`,
> `ProjectKit`, `RenderKit`, `HarnessKit`, `LintKit`, `ScoreKit`, `JudgeKit`, `RunKit`, `CorpusKit`, `SanitizerKit`, `AnalysisKit`, `ConfigYAML`, and the
> `skillet` executable exist — the executable owns the full ArgumentParser command tree (no
> `skilletCLI` library; `ProjectKit` is the discovery/config-IO home) — with the full suite green
> (`swift build && swift test`). Shipped commands: `init` · `doctor` · `lint` · `score` · `run` · `capture` · `triage` · `harness
> list`/`info` — see *Commands* below. **Per-feature records live nearest the artifact**: each
> (`swift build && swift test`). For what exists right now, `skillet --help` is authoritative — this
> file does not keep a second copy of that list; see *Commands* below for what each one does. **Per-feature records live nearest the artifact**: each
> feature's detailed capsule is its [`Specs/NNN` plan](Specs/README.md) status, with design-only
> changes in [`skillet-design-changelog.md`](skillet-design-changelog.md); this banner stays a
> current-state summary — one clause per feature, no history. Everything under *Planned* is still
Expand All @@ -45,7 +46,7 @@ Contributing, security disclosure, and code of conduct are handled at the org le
[`21-DOT-DEV/.github`](https://github.com/21-DOT-DEV/.github) (`CONTRIBUTING.md`, `SECURITY.md`,
`CODE_OF_CONDUCT.md`). There are intentionally no repo-local copies.

## Commands (true now — Phase 1 / F1, F2, F4–F8)
## Commands (true now — verified against the binary by the test suite)

- `swift build` — build the package (resolves `swift-argument-parser`, `swift-subprocess`, `swift-system`, `swift-yaml`).
- `swift test` — run the unit + integration suites (all green in CI; the count lives in the run output, not here). The integration suite drives
Expand All @@ -54,6 +55,8 @@ Contributing, security disclosure, and code of conduct are handled at the org le
`skillet init --json`, `skillet doctor [<skill>...] [--json]` (free $0 preflight; exit 3 + remedy on failure),
`skillet lint [--json]`, `skillet score <path> [--format tty|json|sarif]` (free, model-free deterministic scorers over produced text → SARIF 2.1.0; a reporter, not a gate — exit 0 even with findings, exit 4 on a corrupt config), `skillet harness list`, `skillet harness info [--json]`,
`skillet run [<skill>] [--axis behavior|trigger|all] [--ab] [--judge text-judge|grounded-judge] [--runs <k>] [--dry-run] [--yes] [--no-input] [--keep-workspace]` (paid: shells `claude`, resolved via `SKILLET_CLAUDE_CODE_BIN` env → `harness.claude-code.path` in `skillet.yaml` → `PATH` — behavioral trials add the judge; trigger trials are judge-free single calls; `--ab` doubles behavioral trials with a provably skill-free baseline arm, both arms judged; `--judge grounded-judge` reads produced-file contents to catch created-but-wrong, larger grading requests — gated by the combined spend estimate),
`skillet triage [<skill>] [--since <YYYY-MM-DD>] [--dry-run] [--json]` (free: reads the recorded session bundles under a skill's `evaluations/sessions/`, groups their findings into a failure taxonomy, and writes one evidence file per cluster under `evaluations/findings/` — never overwrites an existing file, reports what it skipped, and exits 0 even when it finds problems: it is a reporter, not a gate),
`skillet suggest <skill> --from <evidence-id>... [--out <name>.json] [-n|--dry-run] [--yes] [--json]` (paid: one model call that **drafts** minimal `SKILL.md` edits from the evidence records you name plus the human notes sharing their sessions, and writes them to `.skillet/proposals/<id>.json` — it **applies nothing**; free static gates and a read-only check that the model program is usable run first, `-n` previews the request and its size without spending, an over-ceiling request refuses unless `--yes`, and a name already held by a different draft exits 2 without overwriting),
`skillet capture --skill <s> --slug <x> [--session <ref>] [--target-dir <path>] [--date <YYYY-MM-DD>] [--force] [--fail-on-secret] [--secret-scanner-path <p>]` (records the newest claude-code session — or `--session` — as a **secret-scrubbed**, scored evidence bundle under `<skills_root>/<skill>/evaluations/sessions/`; **always redacts** — there is no `--no-sanitize` — and **fails closed** if `betterleaks` can't run; `--fail-on-secret` exits 1 for CI, the bundle still written scrubbed),
`skillet --help`, `skillet --version`. Hidden test seams on `run`: `--replay` (offline adapter+judge),
`--replay-map <json>` (with-arm canned verdicts), `--replay-baseline-map <json>` (baseline-arm canned
Expand Down Expand Up @@ -146,9 +149,13 @@ Treat everything in this section as a target to build toward, not as existing fu
`LintKit`, `JudgeKit`, `RunKit`, `ProjectKit`, `RenderKit`, and `ConfigYAML` kits + the `skillet`
executable with `init`/`doctor`/`lint`/`run`/`harness` (see the status banner + Commands above; `doctor`
is Phase 2's first shipped feature). Phase 2 also shipped `ScoreKit` + `score`; Phase 3 has shipped
`CorpusKit` + `SanitizerKit` + `capture` (F26/F32); Phase 4 has shipped `AnalysisKit` + `triage` (F33).
The kits and commands still *planned* are the remaining Phase 3+ ones — `IterateKit`
and `friction`/`next`/`suggest`/`iterate`/`baseline`/`report`/… .
`CorpusKit` + `SanitizerKit` + `capture` (F26/F32); Phase 4 has shipped `AnalysisKit` + `triage` (F33);
Phase 6 has shipped `suggest` (F41).

**What is still planned is not listed here.** It used to be, and the list went stale the moment a
command shipped without someone remembering to edit this sentence. Two sources answer it and neither
can drift: `skillet --help` is authoritative for what exists in the binary right now, and the
[ROADMAP phase table](ROADMAP.md) is authoritative for what is planned and when.

### Package architecture (design §11)

Expand Down
8 changes: 8 additions & 0 deletions ROADMAP-changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ The roadmap's versioned change log, extracted from `ROADMAP.md` on 2026-07-04 (v
stays lean. Latest first; every version is a linkable heading; historical entries are never rewritten.
Companion: [`skillet-design-changelog.md`](skillet-design-changelog.md).

## v1.21.0 — 2026-08-01

MINOR — **F41 SHIPPED: `skillet suggest` — drafted `SKILL.md` edits from observed evidence** ([Specs/018](Specs/018-draft-edit-proposals/plan.md)). Reads the evidence records you name plus the human notes sharing their sessions, sends one model request, and writes a content-anchored proposal to `.skillet/proposals/<id>.json`; it **applies nothing**. Two formats: `skillet.proposal/1` (the drafted file — provisional, graduating when the apply feature reads it back) and `skillet.suggest/1` (the command summary — stable, report-and-point). A draft is identified by a fingerprint of the whole assembled request, so re-running identical inputs is a recognised repeat rather than a duplicate, while any changed input is a genuinely different draft. Free checks run before anything is spent: the static-gate preflight, then a read-only check that the model program is usable, then the filesystem, then the one paid call. Phase 6 is now IN PROGRESS — applying proposals (F42), `iterate` (F43), marking evidence (F44) and held-out proof (F45) remain.

## v1.20.0 — 2026-07-19

MINOR — **F33 SHIPPED: `skillet triage` — the free corpus failure taxonomy** ([Specs/016](Specs/016-corpus-triage/plan.md)). Mines captured session bundles into a routed failure taxonomy and writes machine-mined findings, contradictions first; costs nothing to run. New pure `AnalysisKit`. Phase 4 moved to IN PROGRESS. **Recorded late** — this entry was written on 2026-08-01, when a documentation sweep found the feature had shipped and been committed without its roadmap ripple. The gap is why the phase table, the phase documents and the specification index are now checked against each other by the test suite.

## v1.19.0 — 2026-07-17

MINOR — **F29 SHIPPED: structured friction & finding evidence + lifecycle** ([Specs/015](Specs/015-friction-finding-evidence/plan.md); design → v0.52). The `skillet.friction/1` (human) + `skillet.finding/1` (machine-mined) frontmatter formats over a shared, composed `EvidenceHeader`, an `Evidence` protocol the later gates engine reads uniformly, and a typed `LifecycleState` + centralized legal-moves validator (`logged → candidate → codified → proven → closed` + `watch`/`held` side states + the one constrained `closed → logged` reopen; illegal/self transitions rejected — "never implicit" is a unit-tested property of `EDDCore`). New pure-core tree `EDDCore/Evidence/*` (models, validation, lifecycle, errors) + the `ConfigYAML` `EvidenceFrontmatter` seam (decode/validate + create-encode) with **native duplicate-key rejection** (`DuplicateKeyStrategy.reject`) and a shared `FrontmatterSplit` scan. Re-scoped mid-flight to **Path B** (D6) after `swift-yaml` shipped in-place editing + native `.reject` — dropping the whole Path-A neutral-map round-trip stack; the pin was bumped (`048f714` → `473252b`) as an isolated verified step. **Library layer only** — the `friction add`/`set-state`/`next` commands (F30) and the gates consumer build on this; no new CLI surface yet. 511 tests green; staged, pending commit. Phase 3 remains IN PROGRESS (F27/F28/F30/F31 remain).
Expand Down
36 changes: 19 additions & 17 deletions ROADMAP.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Product Roadmap — skillet

**Version:** v1.19.0
**Last Updated:** 2026-07-17
**Version:** v1.21.0
**Last Updated:** 2026-08-01

`skillet` is the SKILL.md Evaluation Toolkit — eval-driven development (EDD)
for agent skills, as a public, multi-harness Swift CLI. This roadmap is
Expand Down Expand Up @@ -44,9 +44,9 @@ derived from `skillet-design.md` and an external best-practice cross-reference
| Foundation | 1 | Walking Skeleton — prove the loop end-to-end | COMPLETE | [phase-1](Roadmap/phase-1-walking-skeleton.md) |
| Now | 2 | Trustworthy Measurement & Static Gates | IN PROGRESS | [phase-2](Roadmap/phase-2-measurement-static-gates.md) |
| Next | 3 | Discovery & Evidence Capture | IN PROGRESS | [phase-3](Roadmap/phase-3-discovery-evidence.md) |
| Next | 4 | Error Analysis — *Northstar gap #1* | PLANNED | [phase-4](Roadmap/phase-4-error-analysis.md) |
| Next | 4 | Error Analysis — *Northstar gap #1* | IN PROGRESS | [phase-4](Roadmap/phase-4-error-analysis.md) |
| Next | 5 | The Computable Runbook — *differentiator #1* | PLANNED | [phase-5](Roadmap/phase-5-computable-runbook.md) |
| Next | 6 | Fix Suggestion & Safe Iteration — *Northstar gap #2* | PLANNED | [phase-6](Roadmap/phase-6-fix-suggestion-iteration.md) |
| Next | 6 | Fix Suggestion & Safe Iteration — *Northstar gap #2* | IN PROGRESS | [phase-6](Roadmap/phase-6-fix-suggestion-iteration.md) |
| Next | 7 | Multi-Harness Portability — *differentiator #2* | PLANNED | [phase-7](Roadmap/phase-7-multi-harness.md) |
| Later | 8 | Beyond v1 — deeper analysis, broader reach | FUTURE | [phase-8](Roadmap/phase-8-beyond-v1.md) |

Expand All @@ -61,14 +61,17 @@ derived from `skillet-design.md` and an external best-practice cross-reference
- **Phase 3 (Next):** Record production sessions and human friction as
structured, greppable evidence (secret-sanitized on capture) — the raw material
for error analysis.
- **Phase 4 (Next):** Mine the corpus into a routed failure taxonomy,
contradictions first — error analysis *before* codification. Scored judge
diagnostics (F62) densify the signal; scores never gate.
- **Phase 4 (In progress):** Mine the corpus into a routed failure taxonomy,
contradictions first — error analysis *before* codification. `skillet triage`
(F33) shipped 2026-07-19. Scored judge diagnostics (F62) densify the signal;
scores never gate.
- **Phase 5 (Next):** The gates engine + `skillet next` — "git status for EDD":
the single highest-value action, with its reason and the exact command. Plus
observed-seed trigger-corpus expansion (F63).
- **Phase 6 (Next):** Draft minimal `SKILL.md` edits from observed evidence and
prove them by A/B in a throwaway worktree before a human lands them.
- **Phase 6 (In progress):** Draft minimal `SKILL.md` edits from observed evidence and
prove them by A/B in a throwaway worktree before a human lands them. `skillet
suggest` (F41) shipped 2026-08-01 — it drafts and writes proposals; applying
them and proving them by A/B are still to come.
- **Phase 7 (Next):** Run the same suite across multiple agents and print a
per-harness `pass^k` portability table.
- **Phase 8 (Later):** Track B axial coding, more adapters, the remaining lint
Expand Down Expand Up @@ -135,14 +138,13 @@ Phase 1's `F1–F8` and Phase 8's `F10–F13` were already global and were prese

## Global Risks & Assumptions

- **Phase 1 COMPLETE; later phases greenfield.** All Phase 1 features ship — F1 (project discovery
& output contract), F2 (`skillet init`), F4 (`skillet lint`), F5 (trace & harness seam), F6
(claude-code adapter), F8 (frozen boundary codecs), and now F7 (`skillet run` — the neutral runner,
`pass^k`, `RunKit`+`JudgeKit`) — `Specs/001`–`007`, 235 tests green. **Phase 2 is IN PROGRESS —
F3 (`skillet doctor`) + F14 (the trigger axis) shipped 2026-07-04, F15 (the A/B baseline arm)
shipped 2026-07-07, F16 (the grounded judge) shipped 2026-07-08 (`Specs/008`–`011`, 356 tests
green)**; the remaining Phase 2–8 features are PLANNED/FUTURE: those statuses reflect design intent verified against the design doc
(Medium confidence), not running code.
- **Phase 1 COMPLETE; not-yet-started phases are greenfield.** Which features have shipped, and each
phase's status, live in the phase table above and in the phase documents it links — the only place
they are tracked. This section deliberately does **not** restate them: a second copy of a moving
fact is exactly how these went stale before (it stopped at 2026-07-08 while five more features
shipped). The standing risk is what belongs here, and it is unchanged: for a phase not yet started,
the status reflects **design intent verified against the design doc (Medium confidence), not
running code**.
- **"Ported" assumption.** The design doc says much of v1 is faithfully
translated from a predecessor (`swift-skill-eval` + a Python trigger harness).
That predecessor is not in this repo, so `Ported` tags are a scheduling hint,
Expand Down
4 changes: 2 additions & 2 deletions Roadmap/phase-1-walking-skeleton.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Phase 1 — Walking Skeleton: Prove the Loop End-to-End

**Status:** COMPLETE — F1, F2, F4, F5, F6, F7, F8 all shipped (`doctor` F3 moved to Phase 2)
**Status:** COMPLETE (note: `doctor`/F3 moved to Phase 2)
**Horizon:** Now
**Last Updated:** 2026-07-01
**Last Updated:** 2026-08-01
**Review:** completed-items cross-artifact audit (2026-07-01) → [phase-1-review.md](phase-1-review.md)

## Goal
Expand Down
4 changes: 2 additions & 2 deletions Roadmap/phase-2-measurement-static-gates.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Phase 2 — Trustworthy Measurement & Static Gates

**Status:** IN PROGRESS (F3 + F14 shipped 2026-07-04; F15 shipped 2026-07-07; F16 shipped 2026-07-08)
**Status:** IN PROGRESS
**Horizon:** Now
**Last Updated:** 2026-07-08
**Last Updated:** 2026-08-01

## Goal

Expand Down
4 changes: 2 additions & 2 deletions Roadmap/phase-3-discovery-evidence.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Phase 3 — Discovery & Evidence Capture

**Status:** IN PROGRESS (F26 + F32 shipped 2026-07-11)
**Status:** IN PROGRESS
**Horizon:** Next
**Last Updated:** 2026-06-18
**Last Updated:** 2026-08-01

## Goal

Expand Down
6 changes: 3 additions & 3 deletions Roadmap/phase-4-error-analysis.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Phase 4 — Error Analysis (Northstar gap #1)

**Status:** PLANNED
**Status:** IN PROGRESS
**Horizon:** Next
**Last Updated:** 2026-07-07
**Last Updated:** 2026-08-01

## Goal

Expand All @@ -15,7 +15,7 @@ decide what's worth a test. This phase is sequenced ahead of the harness matrix

## Key Features

1. **[F33]** Corpus triage — Track A (CLI: `skillet triage`) — PLANNED · Ported
1. **[F33]** Corpus triage — Track A (CLI: `skillet triage`) — IMPLEMENTED (2026-07-19) · Ported
- Purpose & user value: Run deterministic scorers across every bundle and
cluster the signal into a failure taxonomy — error analysis, not a pass-rate
— so the maintainer sees the patterns that actually recur.
Expand Down
6 changes: 3 additions & 3 deletions Roadmap/phase-6-fix-suggestion-iteration.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Phase 6 — Fix Suggestion & Safe Iteration (Northstar gap #2)

**Status:** PLANNED
**Status:** IN PROGRESS
**Horizon:** Next
**Last Updated:** 2026-07-06
**Last Updated:** 2026-08-01

## Goal

Expand All @@ -14,7 +14,7 @@ failures, never imagined ones.

## Key Features

1. **[F41]** Draft edit proposals (CLI: `skillet suggest`) — PLANNED · Ported
1. **[F41]** Draft edit proposals (CLI: `skillet suggest`) — IMPLEMENTED (2026-08-01) · Ported
- Purpose & user value: From the failure taxonomy, the cited `SKILL.md`
passages, and corrective-turn excerpts, the judge drafts *minimal surgical*
content-anchored `EditProposal`s — generalize from feedback, prefer deleting
Expand Down
21 changes: 21 additions & 0 deletions Sources/AnalysisKit/EvidenceLink.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import Foundation

/// The one place the project states **when two evidence records are related**: they were produced in the
/// same recorded session.
///
/// This is deliberately tiny, and deliberately shared. "Don't repeat yourself" is about a piece of
/// *knowledge* having one authoritative representation — and this rule is knowledge: a documented design
/// decision (relate findings and human notes by shared session, computed live rather than stored). Both
/// `triage` and `suggest` implement that same rule, so it lives here once; if it ever changes — matching
/// by prefix, or within a time window — there is exactly one line to change instead of two that drift.
///
/// What is **not** shared, on purpose: each caller's own filtering, input types, and return shape. Those
/// differ genuinely (one returns records and excludes already-named ids; the other returns identifiers),
/// and folding them together would mean parameters plus conditional paths to serve two callers — the
/// signature of a wrong abstraction, where duplication would have been the cheaper choice.
public enum EvidenceLink {
/// True when the two sets of recorded-session ids overlap at all.
public static func sharesSession(_ lhs: some Sequence<String>, _ rhs: some Sequence<String>) -> Bool {
!Set(lhs).isDisjoint(with: Set(rhs))
}
}
Loading