Skip to content

Daily skills-python test failing: source/skills/legal-research/tests #316

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/skills/legal-research/tests/test_memo_format.py::ProtocolStepSixTests::test_body_closes_with_one_sources_section_in_order

Activity

  1. Mharbulous commented on Nov 26, 2026

    @Mharbulous
    Owner

    This was generated by AI during triage.

    Agent Brief

    Category: bug, because a regression test fails on main.
    State: ready-for-agent, because the fix is a test edit an agent can make and check itself.
    Location: cloud, because the work needs no Windows, data, secret or person, and touches nothing under .claude/.

    Verification:

    • Held: the nightly run's job test failed source/skills/legal-research/tests/test_memo_format.py::ProtocolStepSixTests::test_body_closes_with_one_sources_section_in_order at line 107, on assertIn("a case's style of cause in italics as on the citation lines: ...") against source/skills/shared/research-memo-template.md.
    • Cause: commit dedd002 ("Italicize primary authority names by kind ...", 2026-11-26) deliberately replaced the template's case-only italics sentence with the example bullet `- *Alpha v Beta*, 2020 BCCA 1, paras 5, 9` followed by "Authority names here and in the body follow shared/authority-italics.md." The rule now lives once in source/skills/shared/authority-italics.md, which italicizes every primary authority (case, statute, regulation, rule) and keeps doctrine and citations roman. The commit did not update this test, so the test is stale; the template is right.
    • The rest of the test (Sources heading order; no Authorities; no Question presented) still holds on main.
    • Separate, not in this issue: the same nightly job also failed source/lawyer/tests/test_trailing_dyu.py on a path under the abandoned public/ folder. That is its own failure and out of scope here.

    Decisions

    • Update the test to the new rule rather than restore the old sentence to the template: the commit message states the move to shared/authority-italics.md was intended. Rejected: reverting the template wording.

    Plan

    1. In test_body_closes_with_one_sources_section_in_order of source/skills/legal-research/tests/test_memo_format.py, replace the stale assertIn (line 107) with assertions that the flattened template holds the example bullet `- *Alpha v Beta*, 2020 BCCA 1, paras 5, 9` and the pointer "Authority names here and in the body follow shared/authority-italics.md."
    2. In the same test, assert that read("authority-italics.md") (flattened) states that a case is italicized among the primary authorities and that the citation after the name stays roman, quoting the file's own sentences, so the rule the template points to cannot silently vanish.
    3. Update the dated comment above it to say the rule moved to shared/authority-italics.md on 2026-11-26.

    Scope

    May change: source/skills/legal-research/tests/test_memo_format.py only. Out of bounds: source/skills/shared/research-memo-template.md, source/skills/shared/authority-italics.md, and the built plugins/ folders (a test-only change needs no rebuild or release).

    Done when

    • python -m pytest source/skills/legal-research/tests/test_memo_format.py -q passes.

    After landing

    • The skills-python job of the next daily CI run no longer lists test_memo_format.py.

    Red tests

    • source/skills/legal-research/tests/test_memo_format.py (existing, inside Scope). The repo's hook refuses to run the unchanged file, so the red result is quoted from the daily run (actions run 45887951824, job test):
      E AssertionError: "a case's style of cause in italics as on the citation lines: - Alpha v Beta, 2020 BCCA 1, paras 5, 9" not found in '# Research memo template ...'

    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 8b9d62f: test_body_closes_with_one_sources_section_in_order now asserts the template's example bullet and its pointer to shared/authority-italics.md, and that authority-italics.md still italicizes every primary authority and keeps the citation roman. The dated comment records the 2026-11-26 move.

    Checks run:

    • python -m pytest source/skills/legal-research/tests/test_memo_format.py -q: 27 passed.
    • 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 daily skills-python run no longer listing test_memo_format.py.


    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