Skip to content

Daily skills-python test failing: source/skills/safe-file-deletion/tests #317

Done

Description

@github-actions

Failed in the daily run on 2026-11-27: https://github.com/Mharbulous/probanda-dev/actions/runs/46059448175

Failing tests:

  • source/skills/safe-file-deletion/tests/test_contract.py::SafeFileDeletionContractTests::test_canonical_carries_scope_boundaries (token='client-matter project')
  • 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='client-matter project')
  • source/skills/safe-file-deletion/tests/test_contract.py::SafeFileDeletionContractTests::test_full_projection_carries_scope_boundaries (token='Does NOT apply inside a Git worktree')

Activity

  1. Mharbulous commented on Nov 27, 2026

    @Mharbulous
    Owner

    This was generated by AI during triage.

    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:

    • 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

    1. 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.
    2. 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/.

    Done when

    • python -m pytest source/skills/safe-file-deletion/tests/test_contract.py -q passes.
    • 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

    Generated by Claude Code

  2. added
    bug
    cloud
    on Nov 27, 2026
  3. self-assigned this
    on Nov 27, 2026
  4. Mharbulous commented on Nov 27, 2026

    @Mharbulous
    Owner

    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 into plugins/, 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugcloudready-for-agent

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions