M-7: ConfirmationBroker reads timeout from ConfirmationPolicy (R-008, F-013) #138

Open
opened 2026-05-12 19:37:37 +00:00 by KofTwentyTwo · 0 comments
KofTwentyTwo commented 2026-05-12 19:37:37 +00:00 (Migrated from github.com)

Goal

MCP ConfirmationBroker reads timeout from injected ConfirmationPolicy (R-008). Resolves R-008 — was hardcoded 60s. Harness asserts configured timeout respected. ConfirmationOutcome collapses to single enum (F-013).

Scope

  • ConfirmationBroker accepts ConfirmationPolicy (timeout, default)
  • Timeout read from Settings.getSettings().confirmationTimeoutSeconds
  • ConfirmationOutcome is single enum (no duplicate types per F-013)

Files

  • packages/MCP/Sources/MCP/ConfirmationBroker.swift

Acceptance

  • Timeout configurable (no hardcoded 60s)
  • Harness asserts configured timeout respected (e.g., 5s setting → 5s expiry)
  • ConfirmationOutcome collapsed to single enum
  • R-008 closed

Test

S-TURN-015 asserts timeout respected (set 2s; expect timeout at 2s).

Parent epic

#11

Source

.planning/architecture/JARVIS-API-MIGRATION-PLAN.md §2.8 (M-7.4)
.planning/architecture/JARVIS-API-DESIGN-v0.2.md F-013
.planning/architecture/REVIEW-MIGRATION-RISK.md R-008

## Goal MCP ConfirmationBroker reads timeout from injected ConfirmationPolicy (R-008). Resolves R-008 — was hardcoded 60s. Harness asserts configured timeout respected. ConfirmationOutcome collapses to single enum (F-013). ## Scope - `ConfirmationBroker` accepts `ConfirmationPolicy` (timeout, default) - Timeout read from `Settings.getSettings().confirmationTimeoutSeconds` - `ConfirmationOutcome` is single enum (no duplicate types per F-013) ## Files - `packages/MCP/Sources/MCP/ConfirmationBroker.swift` ## Acceptance - [ ] Timeout configurable (no hardcoded 60s) - [ ] Harness asserts configured timeout respected (e.g., 5s setting → 5s expiry) - [ ] `ConfirmationOutcome` collapsed to single enum - [ ] R-008 closed ## Test `S-TURN-015` asserts timeout respected (set 2s; expect timeout at 2s). ## Parent epic #11 ## Source `.planning/architecture/JARVIS-API-MIGRATION-PLAN.md` §2.8 (M-7.4) `.planning/architecture/JARVIS-API-DESIGN-v0.2.md` F-013 `.planning/architecture/REVIEW-MIGRATION-RISK.md` R-008
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KofTwentyTwo/Jarvis#138