M-0: pre-migration gates (JarvisAPI package, harness, behavioral gates, dual-handshake) #4
Open
opened 2026-05-12 19:01:39 +00:00 by KofTwentyTwo
·
0 comments
No Branch/Tag Specified
develop
ci/secrets-historical-baseline
feature/security-findings-2026-10
dependabot/npm_and_yarn/webview/npm_and_yarn-3ac77625be
dependabot/npm_and_yarn/webview/packages/bus/npm_and_yarn-c86b58a346
dependabot/npm_and_yarn/webview/vitejs/plugin-react-6.0.2
dependabot/npm_and_yarn/webview/vite-8.0.13
dependabot/npm_and_yarn/webview/zustand-5.0.13
dependabot/npm_and_yarn/webview/types/node-25.9.1
dependabot/npm_and_yarn/webview/vitest-4.1.6
dependabot/github_actions/actions/setup-node-6
dependabot/github_actions/github/codeql-action-4
dependabot/github_actions/actions/checkout-6
dependabot/github_actions/actions/cache-5
dependabot/github_actions/pnpm/action-setup-6
feat/local-first-llm-routing
docs/local-first-llm-routing-spec
fix/v0.2-wave-1-code-fixes
docs/v0.2-wave-1-doc-drift
docs/handoff-2026-05-14
docs/multi-runner-inventory
docs/ollama-baseline-58
fix/ci-env-harness-sqlite-voice-warmup
fix/ci-xcode-26-and-batcher-timing
chore/typecheck-blocking
fix/hud-typecheck-strict-undefined
wip/voice-log-menu-stash4
v0.1.0-dev.71
v0.1.0-dev.68
v0.1.0-dev.64
v0.1.0-dev.50
Labels
Clear labels
area:agent
area:build
area:bus
area:devtool
area:hud
area:logging
area:mcp
area:memory
area:vision
area:voice
audit-finding
bug
carry-forward
comment-cleanup
dependencies
documentation
duplicate
enhancement
epic
good first issue
help wanted
invalid
javascript
migration
question
severity:critical
severity:high
severity:low
severity:medium
wontfix
Something isn't working
Comment / docstring cleanup per .planning/code-commenting-guide.md
Dependency updates
Improvements or additions to documentation
This issue or pull request already exists
New feature or request
Good for newcomers
Extra attention is needed
This doesn't seem right
Pull requests that update javascript code
Further information is requested
This will not be worked on
Milestone
No items
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: KofTwentyTwo/Jarvis#4
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Goal
Land the substrate the rest of the migration assumes (API package, harness, behavioral gates, dual-version handshake) before any surface migrates. Pure additive substrate on
develop: newJarvisAPIpackage, parametric harness driver, dual-version bus handshake, two grep gates promoted to behavioral.Scope — surfaces in this phase
No live API surfaces. Substrate only:
JarvisAPIpackage skeleton — types-only (Surfaces,Commands,Events,Queries,Errors,JarvisHost)APIClockprotocol +RealClock+ManualClock(G-002)TransportMode.{inProcessActor, jsonRoundTripWebView}+ parametric scenario runner stub (UQ-5)JARVIS_HARNESS=1runtime gate +ProviderOverridesplumbing (UQ-1, G-001/G-003/G-004)["2.3.0", "2.4.0-rc"])check-fanout-drainer.shcheck-single-writer-hudstate.sh+check-install-order.shBusForwarder.draintakes sink fan-out (1 drainer, N≥1 sinks)MockTTSForController,CapturingSTTProvider,MockVADEngine,FakeKeychain,FakeStore) from@testabletest targets intoSources/Harness/Files (created/modified)
packages/JarvisAPI/Package.swift(new)packages/JarvisAPI/Sources/JarvisAPI/{Surfaces,Commands,Events,Queries,Errors,JarvisHost,Clock}.swift(new)packages/Harness/Sources/Harness/TransportMode.swift(new) + scenario runnerpackages/Bus/Sources/Bus/WebviewBridge.swift:147-288+Protocol.swift:28scripts/check-single-writer-hudstate.sh(rewrite as harness probe wrapper; grep kept)scripts/check-install-order.sh(rewrite as behavioral; grep kept)scripts/check-fanout-drainer.sh(new)scripts/check-no-schema-migration-in-turn.sh(new — referenced by M-7)packages/AgentCore/Sources/AgentOrchestrator/BusForwarder.swift(sink fan-out)packages/Harness/Sources/Harness/{Mock,Stub,Fake}*.swift(hoisted from test targets)Test contract
No surface scenarios yet. Substrate validation:
swift test --package-path packages/JarvisAPIgreen (types compile)swift test --package-path packages/Harnessgreen (parametric runner scaffolding compiles)scripts/check-fanout-drainer.shgreen (M-0.8 single drainer, multiple sinks)Acceptance criteria
swift test --package-path packages/JarvisAPIgreen (types compile)swift test --package-path packages/Harnessgreen (parametric runner scaffolding compiles)bash scripts/check-app-builds.shgreenbash scripts/check-bus-protocol-version.shadapted for dual-version, greenscripts/check-fanout-drainer.shgreenscripts/check-no-schema-migration-in-turn.shpresent (used by M-7)JARVIS_HARNESS=1runtime gate verified: test seams no-op when env var absent.inProcessActorrunner (scaffolding stub).jsonRoundTripWebViewrunner (scaffolding stub)Carry-forward closures
None — substrate only. B-02 already closed by tactical patch (2026-05-11, commit
48ad8d6).Dependencies
Sub-issues
Estimate
2.5–3.5 engineer-days
Source
.planning/architecture/JARVIS-API-MIGRATION-PLAN.md§2.1.planning/architecture/JARVIS-API-DESIGN-v0.2.md§5 (UQ-1, UQ-5).planning/architecture/REVIEW-MIGRATION-RISK.mdR-001, R-004, R-005, R-009