Repository navigation
fix(plan): mechanical follow-ups from the PR-293 post-merge review - #297
Merged
Merged
Conversation
Addresses only the MECHANICAL findings from the post-merge review of the plan-approval gate (issue #206 / PR #293). The design-loaded findings (approve-then-cancel mode-flip loss, disconnect durable-log-tail drop, continuation-logic dedup) are deliberately left for separate decisions. - server/http.go: planModeFromString lowercases BEFORE trimming the PERMISSION_MODE_ prefix, so the documented case-insensitive spelling ("permission_mode_default") is honoured instead of silently falling through to deny/iterate. - server/service.go: autoApproveWaitTimeout var -> const (never overridden; matches its sibling const autoApprovePollInterval). - app/build.go: --plan-mode-auto-approve on an INTERACTIVE deployment now WARNs it is INERT (the flag only fires headless), mirroring normalizeAskReviewerModel's inert-when-interactive posture, instead of narrating a "NO HUMAN REVIEW" fact that does nothing. - mecatui/ui/view.go: the footer "W auto-accept" hint is gated on ask.offerAlways, matching the action bar; a surfaced child plan ask (offerAlways=false) no longer advertises a key that no-ops. - permconfig: new plan_mode_auto_approve_test.go pins the operator-tier-only boundary (a project-tier plan-mode-auto-approve: is ignored with a WARN) — the one operator-tier scalar whose boundary was previously untested. - adr/0069: amendment note recording the deny path terminates via StopPlanIterate (superseded the ADR's "loop continues" design; frozen ADR corrected by note, not rewritten in place). NOTE: llms.txt must be regenerated (task docs:llms) after the ADR edit; the sandbox could not fetch the matlatl module to do so here. Co-Authored-By: Claude Opus 4.8 <[email protected]>
JAORMX
approved these changes
Jul 24, 2026
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.
Post-merge review of the plan-approval gate (issue #206 / PR #293, already merged to
main). This PR addresses only the mechanical findings from that review; the design-loaded ones (approve-then-cancel mode-flip loss, disconnect durable-log-tail drop, continuation-logic dedup) are deliberately left for separate decisions.Fixes
server/http.go—planModeFromStringnow lowercases before trimming thePERMISSION_MODE_prefix, so the documented case-insensitive spelling (permission_mode_default) is honoured instead of silently falling through to the deny/iterate fail-safe.server/service.go—autoApproveWaitTimeoutvar→const(never overridden; matches its siblingautoApprovePollInterval).app/build.go—--plan-mode-auto-approveon an interactive deployment now WARNs that it is INERT (the flag only fires headless; gate is!PlanModeAutoApprove || Interactive), mirroringnormalizeAskReviewerModel's inert-when-interactive posture, instead of narrating a "NO HUMAN REVIEW" fact that does nothing there.mecatui/ui/view.go— the footerW auto-accepthint is gated onask.offerAlways, matching the action bar; a surfaced child plan ask (offerAlways=false) no longer advertises a key that no-ops.permconfig— newplan_mode_auto_approve_test.gopins the operator-tier-only boundary (a project-tierplan-mode-auto-approve:is ignored with a WARN) — the one operator-tier scalar whose boundary was previously untested.adr/0069— amendment note recording that the deny path terminates viaStopPlanIterate(superseded the ADR's "loop continues" design during implementation; frozen ADR corrected by note, not rewritten in place).Notes
llms.txtregenerated (task docs:llms) after the ADR edit — the index is byte-identical, since the amendment note touches no field the index captures. No content change.🤖 Generated with Claude Code