chore(consistency): sync task status from DB [auto]

Updated by fix-consistency on 2026-09-04:
  - update .custodian-brief.md for rein-aharness

Assistant: codex
Assistant-Model: gpt-5.6-sol
Assistant-Session: 01a06ba0-10aa-7ea0-b20a-4f3fac39efe9
This commit is contained in:
custodian-sync 2026-09-04 11:00:20 +02:00
parent 7641fcde40
commit f01b765668
20 changed files with 1027 additions and 165 deletions

View file

@ -126,6 +126,28 @@ def test_run_task_fails_without_commit(tmp_path) -> None:
assert result.reason == "session completed without committing"
def test_run_task_records_bounded_cancellation_without_session_output(tmp_path) -> None:
from rein_aharness.execution_cancel import ExecutionCancelled
repo = _make_repo(tmp_path)
class CancellingAdapter:
def execute_prompt(self, prompt, config):
raise ExecutionCancelled("lease-loss")
result = run_task(
_spec(repo),
adapter=CancellingAdapter(),
report_to_hub=False,
write_metrics=False,
)
assert result.ok is False
assert result.committed is False
assert result.session_output == ""
assert result.reason == "execution cancelled (lease-loss)"
def test_run_task_refuses_unknown_tool_profile(tmp_path) -> None:
repo = _make_repo(tmp_path)
_write_manifest(
@ -160,6 +182,21 @@ def test_run_task_resolves_manifest_profile_and_budget(tmp_path) -> None:
}
},
)
subprocess.run(["git", "add", ".kaizen"], cwd=repo, check=True)
subprocess.run(
[
"git",
"-c",
"user.email=t@t",
"-c",
"user.name=t",
"commit",
"-qm",
"configure rein",
],
cwd=repo,
check=True,
)
adapter = CommittingAdapter(repo)
result = run_task(
@ -186,6 +223,21 @@ def test_run_task_budget_exhaustion_fails(tmp_path) -> None:
}
},
)
subprocess.run(["git", "add", ".kaizen"], cwd=repo, check=True)
subprocess.run(
[
"git",
"-c",
"user.email=t@t",
"-c",
"user.name=t",
"commit",
"-qm",
"configure rein",
],
cwd=repo,
check=True,
)
result = run_task(
_spec(repo),