fix: preserve optional supersede confidence when omitted#82
Conversation
WisdomHelm #8 — canonical six-question auditEvidence: Kanban
|
timeleft--
left a comment
There was a problem hiding this comment.
PR #82 is ready to merge. I found no blocker or actionable nit.
The change correctly omits confidence from TrailManager.supersede() when absent, letting the existing default preserve the original value. It still honors explicit numeric overrides. The regression test covers omitted confidence, the successor/backlink atomic relationship, and an explicit override.
I independently ran:
pytest tests/test_tools.py -k supersede— 7 passedruff check src/fava_trails/tools/thought.py tests/test_tools.py— passed
Claude’s required pass ran once but its shallow temporary checkout lacked the base ref, so it inspected no diff; the native review above is the substantive review. Its output is at Claude findings.
I recommend merging [fava-trails PR #82](#82).
Summary
Fixes MCP
supersedepassingNonefor omittedconfidence, which overwrote the original thought's confidence inTrailManager.Changes
confidencetoTrailManager.supersedewhen the MCP argument is explicitly provided and non-null.test_supersede_mcp_without_confidence_preserves_original(omitted preserves original; explicit override honored).Verification
uv run pytest tests/test_tools.py -k supersede→ 7 passeduv run ruff checkon touched files → passedFixes #80
Pre-pilot audit (WisdomHelm #8)
See Kanban task
t_b0b2b861for canonical six-question audit and evidence links.