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/legal-research/tests #316
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
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."
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.
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).
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 ...'
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.
Activity
Mharbulous commentedon Nov 26, 2026
Agent Brief
Category:
bug, because a regression test fails onmain.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:
testfailedsource/skills/legal-research/tests/test_memo_format.py::ProtocolStepSixTests::test_body_closes_with_one_sources_section_in_orderat line 107, onassertIn("a case's style of cause in italics as on the citation lines: ...")againstsource/skills/shared/research-memo-template.md.`- *Alpha v Beta*, 2020 BCCA 1, paras 5, 9`followed by "Authority names here and in the body followshared/authority-italics.md." The rule now lives once insource/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.Authorities; noQuestion presented) still holds onmain.source/lawyer/tests/test_trailing_dyu.pyon a path under the abandonedpublic/folder. That is its own failure and out of scope here.Decisions
shared/authority-italics.mdwas intended. Rejected: reverting the template wording.Plan
test_body_closes_with_one_sources_section_in_orderofsource/skills/legal-research/tests/test_memo_format.py, replace the staleassertIn(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 followshared/authority-italics.md."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.shared/authority-italics.mdon 2026-11-26.Scope
May change:
source/skills/legal-research/tests/test_memo_format.pyonly. Out of bounds:source/skills/shared/research-memo-template.md,source/skills/shared/authority-italics.md, and the builtplugins/folders (a test-only change needs no rebuild or release).Done when
python -m pytest source/skills/legal-research/tests/test_memo_format.py -qpasses.After landing
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, jobtest):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
Update the memo Sources test to the shared authority-italics rule
Mharbulous commentedon Nov 26, 2026
Landed in 8b9d62f:
test_body_closes_with_one_sources_section_in_ordernow asserts the template's example bullet and its pointer toshared/authority-italics.md, and thatauthority-italics.mdstill 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