Skip to content
Documentation

Understand how data flows

Trace a request from its route or channel to the database in the Evolution tab's Data flow view, step through a narrated walkthrough, and see how each pull request changed it. Pro.

Open a project's Evolution tab, switch the diagram to Data flow, and DiffGuardian shows how a request moves through your code: from the route or channel that receives it, through the handlers and logic, to the database table or outside service it ends at. You pick a flow, read it left to right, step through it with a narrated walkthrough, and see how each pull request changed it. Evolution is a Pro feature, and Basic can try its voice dock with the 5 free questions.

#Open it

  1. Open a project that has a local clone. Evolution reads your project's git history on your own machine, so a project with no local path shows "Evolution needs a local clone" until you add one.
  2. Open the Evolution tab. The first time, choose Build evolution. It indexes your history in the background, oldest to newest, and the tab opens on the latest pull request.
  3. In the diagram options, set Diagram to Data flow.
  4. Choose a flow in the Flow picker. Search it by name, path, file, method (GET, POST) or kind.

#What you will see

PartWhat it shows
Flow pickerEvery entry point DiffGuardian found: an HTTP route, an IPC channel, a command-line script or a plain function. Each option shows how many stages it has.
CanvasThe flow drawn left to right as boxes (stages) joined by lines (hand-offs), in lanes: caller, way in, handler, logic, data, outside.
Summary lineHow many stages and hand-offs the flow has, how many hand-offs no test reaches, and how many tests reach it.
TimelineThe pull request slider. While Data flow is open it lists only the pull requests that touch the chosen flow, plus the one you selected.
Contract changesWhat the selected pull request changed about the flow's interface, such as an added required parameter or a renamed field, marked Breaking, Compatible or Unclear.

#Read a flow

  1. Start at the entry point. The first box is the way in: the route, channel or script you chose. Its kind and, for a route, its method and path are named on the box.
  2. Follow the lines. Each line is a hand-off from one stage to the next. An arrow gives the direction. A number on a line means that many hand-offs share one path; hover the box to open them into separate lines.
  3. Read the stages. A stage is a function, file, route, IPC channel, database table or an external service. The lanes tell you the role: the way in, the handler, the logic behind it, the data it reads or writes, and anything outside the app.
  4. Open a hand-off. Hover a line to preview what it carries, such as a call's parameters and result, a route's or channel's types, or the table it reads or writes, together with the tests that cover it. Click it, or press Enter, to keep the card open on the right.
  5. Check the tests. A dotted grey line means no test reaches that hand-off. Moving dots, shown only on what you hover or pin, move faster when more tests exercise it.
  6. Focus. Hover a box, or press Enter on it, to light it and everything it connects to while the rest fades. Press Esc, or click the empty canvas, to let go. Scroll to zoom, drag to move, and use Fit to bring the whole flow back.

#Take a walkthrough

Press Walkthrough to follow one request through the flow, one step at a time. Each step is explained in plain sentences built from the code, for example "A POST request comes in on /checkout", "It checks the request against the order schema" or "It writes to the payments table".

  • Controls: play, pause, step back, step over and restart. A counter shows where you are.
  • Example input: the walkthrough starts from example values read from the repository's tests and schema examples, or generated ones. Edit a field to try another case. Nothing is executed and nothing is sent; Reset to example brings the original values back.
  • Paths: where the code branches on data only known at run time, DiffGuardian asks "Which path should we take?" and lets you choose. A step that can stop the request shows how: the status it answers with and which later steps are skipped.
  • Outcome so far: a running line shows what the request has passed, such as validated or signed in, and how it ends.
  • Narration: the walkthrough is read aloud when voice output is on in Settings, Voice. Spoken answers need Pro. If narration is off or muted, the walkthrough goes on in text.

#See how it changed

Move the timeline to another pull request and the flow redraws as of that point.

  • Green is new in that pull request. Red, faded and dashed was removed by it, and is shown for that step only.
  • A thick blue border marks a stage the pull request edited, with the lines its file gained and lost. Thick blue lines are the new path a hand-off now takes; the old direct one stays as the faded red line.
  • Both, Before and After let you compare the flow on either side of the pull request.
  • The caption above the flow sums it up, for example "This pull request adds this flow" or "This pull request edits the checkout handler".
  • Changed here lists the flows the selected pull request added, removed or changed.

#Ask the voice dock

The voice dock floats at the bottom of the Evolution tab. Hold the talk key shown in the dock, ask, and release. It answers out loud about the pull request you have selected and the repository as it stood after that pull request, and it can look up files, folders and code as of that commit. It cites pull requests by number, and it says so when the history does not hold the answer. There is no chat box in the Evolution tab; the dock is voice only.

Examples:

  • You are debugging a 402 from checkout. Open the POST /checkout flow, read it from the route to the table it writes, then ask: "Walk me through where this request can fail."
  • You are new to the team. Select the pull request that changed the flow and ask: "What did this pull request change in the checkout path?"
  • You want to know when a step arrived. Ask: "Which pull request added the retry queue?" and it names the pull request, so you can jump to it on the timeline.

Move the slider while it is answering and it stops, so an answer about one point in history is never read against another.

#Limits

  • Static, not live. A flow is read from the code and the tests. Nothing runs, and no real traffic is shown.
  • Dynamic calls are not seen. Calls made through callbacks, queues, events or dynamic dispatch can be missing from a flow.
  • Interfaces cover five languages. The hand-off card reads parameters and results for TypeScript, JavaScript, Python, Go and Ruby. Other languages show the flow without the interface.
  • Walkthrough order can be approximate when a file's language has no body reading yet; the card then says so.
  • Large flows are trimmed. A flow hidden by a depth or size limit says how many stages are not shown.
  • A previewed pull request hides it. While an incoming pull request is previewed on the architecture picture, Data flow is not drawn. Clear the preview to see it.
  • No entry points, no flow. If the project has no routes, IPC channels or scripts to follow, the tab says so.
  • Contract verdicts are a reading, not a guarantee. Breaking, Compatible and Unclear are a static comparison of the code before and after.
  • Written notes are marked. Any short note written by an AI model carries an AI badge. The text above it is what the code says.

See also Understand how your app changed over time and Voice.

#FAQ

#What is the Data flow view in DiffGuardian?

It is a diagram in the Evolution tab that traces one entry point, such as an HTTP route, an IPC channel or a script, through the handlers and logic to the database tables and outside services it reaches. It is read from your code and tests, on your machine, and it can be replayed at any pull request in the project's history.

#How do I trace a request from a route to the database?

Open Evolution, set Diagram to Data flow, choose the route in the Flow picker, then read the canvas left to right until you reach a data stage. Press Walkthrough to hear and read it step by step.

#Does it run my code or send real requests?

No. It reads the code and the tests. The example input in the walkthrough comes from the repository's tests and schema examples or is generated, and nothing is executed or sent.

#Can it show me what changed in a flow?

Yes. Move the timeline to a pull request and the flow shows what it added, removed, edited or re-routed, plus any interface change. The timeline lists only the pull requests that touch the flow you chose.

#What does a dotted line mean?

No test reaches that hand-off.

#Which languages does it support?

Flows follow routes, channels and calls across the languages DiffGuardian's code graph reads. Interface details on a hand-off cover TypeScript, JavaScript, Python, Go and Ruby.

#Is it free?

Evolution is a Pro feature. On Basic you can try it with the 5 free questions, which you spend by asking the voice dock.

#Where does my code go?

The history index is built on your machine from your local clone. A question you ask the voice dock goes to the model you chose, or stays local with a local model.