Reconcile AppleScript backend vs documented EventKit backend (DD-240 invariant #2) #2

Closed
opened 2026-07-02 07:30:13 +00:00 by piersdd · 2 comments
piersdd commented 2026-07-02 07:30:13 +00:00 (Migrated from github.com)

Migrated from the vault DEVFU register by the DD-422 sweep (frozen-index entry [209], DEVFU-2026-05-21-apple-reminders-backend-discrepancy).

Context (register entry, verbatim)

DEVFU-2026-05-21-apple-reminders-backend-discrepancy — Phase A.3 Batch 2 surfaced a substrate-truth gap. Catalog notes + directives/access-policy.md + directives/local-corpus-blades.md + DD-333-phase-0-substrate-facts.md §5.6 all describe apple-reminders-blade-mcp as "EventKit via pyobjc" (DD-240 invariant #2 carve-out). Actual ~/src/apple-reminders-blade-mcp/ v0.1.2 uses AppleScript / osascript for both reads AND writes — strict DD-240 invariant #2 violation if read literally. Option A (docs reconcile, ~2h) OR Option B (port to EventKit-direct, ~1-2d). Architect call. Full file at DEVFU-2026-05-21-apple-reminders-backend-discrepancy. Related: DD-240 invariants, DD-249 write-path amendment precedent.

Acceptance criteria

  • Architect decision recorded: Option A (docs reconcile, ~2h) or Option B (port to EventKit-direct via pyobjc, ~1-2d)
  • If A: catalog notes, directives/access-policy.md, directives/local-corpus-blades.md, and DD-333 substrate-facts §5.6 updated to state the AppleScript/osascript backend
  • If B: reads AND writes go via EventKit; AppleScript path removed
  • Anchors DD-240 invariant #2 (with DD-249 write-path amendment precedent) — compliance unambiguous after the change

Blocked by

None - can start immediately

Migrated from the vault DEVFU register by the DD-422 sweep (frozen-index entry [209], DEVFU-2026-05-21-apple-reminders-backend-discrepancy). ## Context (register entry, verbatim) **DEVFU-2026-05-21-apple-reminders-backend-discrepancy** — Phase A.3 Batch 2 surfaced a substrate-truth gap. Catalog `notes` + `directives/access-policy.md` + `directives/local-corpus-blades.md` + `DD-333-phase-0-substrate-facts.md` §5.6 all describe apple-reminders-blade-mcp as "EventKit via pyobjc" (DD-240 invariant #2 carve-out). Actual `~/src/apple-reminders-blade-mcp/` v0.1.2 uses AppleScript / osascript for both reads AND writes — strict DD-240 invariant #2 violation if read literally. Option A (docs reconcile, ~2h) OR Option B (port to EventKit-direct, ~1-2d). Architect call. Full file at [[DEVFU-2026-05-21-apple-reminders-backend-discrepancy]]. **Related:** [[DD-240]] invariants, [[DD-249]] write-path amendment precedent. ## Acceptance criteria - Architect decision recorded: Option A (docs reconcile, ~2h) or Option B (port to EventKit-direct via pyobjc, ~1-2d) - If A: catalog `notes`, `directives/access-policy.md`, `directives/local-corpus-blades.md`, and DD-333 substrate-facts §5.6 updated to state the AppleScript/osascript backend - If B: reads AND writes go via EventKit; AppleScript path removed - Anchors [[DD-240]] invariant #2 (with [[DD-249]] write-path amendment precedent) — compliance unambiguous after the change ## Blocked by None - can start immediately
piersdd commented 2026-07-16 12:18:03 +00:00 (Migrated from github.com)

Decision brief (AI triage, 2026-07-16) — Option A vs B, with a coupling warning.

A (docs reconcile, ~2h): update catalog notes + directives + DD-333 substrate-facts to state the AppleScript/osascript backend truthfully; DD-240 invariant #2 gets an explicit carve-out amendment (DD-249 precedent exists).
B (EventKit port, ~1–2d): reads AND writes via EventKit/pyobjc; AppleScript path removed; docs become true as written.

Coupling: sibling #1 (services.tasks mapping fix) was held by flow-drain as substrate-gone — the manifest the issue targets isn't in the GitHub tree (re-grounding in progress this session). If the local checkout holds unpushed substrate, both issues' premises change; decide A/B after that lands.

Lean: A now, B never-unless-forced — the blade works, the invariant amendment path exists, and 1–2d of port for doc-purity isn't worth it while the tasks contract is mid-flux.

**Decision brief (AI triage, 2026-07-16) — Option A vs B, with a coupling warning.** **A (docs reconcile, ~2h):** update catalog notes + directives + DD-333 substrate-facts to state the AppleScript/osascript backend truthfully; DD-240 invariant #2 gets an explicit carve-out amendment (DD-249 precedent exists). **B (EventKit port, ~1–2d):** reads AND writes via EventKit/pyobjc; AppleScript path removed; docs become true as written. **Coupling:** sibling #1 (services.tasks mapping fix) was held by flow-drain as `substrate-gone` — the manifest the issue targets isn't in the GitHub tree (re-grounding in progress this session). If the local checkout holds unpushed substrate, both issues' premises change; decide A/B after that lands. **Lean: A now, B never-unless-forced** — the blade works, the invariant amendment path exists, and 1–2d of port for doc-purity isn't worth it while the tasks contract is mid-flux.
piersdd commented 2026-07-16 12:30:08 +00:00 (Migrated from github.com)

Re-grounded at architect gate (2026-07-16): premise is dead — resolved by the v0.2.0 Swift rewrite. Closing.

The blade was rewritten in Swift (current head 407b68e, "feat: audit-honest _meta … (v0.2.0)"): Sources/AppleRemindersBlade/RemindersStore.swift does import EventKit; repo-wide grep finds zero osascript/AppleScript/NSAppleScript hits. The AppleScript backend this issue asked to reconcile no longer exists — Option B (EventKit-direct) happened de facto, and DD-240 invariant #2 compliance is now unambiguous.

Supersedes my brief from earlier today (which leaned Option A — written before the rewrite was discovered).

Residue (folded into #1's re-premise, not lost): catalog notes / directives/access-policy.md / directives/local-corpus-blades.md / DD-333 substrate-facts still say "EventKit via pyobjc" — the true statement is now "EventKit via Swift".

**Re-grounded at architect gate (2026-07-16): premise is dead — resolved by the v0.2.0 Swift rewrite. Closing.** The blade was rewritten in Swift (current head `407b68e`, "feat: audit-honest _meta … (v0.2.0)"): `Sources/AppleRemindersBlade/RemindersStore.swift` does `import EventKit`; repo-wide grep finds **zero** `osascript`/`AppleScript`/`NSAppleScript` hits. The AppleScript backend this issue asked to reconcile no longer exists — Option B (EventKit-direct) happened de facto, and DD-240 invariant #2 compliance is now unambiguous. Supersedes my brief from earlier today (which leaned Option A — written before the rewrite was discovered). **Residue** (folded into #1's re-premise, not lost): catalog notes / `directives/access-policy.md` / `directives/local-corpus-blades.md` / DD-333 substrate-facts still say "EventKit via **pyobjc**" — the true statement is now "EventKit via **Swift**".
This discussion has been locked. Commenting is limited to contributors.
No description provided.