feat: blueprint-aware policy resolve for multi-instance tenants (T07)

resolve_run_policy returns blueprint for persona prepare; add tenant
onboard helper script. Marks HARNESS-WP-0001-T07 done after binky
onboarding handoff.
This commit is contained in:
tegwick 2026-07-18 11:07:10 +02:00
parent 67f1791491
commit 154e535695
5 changed files with 135 additions and 13 deletions

View file

@ -121,10 +121,11 @@ def test_harness_major_mismatch() -> None:
def test_resolve_run_policy_defaults(tmp_path: Path) -> None:
profile, budget, lane = resolve_run_policy(tmp_path, "coach")
profile, budget, lane, blueprint = resolve_run_policy(tmp_path, "coach")
assert profile == "green-commit-only"
assert budget is None
assert lane is None
assert blueprint == "coach"
def test_resolve_run_policy_from_manifest(tmp_path: Path) -> None:
@ -139,14 +140,24 @@ def test_resolve_run_policy_from_manifest(tmp_path: Path) -> None:
"tool_profile": "blue-mail-triage",
"lane": "blue",
"budget": 12000,
}
},
"mail-triage": {
"cadence": "weekly",
"blueprint": "coach",
"tool_profile": "blue-mail-triage",
"lane": "blue",
"budget": 1000,
},
},
},
)
profile, budget, lane = resolve_run_policy(tmp_path, "coach")
profile, budget, lane, blueprint = resolve_run_policy(tmp_path, "coach")
assert profile == "blue-mail-triage"
assert budget == 12000
assert lane == "blue"
assert blueprint == "coach"
_, _, _, bp2 = resolve_run_policy(tmp_path, "mail-triage")
assert bp2 == "coach"
def test_resolve_unknown_profile_refuses(tmp_path: Path) -> None: