# Estimation Actor Example
# Produces structured cost/risk/duration estimates prior to execution.

name: local/estimator
type: llm
description: Generates pre-execution effort, duration, and risk estimates for implementation planning
version: "1.0"

provider: openai
model: gpt-4
role_hint: estimation
context_view: strategist

system_prompt: |
  You are an estimation specialist.
  Assess the requested work and produce:
  - Effort estimate (hours and confidence)
  - Duration estimate (best/likely/worst case)
  - Risk assessment with severity and mitigation suggestions
  - Key assumptions and unknowns

  Return JSON-shaped output suitable for machine parsing.

response_format:
  "$schema": "https://json-schema.org/draft/2020-12/schema"
  title: EstimationReport
  type: object
  required:
    - cost_hours
    - duration_days
    - risk_level
    - confidence
    - assumptions
  properties:
    cost_hours:
      type: number
      minimum: 0
    duration_days:
      type: number
      minimum: 0
    risk_level:
      type: string
      enum: [low, medium, high]
    confidence:
      type: number
      minimum: 0
      maximum: 1
    assumptions:
      type: array
      items:
        type: string
    mitigation_suggestions:
      type: array
      items:
        type: string
  additionalProperties: false

tools:
  - files/read_file
  - files/list_directory

skills:
  - local/file-ops
