Repository navigation
feat(hac): Stage 2 planner catches Prettier warnings without failing closed and leaves repository... - #476
Open
thomashan wants to merge 7 commits into
Conversation
Description: Stage 2 planner catches Prettier warnings without failing closed and leaves repository Prettier checks unverified, causing PRs whose plans have misaligned markdown tables or lists to fail CI hygiene. Goal: Update Stage 2 plan formatting in apps/sandbox-executor/src/sandbox_executor/entrypoint/planner.py and apps/sandbox-executor/src/sandbox_executor/formatting.py so Stage 2 formats the plan markdown with repository Prettier in the same step as python fence formatting, fails closed with a named error if prettier --check still fails on the committed plan file, and is covered by hermetic unit tests in apps/sandbox-executor/tests/test_planner_plan_fence_format.py and apps/sandbox-executor/tests/test_planner.py under 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:35Z
…tage2-plan-prettier/P-1796254011-CLA-CO5.5-3/_
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
Stage 2 planner catches Prettier warnings without failing closed and leaves repository Prettier checks unverified, causing PRs whose plans have misaligned markdown tables or lists to fail CI hygiene.
Goal:
Update Stage 2 plan formatting in apps/sandbox-executor/src/sandbox_executor/entrypoint/planner.py and apps/sandbox-executor/src/sandbox_executor/formatting.py so Stage 2 formats the plan markdown with repository Prettier in the same step as python fence formatting, fails closed with a named error if prettier --check still fails on the committed plan file, and is covered by hermetic unit tests in apps/sandbox-executor/tests/test_planner_plan_fence_format.py and apps/sandbox-executor/tests/test_planner.py under 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
P-1796254011-CLA-CO5.5-351.15claude-agentclaude-opus-5-5