Inspect has two product jobs:
- Manual TLS certificate inspection
- Passive system-wide host and certificate monitoring
Everything in the app should reinforce one of those jobs.
The current working baseline is:
- Manual inspect works on device.
- Live Monitor works on device through the packet tunnel.
- Safari traffic reaches the tunnel path.
- Hosts persist across launches.
- Host detail and certificate detail are wired.
- Diagnostics and shared tunnel logs are available in-app.
- Simulator build and simulator test flows are in place.
- A native macOS app target exists and reuses the shared Inspect, Monitor, and Settings flows.
- A macOS packet-tunnel extension target exists and Live Monitor wiring is in place on macOS.
- iOS and macOS App Store packaging, upload, and review-submission flows are working.
- Safari extensions exist on iOS and macOS for current-page inspection.
- A macOS share extension exists and opens shared pages directly into certificate detail.
Keep these constraints stable:
- Keep
InspectCoreas the shared Swift package for models, monitor state, UI, and runtime orchestration. - Keep
InspectPacketTunnelExtensionthin. - Keep
Rust/tunnel-coreas the forwarding and passive-observation core. - Keep
tun2proxyas the forwarding base. - Keep one logging path through the shared App Group log.
- Do not reintroduce proxy-based fallback paths into the main live-monitor flow.
Focus:
- Refine Inspect, Monitor, and Settings copy.
- Polish host detail and certificate-detail transitions, especially on regular-width layouts.
- Keep diagnostics useful without leaking low-level implementation details into the main UI.
- Keep iOS, iPad, and macOS presentation aligned without stretching phone-first layouts onto larger screens.
- Keep extension naming and handoff behavior consistent across iOS Safari, macOS Safari, and macOS Share.
Goal:
Present the same Inspect, Monitor, and certificate flows well on every container the app can occupy, including foldable iPhone.
Done:
- Layout gates read the live container width instead of trusting a regular size class alone, so the side rail no longer crushes the main column on narrow regular widths such as the Duo inner display in portrait.
- Fold state comes from
reservedRegions(kind: .division)and constrains content to the region the hinge leaves free. - Certificate detail uses
ArrangementViewon iOS 27.1 and later so the chain sits beside the rows it indexes; the plain list remains for narrower poses and older systems. - Monitor can open in a second window, which iPhone Duo can show beside Inspect on its inner display.
Remaining:
- Visual verification of the arrangement split and fold displacement on physical iPhone Duo hardware.
- Decide whether Monitor should use the split arrangement for host list and host detail.
- Revisit hinge posture (
onHingeChange) only if a prop-up specific layout proves useful.
Focus:
- Preserve the current working iOS packet-tunnel path.
- Keep restart/stop/start behavior reliable.
- Improve error reporting only when it helps product-level diagnosis.
- Avoid risky structural changes unless they clearly improve stability.
Goal:
Add UDP flow observation without blocking current TCP/TLS monitoring.
Plan:
- Extend the
tun2proxyobserver seam to expose UDP session metadata and payload direction. - Map UDP observer events into
tunnel-coreand then into Inspect's monitor pipeline. - Decide how UDP observations should appear in Monitor and Diagnostics.
- Keep certificate detail disabled for UDP-only observations unless a later protocol-specific parser exists.
Treat this as a separate track from basic UDP observation.
Scope:
- Determine what metadata is realistically observable.
- Evaluate whether passive QUIC handshake parsing is worth the complexity.
- Do not bundle QUIC certificate capture into the first UDP milestone.
Focus:
- Keep architecture docs current.
- Keep device, simulator, and macOS workflows documented.
- Keep iOS and macOS TestFlight / App Review flows easy to run from
justand repo scripts. - Keep store descriptions and screenshots current without intrusive in-app screenshot automation.
Goal:
Extend Inspect to macOS without forking the core monitor and certificate logic.
Done:
Rust/tunnel-corebuilds foraarch64-apple-darwinandx86_64-apple-darwin.InspectCoreand the shared SwiftUI feature layer compile on macOS.- Swift package tests pass on macOS.
- A real
InspectMacapp target exists inproject.yml. - A macOS packet-tunnel extension target, plist, entitlements, signing, and bundle identifiers are in place.
- Live Monitor wiring exists on macOS and shares the same core monitor and certificate logic.
- The shared SwiftUI layer now keeps macOS branching concentrated in platform files and shared layout/theme helpers instead of scattering it through feature views.
- macOS deployment targets are declared in the Swift package and Xcode project source of truth.
- macOS build, packaging, upload, screenshots, and App Review submission flows are proven.
- A macOS share extension exists and hands shared pages into the app's certificate-detail flow.
- Safari extension current-page inspection and full-detail handoff work on both iOS and macOS.
Remaining:
- Continued regular-width polish for Inspect, Monitor, and certificate detail.
- Mac-specific validation coverage in CI where it adds signal.
- Decide whether the old iOS action extension should remain alongside Safari extension, be simplified, or be removed.
Decisions:
- Keep macOS on the same shared feature stack as iOS unless a platform difference is clearly product-driven.
- Prefer platform-specific files or shared layout/theme helpers over scattered
#if os(...)branches. - Prefer direct handoff entry points that land in the existing shared Inspect flows instead of building extension-specific certificate UI.
- Keep the Safari extension as the primary current-page entry point and the macOS share extension as the primary system share entry point.
Execution Order:
- Continue regular-width and macOS-specific UI polish now that the tunnel path is proven.
- Add CI coverage only for macOS checks that catch real regressions.
- Reassess extension surface area after Safari extension and macOS share extension usage settles.
Use this validation loop for non-trivial changes:
cargo test --manifest-path Rust/tunnel-core/Cargo.tomlswift testinPackages/InspectCorexcodebuild -project Inspect.xcodeproj -scheme Inspect -destination 'generic/platform=iOS Simulator' build | xcbeautifyxcodebuild -project Inspect.xcodeproj -scheme Inspect -destination 'platform=iOS Simulator,id=<simulator-id>' test | xcbeautifyxcodebuild -project Inspect.xcodeproj -scheme InspectMac -destination 'platform=macOS' build | xcbeautify- targeted device smoke test when tunnel behavior, app-group logging, or monitor behavior changes
- macOS smoke test when tunnel behavior, window behavior, or App Group logging changes
Next practical steps:
- Continue regular-width polish on Inspect, Monitor, and certificate detail.
- Keep the live-monitor tunnel path stable on both iOS and macOS while improving diagnostics only where they help users.
- Add UDP observation through the
tun2proxyobserver branch. - Add targeted CI coverage for macOS app and extension regressions where it adds real signal.
- Decide the long-term role of the old iOS action extension now that Safari extension handoff exists.
- Revisit QUIC only after UDP observation and product presentation are clear.