Repository navigation
fix(qa): validate Slack run artifacts and approval identities - #117344
Conversation
|
Codex review: needs maintainer review before merge. Reviewed September 21, 2026, 10:19 AM ET / 14:19 UTC (Revision 17). ClawSweeper reviewWhat this changesThe PR isolates incoming Slack desktop QA artifacts per run, validates matching approval identities, and adds regression coverage and output-directory guidance. Merge readiness✅ Ready for maintainer review The repair remains useful on current main. No blocking introduced defect was found, and the earlier directory-validation finding is resolved. Priority: P2 Review scores
Verification
How this fits togetherMantis Slack desktop QA collects screenshots and metadata from a remote QA run. Its artifact validator turns that evidence into a pass/fail result and publishes reports for operators. flowchart TD
A[Remote Slack QA run] --> B[Incoming artifacts]
B --> C[Private run staging]
C --> D[Validate files and approval identities]
D --> E[Pass or fail verdict]
C --> F[Publish artifact files]
E --> G[Operator report]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +163, Tests +234, Docs +6, Other 0. Total +403 across 7 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep verdict validation within the single artifact owner, preserving existing report paths and the documented separate-directory contract for concurrent bundles. Do we have a high-confidence way to reproduce the issue? Yes, source establishes a clear path: reuse an output directory, copy incomplete new artifacts, and let current main read the retained successful metadata or checkpoints. This review did not execute that path. Is this the best way to solve the issue? Yes. Invocation-specific staging addresses the stale-input cause at the existing runtime boundary without adding public APIs, locks, or another publication owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b517ee030f2d. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (16 earlier review cycles; latest 8 shown)
|
Validate each invocation in a private staging directory before publishing to the existing artifact paths. Bind approval evidence to the producer channel, message and opaque approval identity, preserving the existing cleanup owner. Keep unrelated and unselected evidence and preserve prior reports on invalid options. Public output remains latest-publisher, not an atomic snapshot. The prior artifact implementation reproduced eleven distinct false passes. Thirty-three behavior cases passed before the final mechanical type narrowing; independent P2 review is clean. Final selected gates remain pending after host disk exhaustion interrupted source preparation before upload.
Use the existing root-walk and test-environment SDK entry points, keep overlap barriers local to the fixture, and adopt the canonical generated Slack assertion baseline shrink. Clarify that each verdict uses its own staging inputs while shared fixed output paths may interleave across concurrent runs. Coherent concurrent bundles require separate output directories.
|
Merged via squash.
|
…aw#117344) * fix(qa): reject stale Slack desktop workflow evidence * fix(qa): align Slack artifact proof with SDK boundaries Use the existing root-walk and test-environment SDK entry points, keep overlap barriers local to the fixture, and adopt the canonical generated Slack assertion baseline shrink. Clarify that each verdict uses its own staging inputs while shared fixed output paths may interleave across concurrent runs. Coherent concurrent bundles require separate output directories.
What Problem This Solves
Mantis Slack Desktop QA can report success using stale or mixed inputs when an output directory is reused or two runs overlap. Approval checkpoints can also describe different interactions while passing shape-only checks.
User Impact
Each invocation derives its verdict only from its own incoming artifacts. Missing screenshots, metadata, or selected checkpoints fail visibly; pending and resolved approval evidence must identify the same producer channel, message, and opaque approval ID. Invalid options preserve prior reports, while unrelated diagnostics and unselected checkpoints remain intact.
Published files retain their existing fixed paths. Concurrent runs sharing an output directory can interleave files and summaries; they must use separate output directories for coherent per-run bundles. This repair isolates verdict inputs without adding cross-process publication serialization, locks, or artifact history.
Why This Change Was Made
One private artifact owner handles staging, validation, publication, and staging cleanup. Existing nested cleanup still releases sessions, heartbeat workers, and credential leases when copying, validation, publication, or cleanup fails. Traversal uses the existing narrow SDK root-walk contract. The tests use the documented temp-directory helper and local deterministic Promise barriers.
Approval evidence follows the actual producer contract: both Codex QA scenarios use plugin approvals, Convex may select the channel, and mutable Slack thread metadata does not redefine message identity. No approval authorization policy changed.
Evidence
Unchanged production reproduced ten false-pass cases for stale or mismatched evidence plus a separate overlapping-run failure through
runMantisSlackDesktopSmoke. The final artifact suite passed all 16 cases with zero skips; the unchanged 17-case runtime-owner proof is retained. Fixtures use synthetic command-runner and credential responses; this is not live Slack, Gateway, or provider execution.The latest
pnpm test <file> --maxWorkers=1file walls were 24.44 seconds for the artifact suite and 29.69 seconds for the existing owner suite. Earlier cold artifact runs measured 40.77–42.66 seconds. Latest test bodies took 2.99 and 2.57 seconds respectively; cold transforms account for most of the full file cost. The actual runtime boundary is needed to exercise copying, verdict selection, publication, and cleanup together. No performance claim is inferred from timing variation.Hosted CI is green for head
1c5080b7a5ef. Both containing jobs checked out generated mergefb19d82a950aagainst basec371f5f0a57band passed all 33 Slack cases:These sums use rounded per-case durations, not full-file wall time. Hosted CI does not report isolated file walls: the containing shards ran 73 files / 712 cases and 74 files / 1,292 cases respectively, and whole-job times include setup and the shared runtime build. The separately measured 24.44 s / 29.69 s full-file walls above remain the file-cost evidence.
Final affected proof passed the artifact cases, source/import/format guards, extension-test types, and targeted lint. The canonical selected-check categories are covered using those results plus explicitly reused successful production/core, plugin, script, and remaining guard checks. Earlier aggregate changed-check failures are retained rather than represented as a single green aggregate invocation. All final downloaded proof artifacts match the owning run's emitted hash manifest. The final difference after runtime proof is a documentation paragraph and an ordinary source comment; complete-candidate P2 review is clean.
Validation findings and repairs
Root.walk, and directPromise.withResolversoutside the test project's TypeScript library target. Existing narrow SDK surfaces and local standard-Promise barriers resolved these; no library target or SDK surface was expanded. Targeted lint also caught and resolved one shadowed callback parameter.