Repository navigation
Done
Description
Use direct wording in the passages below. Keep API names, error codes, platform details, and behavior unchanged. This is an editorial review, not an authorship claim. The pinned default-branch audit covers first-party docs and source comments/docstrings. Change generated text at the source and regenerate it.
Snapshot 9a2425a623895c7606e13f285ff7ee32e9fbcd08. Docs: README.md, bench/device-farm/README.md.
README.md:244–250, “when the last reference goes … writes and begins … a thread that uses one it did not begin” → “ARC releases the last reference, but finish the transaction yourself so the write lock is released promptly. On other threads, writes and attempts to start a transaction wait; queries can still read committed data. Use the transaction on the thread that opened it.” Keep the INT-001 list separately.README.md:277–293, 298–302, “current write view … Complete-empty … abandon on exhausted … mandatory exact caps … unlimited sentinel … callback reentering” → “The lookup sees this transaction's earlier writes without changing them. A successful result can contain no links. If it reaches a limit, it returns no partial list; retry with higher limits or stop. Both limits are required and neither can be unlimited. A callback that calls back into its own transaction receives INT-001.”README.md:320–334, “source lines … Production manual recovery … release control code … consumer contract … checked for presence” → “Run production retries from the default branch. Use its workflow code but build and test the selected source commit. Both branches produce libraries for iOS devices and a universal simulator library and run the simulator consumer test. Confirm the universal package contains both architectures.” Keep 3.x's extra macOS test and lockfile checks.README.md:336–345, “SemVer tag identifies … preserves publication-branch ancestry … classified explicitly” → “The release tag points to the generated package on swift-releases. That branch is never force-pushed. GitHub marks prerelease tags as prereleases and keeps the highest stable version as Latest when an older patch is retried.”README.md:353–363, “tested identity … provenance and consumer evidence … immutable Actions artifact … recovery conflict before further publication … release classification is repaired … retain reporting” → “Retry with the source tag's original commit and saved artifacts, even if the branch has advanced. The tag links to the run and artifact ID and records its checksum. Stop if the saved artifact is missing, expired, or does not match the package or public files. Fix the GitHub prerelease/Latest settings even if no upload is needed, then install and test the exact version with SwiftPM.”README.md:365–381, “serialized … publication lock … dispatched again … same … path without public writes … Prepared commits travel … coordinated two-line” → “Run release jobs for the same tag one at a time. All versions also share a lock when updating swift-releases or GitHub Releases. If GitHub replaces a queued job, start it again if needed. Rehearsals use the same build and test steps without updating public branches or releases; the prepared commit stays in a Git bundle.”bench/device-farm/README.md:3–19, “One source harness … timing use … not a nightly lane … explicit platform identity … OS evidence … remaining runtime” → “The same code runs 14 tests in three modes. Simulator timings are for #858 only; do not use them for releases, nightly benchmarks or Bencher. The test checks the compile target, simulator environment, and uname to distinguish a simulator from a physical device.”bench/device-farm/README.md:31–37, 39–50, “default remains correctness-only … proves Cargo resolves … upload acceptance and a physical smoke … no ISA translation is requested” → “By default, the script builds the package and runs smoke and validation tests, without collecting timings. It checks that Cargo uses the local core checkout. Device Farm still needs to accept the upload and pass a smoke test on a physical device. Nothing requests CPU emulation.”bench/device-farm/README.md:65–79, “requires a separate configuration and qualification, not pooled observations … B1/B2 membership belongs to the pre-registered run order … evidence run” → “If the runner image, runtime, Xcode version or architecture changes, start a new configuration and keep its results separate. Run the same baseline method for B1 and B2; the run schedule assigns their labels. Run only the selected test method, not the whole suite.”bench/device-farm/README.md:88–107, “connects environment/completion records … process and exit/provider outcome … no-valid-stream failures … Exhaustion is retained as inconclusive … initial invalid receipt” → “Record the same UUID in the start and completion messages. On each attempt, save the full output and test runner exit status. Retry a slot only if it did not produce a valid result. If all retries fail, mark the slot inconclusive and keep collecting later slots. Write an incomplete-attempt record before starting so an interrupted run leaves a record.”bench/device-farm/README.md:109–115, “archive and verify the checksummed evidence … runner environment … physical collector … estimates presented as observations” → “Download the artifacts and verify the checksums before the 90-day retention period ends. Record queue times from GitHub Actions and queue/run times from Device Farm; do not substitute estimates.”bench/device-farm/README.md:119–132, “cursor drains … host JSON decoding/shape checks … median of ten means … ARC destruction … named timing regions” → “Read cursor results in batches of 1 or 256. Timing includes decoding JSON in Swift and checking its structure, but excludes comparison against expected values, cleanup, and setup. Releasing Swift objects is outside the timing except for tests that close a cursor or log or finish a writer.” Keep the exact statistic and build flags.bench/device-farm/README.md:134–150, “harness-private runtime property … timer encloses … complete oracle … registered expectation … another gate … qualify any case or complete mission” → “Only the slowdown test sets doubleWork. The test runs each operation twice but does not double the denominator. After timing, check both results against the same expected values and verify cleanup. The expected slowdown is about +1.0 (roughly twice as slow); the linked protocol defines pass/fail. Finishing #858 requires actual paired device and simulator runs.”bench/device-farm/README.md:155–185, “compact runtime record … remaining runtime pins … provider exit outcome … logical denominators … matching configuration pins … assembly” → “The runtime record lists the remaining environment details. Pass the test runner's actual exit status, even on failure. The parser verifies the operation counts and timing arithmetic. Before combining runs, confirm they used the same configuration and that paired physical and simulator runs used matching source commits.”bench/device-farm/README.md:195–205, “pure XCTest controls … correctness allowlist … physical acceptance … Public fleet selection does not reserve a physical unit … no RSS bound or release sign-off implied” → “These XCTest tests use fake inputs to verify setup, timing, failures and cleanup. A macOS build and a smoke test on a physical device are still required. A Device Farm model selection does not reserve a particular device. These tests do not measure peak memory or approve a release.”bench/device-farm/qualification/run_simulator.py:2,101–102, “fresh-process collection; artifacts only … Write an invalid receipt before starting external work” → “Run each #858 simulator test in a fresh process and save the results as artifacts.” / “Save an incomplete-attempt record before starting the test so interruptions still leave a record.”bench/device-farm/Tests/QualificationWork.swift:3, “Keep the #839 invoke path intact” → “The #839 benchmark still runs its original operation once.”README.md:85–90, “counted per entry by the operators that keep state … frees what it held” → “The limit covers temporary query state, such as join tables, not rows returned by a cursor. If a query exceeds the limit, it frees its temporary state and throws QRY-012.” Keep the enumerated operator list and no-limit default.README.md:92–98, “Left nil … it does not add to them … [] refuses every keyword” → “Use nil for the defaults and [] to disable query-text overrides. A nonempty list replaces the defaults. An override not on the list returns API-025.” Retain the allowed keyword names and which calls raise that error.README.md:139–147, “a bind mistake … They are application code …” → “an invalid query binding”; “allowOverrides does not restrict these setters. A permitted override in the query text takes precedence.”README.md:208–210, “the calls the core refuses there” → “During a write transaction, a callback receives INT-001 for the calls listed under Write transactions.”README.md:231–236, “returns a … to end yourself … An option left nil is the database's … this commit's WAL sync” → “With beginWrite, call commit or rollback yourself. withWriteTransaction runs a closure and returns its result. A nil option uses the database default. synchronous controls how this transaction syncs the WAL; chunkFacts sets how many facts it stages before writing in chunks.”src/lib.rs:32–33, “a bind mistake” → “an invalid query binding”.src/lib.rs:731, “Not gated by OpenOptions.allow_overrides” → “allow_overrides does not restrict this setter.”src/lib.rs:1152–1159, “Earlier statements are visible; this lookup stages nothing … examined across all layers” → “The lookup reads earlier writes in this transaction without making changes. Count all records checked, including records for removed or replaced references.”src/lib.rs:2359, “The setters are not gated: every override keyword is refused here” → “These setters still work when query-text overrides are disabled.”Tests/swift/main.swift:474, “The setters are not gated” → “These setters still work when query-text overrides are disabled.”
Metadata
Metadata
Assignees
Labels
No labels
Activity