fix: clarify capability preflight lifetime across safe reads (Closes #470) #490

Closed
jcwalker3 wants to merge 5 commits from feat/issue-470-preflight-contract into master
Showing only changes of commit 00efda0cfb - Show all commits
+10
View File
@@ -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"]