Repository navigation
refactor(cli): remove duplicate refusal and repo-write handling - #283
Conversation
Astra reviewReviewed StandardsNo merge-blocking method or YAGNI findings. The single refusal model, shared atomic writer, and canonical definition comparison match the requested simplification. No unrequested abstraction or future-facing machinery found. SpecNo merge-blocking intent findings. The changed paths retain the CLI failure kinds, exit-code ladder, refusal details and repair messages. The shared writer preserves the existing repo identity checks and description stamps; definition comparison still treats omitted boolean defaults as false. Verification: rebuilt the worktree CLI with Summary: Standards 0 blockers, worst issue none. Spec 0 blockers, worst issue none. |
Opus reviewSecond reviewer, standing in for grok build. Fixed point VerificationTests. Byte-identity of the Spot checks from the brief. The remaining checks. Standards1. The collapse contradicts this repo's own review spec.
2. 3. 4. Two unrelated things named 5. Small ones. SpecClean on all three items. The seven classes and the One item outside the brief: Is it a net simplification?Yes, with one qualification. SummaryStandards: 5 findings, none an execution defect — the worst is the documented conflict with |
|
Addressed the review in 224cbfd. Fixed
Kept as is
Verification
|
4daed9f to
ada4f7f
Compare
d7a6274 to
15e38e4
Compare
ada4f7f to
82c40d5
Compare
15e38e4 to
4aca63a
Compare
The CLI converted wire refusals into seven separate error classes and then reconstructed the same fields for output. Repo writes and definition comparisons duplicated logic too.
Use one RejectedError carrying the decoded refusal, share the atomic patchy.json writer, and compare canonical definition defaults. CLI messages, JSON failure documents, kinds and exit codes remain unchanged. Direct output and the child-CLI relay share the documented field allowlist, and an existing lifecycle test now asserts the complete failure document. This diff is confined to packages/patchy.
Stacked on #282, with base branch
portal/cleanup-portal-router.Verification
pnpm lintandpnpm typecheckpassed after the review fixes.pnpm test:packed-cli-e2epassed. The initial default-worker run hit two Postgres timeouts and an unexpected worker exit.Implemented with openai-codex/gpt-6-astra in Oh My Pi.