Risk taxonomy and overall exposure¶
The shared taxonomy defines agent and portfolio risk categories, risks, and their controls. Changing its structure can affect existing assessments.
In the following examples, client is an AgentManagementClient created as described in The main AgentManagementClient class.
Reading the current and default taxonomy¶
Reading the current taxonomy requires authentication. Reading the default taxonomy also requires instance administration rights.
settings = client.get_risk_taxonomy()
taxonomy = settings.raw["taxonomy"]
default_taxonomy = client.get_default_risk_taxonomy().raw["taxonomy"]
for category in taxonomy["agentCategories"]:
print(category["id"], category["title"])
The top-level lists are agentCategories and portfolioCategories. A category contains risks; each risk contains controls. Use stable IDs when editing descriptions so that existing assessments retain their associations.
Previewing and saving a taxonomy change¶
Taxonomy changes require the appropriate administration rights. This example renames an existing category; it assumes at least one agent category exists.
settings = client.get_risk_taxonomy()
settings.raw["taxonomy"]["agentCategories"][0]["title"] = "Agent safety"
impact = settings.compute_replacement_impact()
print(impact)
Review the impact before saving. The preview includes a fingerprint that identifies this impact. Saving checks the fingerprint and fails if the impact has changed since the preview.
settings.save(impact)
Keep the retrieved fetchedRevision as well. A concurrent taxonomy change causes the save to fail. If you revise the proposed taxonomy, compute its replacement impact again.
Reading aggregated risk exposure¶
exposure = client.get_risk_exposure()
print(exposure.raw)
Use Agent risk assessments and evidence to update individual agent assessments and supporting evidence.
Reference documentation¶
Classes¶
The Agent Management risk taxonomy settings. |
|
The aggregated Agent Management risk exposure. |
Functions¶
Computes the impact of replacing the current risk taxonomy. |
|
Returns the default Agent Management risk taxonomy settings. |
|
Returns the aggregated Agent Management risk exposure. |
|
Returns the Agent Management risk taxonomy settings. |
|
|
Saves the Agent Management risk taxonomy. |
