MessagesCore at v0.2.0 does not compile with SQLite.swift 0.17.0 #6
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-info
needs-triage
question
ready-for-agent
ready-for-human
svd:go
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/apple-messages-blade-mcp#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happens
Package.swiftasks forSQLite.swiftwithfrom: "0.15.3". The repository ignoresPackage.resolved, so a consumer of theMessagesCoreproduct resolves the newest version. That version is 0.17.0 today, and the build fails:SQLite.swift0.17.0 removed the third value ofResult.errorand ofResult.extendedError. The functiontranslate(sqliteError:path:)still matches three values.With
SQLite.swift0.16.0 the build completes.How to reproduce
exact: "0.2.0", productMessagesCore.swift buildwith noPackage.resolvedfile.What to build
translate(sqliteError:path:)compile with the currentSQLite.swift.Package.swiftthat the code compiles with at both ends.Package.resolved. A library does not need it, but the test run of this repository then has no fixed set of versions.Acceptance criteria
MessagesCoreproduct builds with noPackage.resolvedfile.MessagesCoreTeststarget passes at the lowest and at the highestSQLite.swiftversion that the range allows.Blocked by
Filed under: operator word "Grant" sha256:78b7d0379d5e
MessagesCore: let a consumer build on the system SQLite #5Agent Brief
Category: bug
Summary: Cap the
SQLite.swiftrange below 0.17.0, so that every version the manifest allows compiles.Current behavior:
The manifest asks for
SQLite.swiftfrom: "0.15.3". The repository ignoresPackage.resolved, so a fresh consumer resolves the newest release, 0.17.0. In 0.17.0 the casesResult.errorandResult.extendedErrorcarry two values.MessagesStore.translate(sqliteError:path:)matches three values in each case, and the build fails. Triage read the code and confirmed the three-value patterns. Triage did not rebuild against 0.17.0.Desired behavior:
SQLite.swift"0.15.3"..<"0.17.0". A fresh consumer resolves 0.16.x and builds.Package.resolvedstays ignored. That is the library convention.translate(sqliteError:path:)does not change.Triage rulings (operator, 2026-11-15): these supersede two bullets of "What to build" in the issue body.
translate(sqliteError:path:)compile with the current SQLite.swift".Package.resolved: do not commit it. This settles "Decide whether the repository commitsPackage.resolved".Key interfaces:
SQLite.swiftdependency declaration in the package manifest. The same declaration carries theSQLCiphertrait that #5 changes.Acceptance criteria:
MessagesCoreproduct builds with noPackage.resolvedfile.MessagesCoreTestspass at the lowest and at the highestSQLite.swiftversion that the range allows. The PR states both versions and how the run pinned each one.stallari-harnessresolves and builds against the new tag with no change to its manifest. It declaresSQLite.swiftfrom: "0.15.3"and resolves 0.16.0 today, so it fits the range.Out of scope:
SQLite.swift0.17.0. That needs a change totranslate(sqliteError:path:)and a range decision that affects consumers. It is a separate issue.Package.resolved.SQLCiphertrait. That is #5.Order: #5 and #6 change the same dependency declaration. Land #6 first, or land both on one branch. One tag can carry both.
⏸ SVD architect gate: dev/apple-messages-blade-mcp#6 messagescore-at-v0-2-0-does-not-compile-with-sqlite-swift-0
Status: CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity
standard· dispatch effortmediumRun:
20261115T231235Z-d638a2a8Held because: CLEAN but 4 open risk(s) (2 verification · 2 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
swift buildwith no Package.resolved, and the build succeeds. Dispatch cannot create a tag; the pre-tag proof uses a path dependency. [verification]swift package update apple-messages-blade-mcpandswift build, which succeed with no Package.swift change, and its Package.resolved shows sqlite.swift inside ""..<"0.17.0". The sandbox denied Half-A access to /Users/piers/src/stallari-harness, so its from: "0.15.3" declaration and 0.16.0 resolution come only from the triage brief. [verification]Change: Change only the version requirement of the SQLite.swift declaration at Package.swift:56-58 from
from: "0.15.3"to"<L>"..<"0.17.0". Keeptraits: ["SQLCipher"]byte-identical, because #5 owns it. Add a short note to the comment at Package.swift:52-55 saying why the range stops below 0.17.0. Before the first edit, measure L on the pristine manifest withswift package resolve SQLite.swift --version 0.15.3(then 0.15.4),swift buildandswift test --filter MessagesCoreTests. L is expected to be 0.15.5: tags 0.15.3 and 0.15.4 are tools-version 5.9 and declare no traits, and 0.15.5 is the first tag that declares the SQLCipher trait. Do not change MessagesStore.translate(sqliteError:path:) (MessagesStore.swift:422-436, operator ruling). Its three-value Result patterns compile at every tag from 0.15.3 to 0.16.0. Do not commit Package.resolved. Mirror release commit3a8262d: Version.swift:10 and UnitTests.swift:71 testSemver go to "0.2.1", and CHANGELOG gets a [0.2.1] section above [0.2.0] (Fixed, Changed with the range and the reasons for both bounds, and Notes). The owner applies the v0.2.1 tag after merge. Prove the change at the low end (pinned to L) and the high end (fresh unpinned resolve, 0.16.x), and with a scratch consumer package that uses a path dependency on the MessagesCore product.Files:
Package.swift·CHANGELOG.md·Sources/AppleMessagesBlade/Version.swift·Tests/AppleMessagesBladeTests/UnitTests.swiftDecision: accept the 4 open risk(s) above and dispatch this spec (
svd:go), or park (svd:skip) / re-spec (svd:respec)?Your call (when this issue is held at the gate via
svd:hold):svd:go— approve; Half-B dispatch accepts exactly this spec (open risks accepted)svd:firebesidesvd:go— approve AND authorise the Half-B fire from the phone; never on its ownsvd:skip— park it; dispatch refuses it and the issue stays for a humansvd:respec— discard this spec; the next Half-A run re-produces it with this record as prior-attempt contextSpec:
/Users/piers/.local/state/exhaust/groupthink/specs/2026-11-15-messagescore-at-v0-2-0-does-not-compile-with-sqlite-swift-0.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-15-messagescore-at-v0-2-0-does-not-compile-with-sqlite-swift-0.mdspec-verify-dispatch Half B for dev/apple-messages-blade-mcp#6 messagescore-at-v0-2-0-does-not-compile-with-sqlite-swift-0 completed integration verify.
3e2e041d9b3e2e041: absent3e2e041: no remote checks exist (absent). Local full swift test passed at sqlite.swift 0.16.0. MessagesCoreTests passed at 0.15.3 with 34 tests. No blockers.3e2e041: The Forgejo statuses endpoint returns [] for the PR head. The repo has no CI configured and no run in its history. No tracking pointer exists. — reported as absent, not blocking (gh#633)codex-svd ship --run-id 20261116T041654Z-ccae8845 --confirm-merge)MessagesCore: let a consumer build on the system SQLite #5MessagesCore: let a consumer build on the system SQLite #5MessagesCore: let a consumer build on the system SQLite #5