feat(profiler/behave_shell): emit cognitive.error_resilience.retry_tactic

Modal response across Command.errored=True commands:
* same first_token_hash on next command → rerun
* different first_token_hash         → switch
* no next command                    → abort
Tiebreak in registry order. The fourth registry value 'modify'
requires within-command arg diffing (PII boundary); deferred to v0.2.
This commit is contained in:
2026-05-03 23:58:00 -04:00
parent f286c84d95
commit b704352783
3 changed files with 140 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ from decnet.profiler.behave_shell._ctx import SessionContext
from decnet.profiler.behave_shell._features.cognitive import (
cognitive_load,
command_branch_diversity,
error_resilience_retry_tactic,
exploration_style,
feedback_loop_engagement,
planning_depth,
@@ -53,4 +54,5 @@ FEATURES: tuple[FeatureFn, ...] = (
exploration_style,
planning_depth,
tool_vocabulary,
error_resilience_retry_tactic,
)