Skip to main content

hackagent.orchestrator.campaign.tracking

Persist campaign runs to the HackAgent store.

One :class:RunTracker owns the store records of one attack run: the attack and run rows when it starts, a result row per attempt as soon as the attempt is judged (with a trace row per search step, then the final exchange), and the final run status.

open_store​

def open_store(storage: StorageSpec,
settings: Optional[Settings] = None) -> Store

Open the explicitly selected backend, independently of credentials.

register_target​

def register_target(store: Store, target: ModelConfig) -> UUID

Create or update the agent record that runs are attached to.

RunTracker Objects​

class RunTracker()

Store records of one attack run.

record​

def record(attempt: Attempt) -> None

Persist one attempt with its evaluation.