132 Commits
Author SHA1 Message Date
Addy Osmani 5695183d6b Merge #773: exercise the version-validator CLI against temporary manifests
test: exercise the version-validator CLI against temporary manifests
2026-11-23 23:09:13 -08:00
Addy Osmani 99820a9055 Merge #769: isolate fixture repositories from inherited Git hooks
fix(evals): isolate fixture repositories from inherited Git hooks
2026-11-23 23:08:48 -08:00
Anton YakutovichandClaude Sonnet 5.5 25f972b518 fix: address review of shared reference sync
- make the anchor-only test assert the current hint text so it can fail
- sync removes an empty references/ after dropping the last shared copy
- CLAUDE.md: the generated shared copies are the exception to no duplication

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 23:13:26 +04:00
Anton Yakutovich eca51a2635 Merge remote-tracking branch 'upstream/main' into fix/skill-local-reference-links 2026-11-21 12:47:47 +04:00
Addy Osmani 18336b6e6c Merge #667: record behavioral runs for historical regrading
feat(evals): record behavioral runs for historical regrading
2026-11-18 12:05:18 -08:00
Sajjad Pakdamansavoji b8bea427a2 fix: save capability map and module specs under spec/ 2026-11-15 22:09:33 -05:00
Anton Yakutovich df50a6db53 Merge remote-tracking branch 'upstream/main' into fix/skill-local-reference-links 2026-11-14 22:55:31 +04:00
maverickai-sea 701e2cbaa0 feat(evals): record behavioral runs for historical regrading 2026-11-14 17:55:23 +00:00
Addy Osmani a8bb8d46da Merge #744: stage skill resources outside the fixture baseline
fix(evals): stage skill resources outside the fixture baseline
2026-11-13 20:27:50 -08:00
kevin 08fcd164ee fix(validator): keep markup inside code spans in heading slugs
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-11 22:08:49 +09:00
Anton YakutovichandClaude Opus 5.5 5690671675 fix(scripts): sync-shared-references copies and compares bytes
Reading the files as UTF-8 turned an invalid byte into U+FFFD on write,
and two copies whose bytes differ but decode alike passed --check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 09:28:44 +04:00
ayobamiseun 262d02def6 test: exercise the version-validator CLI against temporary manifests 2026-11-02 13:38:23 +01:00
ayobamiseun e38287bf25 fix(evals): isolate fixture repositories from inherited Git hooks 2026-11-02 13:33:48 +01:00
Anton Yakutovich 7eb0d9e713 Merge remote-tracking branch 'upstream/main' into fix/skill-local-reference-links 2026-11-01 21:53:40 +04:00
Sebastian Mendel 9f17476d0b fix(evals): stage skill resources outside the fixture baseline
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-11-01 18:11:58 +01:00
Addy Osmani afcafdf58f Merge #694: enforce security and accessibility quality gates 2026-10-30 23:40:11 -07:00
Addy Osmani 259a292396 Merge #742: select a single behavioral case by id 2026-10-30 23:38:58 -07:00
Addy Osmani 253341f866 Merge remote-tracking branch 'origin/main' into pr694
# Conflicts:
#	.github/workflows/test-plugin-install.yml
2026-10-30 23:38:17 -07:00
Addy Osmani 9dac2ad3d7 Merge #760: name a positive prompt that passes top_k without ranking first 2026-10-30 23:36:45 -07:00
Addy Osmani 6867dbbe70 style(evals): re-indent the incomplete-execution test loop 2026-10-30 23:33:17 -07:00
Sebastian Mendel 9604a3f77b feat(evals): select a single behavioral case by id
Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
2026-10-29 18:11:11 +01:00
Anton Yakutovich bf41d63d44 Merge remote-tracking branch 'upstream/main' into fix/skill-local-reference-links 2026-10-29 11:41:33 +04:00
ayobamiseun 362edec613 feat(evals): name a positive prompt that passes top_k without ranking first
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-29 08:27:11 +01:00
Santhi Prakash 30187c1008 fix(security-and-hardening): keep staged-secret scan from echoing credentials
- 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-29 06:37:04 +00:00
mavericksea-ai ba3d99e63b fix(constraints): enforce security and accessibility quality gates 2026-10-29 13:16:33 +08:00
Addy Osmani 3e1f9296b7 Merge #668: route clipped prompt forms to their long-form skill 2026-10-28 22:02:22 -07:00
Addy Osmani 2669c40ee2 Merge #743: reject incomplete executor streams before grading 2026-10-28 21:54:47 -07:00
Addy Osmani b209085220 Merge #708: read a ratchet's direction from its own column in the floor guard 2026-10-28 21:53:41 -07:00
Sebastian Mendel 2807f145ff fix(evals): reject incomplete executor streams before grading
Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
2026-10-25 19:26:38 +01:00
Rudy CelekliandClaude Opus 5.5 29e567f0f5 fix(constraint-driven-development): read a ratchet's direction from its own table column
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
2026-10-19 11:05:42 -04:00
Anton YakutovichandClaude Opus 5.5 c4efec801d refactor(sync-shared-references): copies equal their root files
The generated header made every copy a separate blob. Without it a copy
is byte for byte its root file, so git stores one blob for both, and a
hand edit to a copy still fails --check as stale. The three --check
tests become one table of drift cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XTTwR4HS4sWgZ992ThEwmP
2026-10-19 11:40:44 +04:00
Anton YakutovichandClaude Opus 5.5 a1ef118f14 refactor(sync-shared-references): rewrite shared/ instead of guarding it
shared/ holds only generated copies, so a run now deletes it and writes
it again, and --check compares it with what a run would write. That
drops the header-based checks that refused to overwrite or delete a
hand-written file there, a case no one has hit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XTTwR4HS4sWgZ992ThEwmP
2026-10-19 11:32:08 +04:00
Anton YakutovichandClaude Opus 5.5 50f1dbc5cb fix(skills): keep generated checklist copies in references/shared/
The copies sat next to each skill's own reference files and filled PR
diffs. They now live in skills/<name>/references/shared/, which holds
only generated files, and .gitattributes marks that directory
linguist-generated so GitHub collapses it in diffs and language stats.
The sync script refuses to overwrite or delete a hand-written file there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XTTwR4HS4sWgZ992ThEwmP
2026-10-19 11:10:55 +04:00
Anton YakutovichandClaude Opus 5.5 a85c5059a8 test(sync-shared-references): --check leaves an unused copy in place
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XTTwR4HS4sWgZ992ThEwmP
2026-10-19 10:50:57 +04:00
Anton Yakutovich 8d24b89ef4 Merge remote-tracking branch 'upstream/main' into fix/skill-local-reference-links 2026-10-19 10:48:57 +04:00
Anton YakutovichandClaude Opus 5.5 44e851440f fix(skills): generate skill-local copies of shared checklists
Git for Windows checks symlinks out as text files by default, so the
skill-local symlinks broke a full checkout there. Each skill now holds a
generated copy of the shared checklists it links, written from the root
references/ by scripts/sync-shared-references.js. CI runs it with --check
and fails when a copy is missing, stale, or no longer linked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XTTwR4HS4sWgZ992ThEwmP
2026-10-19 10:48:34 +04:00
Rudy CelekliandClaude Sonnet 5.5 2b5e8a61b6 fix(validation): match whole filenames in the artifact-path guard
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-17 18:15:56 -04:00
Yi-111-a dae1f9d9dd fix(evals): strip -ations alongside -ation, and make the auth case actually 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-14 08:29:26 +08:00
Addy Osmani 8ed851127c Merge remote-tracking branch 'origin/main' into fix-624 2026-10-13 16:15:39 -04:00
Addy Osmani e6e5213971 Merge #675: decode quoted skill identities consistently in run-evals 2026-10-13 13:12:28 -07:00
Addy Osmani 1fec945552 Merge #676: read top-level command descriptions with the shared parser 2026-10-13 13:05:04 -07:00
Addy Osmani 6db395e3b2 Merge #666: require non-empty evidence in grading results 2026-10-13 13:03:30 -07:00
Yi-111-a e4572ef587 fix(evals): fold -ification to its -ify verb, not to "specific"
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-11 12:44:23 +08:00
Rudy Celekli 51e4485f58 fix(validation): read top-level command descriptions
Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
2026-10-10 19:28:09 -04:00
Rudy Celekli 2a6f7a7d04 fix(evals): decode quoted skill identities consistently
Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
2026-10-10 16:22:56 -04:00
Aliciawque 42a590ed74 Report blank grading evidence distinctly
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-10 20:53:20 +08:00
Anton YakutovichandClaude Opus 5.5 490628900b fix(validate-reference-links): fail a link that leaves the skill directory
A per-skill install copies only skills/<name>/, so a link that resolves
outside it breaks after install even when the repo file exists. The
check now fails such links and its hint names the skill-local symlink.
Links from files inside a skill's references/ use ../references/<file>.md
so their anchors stay checked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KepYXCwn74SMeQ8XcKPL31
2026-10-10 16:42:21 +04:00
Yi-111-a 46a73df997 fix(evals): route clipped prompt forms to their long-form skill
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-10 19:36:32 +08:00
Addy Osmani 2b1ac61a4b Merge main: keep both sets of appended tests 2026-10-10 01:26:43 -07:00
Addy Osmani 279c1a8df9 Merge main: keep both sets of appended tests 2026-10-10 01:24:32 -07:00