Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 104 additions & 26 deletions extensions/gpt-oss-safeguard/openclaw.plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,38 @@
"maxTokens": {
"label": "Max Tokens",
"advanced": true
},
"stages.beforeRequest.enabled": {
"label": "Enabled",
"help": "Enable guardrail check before user requests"
},
"stages.beforeRequest.mode": {
"label": "Mode",
"help": "Block violations or monitor only"
},
"stages.beforeToolCall.enabled": {
"label": "Enabled",
"help": "Enable guardrail check before tool calls"
},
"stages.beforeToolCall.mode": {
"label": "Mode",
"help": "Block violations or monitor only"
},
"stages.afterToolCall.enabled": {
"label": "Enabled",
"help": "Enable guardrail check after tool calls"
},
"stages.afterToolCall.mode": {
"label": "Mode",
"help": "Block violations or monitor only"
},
"stages.afterResponse.enabled": {
"label": "Enabled",
"help": "Enable guardrail check after model responses"
},
"stages.afterResponse.mode": {
"label": "Mode",
"help": "Block violations or monitor only"
}
},
"configSchema": {
Expand Down Expand Up @@ -94,38 +126,84 @@
"additionalProperties": false,
"properties": {
"beforeRequest": {
"$ref": "#/$defs/stageConfig"
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
},
"mode": {
"type": "string",
"enum": ["block", "monitor"]
},
"blockMode": {
"type": "string",
"enum": ["replace", "append"]
},
"includeHistory": {
"type": "boolean"
}
}
},
"beforeToolCall": {
"$ref": "#/$defs/stageConfig"
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
},
"mode": {
"type": "string",
"enum": ["block", "monitor"]
},
"blockMode": {
"type": "string",
"enum": ["replace", "append"]
},
"includeHistory": {
"type": "boolean"
}
}
},
"afterToolCall": {
"$ref": "#/$defs/stageConfig"
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
},
"mode": {
"type": "string",
"enum": ["block", "monitor"]
},
"blockMode": {
"type": "string",
"enum": ["replace", "append"]
},
"includeHistory": {
"type": "boolean"
}
}
},
"afterResponse": {
"$ref": "#/$defs/stageConfig"
}
}
}
},
"$defs": {
"stageConfig": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
},
"mode": {
"type": "string",
"enum": ["block", "monitor"]
},
"blockMode": {
"type": "string",
"enum": ["replace", "append"]
},
"includeHistory": {
"type": "boolean"
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
},
"mode": {
"type": "string",
"enum": ["block", "monitor"]
},
"blockMode": {
"type": "string",
"enum": ["replace", "append"]
},
"includeHistory": {
"type": "boolean"
}
}
}
}
}
Expand Down
193 changes: 156 additions & 37 deletions extensions/grayswan-cygnal-guardrail/openclaw.plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,46 @@
"label": "Fail Open",
"help": "Allow requests on API errors"
},
"stages.beforeRequest.enabled": {
"label": "Enabled",
"help": "Enable guardrail check before user requests"
},
"stages.beforeRequest.mode": {
"label": "Mode",
"help": "Block violations or monitor only"
},
"stages.beforeToolCall.enabled": {
"label": "Enabled",
"help": "Enable guardrail check before tool calls"
},
"stages.beforeToolCall.mode": {
"label": "Mode",
"help": "Block violations or monitor only"
},
"stages.afterToolCall.enabled": {
"label": "Enabled",
"help": "Enable guardrail check after tool calls"
},
"stages.afterToolCall.mode": {
"label": "Mode",
"help": "Block violations or monitor only"
},
"stages.afterToolCall.blockOnMutation": {
"label": "Block on Mutation",
"help": "Block when mutation/jailbreak attempt detected"
},
"stages.afterToolCall.blockOnIpi": {
"label": "Block on IPI",
"help": "Block when indirect prompt injection detected"
},
"stages.afterResponse.enabled": {
"label": "Enabled",
"help": "Enable guardrail check after model responses"
},
"stages.afterResponse.mode": {
"label": "Mode",
"help": "Block violations or monitor only"
},
"guardrailPriority": {
"label": "Guardrail Priority",
"advanced": true,
Expand Down Expand Up @@ -80,49 +120,128 @@
"additionalProperties": false,
"properties": {
"beforeRequest": {
"$ref": "#/$defs/stageConfig"
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
},
"mode": {
"type": "string",
"enum": ["block", "monitor"]
},
"violationThreshold": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"blockMode": {
"type": "string",
"enum": ["replace", "append"]
},
"blockOnMutation": {
"type": "boolean"
},
"blockOnIpi": {
"type": "boolean"
},
"includeHistory": {
"type": "boolean"
}
}
},
"beforeToolCall": {
"$ref": "#/$defs/stageConfig"
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
},
"mode": {
"type": "string",
"enum": ["block", "monitor"]
},
"violationThreshold": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"blockMode": {
"type": "string",
"enum": ["replace", "append"]
},
"blockOnMutation": {
"type": "boolean"
},
"blockOnIpi": {
"type": "boolean"
},
"includeHistory": {
"type": "boolean"
}
}
},
"afterToolCall": {
"$ref": "#/$defs/stageConfig"
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
},
"mode": {
"type": "string",
"enum": ["block", "monitor"]
},
"violationThreshold": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"blockMode": {
"type": "string",
"enum": ["replace", "append"]
},
"blockOnMutation": {
"type": "boolean"
},
"blockOnIpi": {
"type": "boolean"
},
"includeHistory": {
"type": "boolean"
}
}
},
"afterResponse": {
"$ref": "#/$defs/stageConfig"
}
}
}
},
"$defs": {
"stageConfig": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
},
"mode": {
"type": "string",
"enum": ["block", "monitor"]
},
"violationThreshold": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"blockMode": {
"type": "string",
"enum": ["replace", "append"]
},
"blockOnMutation": {
"type": "boolean"
},
"blockOnIpi": {
"type": "boolean"
},
"includeHistory": {
"type": "boolean"
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
},
"mode": {
"type": "string",
"enum": ["block", "monitor"]
},
"violationThreshold": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"blockMode": {
"type": "string",
"enum": ["replace", "append"]
},
"blockOnMutation": {
"type": "boolean"
},
"blockOnIpi": {
"type": "boolean"
},
"includeHistory": {
"type": "boolean"
}
}
}
}
}
Expand Down