Plan: Enforce HITL Quarantine for requires_human_approval Adapters¶
Summary¶
The force_quarantine mechanism was already implemented in spec 018 across TopicFrontier._node_dispatch → _dispatch_target → IngestionScout.run_and_commit. This spec adds the missing test coverage to verify the contract end-to-end.
Approach¶
- Add a unit test in
test_topic_frontier.pythat assertsrun_and_commitis called withforce_quarantine=Truewhen the adapter hasrequires_human_approval=True. - Add a unit test in
test_scout.pythat asserts a high-confidence document (confidence ≥ 0.7) is quarantined whenforce_quarantine=Trueis passed. - Update
BACKLOG.md: move BL-20260511-30 to Done, add follow-up items.
Risks¶
None — pure test addition; no production code changes.