- Resolve Python 3.11+ through shared Resolve-Python.ps1/resolve-python.sh, which probe python, python3 and py -3 and skip the Windows Store alias. Build and capability checks fail early with an actionable message; doctor reports missing Python and the skipped hooks. - Fix check-capabilities.sh comparing only the major version. - Register Validate-CommandSafety as a PreToolUse hook for Claude and Codex; shared logic in command-safety.py catches rm -rf variants, git reset --hard, git clean -f, Remove-Item -Recurse, del/rd /s /q and nested shells. - Replace duplicated placeholder chains in both builds with adapters/placeholders.tsv. - Restore shell parity: add test-capabilities.sh, rename credentials.ps1 to with-credential.ps1 and qmd-warm.sh to start-qmd-warm.sh. - CI: build once and pass generated/ as an artifact, lint Python with ruff and JavaScript modules with node --check, require SHA pins for all actions. - Add evals for all own skills and update documentation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
3.1 KiB
JSON
46 lines
3.1 KiB
JSON
{
|
|
"skill_name": "repository-research",
|
|
"evals": [
|
|
{
|
|
"id": 1,
|
|
"prompt": "In this repo, where do we decide whether a user's session has expired, and what happens to an in-flight API request when it does? I don't know the file or function names.",
|
|
"expected_output": "This is an open repository search with unknown identifiers and a behavior question. Should apply research and repository-research, and run semantic retrieval first (via semantic-search when installed) rather than guessing keywords. Should trace the flow from entry point through shared helpers to observable behavior, and check related tests and configuration. Should report file paths and symbols as evidence and separate confirmed behavior, inference, and unresolved questions.",
|
|
"assertions": [
|
|
"Uses semantic retrieval before keyword searches for the unknown identifiers",
|
|
"Traces from an entry point through helpers to the observable behavior on expiry",
|
|
"Checks related tests or configuration such as session timeout settings",
|
|
"Cites specific file paths and symbols as evidence",
|
|
"Separates confirmed behavior from inference",
|
|
"Lists unresolved questions if any part could not be confirmed"
|
|
],
|
|
"files": []
|
|
},
|
|
{
|
|
"id": 2,
|
|
"prompt": "Show me the contents of `src/server/routes/health.ts`.",
|
|
"expected_output": "This is a direct read of a known path. Should read the file directly without loading research, repository-research, or semantic-search and without running semantic retrieval.",
|
|
"assertions": [
|
|
"Reads src/server/routes/health.ts directly",
|
|
"Does not run semantic retrieval",
|
|
"Does not load research, repository-research, or semantic-search skills",
|
|
"Does not perform broad repository searches"
|
|
],
|
|
"files": []
|
|
},
|
|
{
|
|
"id": 3,
|
|
"prompt": "I want to remove the `retryWithBackoff` helper. I searched `rg retryWithBackoff --type ts` and got no results outside its own file, so nothing uses it. Confirm it's safe and delete it.",
|
|
"expected_output": "Should not accept an empty or partial search as proof of absence. Should check search scope (other file types such as JS, tests, configuration, scripts, generated output), ignored files, truncation, and indirect references such as re-exports or barrel files. Should search callers and tests of the symbol before changing it. Should report evidence with paths and separate confirmed findings from unresolved questions. Continue with authorized deletion only once the research question is answered.",
|
|
"assertions": [
|
|
"States that the earlier empty search result is not proof of absence",
|
|
"Checks beyond --type ts, such as JavaScript, tests, configuration, or scripts",
|
|
"Considers ignored files or indirect references such as re-exports",
|
|
"Searches for callers and tests of retryWithBackoff before deleting",
|
|
"Cites the paths searched as evidence",
|
|
"Deletes only after the research confirms no remaining usages, or reports the remaining usages"
|
|
],
|
|
"files": []
|
|
}
|
|
]
|
|
}
|