You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Daily skills-python test failing: source/skills/safe-file-deletion/tests #317
source/skills/safe-file-deletion/tests/test_contract.py::SafeFileDeletionContractTests::test_canonical_carries_scope_boundaries (token='Does NOT apply inside a Git worktree')
source/skills/safe-file-deletion/tests/test_contract.py::SafeFileDeletionContractTests::test_full_projection_carries_scope_boundaries (token='Does NOT apply inside a Git worktree')
Category: bug — the daily skills-python run fails on a stale contract test, not on a behaviour change. State: ready-for-agent — the fix is a test update an agent can make and check from this brief alone. Location: cloud — it edits one Python test file and runs it; nothing needs Windows, data, a secret or a person.
Verification:
Held: the four sub-test failures named in the issue are real. The nightly log (run 46059448175, job test) shows each FRONTMATTER_TOKENS assertion at test_contract.py:47 and :56 failing on the frontmatter of source/skills/safe-file-deletion/SKILL.md.
Cause: commit 26884d8 (2026-11-27, "lawyer: cut skill descriptions to triggers") deliberately rewrote the skill's description to fit the skill-list budget. The new description keeps both scope boundaries (client-matter folders protected even inside a Git worktree; other Git-worktree files out of scope) but no longer holds the exact phrases the test pins, client-matter project and Does NOT apply inside a Git worktree.
Held: every BODY_TOKENS sub-test still passes; only the two frontmatter tokens fail, in both test methods.
Corrected fact: the test's two methods read the same file (FULL_PROJECTION equals SKILL_ROOT / "SKILL.md"), so the four failures are two missing tokens counted twice.
Tests are not copied into plugins/: plugins/lawyer/skills/safe-file-deletion/ holds only SKILL.md and hooks, so this fix changes no built plugin and needs no release.
Decisions
Update the test's frontmatter tokens to the new description's wording, because the description change was deliberate and keeps the same scope boundaries. Rejected: restoring the old description, which would undo the skill-list budget cut that commit 26884d8 made on purpose.
Plan
In source/skills/safe-file-deletion/tests/test_contract.py, replace the two FRONTMATTER_TOKENS entries with phrases the current description holds that state the same two boundaries: client-matter folder, even inside a Git worktree, and Not for other files in a Git worktree.
Leave BODY_TOKENS, both test methods and SKILL.md unchanged.
Scope
May change: source/skills/safe-file-deletion/tests/test_contract.py only.
Out of bounds: source/skills/safe-file-deletion/SKILL.md (its description is the maintainer's deliberate wording), every other skill and test, and plugins/.
python scripts/build_plugin.py --check still reports every plugin matches its source.
After landing
The next daily skills-python run passes source/skills/safe-file-deletion/tests.
Red tests
source/skills/safe-file-deletion/tests/test_contract.py (existing, inside Scope). The repo's hook refuses to run it unchanged, so the red result is the assertion from the nightly run on main: AssertionError: 'client-matter project' not found in '\nname: safe-file-deletion\nuser-invocable: false\ndescription: "Use whenever a file in a client-matter folder must be removed in a Cowork or shell session, even inside a Git worktree: every such removal must be recoverable. Not for other files in a Git worktree."\n'
Command: python -m pytest source/skills/safe-file-deletion/tests/test_contract.py -q
Activity
Mharbulous commentedon Nov 27, 2026
Agent Brief
Category: bug — the daily skills-python run fails on a stale contract test, not on a behaviour change.
State: ready-for-agent — the fix is a test update an agent can make and check from this brief alone.
Location: cloud — it edits one Python test file and runs it; nothing needs Windows, data, a secret or a person.
Verification:
test) shows eachFRONTMATTER_TOKENSassertion attest_contract.py:47and:56failing on the frontmatter ofsource/skills/safe-file-deletion/SKILL.md.descriptionto fit the skill-list budget. The new description keeps both scope boundaries (client-matter folders protected even inside a Git worktree; other Git-worktree files out of scope) but no longer holds the exact phrases the test pins,client-matter projectandDoes NOT apply inside a Git worktree.BODY_TOKENSsub-test still passes; only the two frontmatter tokens fail, in both test methods.FULL_PROJECTIONequalsSKILL_ROOT / "SKILL.md"), so the four failures are two missing tokens counted twice.plugins/:plugins/lawyer/skills/safe-file-deletion/holds onlySKILL.mdandhooks, so this fix changes no built plugin and needs no release.Decisions
Plan
source/skills/safe-file-deletion/tests/test_contract.py, replace the twoFRONTMATTER_TOKENSentries with phrases the current description holds that state the same two boundaries:client-matter folder,even inside a Git worktree, andNot for other files in a Git worktree.BODY_TOKENS, both test methods andSKILL.mdunchanged.Scope
May change:
source/skills/safe-file-deletion/tests/test_contract.pyonly.Out of bounds:
source/skills/safe-file-deletion/SKILL.md(its description is the maintainer's deliberate wording), every other skill and test, andplugins/.Done when
python -m pytest source/skills/safe-file-deletion/tests/test_contract.py -qpasses.python scripts/build_plugin.py --checkstill reports every plugin matches its source.After landing
source/skills/safe-file-deletion/tests.Red tests
source/skills/safe-file-deletion/tests/test_contract.py(existing, inside Scope). The repo's hook refuses to run it unchanged, so the red result is the assertion from the nightly run onmain:AssertionError: 'client-matter project' not found in '\nname: safe-file-deletion\nuser-invocable: false\ndescription: "Use whenever a file in a client-matter folder must be removed in a Cowork or shell session, even inside a Git worktree: every such removal must be recoverable. Not for other files in a Git worktree."\n'Command:
python -m pytest source/skills/safe-file-deletion/tests/test_contract.py -qGenerated by Claude Code
safe-file-deletion: contract test pins the shortened description's sc…
Mharbulous commentedon Nov 27, 2026
Landed in 617005d on
main: the contract test's frontmatter tokens now pin the shortened description's wording of the same two scope boundaries.Checks run:
python -m pytest source/skills/safe-file-deletion/tests/test_contract.py -q: 2 passed, 18 subtests passed.python scripts/build_plugin.py --check: every plugin current (tests are not built intoplugins/, so no release).python scripts/check_plugin.py: all checks passed.python scripts/check_layering.py: 0 to fix.python scripts/check_file_ops.py: 0 with no ruling.python scripts/check_publishable.py --new-since origin/main: no new problems.Left to CI: the next daily skills-python run of
source/skills/safe-file-deletion/tests.Generated by Claude Code