Ventures: a failed fix round escalates to a stronger worker (TIME_VENTURE_ESCALATE, default grok 4.7)

The cost cascade, applied to fixes: the cheap worker gets the first round;
when its page still fails the checks, the next round goes to a stronger
model instead of the same one again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UpT7eWzeLhRwuYmsSQnbRb
This commit is contained in:
Claude committed 2026-10-11 16:32:40 -07:00
1 parent 16cd9a6306
commit 67f7b4d2d9
2 files changed
+17 -2

No files matched your search

+13
View File
@@ -683,3 +683,16 @@ p27 = vt.normalize_plan({"pricing": [{"tier": "Free", "price": "$0"}, {"tier": "
{"tier": "Team", "price": "$19/mo per repo — nothing charged today"}]}, {})
assert [t["price"] for t in p27["pricing"]] == ["$0", "$5/mo founding price", "$19/mo per repo"], p27["pricing"]
print("ALL OK 19")
# 28 the second fix round escalates to a stronger worker (cost cascade)
W = VWorld()
c28 = W.add(f"Venture {vt.today()}", labels=["venture"])
W.say(c28, f"x\n\n{tm.MARK}" + json.dumps({"venture": True, "beat": "built", "winner": w16, "plan": plan16, "fixes": 1}) + " -->")
W.files["ventures/mdecks/index.html"] = "<html>thin</html>"
specs = []
def spy(card, done, spec):
specs.append(spec); return {"pr": -1, "steps": 3, "seat": "grok", "model": "grok-4-7"}
vt._build_on_pages = spy
vtick()
assert specs == ["venice:grok 4.7"] and "(grok-4-7)" in W.text(c28), (specs, W.text(c28)[-200:])
print("ALL OK 20")
+4 -2
View File
@@ -1101,11 +1101,13 @@ def advance(card: dict, comments: list[dict], beats: list[dict], heavy_ok: bool)
return "wait"
say(f"🔧 The checks found {len(problems)} problem(s); fix round {fixes + 1}:\n\n{bullets}",
{"beat": "built", **keep, "fixes": fixes, "problems": problems})
# cost cascade: the cheap worker gets the first round; a failed round escalates to a stronger model
spec = worker_spec() if fixes == 0 else env("TIME_VENTURE_ESCALATE", "venice:grok 4.7")
r = _build_on_pages({"number": n, "title": f"Fix the {w['name']} launch page",
"body": FIX_BODY.format(name=w["name"], slug=w["slug"], problems=bullets, page=w.get("page", ""),
join=w["join"], signal=signal_url(w))},
"every check above passes", worker_spec())
say(f"🔧 `{r['seat']}` worked on the fixes in {r['steps']} steps. Re-checking.",
"every check above passes", spec)
say(f"🔧 `{r['seat']}` ({r['model']}) worked on the fixes in {r['steps']} steps. Re-checking.",
{"beat": "built", **keep, "fixes": fixes + 1})
return "heavy"
plan = {**plan, "launch_channels": true_drafts(w, plan, chair)}