Repository navigation
FEAT Add paired outcome analytics and Scenario GUI comparison - #3337
Merged
Roman Lutz (romanlutz) merged 9 commits intoOct 20, 2026
Merged
Roman Lutz (romanlutz) merged 9 commits into
Roman Lutz (romanlutz) merged 9 commits into
Conversation
Dev3 ^~^ (shashank03-dev)
marked this pull request as ready for review
October 19, 2026 11:16
Roman Lutz (romanlutz)
approved these changes
Oct 19, 2026
Follow linked compound descendants with iterative cycle-safe traversal, preserving pair counts and rejecting missing evidence. Cover live and saved nested results, shared descendants, cycles, and deep chains. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: ee8e4280-d749-4ee1-b8c2-84e4ff7df48f
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: ee8e4280-d749-4ee1-b8c2-84e4ff7df48f
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: ee8e4280-d749-4ee1-b8c2-84e4ff7df48f
Roman Lutz (romanlutz)
merged commit Oct 20, 2026
22b7cb3
into
microsoft:main
99 of 100 checks passed
This was referenced Oct 20, 2026
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.
Description
Refs #3330.
Aggregate baseline and attack success rates do not show which of the same logical objectives changed outcome. This PR adds
compute_paired_outcome_statistics()and a Paired outcomes panel on the Scenario run page.For a completed run, select the saved baseline and attack groups and choose Compare outcomes. The panel reports all four transitions, both success rates, the paired difference in percentage points, and exclusions. For example, four pairs with one of each transition leave both rates at 50% while showing one failure becoming a success and one success becoming a failure.
The SDK matches logical seed-group IDs within one saved run plan and uses the latest top-level completion per execution unit. Child attempts and superseded retries do not add observations. Rates share the same decided denominator; unmatched seeds and missing, errored, undetermined, or unattributed results are reported separately. Ambiguous attribution and incompatible persisted target/scoring evidence fail explicitly.
The GUI calls a read-only endpoint that reuses the SDK computation in a worker thread. Selection changes clear the comparison and cancel stale requests. Loading, retryable errors, unavailable rates, unsupported legacy plans, and incomplete runs have explicit states. Controls use the existing Fluent UI components and support narrow layouts and keyboard focus.
No additional runtime dependencies or migrations. Comparisons remain descriptive, not causal. Separately executed/unplanned runs are unsupported, and missing persisted scoring metadata limits compatibility validation.
UI proof
Screenshots from the disposable offline SQLite acceptance fixture, using the real backend and built frontend. No external model calls were made. The example has eight planned shared pairs: four decided (one of each transition) and four excluded. Both success rates are 50%, so the paired difference is 0 percentage points; unmatched seeds are reported separately.
Desktop
Mobile (390 px viewport)
Full panel capture showing stacked controls, readable transition counts, and exclusion details.
Tests and Documentation
make unit-test): 29,769 passed, 12 skipped.npm test -- --runInBand --watch=false): 3,293 passed across 138 suites.doc/code/analytics/0_attack_results.md; GUI usage is documented indoc/gui/0_gui.md.