[Bug]: arbor set-evidence accepts an invalid --status, which validate then rejects and observe hides
What happened
set-status validates the requested status against VALID_STATUS and exits with the list of accepted values. set-evidence writes the same field and did not:
node["status"] = args.status or "executed"So a typo persists a status the tool itself rejects, with exit code 0.
What you expected instead
A clean refusal naming the valid statuses, exactly as set-status gives.
Steps to reproduce
tree.py --run-dir $d init --objective obj --dev-eval d --test-eval ttree.py --run-dir $d add-node --parent n0 --hypothesis "first idea"Compare the two paths with the same invalid value:
set-status --node n1 --status inprogress -> error: status must be one of ['executed', 'merged', 'pending', 'pruned', 'root', 'running'] (exit 1) set-evidence --node n1 --dev-score 0.5 --result "a real result" --status inprogress -> Wrote evidence to n1: dev_score=0.5 status=inprogress (exit 0)tree.py --run-dir $d validateINVALID: - n1: invalid status inprogress (exit 1)tree.py --run-dir $d observe-- Active frontier (selectable hypotheses) -- (empty - ideate new children under a promising node) -- Executed / merged nodes (evidence) -- (none yet)n1appears nowhere in the output.
Why this is worse than a validation error
observe builds the frontier from status in ("pending", "running") and the evidence list from status in ("executed", "merged"). A node carrying a dev score and a result lands in neither, so the experiment the run just paid for disappears from the coordinator's own projection with no warning. The docstring for observe describes it as "a compact projection the coordinator re-grounds on at the start of each cycle", so this is the one view that must not silently drop work.
set-evidence is also the command an executor calls once it returns a result, and its --status help did not list the valid values while set-status's did — so a caller had no way to learn the set from that subcommand.
Error output
None. The invalid write exits 0 and reports success; only the later validate notices.
Environment
- Agent host: n/a (ran the script directly)
- Model: n/a
- Repository version or commit:
065b734(main) - Python version: 3.12.10
- Operating system: Windows 10
The two paths cannot disagree once set-evidence makes the same check with the same message. The default is unaffected: --status still defaults to executed, and every documented status is still accepted.
Source: K-Dense-AI/scientific-agent-skills