Skip to content

fix(verify): harden execution, evidence, and UI interactions - #292

Merged
simota merged 2 commits into
mainfrom
fix/verify-review-hardening
Nov 28, 2026
Merged

simota merged 2 commits into
mainfrom
fix/verify-review-hardening

Conversation

@simota

@simota simota commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Purpose

Fix cases where Verify could remain stuck on invalid reply files or transient I/O failures, apply an earlier verification's actions to a later session, or accept modified evidence and inconsistent verdicts.

The review covered execution, storage, verdict validation, and UI interactions. Regression tests cover the reproduced defects.

What changed

  • File operations and reruns: Read, replace, and remove files relative to verified directory handles. Reject FIFOs, symlink substitutions, and parent directory traversal. Continue process monitoring and deadline checks when status files cannot be read, while allowing transient read failures to recover within the grace period. Prevent indefinite waits when a resumed rerun has no PID.
  • Sessions and UI interactions: Prevent duplicate start and resume submissions. Associate file dialogs and destructive confirmations with their originating view, discarding responses after a session switch. Cancel a pending resume when the user selects “Verify again,” so a late snapshot cannot replace the newly configured form.
  • Evidence and verdicts: Recheck stored logs against their recorded size and digest before displaying or quoting them. Reject new judge responses with criterion/defect ID collisions, fail verdicts that omit failed must criteria from blocking, and verified criteria listed as blockers. Preserve existing event replay behavior.
  • Detection and reports: Bound agent detection output and prevent reader threads or open pipes from lingering after detection ends. Preserve literal command backticks and Markdown fences in logs so they cannot break reports or task prompts.
  • Update documentation to match implemented features, including native image previews, and add changelog entries.

Verification

  • Rust 1.92.0.
  • cargo test --manifest-path widgets/verify/Cargo.toml --locked --offline -- --test-threads=4: 622 passed, 0 failed, 3 ignored. Breakdown: lib 294 / bin 293 / CLI 4 / golden 13 / resume 5 / timeline 13. The three existing ignores are one manual smoke test using real agent CLIs and two subprocess helpers invoked by parent tests.
  • scripts/verify.sh: verify: ok.
  • cargo fmt --all -- --check, Verify's standalone formatting check, and git diff --check: passed.
  • Regression coverage includes FIFOs, directory substitution, rerun read failures and recovery, stale dialog responses, switching views during a pending resume, evidence modification, and verdict consistency. Multiple regressions were confirmed to fail before their fixes and pass afterward.
  • Rendered the compact demo view at 720×640 and the report view at 1440×900 headlessly, then visually inspected the images.
  • Independently reviewed execution and file operations, models and reports, and UI and evidence. Fixed the findings and checked the changes through further independent review.
  • Final verified commit: b75e0842608e2d2dcff39e492d6ff527ae58193a.
  • GitHub CI: 3 / 3 passed — macOS core / macOS widgets / Linux. Every job's Verify step passed, and the macOS widgets verification command reports verify: ok. CI results
  • Codex review of the latest commit: complete, no findings, no unresolved findings. Confirmed that the review state's commit_sha matches the commit above and that there are 0 unresolved review threads. Review results
  • The first macOS CI run exposed a shell difference: output from the test's builtin printf probe for a closed pipe leaked into the result file. After isolating the probe in its own subshell and checking both sh and bash, all CI jobs passed. The assertion remains output == "closed"; the same test still detects "open" and fails with the original implementation that kept the reader alive.

Not verified

  • The local scripts/verify.sh --full run ended with verify: FAILED: clippy build test scaffold desktop-files. This environment lacks Fontconfig development files and appstreamcli; an existing scaffold test that uses temporary directories also fails under this workspace layout. The full macOS and Linux gates passed in GitHub CI, as linked above.
  • An additional standalone Verify clippy check fails on the existing large_enum_variant warning for the unchanged model/types.rs::Event. The same warning was confirmed on clean main at 04062e1.
  • This environment did not allow manual verification of the Noa GUI on macOS, OS file dialogs and external viewers, an end-to-end verification with real agents, or the native image inspector.

Risks

  • Status files that remain unreadable produce explicit not-run or error results after the applicable grace periods and deadlines expire. Tests cover recovery from transient failures and preservation of an already recorded timeout.
  • Stricter validation of new judge responses means contradictory responses that were previously accepted now require correction. No new input constraints apply to historical event replay.
  • Dependencies, lockfiles, vendor code, verification gates, and release settings are unchanged.

Risk class

medium — Changes to Verify's internal behavior, regression tests, and related documentation.

Anchor filesystem operations, recover rerun status errors, guard session actions,
verify stored evidence, bound agent detection, and validate judge replies.
Add regression coverage and align the specification with shipped previews.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 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-28T15:24:06.666324Z b75e084 Manual request
ℹ️ 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.

simota commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner Author

@codex review

Please review commit 79602f22f4ab5e5692f5214db17d1186a6128f7c, focusing on resistance to directory replacement, rerun deadlines and recovery from transient I/O failures, asynchronous responses after session changes, compatibility with stored logs, and consistency of new judge replies. All 622 Verify tests and the verification gate for the affected code passed locally.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 79602f22f4

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

simota commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner Author

@codex review

I fixed the shell output contamination caught by macOS CI in the test for closing the pipe. The latest commit is b75e0842608e2d2dcff39e492d6ff527ae58193a. The probe that writes to a closed pipe now runs in its own subshell. The production detection code is unchanged. The output == "closed" assertion is retained, and the test covers both sh and bash.

The same updated test fails against the old implementation by observing "open", confirming that it still detects the leaked reader. All 622 Verify tests and scripts/verify.sh passed again. Please review the latest commit.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: b75e084260

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@simota simota changed the title fix(verify): 検証実行・証跡・画面操作の整合性を強化 fix(verify): harden execution, evidence, and UI interactions Nov 28, 2026
@simota
simota merged commit 9044ba9 into main Nov 28, 2026
3 checks passed
@simota
simota deleted the fix/verify-review-hardening branch November 28, 2026 15:38
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