{
  "metadata": {
    "schema": "neuro-san/0.3",
    "network_name": "openfab_hub",
    "version": "1.0.0",
    "origin": "https://agentweb.doaipm.com",
    "description": "OpenFab Mesh multi-agent hardware engineering & supply-chain network with strict default-deny sly_data boundary controls and cross-origin peer link to fab_quoter.",
    "tags": [
      "hardware",
      "pcb-dfm",
      "compliance",
      "bom-reservation",
      "cross-origin-peer"
    ],
    "sly_data_policy": {
      "default": "deny",
      "allowed_peer_keys": [
        "target_region"
      ],
      "blocked_secret_keys": [
        "byok_api_key",
        "internal_margin_secret"
      ]
    }
  },
  "commondefs": {
    "replacement_strings": {
      "quality_standard": "IPC-A-610 Class 2 / IPC-2221B"
    }
  },
  "tools": [
    {
      "name": "openfab_concierge",
      "role": "front_man",
      "function": {
        "description": "Front-man orchestrator for OpenFab Mesh. Routes hardware requests across local specialists (bom_dfm_auditor, compliance_arbiter), registered site actions, and the cross-origin peer fab_quoter.",
        "parameters": {
          "type": "object",
          "properties": {
            "inquiry": {
              "type": "string",
              "description": "Engineering audit, compliance check, fabrication quote, or BOM lot reservation request."
            }
          },
          "required": [
            "inquiry"
          ]
        }
      },
      "instructions": "You are openfab_concierge, the front_man for OpenFab Mesh. Delegate manufacturability checks to bom_dfm_auditor, regulatory policy checks to compliance_arbiter, and PCB/SMT volume quoting to the linked peer fab_quoter (requiring explicit user origin consent). Gate any write action (reserve_bom_lot) behind explicit user confirmation. Enforce default-deny on sly_data: never forward byok_api_key or internal_margin_secret across origins.",
      "tools": [
        "bom_dfm_auditor",
        "compliance_arbiter",
        "fab_quoter"
      ],
      "actions": [
        "audit_bom_dfm",
        "check_compliance_policy",
        "reserve_bom_lot"
      ],
      "allow": {
        "to_downstream": {
          "sly_data": [
            "target_region"
          ]
        }
      }
    },
    {
      "name": "bom_dfm_auditor",
      "role": "specialist",
      "function": {
        "description": "Evaluates PCB layer stackup, trace/space geometry, fine-pitch BGA risk, solder finish, and expected SMT first-pass yield via the registered read action audit_bom_dfm.",
        "parameters": {
          "type": "object",
          "properties": {
            "boardName": {
              "type": "string"
            },
            "layers": {
              "type": "integer",
              "minimum": 2,
              "maximum": 24
            },
            "minTraceMil": {
              "type": "number",
              "minimum": 2,
              "maximum": 20
            },
            "bgaPitchMm": {
              "type": "number",
              "minimum": 0.3,
              "maximum": 1.5
            },
            "qty": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000000
            }
          },
          "required": [
            "boardName",
            "layers",
            "minTraceMil",
            "qty"
          ]
        }
      },
      "instructions": "Execute audit_bom_dfm against IPC-2221B/IPC-A-610 rules. Report DFM score, fine-pitch risks, via-in-pad requirements, and concrete manufacturability recommendations.",
      "tools": [],
      "actions": [
        "audit_bom_dfm"
      ],
      "allow": {
        "to_downstream": {
          "sly_data": []
        }
      }
    },
    {
      "name": "compliance_arbiter",
      "role": "specialist",
      "function": {
        "description": "Verifies EU RoHS-3, REACH SVHC, FCC/CE wireless readiness, and gates warehouse BOM lot reservations through confirmation-protected reserve_bom_lot.",
        "parameters": {
          "type": "object",
          "properties": {
            "region": {
              "type": "string",
              "enum": [
                "EU",
                "US",
                "APAC",
                "GLOBAL"
              ]
            },
            "standards": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "hasLeadSolder": {
              "type": "boolean"
            },
            "wirelessModule": {
              "type": "boolean"
            }
          },
          "required": [
            "region",
            "standards",
            "hasLeadSolder"
          ]
        }
      },
      "instructions": "Execute check_compliance_policy for regulatory verification. Only invoke reserve_bom_lot after explicit interactive user confirmation showing origin, action name, and validated arguments.",
      "tools": [],
      "actions": [
        "check_compliance_policy",
        "reserve_bom_lot"
      ],
      "allow": {
        "to_downstream": {
          "sly_data": []
        }
      }
    },
    {
      "name": "fab_quoter",
      "role": "external_peer_link",
      "external_link": "fab_quoter",
      "origin_hint": "https://peer-fab.doaipm.com",
      "function": {
        "description": "Cross-origin peer agent (ApexFab Open Peer Quoter at peer-fab.doaipm.com) providing independent bare PCB + SMT volume tier pricing and regional lead-time schedules.",
        "parameters": {
          "type": "object",
          "properties": {
            "inquiry": {
              "type": "string"
            },
            "layers": {
              "type": "integer",
              "minimum": 2,
              "maximum": 24
            },
            "qty": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000000
            },
            "hasFineBga": {
              "type": "boolean"
            }
          },
          "required": [
            "inquiry"
          ]
        }
      },
      "allow": {
        "to_downstream": {
          "sly_data": [
            "target_region"
          ]
        }
      }
    }
  ]
}