Files
charleswiltgen__axiom/scripts
Charles Wiltgen cf1ebc772c fix(axiom-data): verify the suite against the 27.2 SDK and fix what the toolchain disproves
Every claim in axiom-data checked against the iOS 27.2 SDK, Swift 6.4, and the
pinned third-party versions (sqlite-data 1.12.0, StructuredQueries 0.39.2,
swift-sharing 2.10.1, GRDB 7.11.1, realm-swift 20.0.5). Every code block was
compiled individually and the behavioural ones were run — on simulators, against
real stores, and through the system sqlite3 whose version and compile options
match the platform's.

The suite's guidance was wrong in ways that cost data rather than time:

- A chunked importer ended with an unscoped `delete(model:where:)` over an
  always-true predicate. It did not compile, and adding the missing `try` would
  have made it delete the entire store — 2,000 imported rows plus a pre-existing
  unrelated row, measured. The compile error was the only protection.
- The migration file denied that SQLite can add a foreign key to an existing
  table, forbade the table rebuild that is the documented route, and recommended
  a PRAGMA that is inert inside a transaction — which the same file mandated.
  Following it left orphan rows that `PRAGMA foreign_key_check` cannot detect,
  the state the suite's own auditor rates CRITICAL.
- The storage reference gated must-save data on
  `volumeAvailableCapacityForImportantUsage` and refused to write; Apple's own
  documentation for that key says to attempt the write regardless.
- The tvOS storage claim denied that the directories exist and that local data
  survives. A simulator probe showed a local-only store keeping every row across
  relaunch and reboot; nine files carried the absolute and five cited the
  corrected file as their authority while contradicting it.

Also corrected: APIs that exist in no version of their framework
(`@Attribute(.indexed)`, `addColumn(ifNotExists:)`, `migrator.hasBeenMigrated`,
statement `.fetch(_:)`, `.filter`, `TableAlias` as a protocol,
`ResultsSectionCollection`); quoted diagnostics the compiler never emits; an
`@Model` initializer rule the suite documented in one file and violated in
eleven; a `perform` removal that introduced a data race; and the expired
Realm Device Sync migration premise, written in the future tense after its
2025-09-30 shutdown.

Auditor procedures were corrected at their sources in `agents/`, since a dead
detection pattern reports clean — `@Model struct` cannot compile, so the pattern
that advertised it could never fire.

Verified: pre-deploy --static clean; 1,004 sub-skill pointers resolve across 344
emitted Codex files; Cursor output matches a deterministic full render.
2026-09-16 16:44:17 -07:00
..