Wovain Docs

Agent flows

GitLab Duo flows automate post-code DevSecOps for wovain, with PostHog sensing and verifying.

After the code is merged, GitLab Duo agent flows handle the work around it:

FlowTriggerOutput
Self-healingA production error in the server logs, or a browser exception PostHog error tracking groupsA merge request with the fix and a regression test, verified in production
ScoutA daily schedule, or a PostHog KPI alert, reading KPIs and UIIssues with evidence for the improvements worth making
DeveloperAn issue a trusted person acceptsA merge request that takes the issue to completion
Vuln to fixA new High or Critical SAST findingA reviewed patch

Feature-flag fault injection lets the self-healing flow be demonstrated end to end: a flag introduces a controlled failure in production, the error is logged, and the flow opens the fix.

The PostHog loop

PostHog senses, Duo acts, PostHog verifies:

  1. Sense. PostHog watches real visits: browser exceptions, the merchant funnel, rage and dead clicks, web vitals, run ratings and the cost of every Nemotron call. Each KPI has an alert that fires while it misses its target.
  2. Nudge. An error tracking issue or a firing KPI alert starts the ops pipeline in GitLab. Nothing from PostHog's event reaches GitLab: the ops job reads PostHog again itself.
  3. Act. A browser error becomes a heal issue for the self-healing flow. Firing KPI alerts start the scout, at most once a day; a trusted person hands its best proposal to the Developer flow. UX changes ship as PostHog experiments.
  4. Verify. After the deploy, the ops job checks PostHog again: no more exceptions for that error, or the KPI's alert has stopped firing. Then the issue and its incident close.

The nine DevSecOps stages

StageWhat covers it
PlanThe KPI file, PostHog KPI alerts and the scout's ranked issues; accepted issues for the Developer flow
CreateThe Developer and self-healing flows, Vulnerability Resolution, Duo Code Review
VerifyLint, types, tests, and a check that the heal fix's test fails before the fix and passes after
PackageThe web image built and pushed on every merged change
SecureSAST, Secret Detection, Dependency and Container Scanning; vulnerabilities fixed by Duo
ReleaseAuto-merge, deploy to Cloud Run, GitLab feature flags for fault injection, PostHog experiments
ConfigureDuo triggers, schedules and labels in Pulumi; PostHog alerts, destinations and dashboard in OpenTofu
MonitorCloud Logging, PostHog error tracking, KPI alerts, web vitals and LLM analytics, incidents, the status page
GovernTrusted people, caps, auto-merge guardrails, tool allow-lists and an audit trail

Details

The full definitions, prompts, triggers and guardrails of each flow live in docs/flows.md in the repository. This page is a summary and will link to that content once it is published.

On this page