Skip to content

fix(review): restore exact review schema admission - #1026

Merged
vincentkoc merged 1 commit into
mainfrom
fix/codex-schema-admission
Aug 4, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/codex-schema-admission

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where exact ClawSweeper reviews failed before source review when the decision schema contained strict-output keywords rejected by the current Codex Responses path.

The failure started after regression provenance fields added oneOf, allOf, if, then, and uniqueItems. Reviews terminated with:

Invalid schema for response_format 'codex_output_schema':
In context=('properties', 'regressionAssessment'), 'oneOf' is not permitted.

Why This Change Was Made

The decision schema now expresses nullable regression objects with supported type unions and leaves conditional and uniqueness enforcement in the existing runtime parser. A schema regression test recursively rejects the unsupported strict-output keywords, and synthetic failure decisions now populate the required assessment field.

OpenClaw Bay is unaffected: this changes review admission only, not the public status data contract or any observer/action surface.

User Impact

Exact reviews reach the source-review phase again instead of failing at Codex request admission. Regression assessment and provenance validation remain enforced before publication.

Evidence

Real Behavior Proof

  • Claim: the current ClawSweeper decision schema is accepted by Codex strict output and an exact OpenClaw review completes.
  • Exercised surface: clawsweeper review -> Codex --output-schema -> exact review report.
  • Scenario: re-ran the same mutation-free review of fix(setup): activate the exact prepared local model openclaw#119050 that previously failed with the oneOf schema error.
  • Environment: macOS, Node 26.5.0, current Codex CLI, read-only sandbox, local-only ClawSweeper review, exact OpenClaw head 03ba86544e8f3051a1275a4b4a4646e10078a9f9.
  • Command: node dist/clawsweeper.js review --target-repo openclaw/openclaw --target-dir <clean-openclaw-worktree> --artifact-dir <temp-artifact-dir> --batch-size 1 --max-pages 1 --codex-model internal --codex-reasoning-effort high --codex-sandbox read-only --codex-timeout-ms 1200000 --item-numbers 119050 --readonly-openclaw --local-only --skip-start-comment --shard-index 0 --shard-count 1
  • Observable result: exit 0; review_status: complete; review_terminal_failure: false; reviewed exact head 03ba86544e8f3051a1275a4b4a4646e10078a9f9; source review completed and returned two concrete findings instead of an admission error.
  • Trace: review completed August 4, 2026 at 2026-08-04T02:59:27Z; Codex review elapsed 579,770 ms.
  • Limits: local-only proof did not publish a GitHub review comment or exercise the hosted workflow runner. CI covers the hosted build/test lanes.

Automated validation

  • node --test test/codex-review-runner.test.ts test/decision-parser.test.ts - 25 passed
  • direct TypeScript builds for main and repair projects
  • focused source/test oxlint - clean
  • repository-wide oxfmt --check - 632 files clean
  • active-surface, dashboard queue-boundary, and limits checks - clean
  • structured autoreview - clean, patch correct at 0.99 confidence

The aggregate pnpm run check wrapper was not used because this GWT links a shared node_modules tree and pnpm attempted an interactive dependency purge. The equivalent changed-surface build, static, lint, format, parser tests, and live review proof above completed without modifying shared dependencies.

@vincentkoc
vincentkoc marked this pull request as ready for review August 4, 2026 03:07
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc
vincentkoc merged commit 3d4b45a into main Aug 4, 2026
11 checks passed
@vincentkoc
vincentkoc deleted the fix/codex-schema-admission branch August 4, 2026 03:10
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