Repository navigation
Draw a public mock call inside a @Sendable builder function in the public mock corpus - #1216
Conversation
…ilds The public mock corpus draws, on a stream of its own, PluggedHost's mock building PluggedHolder inside a SendableInstantiator or SendableLazilyInstantiated whose tree calls PluggedPlug's public mock with its @sendable builder, now and then through an instantiator, beside a by-value sibling, or with the fill reading the holder's value. With the @sendable builder fix reverted, seeds 42, 110, 148 and 197 fail to compile (PluggedSibling's mock reads a field PluggedHolder's configuration lacks). Drawn counts pinned; accepted counts come from CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQK5BH1ia1a6ByCnyiF
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQK5BH1ia1a6ByCnyiF
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQK5BH1ia1a6ByCnyiF
Re-pins the smoke and public mock fixture hashes, which both sides moved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQK5BH1ia1a6ByCnyiF
Timing of 0d68575Wall 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.
|
…//github.com/dfed/SafeDI into claude/project-thread-r9iqwa-sendable-roll-on-1214
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQK5BH1ia1a6ByCnyiF
…into claude/project-thread-r9iqwa-sendable-roll-on-1214
…roject-thread-r9iqwa-sendable-roll-on-1214 # Conflicts: # Tests/SafeDIToolFuzzerTests/SafeDIToolGraphFuzzerTests.swift
The public mock corpus now accepts graphs of the four sendableHolderOfPublicMockCall draws, so their accepted counts join publicMockCorpusAcceptedDrawFeatureCounts, and the retention and level-function capture oracles judge more graphs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQK5BH1ia1a6ByCnyiF
Requested by Dan · project thread
The graph fuzzer's public mock corpus now draws a call of another module's public mock, made inside a
@Sendablebuilder function, whose place the calling module fills.A mock that made such a call took the builder for the filled place from the plain family instead of the
@Sendableone. Its record then dropped the fill's override, so a second mock that built the same holder by value read a configuration field no mock declared, and the generated code did not compile. The fix landed with the mock layout from node records (#1209). The fuzzer did not draw this shape, so this change adds the draw.The draw fires in one
Sendablegraph in four, on a random stream of its own, so every other shape is drawn as before. Most of the time a second mock builds the same holder by value, so the module's mocks build it both inside and outside a@Sendablefunction. Four draw features name the variants, and the corpus pins how many accepted graphs draw each one.With the fix reverted, seeds 42, 110, 148 and 197 of the public mock corpus fail to compile. With the fix, they compile.
Found and not fixed: nothing.
🤖 Generated with Claude Code