{
  "schema": "aibast-deployment-recipe/1.0",
  "name": "@aibast-agents-library/field-permit-to-work",
  "display_name": "Field Permit to Work Agent",
  "registry_url": "https://raw.githubusercontent.com/microsoft/aibast-agents-library/main/registry.json",
  "source_url": "https://raw.githubusercontent.com/microsoft/aibast-agents-library/main/agents/@aibast-agents-library/energy_stacks/field_permit_to_work_stack/field_permit_to_work_agent.py",
  "source_path": "agents/@aibast-agents-library/energy_stacks/field_permit_to_work_stack/field_permit_to_work_agent.py",
  "target_filename": "field_permit_to_work_agent.py",
  "expected_tool": "FieldPermitToWorkAgent",
  "brainstem": {
    "health_url": "http://localhost:7071/health",
    "chat_url": "http://localhost:7071/chat",
    "ui_url": "http://localhost:7071",
    "installers": {
      "macos_linux": "https://microsoft.github.io/aibast-agents-library/install.sh",
      "windows_powershell": "https://microsoft.github.io/aibast-agents-library/install.ps1",
      "windows_cmd": "https://microsoft.github.io/aibast-agents-library/install.cmd"
    },
    "default_source_dir": "~/.brainstem/src/rapp_brainstem",
    "default_agents_dir": "~/.brainstem/src/rapp_brainstem/agents",
    "policy_clean_launcher_dir": "~/.copilot/bin"
  },
  "smoke_test": {
    "prompt": "Which work permits are waiting for today?",
    "arguments": {
      "operation": "permit_queue"
    },
    "must_call": "FieldPermitToWorkAgent",
    "must_include": [
      "PTW-4471",
      "2 with a blocker"
    ]
  },
  "demo_scenarios": [
    {
      "case_id": "PTW-01",
      "persona": "Permit Coordinator",
      "prompt": "Which work permits are waiting for today?",
      "operation": "permit_queue"
    },
    {
      "case_id": "PTW-02",
      "persona": "Permit Coordinator",
      "prompt": "Draft the risk assessment for the Cedar Hill transformer job.",
      "operation": "risk_assessment"
    },
    {
      "case_id": "PTW-03",
      "persona": "Authorized Person",
      "prompt": "Is the isolation for the Cedar Hill job actually in place?",
      "operation": "isolation_check"
    },
    {
      "case_id": "PTW-04",
      "persona": "Permit Coordinator",
      "prompt": "Where is the Cedar Hill permit in the sign-off chain, and will it be ready for the 11:00 start?",
      "operation": "authorization_route"
    },
    {
      "case_id": "PTW-05",
      "persona": "Crew Lead",
      "prompt": "Has the Cedar Hill crew acknowledged the briefing?",
      "operation": "crew_briefing"
    },
    {
      "case_id": "PTW-06",
      "persona": "Authorized Person",
      "prompt": "The Cedar Hill crew has finished. Can we close the permit?",
      "operation": "clearance_check"
    },
    {
      "case_id": "PTW-07",
      "persona": "Operations Manager",
      "prompt": "How are we doing on permit safety this month?",
      "operation": "safety_kpis"
    },
    {
      "case_id": "PTW-08",
      "persona": "Crew Lead",
      "prompt": "Is the Hilltop pole replacement request ready to raise a permit?",
      "operation": "work_request_check"
    },
    {
      "case_id": "PTW-09",
      "persona": "Permit Coordinator",
      "prompt": "Has the control room confirmed the isolation for the Hilltop Line 3 job? Draft the crew notice.",
      "operation": "isolation_confirmation"
    },
    {
      "case_id": "PTW-10",
      "persona": "Crew Lead",
      "prompt": "Can my crew accept the Cedar Hill permit on site yet?",
      "operation": "acceptance_readiness"
    },
    {
      "case_id": "PTW-11",
      "persona": "Safety Auditor",
      "prompt": "Pull the audit trail for the archived Riverside link box permit. Is anything missing?",
      "operation": "audit_trail"
    }
  ],
  "write_controls": {
    "mode": "read-only-synthetic",
    "external_writes": "none",
    "statement": "Never issue, approve, endorse or close a permit, operate or lock a device, instruct or message a crew, authorize the start of work, or override a safety control.",
    "human_gate": "The authorized person confirms the risk assessment, the isolation and the live switching state, and clears the permit; the control room operates devices; the crew lead runs the briefing."
  },
  "copilot_studio": {
    "plugin": "mcs-assistant@copilot-studio-plugin",
    "minimum_pac_version": "2.9.3",
    "authoring_mode": "cli-copilot",
    "status": "source-package-ready-not-deployed",
    "operations": [
      "permit_queue",
      "risk_assessment",
      "isolation_check",
      "authorization_route",
      "crew_briefing",
      "clearance_check",
      "safety_kpis",
      "work_request_check",
      "isolation_confirmation",
      "acceptance_readiness",
      "audit_trail"
    ],
    "manual_global_instructions": "solutions/field-permit-to-work/manual/GLOBAL-INSTRUCTIONS.md",
    "manual_knowledge_files": [
      "manual/knowledge/aibast_field-permit-to-work-synthetic-records.md",
      "manual/knowledge/aibast_field-permit-to-work-rules-and-guardrails.md"
    ],
    "manual_skill_count": 11,
    "required_connections": [
      "Bind only customer-approved systems after security, privacy, and business-owner review"
    ],
    "publish_requires_confirmation": true,
    "validated_manual": {
      "display_name": "Field Permit to Work Manual",
      "bot_id": "5badbf8b-37e5-4c28-9147-399da6c0a7d8",
      "environment_name": "kodyv8",
      "environment_id": "ee67a404-325c-e726-a18a-886fe708ca0b",
      "skills": 11,
      "knowledge_files": 2
    },
    "validated_pilot": {
      "display_name": "Field Permit to Work Pilot",
      "bot_id": "3f100333-fb2d-41b9-b7d1-a34ba1942ae2",
      "schema_name": "aibast_FieldPermittoWorkPilot",
      "environment_name": "kodyv8",
      "environment_id": "ee67a404-325c-e726-a18a-886fe708ca0b",
      "published": true
    },
    "export_agent": {
      "display_name": "Field Permit to Work Manual",
      "schema_name": "cr2bf_fieldpermittoworkmanual_RlQfgs",
      "solution_unique_name": "aibast_FieldPermitToWorkManualBuild",
      "bot_id": "5badbf8b-37e5-4c28-9147-399da6c0a7d8",
      "environment_name": "kodyv8",
      "environment_id": "ee67a404-325c-e726-a18a-886fe708ca0b",
      "status": "Draft",
      "published": false,
      "packaging": "pac copilot pack"
    }
  }
}
