Skip to content
Draft
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
2 changes: 1 addition & 1 deletion .claude/hooks/pre-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ if [ -n "$STAGED_SPECS" ]; then

for SPEC in $STAGED_SPECS; do
# Try parsing the spec (syntax check only, not full cascade)
if ! cargo run -p temper-cli --quiet -- verify --specs-dir "$(dirname "$SPEC")" 2>/dev/null; then
if ! cargo run -p temper-spec --quiet --bin verify_specs -- --syntax-only "$SPEC" 2>/dev/null; then
echo "BLOCKED: Spec syntax error in $SPEC" >&2
echo "Fix the spec before committing." >&2
exit 1
Expand Down
26 changes: 20 additions & 6 deletions crates/temper-agents/specs/agent.ioa.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ states = [
]
initial = "Created"

[automaton.timeouts]
BlockedInference = "120s"
BlockedToolCall = "60s"
BlockedCompaction = "30s"
BlockedApproval = "3600s"

[[state]]
name = "turns"
type = "counter"
Expand Down Expand Up @@ -181,6 +175,26 @@ kind = "input"
from = ["BlockedInference", "BlockedToolCall", "BlockedApproval", "BlockedCompaction"]
to = "Failed"

[[state_timeout]]
state = "BlockedInference"
after_seconds = 120
on_timeout = "TimeoutExpired"

[[state_timeout]]
state = "BlockedToolCall"
after_seconds = 60
on_timeout = "TimeoutExpired"

[[state_timeout]]
state = "BlockedCompaction"
after_seconds = 30
on_timeout = "TimeoutExpired"

[[state_timeout]]
state = "BlockedApproval"
after_seconds = 3600
on_timeout = "TimeoutExpired"

# ─── Integrations ─────────────────────────────────────────────────────────────

[[integration]]
Expand Down
26 changes: 20 additions & 6 deletions crates/temper-agents/specs/process.ioa.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ states = [
]
initial = "Created"

[automaton.timeouts]
BlockedInference = "120s"
BlockedToolCall = "60s"
BlockedCompaction = "30s"
BlockedApproval = "3600s"

[[state]]
name = "turns"
type = "counter"
Expand Down Expand Up @@ -192,6 +186,26 @@ from = ["BlockedInference", "BlockedToolCall", "BlockedApproval", "BlockedCompac
to = "Failed"
effect = [{ type = "trigger", name = "notify_parent" }]

[[state_timeout]]
state = "BlockedInference"
after_seconds = 120
on_timeout = "TimeoutExpired"

[[state_timeout]]
state = "BlockedToolCall"
after_seconds = 60
on_timeout = "TimeoutExpired"

[[state_timeout]]
state = "BlockedCompaction"
after_seconds = 30
on_timeout = "TimeoutExpired"

[[state_timeout]]
state = "BlockedApproval"
after_seconds = 3600
on_timeout = "TimeoutExpired"

# ─── Integrations ─────────────────────────────────────────────────────────────

[[integration]]
Expand Down
5 changes: 4 additions & 1 deletion crates/temper-platform/src/specs/GovernanceDecision.ioa.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ from = ["Pending"]
to = "Approved"
kind = "input"
params = ["decided_by", "scope", "generated_policy"]
effect = '[{ type = "trigger", name = "GenerateCedarPolicy" }, { type = "trigger", name = "DispatchCallback" }]'
effect = [
{ type = "trigger", name = "GenerateCedarPolicy" },
{ type = "trigger", name = "DispatchCallback" },
]

[[action]]
name = "Deny"
Expand Down
4 changes: 2 additions & 2 deletions crates/temper-server/tests/dst_hotswap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ to = "Draft"
kind = "input"

[[action.effect]]
type = "IncrementCounter"
type = "increment"
var = "item_count"

[[action]]
Expand All @@ -34,7 +34,7 @@ to = "Submitted"
kind = "input"

[[action.guard]]
type = "CounterMin"
type = "min_count"
var = "item_count"
min = 1

Expand Down
Loading
Loading