fix: clarify capability preflight lifetime across safe reads (Closes #470) #490
@@ -519,6 +519,16 @@ def verify_preflight_purity(
|
||||
_preflight_resolved_task, task
|
||||
)
|
||||
)
|
||||
if (
|
||||
task is not None
|
||||
and _preflight_resolved_task is not None
|
||||
and task != _preflight_resolved_task
|
||||
):
|
||||
raise RuntimeError(
|
||||
"Pre-flight task mismatch: "
|
||||
f"resolved '{_preflight_resolved_task}' but mutation requires "
|
||||
f"'{task}' (fail closed)"
|
||||
)
|
||||
|
||||
ctx = _resolve_author_mutation_context(worktree_path)
|
||||
workspace = ctx["workspace_path"]
|
||||
|
||||
Reference in New Issue
Block a user