Business analyst answers draw the process - #188
Merged
Merged
Conversation
…ggers in domain words The BA block shaped the answer as prose-and-stop and the diagram rule at the end of the prompt never overrode it; its trigger was in developer words (control flow, call sequence) and the shape rule sent ordered steps to a list. The audience block now names when a picture belongs, the diagram rule triggers on a branch or a second party whoever the parties are, the shape rule hands such steps to the diagram, and the process listing and the comparison blocks ask for the walk or the exchange as the diagram. ask.DiagramKind reports the drawn picture per answer; the answers harness logs it beside the digraph count.
Closed fence, header by first token, valid JSON, at least one node or actor with id and label: the browser's conditions, so an empty or cut-off spec counts as none. The comparison blocks yield to a listed process walk, so one prompt no longer asks for both a sequence and a flowchart under at most one diagram. The measured counts are unchanged under the strict reading.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BA answers to process questions came back as prose although nothing barred a diagram. Three causes in the prompt: the BA block ended with "then stop" before the diagram rule was read, the diagram rule triggered on "control flow or a call sequence" (developer words that never fire on a business question), and the shape rule sent ordered steps and branches to a list.
Changes:
Measured on the flow corpus, BA audience, two runs each against origin/master the same day: 1 diagram in 19 answers before, 13 in 19 after; rubric 52/56 before, 50/56 after, the two misses in an answer without a diagram, inside judge noise. All 96 labels under 40 characters, every spec inside the caps. Details in docs/measurements/2026-09-17-ba-diagrams.md.
Developer answers get the same trigger and shape rule; not measured here, the harness default is BA. The UI was not driven by hand: the renderer is untouched and DiagramKind mirrors its conditions, which all 13 specs pass.