| Age | Commit message (Collapse) | Author |
|
feat(evals): record behavioral runs for historical regrading
|
|
|
|
|
|
fix(evals): stage skill resources outside the fixture baseline
|
|
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.
|
|
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>
|
|
|
|
|
|
# Conflicts:
# .github/workflows/test-plugin-install.yml
|
|
|
|
|
|
Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
|
|
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.
|
|
- 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.
|
|
|
|
|
|
|
|
|
|
Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
|
|
table column
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
|
|
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>
|
|
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.
|
|
|
|
|
|
|
|
|
|
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.
|
|
Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
|
|
Signed-off-by: Rudy Celekli <rudy@gradiahq.com>
|
|
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.
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
|
|
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
|
|
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
|
|
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
|
|
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.
|
|
|
|
per-agent guide
|
|
|
|
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.
|
|
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".
|
|
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.
|
|
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.
|