M-1: harness scenarios S-SELF-001..004 in both transport modes (UQ-5) #104

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

Goal

File and implement harness scenarios S-SELF-001..S-SELF-004 in JarvisAPI test contract; all run in BOTH .inProcessActor and .jsonRoundTripWebView modes per UQ-5.

Scope

  • S-SELF-001 getSelfState happy path
  • S-SELF-002 B-08 dissolution N=10
  • S-SELF-003 TCC denied → revoked-event chain via _forceTCCStatus
  • S-SELF-004 getActiveAudioRoute returns nil pre-voice-install (R-016 ordering gate)
  • All scenarios parametric (both transport modes)

Files

  • packages/Harness/Tests/HarnessTests/SelfScenarioTests.swift (new)

Acceptance

  • 4 scenarios filed, each runs in both transport modes
  • S-SELF-002 N=10 trials assertion present
  • S-SELF-004 asserts getActiveAudioRoute returns nil before voice subsystem install
  • All green

Test

swift test --package-path packages/Harness --filter SelfScenarioTests green.

Parent epic

#5

Source

.planning/architecture/JARVIS-API-MIGRATION-PLAN.md §2.2 (M-1.5)
.planning/architecture/JARVIS-API-TEST-CONTRACT.md §3.1 — Self coverage
.planning/architecture/REVIEW-MIGRATION-RISK.md R-016

## Goal File and implement harness scenarios S-SELF-001..S-SELF-004 in JarvisAPI test contract; all run in BOTH .inProcessActor and .jsonRoundTripWebView modes per UQ-5. ## Scope - `S-SELF-001` getSelfState happy path - `S-SELF-002` B-08 dissolution N=10 - `S-SELF-003` TCC denied → revoked-event chain via `_forceTCCStatus` - `S-SELF-004` getActiveAudioRoute returns nil pre-voice-install (R-016 ordering gate) - All scenarios parametric (both transport modes) ## Files - `packages/Harness/Tests/HarnessTests/SelfScenarioTests.swift` (new) ## Acceptance - [ ] 4 scenarios filed, each runs in both transport modes - [ ] `S-SELF-002` N=10 trials assertion present - [ ] `S-SELF-004` asserts `getActiveAudioRoute` returns nil before voice subsystem install - [ ] All green ## Test `swift test --package-path packages/Harness --filter SelfScenarioTests` green. ## Parent epic #5 ## Source `.planning/architecture/JARVIS-API-MIGRATION-PLAN.md` §2.2 (M-1.5) `.planning/architecture/JARVIS-API-TEST-CONTRACT.md` §3.1 — Self coverage `.planning/architecture/REVIEW-MIGRATION-RISK.md` R-016
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KofTwentyTwo/Jarvis#104