feat(domain): add automation profile model and built-ins

This commit is contained in:
2026-02-17 09:00:36 +00:00
parent 093204a703
commit 9464ec6285
19 changed files with 1993 additions and 17 deletions
+31
View File
@@ -0,0 +1,31 @@
# Built-in profile: auto
# Fully automatic except reversion.
# Everything proceeds without human gates except reversion from apply.
name: auto
description: Fully automatic except reversion
schema_version: "1.0"
# Phase-transition thresholds
auto_strategize: 0.0
auto_execute: 0.0
auto_apply: 1.0
# Decision-autonomy thresholds
auto_decisions_strategize: 0.0
auto_decisions_execute: 0.0
# Self-repair thresholds
auto_validation_fix: 0.0
auto_strategy_revision: 0.0
auto_reversion_from_apply: 1.0
# Child plan and retry thresholds
auto_child_plans: 0.0
auto_retry_transient: 0.0
auto_checkpoint_restore: 0.0
# Safety requirements
require_sandbox: true
require_checkpoints: true
allow_unsafe_tools: false
+32
View File
@@ -0,0 +1,32 @@
# Built-in profile: cautious
# Probabilistic gates on most actions.
# Intermediate thresholds allow the system to proceed automatically
# only when confidence is high.
name: cautious
description: Probabilistic gates on most actions
schema_version: "1.0"
# Phase-transition thresholds
auto_strategize: 0.7
auto_execute: 0.7
auto_apply: 1.0
# Decision-autonomy thresholds
auto_decisions_strategize: 0.6
auto_decisions_execute: 0.8
# Self-repair thresholds
auto_validation_fix: 0.7
auto_strategy_revision: 0.8
auto_reversion_from_apply: 0.9
# Child plan and retry thresholds
auto_child_plans: 0.7
auto_retry_transient: 0.0
auto_checkpoint_restore: 0.6
# Safety requirements
require_sandbox: true
require_checkpoints: true
allow_unsafe_tools: false
+31
View File
@@ -0,0 +1,31 @@
# Built-in profile: ci
# Designed for CI pipelines.
# All thresholds at 0.0 — fully automatic in a sandboxed environment.
name: ci
description: Designed for CI pipelines
schema_version: "1.0"
# Phase-transition thresholds
auto_strategize: 0.0
auto_execute: 0.0
auto_apply: 0.0
# Decision-autonomy thresholds
auto_decisions_strategize: 0.0
auto_decisions_execute: 0.0
# Self-repair thresholds
auto_validation_fix: 0.0
auto_strategy_revision: 0.0
auto_reversion_from_apply: 0.0
# Child plan and retry thresholds
auto_child_plans: 0.0
auto_retry_transient: 0.0
auto_checkpoint_restore: 0.0
# Safety requirements
require_sandbox: true
require_checkpoints: true
allow_unsafe_tools: false
+31
View File
@@ -0,0 +1,31 @@
# Built-in profile: full-auto
# No gates, no sandbox, no checkpoints.
# Maximum autonomy — use with extreme caution.
name: full-auto
description: No gates, no sandbox, no checkpoints
schema_version: "1.0"
# Phase-transition thresholds
auto_strategize: 0.0
auto_execute: 0.0
auto_apply: 0.0
# Decision-autonomy thresholds
auto_decisions_strategize: 0.0
auto_decisions_execute: 0.0
# Self-repair thresholds
auto_validation_fix: 0.0
auto_strategy_revision: 0.0
auto_reversion_from_apply: 0.0
# Child plan and retry thresholds
auto_child_plans: 0.0
auto_retry_transient: 0.0
auto_checkpoint_restore: 0.0
# Safety requirements
require_sandbox: false
require_checkpoints: false
allow_unsafe_tools: true
+31
View File
@@ -0,0 +1,31 @@
# Built-in profile: manual
# Human approves every action.
# All thresholds set to 1.0 — nothing proceeds without explicit approval.
name: manual
description: Human approves every action
schema_version: "1.0"
# Phase-transition thresholds
auto_strategize: 1.0
auto_execute: 1.0
auto_apply: 1.0
# Decision-autonomy thresholds
auto_decisions_strategize: 1.0
auto_decisions_execute: 1.0
# Self-repair thresholds
auto_validation_fix: 1.0
auto_strategy_revision: 1.0
auto_reversion_from_apply: 1.0
# Child plan and retry thresholds
auto_child_plans: 1.0
auto_retry_transient: 1.0
auto_checkpoint_restore: 1.0
# Safety requirements
require_sandbox: true
require_checkpoints: true
allow_unsafe_tools: false
+31
View File
@@ -0,0 +1,31 @@
# Built-in profile: review
# Human reviews before apply.
# Strategy and execution proceed automatically; apply requires review.
name: review
description: Human reviews before apply
schema_version: "1.0"
# Phase-transition thresholds
auto_strategize: 0.0
auto_execute: 0.0
auto_apply: 1.0
# Decision-autonomy thresholds
auto_decisions_strategize: 1.0
auto_decisions_execute: 1.0
# Self-repair thresholds
auto_validation_fix: 1.0
auto_strategy_revision: 1.0
auto_reversion_from_apply: 1.0
# Child plan and retry thresholds
auto_child_plans: 0.0
auto_retry_transient: 0.0
auto_checkpoint_restore: 1.0
# Safety requirements
require_sandbox: true
require_checkpoints: true
allow_unsafe_tools: false
+31
View File
@@ -0,0 +1,31 @@
# Built-in profile: supervised
# Human reviews strategy and execution phases.
# Strategy is automatic; execution and apply require human review.
name: supervised
description: Human reviews strategy and execution
schema_version: "1.0"
# Phase-transition thresholds
auto_strategize: 0.0
auto_execute: 1.0
auto_apply: 1.0
# Decision-autonomy thresholds
auto_decisions_strategize: 0.0
auto_decisions_execute: 1.0
# Self-repair thresholds
auto_validation_fix: 1.0
auto_strategy_revision: 1.0
auto_reversion_from_apply: 1.0
# Child plan and retry thresholds
auto_child_plans: 1.0
auto_retry_transient: 0.0
auto_checkpoint_restore: 1.0
# Safety requirements
require_sandbox: true
require_checkpoints: true
allow_unsafe_tools: false
+31
View File
@@ -0,0 +1,31 @@
# Built-in profile: trusted
# Auto for most actions, human for apply and revert.
# High autonomy with safety nets at critical boundaries.
name: trusted
description: Auto for most, human for apply and revert
schema_version: "1.0"
# Phase-transition thresholds
auto_strategize: 0.0
auto_execute: 0.0
auto_apply: 1.0
# Decision-autonomy thresholds
auto_decisions_strategize: 0.0
auto_decisions_execute: 0.0
# Self-repair thresholds
auto_validation_fix: 0.0
auto_strategy_revision: 1.0
auto_reversion_from_apply: 1.0
# Child plan and retry thresholds
auto_child_plans: 0.0
auto_retry_transient: 0.0
auto_checkpoint_restore: 1.0
# Safety requirements
require_sandbox: true
require_checkpoints: true
allow_unsafe_tools: false