Repository navigation
fix: lifecycle close matches rows by prompt path or issue (M3.6e) - #583
Merged
Merged
Conversation
close_registries now returns (registry, heading) pairs matched by slug, then by a row whose prompt: resolves to the task's prompt, then by its issue: (new --issue, else the prompt's Issue: header), each only when exactly one row matches. cmd_close prints the matched heading and prunes by it, so an active.md row whose heading is not the slug is dropped. Seen after shift 2026-11-16-pm, where two rows were removed by hand. Refs PyAutoLabs/PyAutoBrain#661. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The issue fallback in close_registries now runs only when the task's own row matched by slug or prompt in no registry, and skips any row whose prompt: resolves to another prompt file. Closing a task no longer removes the next epic phase's row filed under the same issue. Refs PyAutoLabs/PyAutoBrain#661 (review finding 2). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A row whose prompt: names a file other than the task's is never taken by the issue fallback, whether that file still exists or not. Refs PyAutoLabs/PyAutoBrain#661 (re-review nit). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Mind half of M3.6e (PyAutoBrain#661):
scripts/lifecycle.py closefound noactive.mdrow when the heading did not match the task slug (two rows removed by hand after shift 2026-11-16-pm). It now matches by slug, then by a registryprompt:resolving to the prompt file, then byissue:(new--issue, or the prompt'sIssue:header). The issue fallback is used only when nothing matched by slug or prompt in any registry, only when exactly one row matches, and never on a row whoseprompt:names another file. It prunes by the heading it actually matched and prints it.API Changes
CLI:
lifecycle.py closegains--issue <url>.See full details below.
Test Plan
tests/test_lifecycle_close.pynew tests fail on origin/main and pass here: by prompt path, by issue URL, issue from theIssue:header, two rows ambiguous, sibling row sharing the issue never dropped, fallback skips a row naming another (or missing) promptFull API Changes (for automation & release notes)
Added
lifecycle.py close ... --issue <url>Changed Behaviour
close_registriesreturns (registry, matched heading) pairs;cmd_closeprunes by the matched headingRefs PyAutoBrain#661.
Heart RED override (development only)
pyauto-heart readiness --dev --repos PyAutoBrain,PyAutoMind):PyAutoMind: Tenant Firewall Gate failure on main— pre-existing generated-hook drift from PyAutoMind#575 (run 43881901227, 2026-11-16); this branch does not touch those hooks and does not claim to fix Heart./prmwith every required check green. No release.🤖 Generated with Claude Code