M-1: Self surface (getSelfState, TCC events, B-08 dissolution) #5
Open
opened 2026-05-12 19:01:55 +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#5
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 lowest-blast-radius surface as proof of API approach. Self surface live;
getSelfState/tccStatusChanged/ device enumeration through API. Closes B-08 (model paraphrase) via canonicalmodelDisplayNametyped at the API boundary.Scope — surfaces in this phase
JarvisAPI.Selfprotocol with queries:getSelfState,listAudioDevices,listCameraDevices,getActiveAudioRouteselfStateChanged,tccStatusChanged_forceTCCStatus(permission:granted:)modelId+modelDisplayNameonSelfState— sole strings referenced inget_self_statetool result textgetSelfState.memoryVectorAvailable: Boolflag (foreshadows M-4 / R-011)Files (created/modified)
packages/JarvisAPI/Sources/JarvisAPI/Surfaces/Self+Adapter.swift(new) — wrapsSelfStateAdapterApp/AppDelegate.swift:686-689— wire SelfSurface conformer; in-process tool now consumes typed surfaceget_self_state— consumesJarvisAPI.Self.getSelfState()packages/Harness/Tests/HarnessTests/SelfScenarioTests.swift(new)Test contract
Scenarios
S-SELF-001..S-SELF-004fromJARVIS-API-TEST-CONTRACT.md— all run in BOTH.inProcessActorAND.jsonRoundTripWebViewmodes per UQ-5:S-SELF-001— getSelfState happy pathS-SELF-002— B-08 dissolution N≥10 trials (assistant text never contains "Opus 4.5" whenmodelId == "claude-opus-4-7")S-SELF-003— TCC denied → revoked-event chain via_forceTCCStatusS-SELF-004—getActiveAudioRoutereturns nil pre-voice-install (R-016 ordering gate)Acceptance criteria
swift test --package-path packages/JarvisAPI --filter SelfSurfaceTestsgreen.inProcessActorrunner.jsonRoundTripWebViewrunnerbash scripts/check-install-order.sh(behavioral) green — Self conformer must not perturb install DAGbash scripts/verify-entitlements.sh --pre-codesigngreen (R-012)getSelfState.memoryVectorAvailable: Boolreflects current dylib load stateCarry-forward closures
Dependencies
Sub-issues
Estimate
1.0–1.5 engineer-days
Source
.planning/architecture/JARVIS-API-MIGRATION-PLAN.md§2.2.planning/architecture/JARVIS-API-DESIGN-v0.1.md—Selfsurface.planning/architecture/JARVIS-API-TEST-CONTRACT.md§3 — Self coverage map.planning/architecture/REVIEW-MIGRATION-RISK.mdR-010, R-012, R-016