fix(config): resolve Python reliably, add command-safety hook, harden CI
- 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>
This commit is contained in:
1 parent
e19aa2e27c
commit
79694fbaa2
95 files changed
+1838
-218
No files matched your search
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"skill_name": "work-item-definition",
|
||||
"evals": [
|
||||
{
|
||||
"id": 1,
|
||||
"prompt": "Ticket from product: \"Users should be able to export their data.\" That's all it says. Our app is a B2B time-tracking SaaS with workspaces, projects, and time entries. Turn this into something the team can estimate.",
|
||||
"expected_output": "Should state the outcome in concrete terms. Should define in-scope and explicitly out-of-scope items. Should write observable acceptance criteria including failure or edge cases (e.g. empty data, large exports, permission denied). Should record constraints, dependencies, compatibility requirements, and assumptions separately. Should ask only material open questions (e.g. who may export: individual user vs workspace admin; which data; which format; GDPR-style full export vs report export). Should identify risks and a verification approach. Should not invent business rules as facts and should not implement.",
|
||||
"assertions": [
|
||||
"Contains an objective stated as a concrete user or system outcome",
|
||||
"Contains separate in-scope and out-of-scope sections",
|
||||
"Contains observable acceptance criteria",
|
||||
"Includes at least one failure or edge case criterion such as unauthorized access or an empty or very large export",
|
||||
"Lists assumptions separately from constraints and dependencies",
|
||||
"Open questions are limited to material ones such as who may export, which data, or format",
|
||||
"Does not present invented business rules as established requirements",
|
||||
"Does not include implementation code"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"prompt": "Define a work item: \"Add SSO login using Azure AD B2C's new native passkey support, it works with our current MSAL.js 2.x setup.\"",
|
||||
"expected_output": "Should produce a bounded work item. The request contains external technology claims (Azure AD B2C passkey support, MSAL.js 2.x compatibility); before accepting them as established constraints the agent must apply the technical-research planning checkpoint and carry the evidence or unresolved gaps into the work item. Should not simply restate the claim as fact. Should include objective, scope, acceptance criteria, assumptions, dependencies, open questions, and risks with a verification approach.",
|
||||
"assertions": [
|
||||
"Applies or references the technical-research planning checkpoint for the Azure AD B2C and MSAL.js claims",
|
||||
"Marks the passkey support and MSAL.js 2.x compatibility as evidenced or explicitly unresolved rather than assumed",
|
||||
"Contains objective, scope, acceptance criteria, assumptions, dependencies, and open questions",
|
||||
"Lists MSAL.js and Azure AD B2C as dependencies",
|
||||
"Identifies unresolved risks and a verification approach",
|
||||
"Does not start implementing the login flow"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"prompt": "Make a work item for: \"The settings page Save button should show a spinner while saving.\" Ask me anything you need first.",
|
||||
"expected_output": "This request is already fairly concrete. Despite the invitation to ask anything, the agent should ask only questions that materially change behavior, contracts, permissions, or acceptance, and choose safe reversible defaults for minor details (spinner style, exact placement). Should produce a compact work item with objective, scope, acceptance criteria (including save failure and double-click behavior), assumptions, and few or no open questions.",
|
||||
"assertions": [
|
||||
"Produces the work item rather than only a list of questions",
|
||||
"Asks no questions about minor implementation details such as spinner style or color",
|
||||
"States safe defaults as assumptions for minor details",
|
||||
"Includes an acceptance criterion for the save failure state",
|
||||
"Includes an acceptance criterion about preventing duplicate submissions while saving, or lists it as an open question",
|
||||
"Keeps scope bounded to the Save button behavior"
|
||||
],
|
||||
"files": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user