Skip to content

fix(cli): distinguish review outcomes and expose scoped recovery metadata - #98

Merged
abruption merged 1 commit into
mainfrom
fix/97-review-recovery
Nov 23, 2026
Merged

abruption merged 1 commit into
mainfrom
fix/97-review-recovery

Conversation

@abruption

@abruption abruption commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Issue

Closes #97

Problem and result

  • Add rebut review --strict-exit. Keep the existing JSON and default exit behavior. Strict mode requires a completed body for the requested input hash and format. It rejects metadata-only replays and MCP errors without dispatching again.
  • Add Worker support for rebut status --pending. Return at most 100 unresolved requests belonging to the authenticated principal and indicate truncation. Align reservation and accounting fields with local status.
  • Document when the backend resolves the profile and how to serialize extended review bundles. Include compatibility guidance and three verified hash examples in each packaged guide.

Validation

  • Passed typecheck, CLI and Worker dry-run build, 294 tests, and package smoke.
  • Exercised strict and default exit behavior, replay handling, malformed Worker results, and unsupported pending lookup using mocks.
  • Verified two-principal Worker isolation, bounded pending results, status amount parity, and zero provider dispatches from status queries.
  • Compared the v0.5.0 parser with the current contract and checked hash examples in all four guides.
  • Claude Opus 5.5 and Gemini 4 Argon Medium independently reviewed the design and implementation. Incorporated their feedback on status envelopes, profile timing, and exit-code documentation.

Device validation

Installed the archive built from fc707d4ef72c1c0f2e3cc4c1fd4a3f7a280d62bd on two macOS ARM64 systems, Linux ARM64, and Windows 10 x64. Each device verified SHA-256 d0ed518f06bd29d9527892eadab85eb3df944dd8b38c7124e7741148b12fa185.

  • One paid local gpt-6-luna review per device completed with a body and strict exit 0. All four returned completion metadata for the original ID without a provider key. Repeating the same ID in strict mode returned metadata and exit 1.
  • The macOS and Linux CLI fixtures exercised Worker pending lookup, the unsupported old-Worker path, and strict tool errors over mocked MCP. Windows verified its existing local-only settings guard and used its system trust store for the live local call. Worker principal isolation and the 101-row boundary passed in the Miniflare tests on macOS.

@abruption
abruption marked this pull request as ready for review November 23, 2026 04:55
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T04:57:46.855800Z fc707d4 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-23T04:59:12.141586Z fc707d4 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@abruption
abruption merged commit 4c8f758 into main Nov 23, 2026
10 checks passed
@abruption
abruption deleted the fix/97-review-recovery branch November 23, 2026 05:00
@abruption abruption mentioned this pull request Nov 24, 2026
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.

fix(cli): distinguish review outcomes and expose scoped recovery metadata

1 participant