fix: one schema lookup for a whole design, and larger graph batches

The target architect exhausted its 45 tool calls on a first attempt in
three of five runs: 31 schema lookups and 29 graph_put calls for one
design. Each time it carried on from its working graph, at a cost of four
to ten minutes.

- terraform_schema takes resource_types, a list, and outlines every
  argument and block each accepts, by name, in one reply.
- The architect is told to make that one call once the Elements are
  decided, and to build the graph in a handful of calls of ten to twenty
  items.

Case 04 then completed at 100% for the first time, the architect
finishing in one attempt with 11 lookups and 13 graph calls.

Plans record the run and correct three step statuses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-09 10:34:47 +01:00
parent 654370bb46
commit db28d02f56
8 changed files with 139 additions and 15 deletions

View File

@@ -251,7 +251,7 @@ def graph_tools(working: MutableMapping[str, Any]) -> list[ToolSpec]:
ToolSpec(
"graph_put",
"Add items to your working graph, or replace the ones with the same id. "
"Call it several times with a few items each. Your working graph is "
"Put ten to twenty items in a call, not one at a time. Your working graph is "
"attached as target-architecture.json when you submit.",
_schema(lists, []),
graph_put,