Repository navigation
Conversation
…on of the caller's A fill of another module's public mock that receives a value the called mock does not hold reads the caller's declaration, which one mock root may declare as a value and another lazily. Sharing the call's part across mock worlds spelled the first world's read in every world, so a root that holds the value lazily passed the wrapper where the fill takes the value. The call's part is now left to each world when any fill reads a caller's declaration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQKqaF9eRvqtwAFSdEZ
…roject-thread-xuc7xk-mock-proof-gate
… 35 for test pairs 0221 and 0508 A test's pair has no seed, so an allowance names a pattern of the pair folder's name: `<seed>-*-<module>-<type>` for a corpus root, the pair's own name for a test's. 0221 and 0508 are claimed for entry 35 (approved by the lead on the condition that order follows production); each is allowed only once the proof's comparison with production is EQUAL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQMifKg1WBCEn5ahSLi
MockProgramComparison.compareWithProduction runs the records' mock with no override supplied, so every override's `if let` takes its `else`, against the root's production initializer read as a mock that returns the root. EQUAL says the mock makes the root's instances, reads and calls in production's order; DIFFERENT names the first event where they split. The approved-differences entry for mock creation order holds only where this is EQUAL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQJFbZF6c8FbxzTFKUi
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQJFbZF6c8FbxzTFKUi
…roject-thread-xuc7xk-mock-proof-gate
… its fills A call of another module's public mock spelled in place (one that fills the called mock's places) declared its function returning the called type whatever the record said, so where its override closure returns the place's type the function failed to compile, as the previous change fixed for a call built in a function of its own. The function now returns the property's type where the record does, erasing an erased place's value itself, and the binding then erases nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQMp5zzYKmR3a9KwHFX
…to claude/project-thread-3rcexi-0395
…mparison A mock root that is not a production root has no production initializer to compare its order with. With SAFEDI_TEST_RECORD_PRODUCTION_TWINS set, a recording test run also generates the same sources with only `isRoot: true` added to the root's `@Instantiable` (MockProductionTwin), in a detached task without recording or compiling, and records the twin's initializer as `<Root>+SafeDI.twin.swift`. A root no twin can be made or generated for records none, and its order stays unproved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQJFbZF6c8FbxzTFKUi
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQJFbZF6c8FbxzTFKUi
… 2.4.6 cut
From the analysis of run 46782400275 ("Check Graph Fuzzer Corpus on Linux", job 143151646073) on
35c9ecb, applied with apply-fuzzer-pins: eight per-feature counts and twelve value
oracle counts of the base corpus. No fixture or partition hash moved, and the smoke jobs passed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HLuVQLUV1Uw2VtgG1YvPSd
…roject-thread-xuc7xk-mock-proof-gate
With mocks laid out from node records by default, a test that compares the records' mock with the walk's built both sides laid out, so it compared a mock with itself. Every walk side now runs inside generatingMocksByTheWalk, which turns the four switches off, and the tests of what the walk observes (tree names, root-level bindings, captures, the tree's checks of a mock root) carry the mocksByTheWalk trait. Both go with the tree in 2.4.7. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLUV1Uw2VtgG1YvPSd
…//github.com/dfed/SafeDI into claude/project-thread-dab9up-mocks-on-146 # Conflicts: # Tests/SafeDIToolMockTests/SafeDIToolNodeRecordsMockCycleWalkTests.swift
Rewrites, with regenerate-expectations from runs of the switches off and on, the 339 expected literals of the 394 tests whose every changed mock the mock proof (MockProofPairsTests) judges EQUAL to the walk's: the same values, the same identities and the same creation order under every override. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLUV1Uw2VtgG1YvPSd
…roject-thread-dab9up-mocks-on-146
…m/dfed/SafeDI into claude/project-thread-dab9up-mocks-on-146
…erty's type The function a call spelled in place declares now depends on that flag (its return type and where it erases), so two calls that differ only there must not share one class's function text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQMp5zzYKmR3a9KwHFX
…rowth as debt LPB's time grows about 2.1 times at the doubling, slightly faster than linear, as it has since the 2.4.5 release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQMR1grwX46174Pyxyn
…ompiles do not share the runner's memory Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLHq43QvdYBYGWTdSo
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQMp5zzYKmR3a9KwHFX
…ocks laid out The shared SafeDIMockConfiguration.swift declares the entered places wherever a laid-out mock enters one, in eight tests that expected it empty. Fifteen more tests of the tree's names and checks carry mocksByTheWalk. The world-sharing comparison writes no homes on either side, so it compares sharing alone. The chained-seams memory test counts the records' one builder function per seam. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLUV1Uw2VtgG1YvPSd
…hipped mock proof The writer puts a production root's initializer (ON's extension block of the type declaring `init()` and no mock()) beside each pair as production.swift. The runner compares the records' mock, with no override, with it (`MockProgramComparison.compareWithProduction`) for every pair that is not EQUAL, and writes the verdicts to pairs.production-order.tsv, which an entry's allowance in Scripts/mock-proof-allowances.tsv reads. Checked on generated class and struct roots (EQUAL) and on the comparator's sibling fixtures with production's order swapped (DIFFERENT). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQMifKg1WBCEn5ahSLi
…cords check The in-test check of a mock root laid out from its records compared its text with the walk's through the approved mock differences' rewrites. It now runs both texts in the mock proof (MockProgramComparison), the records' with its module's homes, and passes only where the proof finds them EQUAL; a DIFFERENT or a harness fault fails the test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLUV1Uw2VtgG1YvPSd
- The row world no longer answers whether its own calls build a variant inside a `@Sendable` function: only a whole world is asked, since a row of the shared graph holds no cycle. - Seam place drafts sort cases by naming route alone. No two cases share a route, so the plain-before-`@Sendable` tie-break never ran. - Two routes that reach one slot of one trie node always part at some step, so the source-order comparison no longer falls through. - A level beneath a fill's edge takes the fill's entry level, so the assembly never asks what function such an edge opens. - New tests: a root whose builder is named apart reads its call's stored statements; two variants of one function read a root statement declared after the first call; the prelaid rows comparison names a world that lays out otherwise. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQKtuvGAwnYp1eZ1AL2
…alue they declare in two forms A roll for the shared call part fix: the public mock corpus draws, where the draw is switched on, two mocked consumers that call one public mock whose fill captures a caller value one declares by value and the other lazily. The new tests pin the draw's count and compare each mock's values with the walk's with mock worlds shared; seeds 134, 408 and 485 fail with the fix reverted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQKqaF9eRvqtwAFSdEZ
…to claude/project-thread-3rcexi-0395
…all the records make has A fill reads the caller's scope only where routes to its case nested by type hold different labels, so the case has a place on each route, each a fill of one type, and the records leave a call with two fills of a type to the walk. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQKtuvGAwnYp1eZ1AL2
…ct-thread-knsfr2-nil-hole # Conflicts: # Sources/SafeDICore/Generators/NodeRecords/MockWorldsSharing+Homes.swift
…st turns them on Records of filled seam calls are now split in two switches. The production one (`recordsFilledCalls`) is off by default in every run, observed or not, so a production or seam world goes to its tree as on main and no run makes a record of each filled call; only a test that sets it sees records. Mock roots keep records of their filled calls on through `recordsMockFilledCalls`, which mocks laid out from records need. With the production switch off, the seam expectation of a nested call's Sendable fill returns to main's text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQMp5zzYKmR3a9KwHFX
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQL2AyjmTVDPHyoJd4Z
…ndidate Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLUV1Uw2VtgG1YvPSd
A mock root that keeps its tree, and that calls another module's public mock whose fill reads a value of the root's own, is refused by its node records (fillReadsCallersOwnValue). It still built its facts world whole, to name it and to try those records, and its tree's checks asked that world too. The root's scopes now read the same rule the records read, at promotion, and such a root builds no world at all: its tree's checks walk its tree and its walk lays it out alone, as 2.4.5 did. Generated code is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQMZDJu1is3zu4RPtRk
Public mock corpus seeds 93, 118, 272, 331, 371 and 402 change their RingScreen mock under the same renamings on 2.4.5, and build the values 2.4.5's mocks build in every naming. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLUV1Uw2VtgG1YvPSd
…ulfills (3395de0) into the mocks-on candidate Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLUV1Uw2VtgG1YvPSd
Public mock corpus ring seeds 509, 603, 620, 757, 808, 812, 975 and 995, and the twin draw's 619, 934 and 974, change their mock under the same renamings on 2.4.5, and build the values 2.4.5's mocks build in every naming. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLUV1Uw2VtgG1YvPSd
… seeds Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLUV1Uw2VtgG1YvPSd
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQMZDJu1is3zu4RPtRk
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLUV1Uw2VtgG1YvPSd
A guarded read whose then branch reads another field, and a guarded read of a value that is no field of the handed configuration which both outcomes read alike, each stay a code difference. Each cell fails with its check removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQM13nkkC1XE7VC5mco
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLUV1Uw2VtgG1YvPSd
…mpares them with its world Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQMZDJu1is3zu4RPtRk
… into the mocks-on candidate Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLUV1Uw2VtgG1YvPSd
…inside a Sendable function A mock laid out from node records hands a call of another module's public mock the builder mock() takes for the places it fills. It chose that builder's family from whether some route builds the call inside a @sendable function, which misses a call beneath a type that a @sendable cycle closer builds again. The copy of that type's function made @sendable then captured the plain builder, and the mock did not compile. The family now also follows the Sendable mark of the variant laid out, so that copy reads the @sendable builder, as 2.4.5's mock does, and the mock's signature is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQMp5zzYKmR3a9KwHFX
…function (0c9add4) into the mocks-on candidate Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLUV1Uw2VtgG1YvPSd
…ills its builder These two tests asked whether records of filled calls are on, which since 281231b holds only for production roots under a test; a mock root's filled calls have a switch of their own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLUV1Uw2VtgG1YvPSd
…eads as a root SourceRuleTests' nodeRecordsRootLiteral rule reads `parts[0]` in a node records file as a root index. The binding place is the first part of a two-part sequence, so read it through `parts.first`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQM13nkkC1XE7VC5mco
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLUV1Uw2VtgG1YvPSd
The homes of a module were spelled in rounds: a home the pass's text could not spell was dropped, and the homes calling it spelled again without it. No test or corpus graph reaches that round, since the pass decides earlier which rows it lays out and which have homes. A home without a spelling now makes the module keep every world's row functions, as without homes, which is always correct, and the unreachable round is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQL2AyjmTVDPHyoJd4Z
…roject-thread-knsfr2-lazy-apart-draw
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQL2AyjmTVDPHyoJd4Z
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQK5BH1ia1a6ByCnyiF
…ject-thread-knsfr2-lazy-apart-draw
…rations Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQL2AyjmTVDPHyoJd4Z
Timing of b27404fWall times measured in this run. A wall time, peak memory, size or growth row over its limit is reported here and fails no check; a shape the tool cannot generate still fails "Check Generate Time on Linux". Every run rewrites this comment, and a check that did not run in it is not listed.
Every shape and row
Growth, the head tool alone: each row at its layers and at 2 more, or at the two numbers it names; median of 3 alternating runs for time, and of 3 more with one allocator arena for peak memory. A measure fails at 2 times the smaller graph's, or at the limit beside it.
|
Seven base-corpus pins written by apply-fuzzer-pins from CI run 47094424392's corpus analysis of b27404f, and the smoke and known-issue fixture and partition hashes read from the same run's unit-suite failures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQL2AyjmTVDPHyoJd4Z
Requested by Dan · project thread
The graph fuzzer's base corpus now draws the shape behind a mock that did not compile: a mock root that receives a value under the same label as a lazily instantiated wrapper another type receives, beside a type that receives that wrapper only if available and renames its instance. Where the rename was declared before the type's own receive, the generated mock handed that rename the wrapper instead of its instance. The fix is the rename read in
NodeRecords+Rename.swift, which landed with the mock layout from node records (#1209).The new pass draws from a stream of its own, so every other pass draws exactly what it did before. It fires in about one base seed in seventeen. It rolls whether the mock root instantiates or receives the value that shares the label, and it shuffles every drawn type's properties, because the defect needed one property order. With the fix reverted, the draw fails to compile on most of the seeds it fires in. With the fix, its first 500 graphs compile, and none of their failures names a drawn type.
The draw changes the base corpus's graphs, so this change also carries the fixture pins of a corpus run on its head.
Found and not fixed: nothing.
🤖 Generated with Claude Code