SPB Git

Repository Public

PROGRESS.md 5.6 KB 62 lines markdown

1<!--2SP Lecture Studio3File: PROGRESS.md4Author: Simon-Pierre Boucher5Contact: contact@spboucher.ai6-->7# PROGRESS — SP Lecture Studio89Session of 2026-11-18. Every command below was actually run; results are quoted from its output.1011## Phase checklist12- [x] **Phase 0 — audit**: Xcode 27.2 / Swift 6.4.2, SDKs macOS 27.2 and iOS 27.2, simulator runtime iOS 26.5, signing identities and13      notary profile present, no pre-existing repository. Capability matrix and decisions in `docs/ARCHITECTURE.md`.14- [x] **Phase 1 — scaffold**: monorepo, SwiftPM package with 8 targets, XcodeGen project with macOS and iOS targets, scripts, tests.15- [x] **Phase 2 — PDF and ink**: import, view, navigate, search, zoom/pan; PencilKit ink on iPad/iPhone, mouse/tablet ink and shape16      tools on Mac; time-coded vector strokes saved and reloaded; undo/redo; annotated PDF.17- [x] **Phase 3 — recording**: real microphone, page/ink/pointer/viewport events, pause/resume/stop, markers and retake, segmented18      media, atomic manifest checkpoints, interruptions, route changes, low-disk / thermal / battery warnings, crash recovery.19- [x] **Phase 4 — render**: deterministic MP4 export (H.264, HEVC), synchronized audio, progress, cancellation, verification by decoding.20- [x] **Phase 5 — editing**: nondestructive timeline, cut / split / ripple delete / trim / mute, undo/redo, long-silence and retake21      suggestions with before/after audition and approval, fades, crossfade, loudness normalization, cleanup, chapters.22- [~] **Phase 6 — advanced**: camera picture-in-picture (implemented, **never run with a camera**); transcription providers and23      captions (implemented, **on-device recognition never run**); optional remote transcription and tus upload (tested against24      stubs only); presentation window (implemented, untested on a second display). **Not implemented**: Mac screen/window capture,25      device-to-device sync UI (only the encrypted bundle and upload building blocks), transcript-based AI cut suggestions.26- [~] **Phase 7 — release**: macOS notarized; iOS uploaded to App Store Connect; French + English; accessibility labels on controls.27      **Not done**: VoiceOver pass, real-device stress (disk, battery, thermal).2829## Commands and results30| Command | Result |31|---|---|32| `scripts/build-all.sh` | OK Swift packages · OK macOS app (Debug) · OK iOS/iPadOS app (Debug, simulator) · OK iOS/iPadOS app (Release, device) |33| `swift test` (via `scripts/test-all.sh`) | Unit: 44 tests, 0 failures · Integration: 16 tests, 1 skipped (the long one), 0 failures |34| `LECTURE_LONG_TESTS=1 swift test --filter testNinetyMinuteSyncAndResources` | passed in 122 s — "90-min export: 99.3 s wall, 162000 frames (160606 reused), 27.5 MB file, peak RSS 600 MB, project 520 MB on disk" |35| `scripts/test-ui.sh iphone` / `ipad` | TEST SUCCEEDED — `testAnnotateRecordEditExport` (52 s / 56 s), `testPreflightPoliciesAndSearchSheets` (21 s / 20 s) |36| App self-test, iPhone simulator (`-LectureSelfTest YES`) | SELFTEST PASSED — microphone granted, 16.2 s in 2 segments, 1920x1080 avc1, ink 3/3 on time |37| App self-test, iPad simulator | SELFTEST PASSED — same, export in 2.8 s |38| App self-test, macOS | SELFTEST PASSED — microphone granted, 16.2 s in 2 segments (−32 dBFS), 1920x1080 avc1, ink on time (an earlier run, with the prompt unanswered, passed in PDF-only mode) |39| `swift test --filter testRealMicrophoneCaptureWhenPermitted` | passed — "device Micro MacBook Pro, 48000 Hz, 3.3 s in 4 segments" |40| `scripts/test-ui.sh mac` | TEST SUCCEEDED — `testMacAnnotateNavigateAndExportPDF` (17 s). While the Mac screen was locked it could not launch at all ("does not have a process ID") |41| `scripts/archive-macos.sh` | "Built dist/SP Lecture Studio.app version 1.0.0 (1) archs: x86_64 arm64", hardened runtime yes, sandbox yes |42| `scripts/notarize-macos.sh` | both submissions "Accepted"; "RESULT: notarized and stapled"; spctl "accepted, source=Notarized Developer ID" |43| `scripts/archive-ios.sh all` | "archive : 1.0.0 (1)", IPA 3.0 MB |44| `scripts/archive-ios.sh validate` / `upload` | "VERIFY SUCCEEDED with no errors" / "UPLOAD SUCCEEDED with no errors" |45| `scripts/localize.py --strict` | "503 keys, 503 translated to English, 0 missing" |4647## Bugs found by the tests and fixed48- Segment checksums were computed before `AVAudioFile` wrote its final header (explicit `close()` added).49- A cancelled export left an `AVAssetWriter` side file (exports now run in a scratch folder that is removed).50- Silence detection took the noise floor at the 10th percentile and failed on lectures with little silence (now 3rd).51- The maximum-duration countdown restarted right after it had fired.52- Session state was read before the engine's asynchronous callback (zoom recorded right after "resume" was dropped).53- macOS: thumbnails stayed blank (lazy rows did not observe the session); an empty banner container sat above the canvas.54- iPhone: the PencilKit palette covered the navigation bar and floated over sheets; compact record bar and title were squeezed;55  the Export button and the exported files were below the fold.5657## Blockers and next actions (owner)581. Record a real 10-minute lecture on the Mac with the notarized app (`dist/SPLectureStudio-1.0.0.dmg`) and watch the export.592. Install the TestFlight build on a real iPad with Apple Pencil and a real iPhone; run acceptance tests 1–3 for 10 minutes each.603. Try the camera, on-device transcription (install the language model in System Settings) and the lock-screen / phone-call cases.614. Decide whether to publish the Mac DMG and whether to keep `ITSAppUsesNonExemptEncryption = false`.62
Files main
Menu

Theme