Repository navigation
refactor: read packets and repair dashboards from review records - #1896
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. What this changesThis PR makes decision packets, repair intake, and report dashboards read typed review records while preserving legacy-report fallbacks. Example: A saved report has legacy priority P3 but its typed maintainer decision specifies P2.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR advances the typed-record migration with distinct work absent from main, and source review found no actionable introduced defect. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherSaved review reports supply decisions to packet generation, repair scheduling, and observer dashboards; host metadata continues to supply identity, publication state, and live safety checks. flowchart LR
Reports[Saved reports] --> Reader[Typed record reader]
Reader --> Legacy[Legacy fallback when absent]
Reader --> Packets[Decision packets]
Reader --> Intake[Repair intake and revision checks]
Reader --> Dashboard[Report dashboards]
Technical reviewBest possible solution: Complete this scoped reader cutover while retaining absent-record compatibility and revision stability for equivalent backfills. Do we have a high-confidence way to reproduce the issue? This is a reader migration rather than a standalone bug report; source and added scenarios demonstrate how typed decisions replace stale repeated text. Is this the best way to solve the issue? The change extends existing record readers and preserves legacy behavior locally, avoiding a second decision owner or stored-format migration. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a46cadd7e21d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 10, 2026, 9:35 AM ET / 13:35 UTC. |
Summary
readReviewRecordOrLegacyfor narrow legacy projections instead of fabricated full decisions. No stored-format or schema changes.Behavior proof
Claim: existing saved reports publish identical output after the reader cutover, while typed decisions win over stale text and corrupt records cannot authorize packets, repair work or dashboard results.
Surface/environment: Node 24.21.0, production-built
apply-decisions --sync-comments-only, comment renderer, packet readers; isolated temporary reports with the existing recording gh fixture (no live GitHub mutations). Baselineff328679cb3940489b2f2cd59e5bc69c3505e204versus this branch.handoffs/clawsweeper-review-record/s4b/complete/proof.tsass5-s6/proof.tsover the same 73 saved reports / 159 variants.revisions.json); 12 corrupt records fail closed. Regression cases prove record-only prompt/validation and security/product-eligibility changes refresh prior jobs/audits.proof-heads.jsonrecords the reuse boundary: the later isolated intake-revision fix did not change the complete-driver apply/comment/packet paths; its final behavior is covered by revision parity, memory and intake regressions.Artifacts:
~/Developer/.agents/handoffs/clawsweeper-review-record/s5-s6/{proof.ts,proof.out,proof-table.md,readers.json,revisions.json,memory-main.json,memory-branch.json,revision-memory.json,checks.log,codex-review-committed.log}. Full caller inventory:remaining-callers.json; grouped file:line list and next-slice boundary:STATUS.md→ S7 blockers.Validation
pnpm run build:allpnpm run lintpnpm run format:checkcodex review --base origin/main: no actionable defects (166 focused tests independently passed). Earlier findings for a fixture mismatch and intake cache/job revision dependencies were fixed.No full suite, production apply or merge. No Bay contract change: dashboard/ consumes host data independently and does not parse these reviewed fields. The changed report dashboard remains observer-only.