Log in

Configuring Protection Rules

Set and enforce skill publication requirements across your organization.

Protection rules are the governance layer that controls how skills move from draft to published. This guide covers configuring rules at the org and skill level.

Prerequisites

  • Admin role in your workspace

Org-Level Rules

Org-level rules apply to all skills unless overridden. Navigate to Settings > Skills to configure them.

RuleDescriptionDefault
Required reviewersMinimum approvals before a version can be published1
Allow self-publishWhether the author can approve their own workfalse
Reviewer not authorAt least one reviewer must differ from the authortrue
Require sample runA sample run must be recorded before the version can be submittedfalse
Require outcome hookAn outcome hook must be configured on the skilltrue
Reviewer poolRestrict reviewers to a specific team (null = any member)null

Skill-Level Overrides

Individual skills can tighten (but not loosen) the org-level rules. Open a skill and go to Settings to set overrides.

For example, you might require 2 reviewers for a skill that handles sensitive data, even if the org default is 1.

Via the API

Rules can also be managed programmatically:

# View current org rules
curl -H "Authorization: Bearer hw_..." \
  https://api.headways.ai/v1/orgs/me/protection-rules

# Require 2 reviewers and a sample run
curl -X PUT \
  -H "Authorization: Bearer hw_..." \
  -H "Content-Type: application/json" \
  -d '{"requiredReviewers": 2, "requireSampleRun": true}' \
  https://api.headways.ai/v1/orgs/me/protection-rules

Audit Trail

Every lifecycle event (submit, approve, reject, publish) is logged. View the org activity log at Settings > Activity or export it via GET /v1/orgs/me/audit/export.