This protocol defines the minimum logging and execution contract for framework-native experiments with Codex and Claude Code.
Every turn follows:
base_rule -> extra_rule -> rule_gate -> risk assessment -> model_stage(sync or async) -> end-of-task proposal sweep
Rules:
- the main framework agent assigns
framework_risk_level - high risk must stay
sync - only low-risk turns may actually use subagents
- async subagents write proposal files only
- the main agent runs one proposal sweep at task end
- proposal sweep affects subsequent turns only
Use these fields as the standard experiment record:
trace_idbase_rule_actionextra_rule_actionrule_stage_actionframework_risk_levelmodel_dispatch_modemodel_stage_statusmodel_stage_actionmodel_executormodel_stage_result_availableproposal_writeproposal_sweepproposal_sweep_effectknowledge_writeback_statusfinal_action
- rule-stage block
- high-risk sync model stage
- low-risk async subagent proposal write
- main-agent end-of-task proposal sweep
- next-turn visibility of promoted active rules
model_executordescribes the source of the current-turn model result onlymodel_stage_result_availableistrueonly when the current turn has a completed model-stage resultproposal_sweep_effectonly reflects rule-state change:no_changecandidate_onlyactive_rule_updated