Skip to content

Slice 2: wire macOS app to shared Rust core (NEEDS XCODE VALIDATION)#7

Merged
engmsaleh merged 1 commit into
developfrom
merge/slice-2-swift-bridges
Jun 3, 2026
Merged

Slice 2: wire macOS app to shared Rust core (NEEDS XCODE VALIDATION)#7
engmsaleh merged 1 commit into
developfrom
merge/slice-2-swift-bridges

Conversation

@engmsaleh
Copy link
Copy Markdown
Collaborator

Slice 2 of the skills-bridge-swift -> develop merge plan. Wires the macOS app to the core/ Rust workspace landed in Slice 1.

What's in it

  • New: RustPolicyBridge, RustSkillsBridge, RustRealtimeBridge (dynamic FFI loaders, Swift fallback when the dylib is absent), SkillPromptComposer.
  • Routed through Rust: EntitlementManager.canStartTurn(), TrialTracker, UsageTracker.
  • Updated: CompanionManager, AdminAllowlist. All additive + // MARK: - Skilly.

Conflict resolution

EntitlementManager.swift and TrialTracker.swift were 3-way merged (kept develop's v1.6–v2.0 work, grafted the branch's Rust wiring) — no conflict markers. The other 6 Swift files are net-new / branch-only and clean.

Validation done (agent-safe)

  • swiftc -parse OK on all 8 changed Swift files (syntax gate).
  • New files auto-compile via PBXFileSystemSynchronizedRootGroup (Xcode 16) — no project.pbxproj edits required.

⚠ REQUIRED before merge — human Xcode build

Agents cannot run xcodebuild (TCC). Please build in Xcode and smoke-test:

  • turn-start for trial / active / capped / admin users
  • the Rust-absent fallback path (no dylib present) still behaves identically

Depends on: Slice 1 (merged). Independent of Slices 3 (merged) / 4 / 5.

…idge-swift)

Adds RustPolicyBridge/RustSkillsBridge/RustRealtimeBridge.swift (dynamic FFI
loaders with Swift fallback), SkillPromptComposer, and routes EntitlementManager
+ TrialTracker through the Rust policy bridge. CompanionManager/UsageTracker/
AdminAllowlist updated. All additive + // MARK: - Skilly.

Conflict resolution: EntitlementManager.swift + TrialTracker.swift 3-way merged
(kept develop's v1.6-v2.0 work, grafted the branch's Rust wiring) — no markers.
New leanring-buddy/*.swift auto-compile via PBXFileSystemSynchronizedRootGroup
(no pbxproj edits). Syntax-validated: swiftc -parse OK on all 8 files.

NEEDS HUMAN XCODE VALIDATION (agents cannot run xcodebuild/TCC): build + smoke
trial/active/capped/admin turn-start and the Rust-absent fallback path.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@engmsaleh engmsaleh merged commit 340d3b5 into develop Jun 3, 2026
12 of 16 checks passed
@engmsaleh engmsaleh deleted the merge/slice-2-swift-bridges branch June 3, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant