Repository navigation
fix(framework): skip directories with no PROMPT.md during eval discovery - #304
Merged
Merged
Conversation
Everything under evals/<suite>/ was read as an eval, so any other directory there threw and stopped discovery for the whole repo.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
barryroodt
approved these changes
Sep 17, 2026
czenko
added a commit
that referenced
this pull request
Sep 17, 2026
Closes DOCS-1228 Merge [#304](#304) first. It keeps a skill folder under `evals/docs/` from stopping eval discovery. This PR's checks pass either way, because no check on a PR runs discovery, but every eval run does. ## Problem Four `build-docs-*` evals exist and each was designed from scratch. The most recent cost three false reds and one false green, all of them mistakes an earlier author had already made or could have warned about. The only authoring guidance that exists is a five-step how-to buried in `build-docs-001/README.md`. ## Solution - **The skill.** `evals/docs/.claude/skills/docs-eval-planning/`: `SKILL.md` plus four references. It sits inside `evals/docs/`, which CODEOWNERS gives to the docs team, so the skill and the evals it plans have the same owner. - **Six phases.** Enter plan mode and read `CONTRIBUTING.md`, gather the evidence, pick the one claim the page has to transmit, draft the prompt, design the checks, write the plan, and feed the catalog once the baseline lands. - **`references/sources.md`** lists every evidence source. The Access column reads `Public` or `Supabase`, and a contributor without a connector drops that source and keeps going. Planning from the public sources alone is a supported outcome. What is not optional is recording which sources the inventory came from, because one built from public sources alone reads as complete when it is not. - **`references/check-rules.md`** is ordered by what a violation costs. The first three are observability, behavior over structure, and positive controls a literal cannot satisfy. - **`references/flakiness.md`** is mined from review feedback on twenty-one PRs, with a citation per entry. Nine of those PRs were outside the set I started from, including #108, which carries a `CHANGES_REQUESTED` review, and #192, where the CI reproducibility work happened. - **`references/prompt-rules.md`** carries the prompt discipline. The file, frontmatter, and README conventions live in `SKILL.md` itself. **Not asserted here:** the skill is deliberately not installable into an eval sandbox. A run must never load it, or an eval that measures a docs page would be measuring this skill instead. ## Manual testing 1. Confirm the skill is discovered and its description reads correctly. ```bash ls evals/docs/.claude/skills/docs-eval-planning ``` 2. Confirm every relative link resolves and every path the skill names exists. ```bash grep -oE '\(references/[a-z-]+\.md\)' evals/docs/.claude/skills/docs-eval-planning/SKILL.md ``` 3. Confirm the skill folder does not break eval discovery, with #304 applied. ```bash pnpm eval:dry -- --suite docs --experiment-suite docs ``` Plans all seven docs evals. Without #304 the same command fails with `ENOENT: ... evals/docs/.claude/PROMPT.md`. 4. Typecheck and run the harness unit tests. ```bash pnpm typecheck && pnpm --filter @supabase-evals/framework test ``` Clean, 8 passed. 5. Confirm Biome does not process the skill, since it ships no markdown formatter. ```bash ./node_modules/.bin/biome check evals/docs/.claude ``` `No files were processed in the specified paths.`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
evals/docs/belongs to the docs team in CODEOWNERS, so I went to add a Claude Code skill there, atevals/docs/.claude/skills/. Eval discovery stopped working for the whole repo.discoverEvalswalksevals/<suite>/and treats every directory it finds as an eval, then opens that directory'sPROMPT.md. A directory that is not an eval has noPROMPT.md, so the first one throws and nothing is discovered. Not just the docs suite. Nothing.A leftover
solutions/directory in an eval folder does the same thing, which is a trap an author can hit without touching this file.Solution
PROMPT.md. One line indiscoverEvals, before the read. A directory that is not an eval stops being read as one, and the suite it sits in keeps working.Why this is its own PR:
apps/belongs to the AI team,evals/docs/belongs to docs. This line is the only part of #259 that needs an AI review, so splitting it leaves the skill itself inside the docs team's own scope. Merge this one first.Manual testing
Put a directory that is not an eval inside a suite.
Discover the docs evals.
All seven
build-docs-*evals are planned. Onmainthe same command fails with theENOENTabove.Typecheck and run the harness unit tests.
Clean, 8 passed.
Not covered by a test:
discoverEvalsis not exported and reads the filesystem directly, so a unit test means refactoring more of this file than the fix changes.