Repository navigation
fix: stop misclassifying stored-data compatibility proof - #1633
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 22, 2026, 12:35 AM ET / 04:35 UTC (Revision 5). ClawSweeper reviewWhat this changesReplaces English compatibility-proof matching with an explicit reviewer assessment preserved through stored reports and merge-readiness checks. Merge readiness✅ Ready for maintainer review The PR remains useful: fetched main still infers compatibility from prose. The typed assessment resolves the earlier classifier findings, and no introduced correctness or security defect was found. Priority: P2 Review scores
Verification
How this fits togetherClawSweeper turns reviewer decisions into stored reports, public checklists, and automation readiness markers. This change controls whether evidence clears the hold on a PR that changes persisted data. flowchart LR
A[Reviewer assessment] --> B[Decision validation]
B --> C[Stored report]
C --> D[Compatibility check]
E[Detected stored-data change] --> D
D --> F[Hold or clear compatibility]
F --> G[Independent readiness gates]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep compatibility judgment explicit, preserve independent merge gates, and require fresh assessments for historical stored-data reports. Do we have a high-confidence way to reproduce the issue? Yes—the serialized report cases expose false rejection and false acceptance in the classifier still present on fetched main. The submitted baseline/candidate results demonstrate that path; this review did not execute target code. Is this the best way to solve the issue? Yes—one validated reviewer assessment removes competing prose interpretation while retaining conservative legacy handling and independent readiness checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6e59a7126d55. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
@clawsweeper re-review Current head: |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Replace English proof inference with one Codex assessment carried through the existing decision, report and readiness path. Only explicit sufficient compatibility clears a detected stored-data hold. General proof exemptions remain independent, and historical reports without an assessment require a fresh review. Remove the grammar classifier and its historical fixtures/driver; retain source and merge authority gates and use the existing prompt/schema policy hash for cache invalidation. Co-authored-by: Jason Sy <[email protected]>
fdea349 to
3b7bd15
Compare
|
@clawsweeper re-review The main PR body now documents the typed Codex compatibility assessment replacing the English classifier, the conservative historical-report behavior, and executed compiled-runtime proof. All 15 runtime scenarios, 284 focused tests, and the full repository check passed. Fresh pre-commit and committed-branch reviews are clean. The earlier prose-classification findings are resolved by deleting that classifier, with contributor credit retained. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Landed as 00c29ac. Thanks @fuller-stack-dev / Jason Sy; contributor credit is preserved. The renderer now enforces Codex's explicit compatibility assessment instead of reclassifying English prose. The change removes 60 TypeScript production lines, 40 lines including prompt/schema, and 151 lines overall. Historical stored-data reports remain readable and need a fresh review before their compatibility hold clears; general proof exemptions, findings, security and source/merge guards remain independent. Proof ran on AWS Crabbox (
Fresh independent pre-commit and committed-branch reviews were clean. The final ClawSweeper review is current for both head and source revision, accepts the proof, and reports no findings. Hosted CI passed: https://github.com/openclaw/clawsweeper/actions/runs/35686984264. Production automerge integration passed: https://github.com/openclaw/clawsweeper/actions/runs/35686984241. CodeQL passed. The PR body retains complete provenance, hashes, observed results and limits. This proves the compiled decision/report/readiness boundary with synthetic assessments; it does not claim a model-judgment benchmark, live GitHub publication, canonical-record migration or actual database upgrade. Bay's observer contract is unchanged. |
What Problem This Solves
Fixes: stored-data review readiness changes when compatibility evidence contains historical or affirmative wording that the renderer's English rules misclassify.
User Impact
Codex now records one explicit stored-data compatibility assessment in its existing review response. The renderer validates that assessment and enforces the existing hold. A detected data-model change clears that hold only with an explicit
sufficientassessment.Historical stored-data reports remain readable but require a fresh review before their compatibility hold can clear. Existing general proof exemptions, findings, security checks, source freshness, opt-in and merge authorization keep their separate roles.
Why This Change Was Made
The renderer was making a second compatibility judgment by combining prose from the proof summary, solution assessment and evidence. This replaces that inference with
realBehaviorProof.dataModelCompatibility:sufficient,insufficient, ornot_applicable, with reasoning in the existing summary and evidence. New generated output requires the field; historical decision/report readers allow its absence conservatively.Only a unique valid value from canonical report frontmatter is accepted. General sufficient proof, proof overrides, docs-only treatment and maintainer/bot authorship cannot manufacture compatibility approval. A contradictory
not_applicableassessment does not clear an independently detected stored-data change. A verified no-migration case can be assessed sufficient by Codex.This deletes the 88-line English classifier and its grammar-specific fixture/driver. Net change against main: 60 fewer TypeScript production lines, 40 fewer lines including prompt/schema, and 151 fewer lines overall. The existing prompt/schema policy hash handles cached-assessment invalidation. Thanks @fuller-stack-dev / Jason Sy for the original investigation and fixes; human co-author credit is preserved.
OpenClaw Bay Impact
No implementation change. Readiness retains its existing observer meaning; public fields, routes, navigation and mutation boundaries are unchanged.
Documentation Impact
Updated the active review-comment contract and Unreleased changelog. The old negation proof page is historical and points to the preserved implementation in Git history and the current typed proof. The existing stored-data detector and merge gates retain ownership; the new field carries Codex's judgment through the existing pipeline.
Evidence
All 284 focused compatibility, surface-policy, proof-automation and readiness tests passed. The full
pnpm run checkpassed 6,466 tests with 19 skips and zero failures; the separate changed-coverage gate passed 13/13. Independent pre-commit reviews found no actionable P0–P2 findings. Current-head branch review and hosted checks must pass before merge.Real Behavior Proof
Claim and exercised surface: The actual compiled decision parser, report writer, canonical report reader, checklist renderer and automation-marker renderer propagate the dedicated compatibility assessment and enforce its independent hold. This establishes runtime propagation and gating, not the reliability of model judgment on unseen evidence.
Fixture and before/after: The same three serialized input reports were run against baseline main and candidate compiled renderers. Their input bytes were compared and are identical across runs. Additional candidate cases cover the real decision-parser → report-writer → reader/rendering round trip and generic proof exemptions.
Candidate also passes three producer round trips (
sufficient,insufficient,not_applicable) and nine override/maintainer/docs-only combinations. In each exemption group, generic proof is explicitly missing; only the dedicated sufficient assessment clears compatibility. All 15 runtime scenarios pass. Focused regressions additionally cover invalid/duplicate/body-only metadata, no detected data-model surface, independent findings/general-proof blockers and preservation through screenshot-proof normalization.Environment and revisions: Crabbox provider
aws, leasecbx_a07faedef990(pearl-barnacle-59dd), imageami-0461d919be7deb53c, Linux c7a.8xlarge, Node 24.18.1 and pinned pnpm 12.4.1. Base0ecd31af54ad8cc735ac7ed71b4b863db7bd78ab; candidate3b7bd1534b8881ddbc480d9e887ae92c9c0f62eb.Commands and receipts: Baseline compiled owners:
node scripts/e2e/data-model-proof.ts --baseline, runrun_fe59a11029d616915358a0535687d6c5; base source hashes were verified against the pinned Git files. Candidate focused proof:node --test test/compatibility-proof.test.ts test/pr-surface-policy.test.ts test/pr-proof-automation.test.ts test/review-state-contract.test.ts && node scripts/e2e/data-model-proof.ts, runrun_c57e3dddd4738147c240016f8dd5b6c7. Final candidate:pnpm run check && node scripts/e2e/data-model-proof.ts, runrun_e7b244cf2c4826c16dc921a91dabd5e0.The driver retains actual report/comment Markdown and
receipt.jsonunder.artifacts/typed-compatibility-proof/{baseline,candidate}/. Shared input SHA-256 values are5c73d5981ed2964cc24770e3b81b539f4561a101e8e24e6362ebadcbed7e473a(sufficient/neutral),4dbdaa3dc9a4a6f9b2d19194b47e7ceb1f8a015a2573a6218f21e5390dc139b7(insufficient/affirmative), ande693125cd682e2c35d25059a33fa4fce48d76a1d825d24271f858e73f7b99780(legacy/affirmative).Final executed source hashes match the candidate: report parser
599d608233f38a0b2d1076527d9744c1ace7229d7287750f275f43c0c5020e89; gatefd4efabcf22c777b120ed49999311ad75e84a7ab69212d5381dce3dcb91228e9; decision parser4e85f7bfd5ab9f0375acadc96ad72eb7bea5c1ad0dce85e1c05bac763642a381; report writere5f1f74dd21cd2c2ace753734bd74701579b2e93d147677291e94c4f1d22475a; schema9020b3b32de50c91ce15299b80a9028434fc38722986bcbfd58d8fe739c4cd34.Limits and finding disposition: Synthetic assessments and reports, real compiled production boundaries. No live GitHub publication, canonical record migration, model invocation or actual database upgrade is claimed. The former negation/prose findings are resolved by removing that classifier; equivalent old prose alone cannot turn an old report ready. A new Codex assessment is required for affected historical records.