story-042: A plan may assign an existing file to the implementer - #39
Merged
Conversation
Implemented by the l5 harness story workflow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
plan_validation.assignment_problemsrefused a plan that assigned atests/path to the implementer, because the workflow says the implementer may not create files there. Butlikely_file_changesdoes not record whether a file will be created or modified, so the check guessed creation and refused both.The two rules it conflated
may_not_create: ["tests/"], enforced after the stage runs againstchanged-files.json'screatedlist.implementer edits under tests/ permitted.The plan-time check was applying the first rule to a case the second one owns.
It only bit an honest plan
story-041's planning session was refused for four files —
test_clean_clone_check.py,test_revert_check.py,test_self_routing_retry.py,test_no_target_stack_in_harness_source.py— all of which already exist. The implementer cannot create them; it can only edit them, which that story requires because they assert on the fields and config key it renames.Meanwhile the three stories before it each had their implementer edit files under
tests/, each was permitted by the revert check, and none of their plans listed atests/file at all:So the check refused a plan that forecast its forced edits and missed the ones that stayed quiet. It rewarded vagueness.
What changed
assignment_problems(story, stages, root)now refuses only when the assigned path does not exist:scripts/l5-planthreads the target root throughartifact_problems. The fact is derived from the repository rather than declared: anaction: create | modifyfield was considered and rejected, because it would be the planner's claim, the check would still have to verify it, and roughly forty committed artifacts do not carry it.The create-half is untouched — a plan naming a new
tests/file for the implementer is still refused, still names both resolutions, andtest_the_conflict_story_031_carried_is_reportedholds that against a real historical instance.Verification
2271 passed, 23 written; verification passed on the first iteration, no retries; clean-clone green with the story committedtest_pre_flight_does_not_start_refusing_the_assignment_class—run_storynever called this check and must not begin to, so no run behaviour changestest_no_committed_artifact_becomes_unrunnable— every committed artifact still validates🤖 Generated with Claude Code