Skip to content

Daily skills-python test failing: source/lawyer/tests #315

Done

Description

@github-actions

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

Failing tests:

  • source/lawyer/tests/test_trailing_dyu.py::TrailingDyuTests::test_other_prompts_print_nothing (prompt='/dyu I want the letter to open with the offer.')
  • source/lawyer/tests/test_trailing_dyu.py::TrailingDyuTests::test_other_prompts_print_nothing (prompt='Use /dyu before you answer, then draft the letter.')
  • source/lawyer/tests/test_trailing_dyu.py::TrailingDyuTests::test_other_prompts_print_nothing (prompt='Draft the letter.')
  • source/lawyer/tests/test_trailing_dyu.py::TrailingDyuTests::test_other_prompts_print_nothing (prompt='Open the file at notes/dyu')
  • source/lawyer/tests/test_trailing_dyu.py::TrailingDyuTests::test_other_prompts_print_nothing (prompt='See skills/dyu/SKILL.md for the rules')
  • source/lawyer/tests/test_trailing_dyu.py::TrailingDyuTests::test_other_prompts_print_nothing (prompt='')
  • source/lawyer/tests/test_trailing_dyu.py::TrailingDyuTests::test_the_public_plugin_registers_the_hook
  • source/lawyer/tests/test_trailing_dyu.py::TrailingDyuTests::test_the_skill_stays_model_invocable
  • source/lawyer/tests/test_trailing_dyu.py::TrailingDyuTests::test_trailing_token_loads_the_skill (prompt='I want the letter to open with the offer, not the history. /dyu')
  • source/lawyer/tests/test_trailing_dyu.py::TrailingDyuTests::test_trailing_token_loads_the_skill (prompt='Two paragraphs.\n\nThe second one.\n/dyu\n')
  • source/lawyer/tests/test_trailing_dyu.py::TrailingDyuTests::test_trailing_token_loads_the_skill (prompt='Move the costs table up $dyu')
  • source/lawyer/tests/test_trailing_dyu.py::TrailingDyuTests::test_trailing_token_loads_the_skill (prompt='Move the costs table up /lawyer:dyu')
  • source/lawyer/tests/test_trailing_dyu.py::TrailingDyuTests::test_trailing_token_loads_the_skill (prompt='Is that what you meant? /DYU.')
  • source/lawyer/tests/test_trailing_dyu.py::TrailingDyuTests::test_trailing_token_loads_the_skill (prompt='/dyu')

Activity

  1. Mharbulous commented on Nov 26, 2026

    @Mharbulous
    Owner

    This was generated by AI during triage.

    Agent Brief

    Category: bug — a test reads paths that no longer exist. State: ready-for-agent — one test file changes, and the agent can run that file to check the change. Location: cloud — the change is test-only and runs under Python on Linux. It needs no Windows machine, data, secret or person.

    Verification:

    • Held: every failing case in the 2026-11-26 nightly comes from one file, source/lawyer/tests/test_trailing_dyu.py. The file builds SKILL_ROOT and PUBLIC_PLUGIN_JSON under public/plugins/lawyer/. Commit c95be3c (2026-11-26, "Retire the public repository model") deleted public/ and moved the dyu skill to source/skills/dyu/, but did not update this test.
    • The hook now lives at source/skills/dyu/hooks/trailing-dyu.py, and the build copies it to plugins/lawyer/skills/dyu/hooks/trailing-dyu.py. Run directly in the sandbox, it returns the # DYU context for a prompt that ends in the token and prints nothing for a prompt that starts with it. So the hook works, and only the test's paths are stale.
    • source/skills/dyu/SKILL.md holds the phrase the test asserts on and does not contain disable-model-invocation.
    • source/lawyer/plugin.json and the built plugins/lawyer/.claude-plugin/plugin.json both register ${CLAUDE_PLUGIN_ROOT}/skills/dyu/hooks/trailing-dyu.py under UserPromptSubmit, next to the docket-clerk session-lane-guard.py. So the old public-only assertion, which required exactly one argument, would fail against the built manifest even with the path corrected.
    • No other Python test refers to public/.

    Decisions

    • Point the public-plugin test at the built manifest plugins/lawyer/.claude-plugin/plugin.json, rename it test_the_built_plugin_registers_the_hook, and assert membership (assertIn) instead of exact equality, because the built manifest registers two UserPromptSubmit hooks. Rejected: deleting the test, which would leave the built manifest unchecked.

    Plan

    1. In source/lawyer/tests/test_trailing_dyu.py, set SKILL_ROOT to REPO_ROOT / "source" / "skills" / "dyu", so HOOK and SKILL_MD resolve to the source skill.
    2. Replace PUBLIC_PLUGIN_JSON with the built manifest path REPO_ROOT / "plugins" / "lawyer" / ".claude-plugin" / "plugin.json". Rename test_the_public_plugin_registers_the_ho·o·k t·o ·t·est_the_built_plugin_registers_the_hook, and have it assert that PLUGIN_HOOK_ARG is among the registered args.
    3. Leave every other test and assertion as it is.

    Scope

    May change: source/lawyer/tests/test_trailing_dyu.py only. Out of bounds: the hook, the skill, both plugin manifests, plugins/, and any version bump, because the plugin's behaviour does not change.

    Done when

    • python -m pytest source/lawyer/tests/test_trailing_dyu.py -q passes.
    • grep -n '"public"' source/lawyer/tests/test_trailing_dyu.py prints nothing.

    After landing

    • The next nightly skills-python-tests run on Windows passes source/lawyer/tests.

    Red tests

    • Path: source/lawyer/tests/test_trailing_dyu.py, the existing file, which is unchanged on main, so the repository's hook will not run it. The assertion from the nightly run (actions run 45887951824) counts as red. Every case fails because public/plugins/lawyer/skills/dyu/hooks/trailing-dyu.py and public/plugins/lawyer/.claude-plugin/plugin.json no longer exist, for example self.assertEqual(result.returncode, 0, result.stderr) in test_trailing_token_loads_the_skill.
    • Command: python -m pytest source/lawyer/tests/test_trailing_dyu.py -q

    Note

    Claude's GitHub safety filter added the · characters above so that a bot command in this comment does not run automatically. A person who wants it to run can post the command without the · characters.


    Generated by Claude Code

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

    @Mharbulous
    Owner

    Landed in 5b994ee: test_trailing_dyu.py now reads the hook and SKILL.md from source/skills/dyu/, and the renamed test_the_built_plugin_registers_the_hook checks plugins/lawyer/.claude-plugin/plugin.json with assertIn.

    Checks run:

    • python -m pytest source/lawyer/tests/test_trailing_dyu.py -q: 5 passed, 12 subtests passed.
    • grep -n '"public"' source/lawyer/tests/test_trailing_dyu.py: prints nothing.
    • build_plugin.py --check: every plugin current (no release needed).
    • check_plugin.py: all checks passed.
    • check_layering.py, check_file_ops.py: 0 to fix.
    • check_publishable.py --new-since origin/main: no new problems.

    Left to CI: the next nightly skills-python-tests run on Windows passing source/lawyer/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