Repository navigation
fix(scans): retain the reported phase when a Standard scan stops - #2675
mldangelo-oai wants to merge 22 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
zcrab-oai
left a comment
There was a problem hiding this comment.
Owner-level merge-safety review of 3c174709a9c1c0aeeee3b8ead7e387ed78b658bd.
No P0/P1 findings. Two P2 gaps remain in saving the reported phase: session polling can win before live delivery, and the coordinator can stop the scan before SDK cleanup. Both were reproduced with synthetic local inputs. The separate observation and shared progress projection otherwise fit the intended behavior.
Validation passed: 75 Node database tests, 4 new SDK stop tests, 21 renderer tests, 2 repository-findings tests, Ruff, source checks, type checks, formatting, and benign SQLite/public CLI failure and cancellation checks. Local ownership checks prevented some older Python cases and artifact publication; two inventory fixtures also failed locally. Verified CI reports for this head show those Python and inventory cases passing. No ownership or security checks were bypassed.
Approval remains pending interactive confirmation of this PR and head; this is a COMMENT review.
Summary
Refs #70. A local Standard scan can stop after the primary model reports a phase but before a checkpoint saves it.
scans shownow displays that last reported phase and the time the SDK received it.Changes
progress.lastObservedPhasemetadata, separately from the checkpoint phase and saved review counts. Command output and stale reports do not supply this observation.Testing
The validation below covers the product and test inputs committed in
2f965da. Merging current main changes only two workflow action pins; all product, test and package inputs remain unchanged. The receiving revision passed the workflow syntax, example, shell and security checks plus 26 release-progress tests.pnpm run typesandpnpm run format. These used an isolated Linux environment with the repository's supported sandbox policy.pnpm run test:ciorder passed with JUnit and LCOV (13,277 passed, 171 skipped, one existing TODO). An earlier default run had eight 30-second timeouts; all eight cases passed in both a focused captured-seed control and the complete renewal. The original failure remains recorded, with no source or timeout change.pnpm pack, archive validation and the production-dependency audit passed. Installed-package checks passed under Node 22.13.0, 24.0.0, 24.22.3, 26.0.0 and 26.13.1; the baseline also exercised worker retry. Candidate-package Action integration passed.2f965dapassed all 65 jobs. Hosted CI for this receiving revision is still required; previous hosted results retain their original revision.Risk and rollout
The observation is optional and applies to local Standard scans using the default validation workflow. The bundled plugin advertises support; older plugins retain their existing stop arguments, and records without an observation omit the JSON field. The reported phase does not establish completed review coverage.
Migration 79 adds a nullable column and preserves known preview histories. Use the updated plugin when reopening an upgraded database.
Public disclosure review