Repository navigation
test(tui): add reusable PTY evidence producer - #118902
Conversation
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 5:14 PM ET / 21:14 UTC. ClawSweeper reviewWhat this changesThe PR adds a QA Lab scenario and reusable script that runs allowlisted TUI pseudo-terminal assertions, verifies their Vitest JSON result, and emits bounded evidence artifacts. Merge readinessThis maintainer-authored, maintainer-labeled PR remains necessary as a coherent QA Lab addition. The patch stays within existing QA evidence seams, validates only allowlisted TUI PTY cases, and adds focused contract coverage; no concrete correctness or security defect was found in the proposed change. Priority: P3 Review scores
Verification
How this fits togetherQA Lab executes declared scenarios and converts their results into maintainable evidence bundles. This producer sits between a TUI PTY test scenario and the existing script-evidence writer, authenticating the selected test result before QA Lab consumes the bundle. flowchart LR
A[QA Lab scenario] --> B[PTY evidence producer]
B --> C[Allowlisted TUI PTY tests]
C --> D[Vitest JSON report]
D --> E[Report validation]
E --> F[QA evidence bundle]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +826, Other +33. Total +859 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land the producer as QA-only infrastructure after final maintainer inspection of the GitHub merge result, preserving its fixed allowlist, scenario-owned coverage, and existing QA evidence-writer contract. Do we have a high-confidence way to reproduce the issue? Not applicable as a defect report: this PR introduces QA infrastructure. Its producer path is source-verifiable through the scenario, fixed command construction, report checks, and focused contract tests, but this read-only review did not execute the PTY suite. Is this the best way to solve the issue? Yes. The patch uses the established QA Lab script runner and script-evidence writer, then validates the real PTY assertion at the producer boundary instead of adding a competing runner or modifying TUI runtime code. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5b1b1e063225. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
d24bece to
116386b
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
116386b to
4bd3d20
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
4bd3d20 to
8d5c1a8
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
8d5c1a8 to
a6ac1ff
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
What Problem This Solves
QA coverage slices that rely on the TUI PTY tests lacked a reusable producer that authenticates exact Vitest file and assertion results and emits QA Lab evidence.
Why This Change Was Made
Adds a strict script evidence producer over existing public QA seams and a secondary-only contract scenario. The producer accepts only the two documented CLI arguments, allowlists exactly the three existing PTY test files, validates scenario coverage-to-case ownership, requires a fresh successful Vitest JSON report, and emits bounded redacted evidence artifacts.
No production code, dependency, lockfile, plugin SDK, protocol, channel, taxonomy, or TUI runtime files change.
User Impact
No direct user-facing behavior changes. QA scenario authors can reuse authenticated PTY evidence without claiming primary product coverage in this infrastructure slice.
Evidence
8d5c1a86803468d470b19d51c879749647afcc6btui-pty-evidence-producer-contract: passed at exact head after rebuilding private-QA CLI artifacts.src/tui/tui-pty-harness.e2e.test.ts, secondary-onlytui.message-composition, withvitest-report.json,proof-matrix.json,latest-run.json, andqa-evidence.json.pnpm-lock.yamlwas restored after a sparse-checkout install artifact and has no final diff; no dependency change is required.AI-assisted implementation and review.