Skip to main content

hackagent.storage.records

Record models returned by every :class:~hackagent.storage.store.Store.

They mirror the server-side models, so their fields are part of the wire and database contract and must not change.

OrganizationContext Objects​

class OrganizationContext(BaseModel)

Organization and user context resolved by the storage backend.

user_id​

"local" for LocalBackend

canonical_attack_type​

def canonical_attack_type(value: str) -> str

Map a stored attack type to its canonical id; unknown values pass through.

CampaignRunRecord Objects​

class CampaignRunRecord(BaseModel)

One execution of a declarative campaign.

The campaign owns its immutable specification and judge audit. Individual attack runs link back to this record through campaign_run_id.