Repository navigation
ios(state-machines): extract AidenHostConnection, ChatViewModel sub-machines, and VoiceInput reducer - #906
Open
sambitcreate wants to merge 2 commits into
Open
ios(state-machines): extract AidenHostConnection, ChatViewModel sub-machines, and VoiceInput reducer#906sambitcreate wants to merge 2 commits into
sambitcreate wants to merge 2 commits into
Conversation
…b-machines, and ComposerVoiceInputController
…e' into feat/sm-ios-dense-owners
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes I reviewed the complete two-commit extraction across all 16 changed files, including production call sites, lifecycle equivalence, and the new behavioral coverage.
- Host connection lifecycle — Moves custody, connection state, attempt routing, rollback, and generation fencing into
AidenHostConnectionLifecyclewhile retaining delegate and network ownership inAidenHostConnection. - Foreign-run observation — Extracts attach/reconnect, settle promotion, foreground probing, announced-turn handoff, and bounded transcript reconciliation into
AidenForeignRunObserver. - Pending sends and chat mutations — Isolates durable-send retry state, automatic 429 retries, worktree setup, fork/continue idempotency, and approval/question snapshot fences.
- Voice input lifecycle — Introduces a pure reducer and injectable platform drivers for native and paired-Mac dictation, with canonical resource teardown and session-fenced callbacks.
- Coverage and shipping inventory — Adds focused XCTest coverage for the extracted machines and registers all new app/test sources in the Xcode project and shipping checks.
@v0 or keep the SHA fresh with Dependabot | View workflow run | Using GPT Sol | 𝕏
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary (Stacked on PR #901)
AidenHostConnectionLifecycle(activevsrevoked(purgePending:), attempt & generation axes) fromAidenHostConnection.swift, preserving all@Observableproperties and adding lifecycle/revocation tests inAidenHostConnectionTests.swiftAidenForeignRunObserver,AidenPendingSendCoordinator, andAidenChatMutationSubMachines(AidenWorktreeSetupMachine,AidenChatForkAttemptMachine,AidenContinueInNewChatAttemptMachine, approval/question snapshot fences) fromAidenChatViewModel,+ForeignRuns, and+Fork, with dedicated unit testsComposerVoiceInputReducerover(state, backend, resources, suppressNextRecognitionError, sessionFence)with single canonicaltransitionToIdlecleanup and injectable driver seams +ComposerVoiceInputControllerTests.swiftproject.pbxprojandscripts/check-ios-shipping-target.test.mjsVerification
node --test scripts/check-ios-shipping-target.test.mjs scripts/check-ios-testflight-policy.test.mjs scripts/check-ios-app-store-metadata.test.mjs(22/22 pass; macOSxcodebuild testrunning on this PR)