Skip to content

feat(hac): scripts/measure_deleted_why_comments.py still reports lost reason comments across PR #... - #479

Open
thomashan wants to merge 7 commits into
mainfrom
I-1796253989-hac-restore-why-src-batch3/P-1796254012-CLA-CO5.5/E-1796254209-CLA-CO5.5/_
Open

thomashan wants to merge 7 commits into
mainfrom
I-1796253989-hac-restore-why-src-batch3/P-1796254012-CLA-CO5.5/E-1796254209-CLA-CO5.5/_

Conversation

@thomashan

Copy link
Copy Markdown
Collaborator

Summary

scripts/measure_deleted_why_comments.py still reports lost reason comments across PR #426, PR #405, PR #388, PR #387, PR #386, and PR #428, and flow/git_refs.py still holds one lost reason.

Goal:
Restore missing '# why:' rationale comments where code alone does not show the constraint across apps/sandbox-executor/src/sandbox_executor/flow/git_refs.py and the 8 test files (test_sandbox_hermetic_guard.py, test_touch_set_overlap.py, test_turn_live_children.py, flow/test_in_flight.py, flow/test_ledger_interleave.py, test_init.py, flow/github/test_review_post.py, test_executor_commands.py), keeping edits comment-only with zero AST/logic changes and recording in execution notes which entries are already shown by code or obsolete (deleted test_self_doc_src_g.py). Verify uv run python scripts/check_self_explaining.py, uv run task lint, and uv run pytest. Code is self-explaining: no docstrings and no comments except '# why:' comments that record a reason the code cannot show.

Key Changes

References

None

Plan & Validation Metadata

  • Plan ID: P-1796254012-CLA-CO5.5
  • Expected Value (EV): 22.35
  • Agent: claude-agent
  • Model: claude-opus-5-5

Holon Intent Agent and others added 7 commits December 2, 2026 23:26
Description:
scripts/measure_deleted_why_comments.py still reports lost reason comments across PR #426, PR #405, PR #388, PR #387, PR #386, and PR #428, and flow/git_refs.py still holds one lost reason.

Goal:
Restore missing '# why:' rationale comments where code alone does not show the constraint across apps/sandbox-executor/src/sandbox_executor/flow/git_refs.py and the 8 test files (test_sandbox_hermetic_guard.py, test_touch_set_overlap.py, test_turn_live_children.py, flow/test_in_flight.py, flow/test_ledger_interleave.py, test_init.py, flow/github/test_review_post.py, test_executor_commands.py), keeping edits comment-only with zero AST/logic changes and recording in execution notes which entries are already shown by code or obsolete (deleted test_self_doc_src_g.py). Verify uv run python scripts/check_self_explaining.py, uv run task lint, and uv run pytest. Code is self-explaining: no docstrings and no comments except '# why:' comments that record a reason the code cannot show.

Generated by Holon Intent Agent at 2026-12-02T23:26:37Z
…estore-why-src-batch3/P-1796254012-CLA-CO5.5/_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant