Not loaded · from cap-evolve
Cross-iteration memory as a persistent weakness graph (weakness nodes + solution cards). Replaces per-iteration prose with a graph of known weaknesses and their attempted solutions, useful across entire runs.
Claude Code won't load this skill
It ships in cap-evolve at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
This is a memory FORMAT, not a search strategy: any algorithm (hill-climb, gepa, skillopt,
agent-optimize) can select memory_skill: wiki and get this instead of the default
md-files (LEDGER/JOURNAL/PROCESS/INSIGHTS). It replaces per-iteration append-only prose
with a persistent graph of known weaknesses, each carrying its own history of what was
tried and what worked — read once, re-read every iteration, useful across the whole run
instead of scrolling a growing journal.
Write to <run_dir>/wiki/ — the absolute path, never a relative copy inside your
per-iteration working dir. Every iteration gets a fresh working copy; the wiki does not
live inside it and is never copied in or folded back. Writing to the absolute path is what
makes it visible to the next iteration (and to the dashboard's Weakness-graph tab, which
reads wiki/ straight out of the run dir).
wiki/weaknesses/<slug>.md) — what's broken. Persistent across
iterations; a weakness's related neighbors are the graph's edges.wiki/solutions/<weakness-slug>/<sol-id>/) — a kept improvement for one
weakness. Every solution [[wikilink]]s back to its weakness.wiki/weaknesses/<slug>.md---
slug: tool-call-arg-mismatch
status: in-progress # open | in-progress | completed | solved | reverted
tags: [tool-calling, type-error]
discovered_in_iteration: cand_0003
attacked_in_iterations: [cand_0003, cand_0007]
solved_in_iteration: null
affected_tasks: [task_007, task_011, task_023] # FROZEN after discovery — see below
related:
- slug: schema-drift-after-retry
why: both corrupt the tool-call payload; candidates to merge
solutions:
- "[[tool-call-arg-mismatch-cand_0007]]"
---
# Tool call arg mismatch
## What fails
The agent's tool-call planner passes a dict where the tool expects a string.
## Tasks (found on)
- task_007 — search query sent as JSON object
## References
- `agent/planner.py:88` — builds the args dict; no type coercion before dispatch.
## Rejected Store Memory (RSM)
(Empty at discovery; append dead-end attempts here so a later iteration does not retry them.)
Freeze rule: affected_tasks may only grow in the weakness's discovery iteration —
after that it is frozen, because solutions are scored against that exact task set and
changing it invalidates the comparison. Only status may change afterward.
RSM entry (append-only, inside the weakness md, one per rejected attempt):
### <iteration id> · <rejected-direction-slug>
- **Thesis**: one line
- **Change**: files touched, summarized
- **Metrics (weakness tasks)**: <primary metric> <value>
- **Why rejected**: dead end (no gain) · or reverted (broke another task)
wiki/solutions/<weakness-slug>/<sol-id>/{solution.md,changes.diff}sol-id is the candidate id that produced it (e.g. cand_0007).
---
weakness: "[[tool-call-arg-mismatch]]"
iteration: cand_0007
outcome: kept # pending -> kept once the gate confirms it improved
timestamp: 2026-06-28T14:03:00+03:00 # python scripts/now.py — never hand-written
primary_metric: { name: reward, value: 0.74 }
new_record: true # true if this beat the weakness's previous best on its tasks
---
# Validate tool-call arg types in the planner
## Thesis
One line: the idea for resolving the weakness.
## Change list
- `agent/planner.py` — coerce arg types against the tool schema before dispatch.
## Per-task metric delta (weakness tasks)
| task | before | after | Δ |
|---------|--------|-------|------|
| task_007| 0.0 | 1.0 | +1.0 |
See also [[tool-call-arg-mismatch]].
changes.diff — the capability diff for this candidate vs its parent (the framework's own
diff.patch/LEDGER already have this; keep changes.diff as a wiki-local copy so a reader
of the weakness graph never has to leave it).
Acceptance is never self-reported here. outcome/new_record reflect the SAME honest
val-significance gate every memory scheme reports through (LEDGER.md, framework-owned,
also written under this scheme) — write the solution card once the candidate is actually
accepted, not before.
wiki/results/round-<N>.json{
"round": 1,
"split": "val",
"started_at": "2026-06-28T14:00:00+03:00",
"completed_at": "2026-06-28T14:04:12+03:00",
"metrics": { "reward": { "value": 0.62, "primary": true, "direction": "higher" } },
"per_task": [ { "task_id": "0", "reward": 1.0 } ]
}
Every metric is the wrapped object { value, primary, direction }, never a flat number —
the dashboard's timeline reads .value. Stamp started_at/completed_at from
python scripts/now.py so every file agrees on the clock.
The dashboard's Weakness-graph tab reads wiki/ directly out of the run dir: one row per
weakness (status, tags, related edges, solution count), the primary metric over
wiki/results/round-<N>.json, and each solution's diff. No registration, no API — write
the files in this format and the viewer reflects them within a couple of seconds. Everything
in these files the dashboard doesn't recognize is preserved and ignored, so extra keys are
always safe.
Whole-round revert, branches/worktrees-per-weakness, and multi-builder distribution were
evograph's ALGORITHM (its search strategy, now deprecated — see
skills/algorithms/evograph/SKILL.md), not this FORMAT. Selecting memory_skill: wiki with
any algorithm gets you the graph and its file contract; the val-significance gate, git
history and accept/reject mechanics stay whatever that algorithm already does.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
memory-format, weakness-graph, cross-iteration, solution-cards
npx claudepluginhub skillberry-ai/cap-evolve --plugin cap-evolve22 skills in this plugin
/agent-optimizeFree-form optimization algorithm for agent orchestration mode: the conversational agent owns the whole search — reading a digest, proposing big coherent capability edits against failure-cluster hypotheses, probing only missing cells, promoting or pruning on a posterior, merging complementary branches, and sealing test once. Use when orchestration_mode is agent and algorithm_skill is agent-optimize. For a deterministic loop use hill-climb, gepa or skillopt instead./baselineEstablish the starting point. Use after implement-and-check and before any algorithm. Creates the run directory, freezes the seeded train/val/test split (written once), scores the unmodified seed capability on val, and records it as the candidate every algorithm must beat. Reports the remaining headroom so a saturated seed stops the run before it spends budget./blackboxOther plugins' skills for the same job