trigger-policy — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited trigger-policy (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
You own FlowTrigger safety. Triggers fire without direct user supervision in many cases (CI events, scheduled runs); the policy in this skill is the last line of defense against unintended-action triggers.
`merge` and `release` MUST appear in every trigger's `policy.forbidden_actions`. Triggers cannot grant Tier 3 autonomy regardless of any other configuration. This is non-negotiable.
The invoking command MUST pass:
plugins/flow/triggers/templates/ or a project-local trigger at .flow/triggers/<id>.trigger.yaml.validate | enforce. Validate is read-only (used by /flow:trigger validate); enforce is the gate before /flow:trigger run actually dispatches the target command.Structured JSON report:
{
"trigger_id": "pr-123-watch",
"schema_valid": true,
"tier3_violations": [],
"recursion_violations": [],
"missing_required_forbidden": [],
"cross_reference_violations": [],
"concurrency_violations": [],
"overall": "pass"
}Exit code: 0 on pass; 1 on policy violation; 2 on schema invalid.
python3 -m jsonschema -i "${TRIGGER_YAML}" "plugins/flow/schemas/v1/trigger.schema.json"Failure → overall: schema_invalid (exit 2).
Verify policy.forbidden_actions contains both merge AND release. Missing either → tier3_violations.append({"action": "merge_or_release", "reason": "must be forbidden"}). Hard fail.
Verify recursion_policy.triggered_runs_may_create_triggers is false (or unset; default is false). Same for triggered_runs_may_modify_triggers and triggered_runs_may_enable_triggers. Any set to true requires explicit Tier 3 authorization — surface as recursion_violations and require AskUserQuestion at /flow:trigger create time.
Verify trigger.type is in flow.triggers.allowedTypes (cascade-resolved; default [manual, hook, loop_prompt]). Trigger types github_actions | local_cron | local_daemon are valid schema but disabled in v3.0 — surface as tier3_violations if the project's setting doesn't permit them.
Count .flow/triggers/*.trigger.yaml files with metadata.enabled: true AND lifecycle != disabled. If count >= flow.triggers.maxActiveTriggers (cascade-resolved; default 5), refuse to enable a new trigger. The user must /flow:trigger disable an existing one first.
If concurrency.policy: cancel_previous is set on a trigger whose target invokes a Tier 2 action (e.g., push, commit), surface a warning — cancel_previous + Tier 2 can produce partial commits.
If target.workflow is set, verify the referenced workflow exists. Check both locations:
WF="${target_workflow}"
PLUGIN_PATH="plugins/flow/workflows/${WF}.workflow.yaml"
LOCAL_PATH=".flow/workflows/${WF}.workflow.yaml"
[ -f "$PLUGIN_PATH" ] || [ -f "$LOCAL_PATH" ]Missing → cross_reference_violations.append({"type": "missing_target_workflow", "name": target_workflow, "checked_paths": [PLUGIN_PATH, LOCAL_PATH]}). Hard fail (exit 1) — a trigger that points at a non-existent workflow can never do meaningful work and is broken by construction. This catches typos (e.g., address instead of address-pr) at trigger creation time rather than at runtime when /flow:run trigger <id> tries to dispatch.
If target.workflow is absent (the trigger uses target.command directly without naming a workflow), this step is a no-op.
| Condition | overall |
|---|---|
| schema fails | schema_invalid (exit 2) |
tier3_violations non-empty | tier3_violation (exit 1; HARD FAIL) |
recursion_violations non-empty | recursion_violation (exit 1) |
cross_reference_violations non-empty | cross_reference_failed (exit 1; HARD FAIL — missing target workflow) |
concurrency_violations non-empty | concurrency_warning (exit 0 — soft warning) |
| else | pass (exit 0) |
plugins/flow/schemas/v1/trigger.schema.json — schema this skill validates against.plugins/flow/triggers/templates/ — plugin-shipped templates.plugins/flow/commands/trigger.md — /flow:trigger command that invokes this skill.plugins/flow/commands/watch.md — /flow:watch command that creates triggers from templates.plugins/flow/references/flow-triggers.md — user-facing trigger documentation.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.