Repository navigation
1.9: store refinements, selectIndices, macOS 15 / iOS 18 floor - #84
Merged
Merged
Conversation
JSONStoreFailure reports a typed JSONStoreFailurePhase and JSONStoreCapacity (raw values keep the original phase numbers and capacity names) and is Equatable. JSONStoreReferences.strict(marker:) drops the validateTargets flag whose only accepted value was true; the invalidReferenceMode code becomes unreachable and is removed. Add collectionIndex(named:). Add JSONStoreIDKind (.string default, .integer). Integer IDs compare by exact mathematical value through a compact canonical key built from the normalized digits and exponent, so 7, 7.0 and 7e0 are one ID, values beyond Double precision stay exact and large exponents never expand. IDs never convert between kinds. JSONStoreRecordMetadata.id is a typed JSONStoreRecordID (string and integer literals) with scalar-exact string equality; lookup(collection:id:) accepts one, and the String overload remains. The string-ID path and its accounting are byte-identical: all 69 pinned NAV12 vectors and their fixtures are unchanged. Add JSONInspectionBatch.optionalValues(at:maximumRequests:): nil only for an absent member or an index past the end; wrong-kind, negative-index, pointer-token, resource and cancellation failures match values(at:). Add eight workflowR public-consumer tests and update the docs, which now describe these APIs as available since 1.9.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Run indexed-selection convention V1 to EOF and return the selected ordinals in emitted order. Positions and their leases stay alive until completion, so the completion statistics equal the manual withSelection loop. Document it in IndexedSelection and drop the stale 1.8-candidate wording from the JSONTransform overview. Two selection tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use swift-6.4.2-RELEASE_wasm (Swift.org archive SHA-256 83baca83...) and the matching 6.4.2 compiler banner in the WASI lane and audit. Receipts produced under the 6.4.0 pin stay bound to it; the executed 6.4.0 audit record keeps its original archive hash. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TestDiscovery: JSONInspectionTests 222 and JSONTransformTests 59 in the native, portable and WASI inventories; eight workflow and two selection identities. Update the harness pins to match, the README sections that still said 1.8 candidate, the Unreleased 1.9.0-dev changelog and the CLI source identity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The store qualification parses STORE_VECTOR lines against the pinned numeric phases, so print JSONStoreFailurePhase.rawValue. Use plain code for JSON in the optionalValues doc comment; cross-module symbol links do not resolve inside the JSONInspection catalog. Regenerate the CLI source identity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The workflow and selection qualifiers compile exactly one swift fence per guide; show the extra ID-kind and selectIndices snippets as inline code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ThorFuchs
marked this pull request as ready for review
November 10, 2026 14:20
Swift-JSON compiles and passes its tests with macOS 15 / iOS 18 minimums; the macOS/iOS 27 floor was declared rather than required. Only two optional JSONHTML APIs need newer systems: - The WebKit WebPage PDF backend is marked available from macOS/iOS 26; earlier systems report the existing JSONPDFFailure.backendUnavailable. - The Markdown transfer type uses the system-declared net.daringfireball.markdown identifier before UTType.markdown (27). Tests that exercise those APIs carry matching availability. Development still uses Swift 6.4 with the macOS 27 SDK; Linux and WASI are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add Documentation/Qualification/Release1.9.md: scope, the macOS 15 / iOS 18 deployment floor carried from the 1.8.1 candidate, the maintainer's explicit 1.9.0 performance-gate exception and the local lane results. Regenerate the CLI source identity after the platform commits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refinements and extensions to the 1.9.0-dev store/selection APIs ahead of a 1.9.0 release decision. Additive against published 1.8.0. The configured store's public API is unreleased in 1.8.0 and was admitted by the maintainer on 2026-11-10.
Store refinements (JSONInspection)
JSONStoreIDKind(.stringdefault,.integer) per collection. Integer IDs compare by exact mathematical value (7==7.0==7e0). Values beyond Double precision stay exact. Kinds never convert: a string"7"in an integer collection isrecordIDWrongKind, and a cross-kind marker isreferenceDanglingID.JSONStoreRecordID(string/integer literals) andlookup(collection:id:). TheStringoverload is kept and delegates to it.JSONStoreFailurePhaseandJSONStoreCapacityenums.JSONStoreFailureis nowEquatable.collectionIndex(named:). Maps an exact collection name to its physical index.validateTargetsknob:.strict(marker:)always validates targets, which is what all 69 pinned NAV12 vectors use.JSONInspectionBatch.optionalValues(at:maximumRequests:). Returnsnilfor an absent member or an out-of-range index and throws for everything else. Matchesvalues(at:)error parity and uses one cumulative ledger.Transform
JSONTransformProgram.selectIndices(in:bindings:limits:source:). Runs selection to EOF and returns the ordinals. Completion statistics are identical to the manualwithSelectionloop.Toolchain / WASI
swift-6.4.2-RELEASE_wasmSDK (scripts and docs).Docs and inventories
selectIndices), README, and the "Unreleased — 1.9.0-dev" section of CHANGELOG. Each guide still has exactly one compiled Swift example.workflowR01–R08and the 2selection*tests.Platform floor (macOS 15 / iOS 18)
Carried from the 1.8.1 candidate #83 to match Swift-MCP-Server-Core (macOS 15, iOS 18, Linux).
Package.swift:.macOS(.v15), .iOS(.v18). Development still needs Swift 6.4 and the macOS 27 SDK.WebPagePDF backend is@available(macOS 26, iOS 26, *)and throwsbackendUnavailablebefore 26. Before 27, the Markdown transfer type usesnet.daringfireball.markdown.swift build --build-testsat the macOS 15 floor: exit 0.arm64-apple-ios18.0(iOS 27.2 SDK): exit 0.Qualification record and performance exception
New
Documentation/Qualification/Release1.9.md. The maintainer chose to record an explicit exception for the 1.9.0 controlled-performance gate (excepted_explicitly, not passed). No performance claim is made.Local verification
Swift 6.4.2 (swiftly,
swiftlang-6.4.2.1.9), Xcode 27.2 macOS SDK,python3 Scripts/ci.py --lane <lane>. All commands exited 0:Store and WASM ran on
2f83b70. The only change since then is the guide wording plus the regenerated CLI identity in3284782. The platform-floor commits (246c1ca,49d1c93) and the record (b99a6ea,c27d2f7) are checked by this PR's CI.The only issue
swift package diagnose-api-breaking-changesreports against 1.8.0 is a false positive for a package-only enum.No version bump, tag or release is part of this PR. Merge and release remain human-gated.
🤖 Generated with Claude Code