Implement auto-verification for plural-native workflows - #3921
Implement auto-verification for plural-native workflows#3921michaeljguarino wants to merge 1 commit into
Conversation
* If we know a stack run is spawned by a workbench, auto-verify once it was successful * figure out appropriate service equivalent.
Soffi AI SummaryThis PR implements auto-verification for plural-native (workbench-driven) workflows — specifically for stack runs that are spawned by a workbench via an AI agent session. Motivation: When a workbench AI agent creates a pull request that triggers an infrastructure stack run, there was no mechanism to automatically loop back to the workbench once the run completed. This PR closes that feedback loop: if a stack run succeeds and was initiated by a workbench job (via a PR), the system now automatically sends a verification prompt back to the workbench, asking it to confirm the expected infrastructure changes were applied correctly. Key changes:
Commits
Updated: 2026-07-28 03:34 UTC |
Greptile SummaryImplements automatic verification for successful workbench-originated stack runs.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| lib/console/deployments/pubsub/recurse.ex | Records merged pull requests' generated stack runs and invokes workbench verification on successful stack-queue runs. |
| lib/console/deployments/workbenches.ex | Adds the successful-stack-run lookup and verification-message creation flow. |
| lib/console/schema/pull_request.ex | Adds the stack-run association, query helper, and changeset field. |
| lib/console/schema/workbench_job.ex | Adds a query for locating a workbench job through a pull request's stack run. |
| priv/repo/migrations/20260727224601_add_wb_verification_fields.exs | Adds the nullable indexed stack_run_id foreign key to pull requests. |
| test/console/deployments/pubsub/recurse_test.exs | Covers recording generated stack runs and creating verification activity after successful completion. |
Reviews (2): Last reviewed commit: "Implement auto-verification for plural-n..." | Re-trigger Greptile
Test Plan
Test environment: https://console.your-env.onplural.sh/
Checklist
Plural Flow: console