stage_type no longer validated — starlark_hook presence determines automation. stage_mode collapsed from 4→3 values (form/delegated/ automated); "review" mapped to "form" on input for backward compat. Migration 018 converts existing rows. Review surface removed (~110 lines). 4 package manifests updated. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
92 lines
2.6 KiB
JSON
92 lines
2.6 KiB
JSON
{
|
|
"id": "content-approval",
|
|
"title": "Content Approval",
|
|
"type": "workflow",
|
|
"version": "0.1.0",
|
|
"tier": "browser",
|
|
"icon": "📝",
|
|
"author": "Armature",
|
|
"description": "Multi-party content review with quorum signoff and revision cycle.",
|
|
"permissions": [],
|
|
|
|
"workflow_definition": {
|
|
"name": "Content Approval",
|
|
"slug": "content-approval",
|
|
"entry_mode": "team_only",
|
|
"stages": [
|
|
{
|
|
"name": "draft",
|
|
"ordinal": 0,
|
|
"stage_mode": "form",
|
|
"audience": "team",
|
|
"auto_transition": false,
|
|
"form_template": {
|
|
"fieldsets": [
|
|
{
|
|
"label": "Content Draft",
|
|
"fields": [
|
|
{ "key": "title", "label": "Title", "type": "text", "required": true },
|
|
{ "key": "body", "label": "Body", "type": "textarea", "required": true },
|
|
{ "key": "category", "label": "Category", "type": "select", "options": ["blog", "announcement", "documentation", "policy"], "required": true }
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "review",
|
|
"ordinal": 1,
|
|
"stage_mode": "form",
|
|
"audience": "team",
|
|
"auto_transition": false,
|
|
"stage_config": {
|
|
"validation": {
|
|
"required_approvals": 2,
|
|
"reject_action": "revision"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "revision",
|
|
"ordinal": 2,
|
|
"stage_mode": "form",
|
|
"audience": "team",
|
|
"auto_transition": false,
|
|
"form_template": {
|
|
"fieldsets": [
|
|
{
|
|
"label": "Revision",
|
|
"fields": [
|
|
{ "key": "title", "label": "Title", "type": "text", "required": true },
|
|
{ "key": "body", "label": "Body", "type": "textarea", "required": true },
|
|
{ "key": "revision_notes", "label": "What Changed", "type": "textarea", "required": true }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"branch_rules": [
|
|
{ "field": "title", "op": "exists", "value": "", "target_stage": "review" }
|
|
]
|
|
},
|
|
{
|
|
"name": "publish",
|
|
"ordinal": 3,
|
|
"stage_mode": "form",
|
|
"audience": "team",
|
|
"auto_transition": false,
|
|
"form_template": {
|
|
"fieldsets": [
|
|
{
|
|
"label": "Publish Confirmation",
|
|
"fields": [
|
|
{ "key": "publish_url", "label": "Published URL", "type": "text" },
|
|
{ "key": "publish_notes", "label": "Notes", "type": "textarea" }
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|