Seam: register I_DISPLACED in validator/__init__.py RULES (PH5.5 follow-up) #92
Labels
No labels
in-progress
in-review
ready-for-agent
seam-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#37 PH5.5 — Diff between plan versions and I_DISPLACED
patrick/Polaris
Reference
patrick/Polaris#92
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
PH5.5 (#37,
feature/api-diff) implementspolaris/validator/rules/displaced.py(check_displaced, theI_DISPLACEDfinding) fully, with its own bad-plan fixtures and unit tests callingcheck_displaceddirectly. It is not wired intopolaris.validator.validate().polaris/validator/__init__.py'sRULEStuple (and its module docstring's "codes intentionally not implemented here" list) belong to T-D's already-mergedpolaris/validator/**row (docs/12-implementation-plan.md), which is outside PH5.5's owned paths (domain/planning/diff.py,api/routers/plans/diff.py,validator/rules/displaced.pyonly).tests/unit/validator/{test_rules,test_validate}.pyare the same situation —test_validate.py'sDEFERRED_TO_LATER_TICKETSset currently listsFindingCode.I_DISPLACEDand needs it removed once this lands, with a matchingCASESentry added totest_rules.py.What needs to change
In
polaris/validator/__init__.py:displacedfrompolaris.validator.rules.displaced.check_displacedto theRULEStuple.I_DISPLACEDbullet from the module docstring's "intentionally not implemented" list.In
tests/unit/validator/test_rules.py:tests.fixtures.bad_plans.displacedandpolaris.validator.rules.displaced.("I_DISPLACED", displaced_fixtures.dropped_without_reason, displaced.check_displaced, FindingCode.I_DISPLACED)case (fixtures already exist attests/fixtures/bad_plans/displaced.py, written for PH5.5).In
tests/unit/validator/test_validate.py:FindingCode.I_DISPLACEDfromDEFERRED_TO_LATER_TICKETS.Why this is a separate issue
CLAUDE.md's file-ownership rule: "Touch only files your ticket created or that its row explicitly owns... A file that already existed when your session started and is not in your row's Owns column belongs to someone else." These three files pre-date PH5.5 and are outside its Owns column, so PH5.5 implements+tests
check_displaceddirectly rather than editing them.Blocks #37.