|
5 | 5 | Scenario technique initializer. |
6 | 6 |
|
7 | 7 | This module owns the canonical catalog of scenario attack techniques as a |
8 | | -flat list of self-describing :class:`AttackTechniqueFactory` instances and |
9 | | -registers them into the singleton :class:`AttackTechniqueRegistry` via |
10 | | -:class:`ScenarioTechniqueInitializer`. |
| 8 | +flat list of self-describing ``AttackTechniqueFactory`` instances and |
| 9 | +registers them into the singleton ``AttackTechniqueRegistry`` via |
| 10 | +``ScenarioTechniqueInitializer``. |
11 | 11 |
|
12 | 12 | Per-name registration is idempotent: pre-existing entries in the registry are |
13 | 13 | not overwritten. |
@@ -41,14 +41,14 @@ def build_scenario_technique_factories() -> list[AttackTechniqueFactory]: |
41 | 41 |
|
42 | 42 | Factories that need an adversarial chat target do not bake one in; the |
43 | 43 | default adversarial target is resolved lazily inside |
44 | | - :meth:`AttackTechniqueFactory.create` via |
| 44 | + ``AttackTechniqueFactory.create`` via |
45 | 45 | ``get_default_adversarial_target()``. Scenarios may also pass |
46 | 46 | ``attack_adversarial_config_override`` at create time (but only when the |
47 | 47 | factory did not bake one in at construction). |
48 | 48 |
|
49 | 49 | A bare ``PromptSendingAttack`` factory is intentionally omitted from the |
50 | 50 | catalog: every scenario whose ``BASELINE_ATTACK_POLICY`` is |
51 | | - :attr:`BaselineAttackPolicy.Enabled` already auto-prepends an equivalent |
| 51 | + ``BaselineAttackPolicy.Enabled`` already auto-prepends an equivalent |
52 | 52 | baseline atomic attack via ``Scenario._build_baseline_atomic_attack``. |
53 | 53 |
|
54 | 54 | Returns: |
@@ -120,7 +120,7 @@ class ScenarioTechniqueInitializer(PyRITInitializer): |
120 | 120 | ``Scenario._build_baseline_atomic_attack``) already covers that case. |
121 | 121 |
|
122 | 122 | Registration is per-name idempotent: pre-existing entries in |
123 | | - :class:`AttackTechniqueRegistry` are not overwritten. |
| 123 | + ``AttackTechniqueRegistry`` are not overwritten. |
124 | 124 | """ |
125 | 125 |
|
126 | 126 | async def initialize_async(self) -> None: |
|
0 commit comments