Intelligence

Artifacts

Browse the repository, read documents, and manage the governance folders. Source, runtime, and infrastructure are read-only.

Repository
README.md
CONSTITUTION_COMPLIANCE_AUDIT_V1.mdREADME.md
repositories/aaf-holdings/hq01/lib/workers/types.ts
1.4 KB
/** Worker template — an execution blueprint, not a persistent agent. */
export interface WorkerTemplate {
  id: string;
  name: string;
  department: string;
  description: string;
  executive_owner: string;
  default_model: string;
  default_temperature: number;
  default_tools: string[];
  default_permissions: string;
  default_workspace_policy: string;
  default_report_format: string;
  status: "Active" | "Deprecated";
  version: string;
  created_at: string;
  updated_at: string;
}

export type WorkerStatus = "Running" | "Completed" | "Failed" | "Terminated";

/** Worker instance — a temporary record of one template instantiation. */
export interface WorkerInstance {
  id: string; // WORKER-000001
  template_id: string;
  mission_id: string;
  objective_id: string;
  work_order_id: string;
  assignment_id: string;
  executive: string;
  session_id: string | null;
  workspace: string;
  status: WorkerStatus;
  started_at: string | null;
  completed_at: string | null;
  report_id: string | null;
  // Snapshot of the template at instantiation (for traceability):
  model: string;
  version: string;
}

export type WorkerEventType =
  | "instantiated"
  | "session_attached"
  | "report_attached"
  | "terminated";

export interface WorkerEvent {
  type: WorkerEventType;
  at: string;
  detail?: string;
}

export interface WorkerInstanceView {
  instance: WorkerInstance;
  history: WorkerEvent[];
}

root · /srv/aaf