summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
7 daysMerge #667: record behavioral runs for historical regradingAddy Osmani
feat(evals): record behavioral runs for historical regrading
10 daysfix: save capability map and module specs under spec/Sajjad Pakdamansavoji
11 daysfeat(evals): record behavioral runs for historical regradingmaverickai-sea
11 daysMerge #744: stage skill resources outside the fixture baselineAddy Osmani
fix(evals): stage skill resources outside the fixture baseline
2026-11-11fix(validator): keep markup inside code spans in heading slugskevin
slugify stripped anything that looked like an HTML tag or a link before dropping punctuation, including inside code spans. GitHub renders a code span's text as written, so a heading like `## Use `<dialog>` for modals` gets the anchor #use-dialog-for-modals; the validator produced #use--for-modals and rejected the real anchor.
2026-11-01fix(evals): stage skill resources outside the fixture baselineSebastian Mendel
Copy the skill directory and the shared references into a temporary directory outside the fixture workspace, grant the executor access with --add-dir, and name both base directories in the system prompt. Reject symbolic links in the staged resources. The dry-run plan prints the --add-dir argument too. Assisted-by: claude-code:claude-opus-5-5 Agent-Session: 7d0f7cf1-f8a8-427f-843b-2ca124cfea16 Agent-Host: 0493f0 Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
2026-10-30Merge #694: enforce security and accessibility quality gatesAddy Osmani
2026-10-30Merge #742: select a single behavioral case by idAddy Osmani
2026-10-30Merge remote-tracking branch 'origin/main' into pr694Addy Osmani
# Conflicts: # .github/workflows/test-plugin-install.yml
2026-10-30Merge #760: name a positive prompt that passes top_k without ranking firstAddy Osmani
2026-10-30style(evals): re-indent the incomplete-execution test loopAddy Osmani
2026-10-29feat(evals): select a single behavioral case by idSebastian Mendel
Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
2026-10-29feat(evals): name a positive prompt that passes top_k without ranking firstayobamiseun
A positive inside top_k passes, but only rank 1 counts toward the rate the --min-rank1 floor measures, and the runner printed nothing for the gap between them. Finding which prompt had slipped to #2 on main took a hand-built harness around rankSkills. Print the prompt, its rank and the skill that outranks it, with scores, as an info line. One test covers the line and the 50% rate it explains.
2026-10-29fix(security-and-hardening): keep staged-secret scan from echoing credentialsSanthi Prakash
- Problem: the documented pre-commit secret checks piped the staged diff through a printing grep, so a staged credential's raw value was copied into terminal output and any agent tool transcript (issue #717). - Fix: scan with git alone — `git diff --cached -i -G'...' --name-only` (and the `--staged` twin) prints only matching file names, so the value can never reach output; a git failure exits non-zero instead of reading as clean the way a grep pipeline does when its left side fails. Applied to all three documented sites: security-checklist.md, hardening-patterns.md, and git-workflow-and-versioning/SKILL.md. - Verification: node --test scripts/staged-secret-scan-test.js extracts each documented command and proves a staged sentinel's file is named while its value never reaches stdout/stderr (fails on the pre-fix docs); validate-skills, validate-reference-links, validate-versions, validate-commands, validate-artifact-paths, run-evals --min-rank1 95 all pass.
2026-10-29fix(constraints): enforce security and accessibility quality gatesmavericksea-ai
2026-10-28Merge #668: route clipped prompt forms to their long-form skillAddy Osmani
2026-10-28Merge #743: reject incomplete executor streams before gradingAddy Osmani
2026-10-28Merge #708: read a ratchet's direction from its own column in the floor guardAddy Osmani
2026-10-25fix(evals): reject incomplete executor streams before gradingSebastian Mendel
Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
2026-10-19fix(constraint-driven-development): read a ratchet's direction from its own ↵Rudy Celekli
table column Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
2026-10-17fix(validation): match whole filenames in the artifact-path guardRudy Celekli
ARTIFACT_RE had no left boundary, so a filename that merely ends in spec.md, plan.md or todo.md (for example test-plan.md or release_todo.md) was reported as a drifted spec/plan/todo artifact path. Anchor the match so it cannot start mid-word. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14fix(evals): strip -ations alongside -ation, and make the auth case actually ↵Yi-111-a
guard Two blocking items from review on #668. Adding 'ation' without 'ations' left the plural longer than its singular: migration -> migr but migrations -> migration. That halves the score for 'Plan the database migrations' (0.354 -> 0.093) where the two forms used to match. Both are now listed, with a regression test that fails on the one-form list. The -ifications rule above already handled both forms. The pinned auth case was not a guard: 'Add auth to the login flow' ranks #1 on main because 'login' and 'flow' are in the description, so it passes without the alias map. Swapped for 'Add auth and rotate the session cookie' (#4 on main, #1 with the alias), and the sandbox test for the alias map still fails on its own if the map is dropped. Corpus: 91/91 rank-1, 143 checks, 40/40 unit tests.
2026-10-13Merge remote-tracking branch 'origin/main' into fix-624Addy Osmani
2026-10-13Merge #675: decode quoted skill identities consistently in run-evalsAddy Osmani
2026-10-13Merge #676: read top-level command descriptions with the shared parserAddy Osmani
2026-10-13Merge #666: require non-empty evidence in grading resultsAddy Osmani
2026-10-11fix(evals): fold -ification to its -ify verb, not to "specific"Yi-111-a
The bare "-ation" rule added for clipped forms turned "specification" into "specific", silently cross-merging two unrelated words — the exact collision the alias map exists to avoid. "-ification" nouns are nominalizations of "-ify" verbs, so fold them to the verb's "-ifi" stem, which is what stem() already produces for "specify" and "verify" via its trailing-y rule. Checked before the generic suffix loop so it wins over "-ation". Rank-neutral on the current corpus (91/91 rank-1 before and after). Adds a regression test that fails without the rule. Refs #660.
2026-10-10fix(validation): read top-level command descriptionsRudy Celekli
Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
2026-10-10fix(evals): decode quoted skill identities consistentlyRudy Celekli
Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
2026-10-10Report blank grading evidence distinctlyAliciawque
Preserve the parser's null-or-object contract while reporting blank evidence separately from malformed grader output. Keep rejected responses on the raw-only persistence path. Add CLI regressions for both verdicts, whitespace variants, malformed grading, valid output, and stale scored-artifact cleanup.
2026-10-10fix(evals): route clipped prompt forms to their long-form skillYi-111-a
The Tier-2 trigger scorer never matched clipped forms users type (docs, auth, config) to the long forms used in descriptions (documentation, authentication), so same-register prompts ranked #1-2 while clipped-register prompts sank to #18-20 (see #660). Fix in the stemmer, not the descriptions: a small explicit alias map applied before stemming plus -ation folding, so both registers stem identically. Adds clipped-register positive prompts to the security-and-hardening and documentation-and-adrs case files so a description that drops back to one register fails CI, and a sandbox regression test pinning the routing (fails on main, passes with fix). Before -> after (buildCorpus + rankSkills on main): - 'Add authentication to our API endpoints' -> security #2 -> #5 (*) - 'Add auth to our API endpoints' -> security #20 -> #5 (*) - 'Our documentation is out of date with the code' -> docs #1 -> #1 - 'Our docs are out of date with the code' -> docs #18 -> #1 (*) the API-endpoints auth variant stays genuinely ambiguous with api-and-interface-design ('API endpoints' is name-weighted 2x there); no existing rank-1 moved: suite stays 100% (91/91, was 89/89). Fixes #660
2026-10-10Merge main: keep both sets of appended testsAddy Osmani
2026-10-10Merge main: keep both sets of appended testsAddy Osmani
2026-10-10Merge #636: keep fixture commits independent of user signing settingsAddy Osmani
2026-10-10Merge #634: keep reference heading anchors uniqueAddy Osmani
2026-10-10Merge main: keep both the persona-lint and frontmatter testsAddy Osmani
2026-10-10Require non-blank evidence for behavioral gradingAliciawque
Reject trim-empty evidence for both passing and failing verdicts and ask the grader to explain observed or missing behavior. Keep invalid responses on the existing raw-only persistence path. Add regression coverage for blank evidence, Unicode whitespace, evidence preservation, and scored-artifact rejection.
2026-10-07fix(linter): ignore comments and nested metadata keys in skill frontmatterroot
2026-10-03Clean up incomplete evaluation workspacesRudy Celekli
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
2026-10-03Keep fixture commits independent of user signing settingsRudy Celekli
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
2026-10-03Keep reference heading anchors uniqueRudy Celekli
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
2026-10-03Reject duplicate behavioral evaluation IDsRudy Celekli
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
2026-10-03feat(validator): lint personas for name, description and Compositionayobamiseun
The smaller version asked for when #610 was closed. docs/agents.md states three rules for agents/<name>.md — the same frontmatter format as a skill with name equal to the file stem (the name is the subagent_type commands spawn) and a description, and a closing Composition block — and no validator checked them. Add lintPersonaContent to scripts/lib/skill-lint.js, reusing the existing frontmatter parsing and YAML-validity rules, and have validate-skills.js walk agents/*.md after the skills, skipping an index README.md. Headings are read from fence-stripped content so an example block after Composition does not count as a later section. No spawn-reference scanning, no listing-table checks, no new script, no workflow change. All four personas pass: 25 skills and 4 personas checked, 0 errors.
2026-10-02fix(validator): check #anchor fragments on references/ linksJoan Leon
2026-10-01Merge #608: reject non-spec top-level frontmatter keys and link the ↵Addy Osmani
per-agent guide
2026-10-01Merge #603: reject frontmatter values starting with a YAML indicatorAddy Osmani
2026-10-01fix(skills): conform idea-refine to skill anatomyzhujunxiongfeiyi
Add Overview / When to Use / Common Rationalizations sections, move trigger phrases out of Usage, and drop the idea-refine section-check exemption from the skill validator.
2026-09-29fix(validator): flag the indicators both parsers actually rejectAbhishek Sharma
Addresses review on #603. The comma claim was wrong. The code comment said a leading `,` parses cleanly; PyYAML rejects it with a ParserError and psych with a SyntaxError. The same comment was wrong about `]` and `}`. I had asserted all three without measuring, and a test pinned the comma claim, so the mistake was defended rather than caught. Now flagged, each verified against PyYAML and psych: `,` `*` and a one-line `|`/`>` header. A bare `|` with indented lines under it is a real block scalar and stays accepted; `|foo` is not one. Still not flagged, because each parses: `&anchor`, `#`, `:`/`-` without a following space, and `[`/`{`, which open valid flow collections. `]` and `}` are rejected by both parsers but left out for now - no frontmatter has ever started with them, and widening past what was asked risks false positives I have not thought through. Docstring no longer says "the three shapes".
2026-09-26feat(validator): reject frontmatter keys outside the Agent Skills spec setayobamiseun
docs/advanced-per-agent-configuration.md says vendor and runtime fields such as model, tools, max_turns and context must not appear at the top level of a SKILL.md: hosts do not promise to ignore unknown keys and a strict client can reject the file. Nothing enforced it; a skill with model: at the top level passed CI. Add SPEC_FRONTMATTER_KEYS (name, description, license, compatibility, metadata, allowed-tools) and an error for any other column-zero key, naming the key and pointing at the guide. Nested lines under metadata and list items are children of a spec key and are left alone. Export topLevelFrontmatterKeys for direct tests. validate-commands.js shares only frontmatterYamlErrors, so command frontmatter is unaffected. All 25 skills use only name and description, so the rule fires on nothing today and follows the #571 pattern of errors for rules nothing violates. The self-exemption test now expects two errors, since exempt: is also not a spec key.
2026-09-26fix(constraints): floor-guard reference reads hunk lines as content and runs ↵mavericksea-ai
from the top Two follow-ups from the review on #600, both already on main before it: - The diff walk treated any line starting with `---` or `+++` as a file header. Inside a hunk those lines are content. An added line that starts with `++` (`++n; // eslint-disable-line no-plusplus`) shows as `+++n; ...` and was dropped, so the suppression passed. An added line that starts with `++ ` was taken as a header, so the lines after it were filed under a made-up path and a removed assertion further down the same test file went unreported. A removed line starting with `--` never reached the removed list either. Headers are now read only between a file's `diff` line and its first `@@`. - Run from a subfolder, `git ls-files --others` listed only that subfolder's untracked files, relative to it, while `git diff` covers the whole tree from the top. An untracked suppression elsewhere in the repository was missed, and one inside the subfolder was reported under a different name from the tracked files. The guard now changes to `git rev-parse --show-toplevel` first, and exits 2 outside a work tree. The test gains six cases: five fail on main, and the sixth (outside a work tree) passes on both and covers the new exit-2 path; 28 pass. The test now also runs in the macOS/Windows matrix.