search-with-proof: startup environment and data files, dead-end dedupe, task_spend continues

Demos may set a bounded environment (loader variables denied) and up to 8 small
data files under .demo/; the reason step sees conclusions and may not re-propose
them; a task spend limit concludes its intent, not the search; finish wins over
stray tool calls.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
Marius Ciepluch
2026-10-06 00:24:26 +02:00
co-authored by Claude Fable 5.1
parent 67eb629c16
commit ceeaa66717
12 changed files with 498 additions and 48 deletions
+10
View File
@@ -117,6 +117,16 @@ class Board:
view["candidate"] = self.candidate()
view["family"] = view["candidate"].get("family", "unknown")
view["budget_left"] = budget_left or {}
for intent in view["intents"]:
if intent["status"] == "concluded":
facts = [f["id"] for f in state["facts"] if intent["id"] in f["from_intents"]]
intent["conclusion"] = {"facts": facts} if facts else {"failure": intent.get("failure", "no confirmed facts")}
checkpoint = state.get("checkpoint", {})
if checkpoint.get("duplicate_rejections"):
view["rejections"] = checkpoint["duplicate_rejections"]
if checkpoint.get("reason_completed", checkpoint.get("rounds", 0)) >= 2 and not any(f.get("demo") for f in state["facts"]):
view["Priority"] = "construct the demo now with the facts available, or finish with the precise blocker."
# Keep recent observations, with explicit truncation, without mutating the board.
remaining = 12000
for fact in reversed(view["facts"]):