-
Notifications
You must be signed in to change notification settings - Fork 762
FEAT: Better Scenario Tracking #1758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rlundeen2
merged 11 commits into
microsoft:main
from
rlundeen2:users/rlundeen/2026_05_18_scenario_resume
May 20, 2026
Merged
Changes from 8 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
5e858ad
Stamp scenario_result_id FK on AttackResultEntry for granular resume
rlundeen2 3e844c5
Address review: cleanup, rename to ScenarioExecutionAttribution, simp…
rlundeen2 752d082
Add AtomicAttack tests for resume-path filter and attribution factory
rlundeen2 ddaa42c
Rename ScenarioExecutionAttribution to generic AttackResultAttribution
rlundeen2 547dff6
FEAT: hash-based scenario resume keys
rlundeen2 ead1d1c
MAINT: address PR review nits
rlundeen2 36e4af3
Merge remote-tracking branch 'origin/main' into users/rlundeen/2026_0…
rlundeen2 452a383
Rename _hydrate_scenario_attack_results, drop deprecated objective fi…
rlundeen2 5d907b6
scope scenario resume by technique eval hash
rlundeen2 a0a5b71
restore filter_seed_groups_by_objectives as deprecated shim
rlundeen2 e75bc0c
add tests for resume hash filter, eval-hash disambiguation, and depre…
rlundeen2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Copyright (c) Microsoft Corporation. | ||
| # Licensed under the MIT license. | ||
|
|
||
| """ | ||
| Generic attribution metadata an orchestrator stamps onto an | ||
| ``AttackContext`` so the persisted ``AttackResult`` carries linkage back to | ||
| whatever produced it. | ||
| """ | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| from dataclasses import dataclass | ||
|
|
||
|
|
||
| @dataclass(frozen=True) | ||
| class AttackResultAttribution: | ||
| """ | ||
| Attribution copied onto an ``AttackResult`` by the persistence path so the | ||
| DB row records its lineage. | ||
|
|
||
| Both fields are opaque to the attack layer; the orchestrator chooses what | ||
| they mean. ``Scenario`` uses ``parent_id`` for the scenario result UUID and | ||
| ``parent_collection`` for the atomic attack name. | ||
|
|
||
| Attributes: | ||
| parent_id (str): The ID of the parent entity. Persisted to | ||
| ``AttackResultEntry.attribution_parent_id`` (foreign key to | ||
| ``ScenarioResultEntries.id``) so per-parent hydration is indexed. | ||
| parent_collection (str): Free-form label naming the per-parent | ||
| collection this result belongs to. Persisted into | ||
| ``AttackResultEntry.attribution_data``. | ||
| """ | ||
|
|
||
| parent_id: str | ||
| parent_collection: str | ||
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.