Skip to content

feat(hac): Stage 2 planner catches Prettier warnings without failing closed and leaves repository... - #476

Open
thomashan wants to merge 7 commits into
mainfrom
I-1796253986-hac-stage2-plan-prettier/P-1796254011-CLA-CO5.5-3/E-1796254170-CLA-CO5.5/_
Open

thomashan wants to merge 7 commits into
mainfrom
I-1796253986-hac-stage2-plan-prettier/P-1796254011-CLA-CO5.5-3/E-1796254170-CLA-CO5.5/_

Conversation

@thomashan

Copy link
Copy Markdown
Collaborator

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

  • Implement 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.

References

None

Plan & Validation Metadata

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

Holon Intent Agent and others added 7 commits December 2, 2026 23:26
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/_
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