Repository navigation
feat(sv): isolate deferred assertions in fork processes - #2154
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
2 of 6 tasks
Contributor
|
Queued — the merge queue status continues in this comment ↓. |
tignear
force-pushed
the
stack/tignear/feat/fork-deferred-assertions/isolate-deferred-assertions-fork-processes--919ac183
branch
from
October 26, 2026 15:00
2469513 to
ed581c6
Compare
Contributor
Author
Revision history
|
Give each dynamic process execution its own deferred assertion report queue. Event/wait resumption flushes only that process; disable fork cancels live children's reports, while natural completion preserves reports across slot reuse. Keep owner context around kernel and host-request execution, including error and stop paths, without changing the backend event ring ABI. Host-owned monotonic identities stay outside core checkpoints. Core restore starts fresh ownership without withdrawing host reports; mirror copies queues and identities together. Resolve deferred string arguments consumed by the raw drain before heap replacement or collection. Failed portable loads restore the previous ownership context. Preserve conservative lost-fatal handling for ordinary multi-queue contexts while a dynamic process flush clears its loss. Mature Observed reports before Reactive program work, so a later wakeup cannot flush them; keep Final reports flushable until Postponed. Actions remain single display/severity calls. Distinguish assert/assume/cover final from actual final procedures in the shared timed-case validator. Validation: 1,112 timing tests, all 104 deferred-assertion API tests, six host ownership/raw-drain/restore units, 20 state-file API regressions, 32 suite units, four retained-report tests and nine Node report tests passed. The nine new shared cases pass 55 registered backend tests (native, native-image, native-parallel, Cranelift, Cranelift-parallel, WASM, plus an actual interpreter loop). Runtime units passed all 78 tests. Affected all-target clippy and formatting passed. Debug NAPI built and all nine tests in the timing, cascaded clock and runtime-event JS consumer files passed. Direct SystemVerilog fork semantics are verified through Rust Simulation; the JS bridge has no SV-input API. External observations remain failures, with exact reviewed records: xezim 0.11.3 has 2 passes and 7 mismatches; Verilator 5.052 has 2 passes, 3 mismatches, 3 compiler faults and 1 unsupported four-state case; Icarus 13.0 rejects all 9 with unsupported-deferred-assertion diagnostics. A standalone xezim #0 probe reproduces missing reports against IEEE 1800-2023 16.4.1/16.4.2. No exclusions or passing expectations replace these failures. Rebased onto master 9261b31 after #2146, #2149 and #2134. Preserve both function-fork and deferred-fork registrations and retained evidence. Post-sync validation passed 1,149 timing tests, 104 deferred API tests, six host units, 20 final-procedure tests, 20 state-file tests, four retained report tests and nine Node report tests, plus affected all-target clippy and formatting. Runtime ownership and Observed/Reactive logic are unchanged by conflict resolution; external fixtures and adapters are unchanged. Completes deferred assertion composition portion of #2111. Latest master synchronization preserves compound-event tests and retained report entries. Revalidated 83 fork/deferred integration tests, all 104 deferred assertion API tests, 49 focused deferred tests including host units, four retained-report tests and seven report script tests. Affected-crate Clippy and formatting pass. Change-Id: I919ac183ed4c78ec100696954402308a01cb64ee
tignear
force-pushed
the
stack/tignear/feat/fork-deferred-assertions/isolate-deferred-assertions-fork-processes--919ac183
branch
from
October 27, 2026 05:09
ed581c6 to
a724b6c
Compare
Contributor
Merge Queue Status
This pull request spent 1 hour 16 minutes in the queue, including 1 hour 14 minutes 25 seconds running CI. Required conditions to merge
|
40 of 71 tasks
mergify
Bot
deleted the
stack/tignear/feat/fork-deferred-assertions/isolate-deferred-assertions-fork-processes--919ac183
branch
October 27, 2026 06:55
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.
Give each dynamic process execution its own deferred assertion report queue.
Event/wait resumption flushes only that process; disable fork cancels live
children's reports, while natural completion preserves reports across slot
reuse. Keep owner context around kernel and host-request execution, including
error and stop paths, without changing the backend event ring ABI.
Host-owned monotonic identities stay outside core checkpoints. Core restore
starts fresh ownership without withdrawing host reports; mirror copies queues
and identities together. Resolve deferred string arguments consumed by the raw
drain before heap replacement or collection. Failed portable loads restore the
previous ownership context. Preserve conservative lost-fatal handling for
ordinary multi-queue contexts while a dynamic process flush clears its loss.
Mature Observed reports before Reactive program work, so a later wakeup cannot
flush them; keep Final reports flushable until Postponed. Actions remain single
display/severity calls. Distinguish assert/assume/cover final from actual final
procedures in the shared timed-case validator.
Validation: 1,112 timing tests, all 104 deferred-assertion API tests, six host
ownership/raw-drain/restore units, 20 state-file API regressions, 32 suite units,
four retained-report tests and nine Node report tests passed. The nine new
shared cases pass 55 registered backend tests (native, native-image,
native-parallel, Cranelift, Cranelift-parallel, WASM, plus an actual interpreter
loop). Runtime units passed all 78 tests. Affected all-target clippy and
formatting passed. Debug NAPI built and all nine tests in the timing, cascaded
clock and runtime-event JS consumer files passed. Direct SystemVerilog fork
semantics are verified through Rust Simulation; the JS bridge has no SV-input
API.
External observations remain failures, with exact reviewed records: xezim
0.11.3 has 2 passes and 7 mismatches; Verilator 5.052 has 2 passes, 3 mismatches,
3 compiler faults and 1 unsupported four-state case; Icarus 13.0 rejects all
9 with unsupported-deferred-assertion diagnostics. A standalone xezim #0 probe
reproduces missing reports against IEEE 1800-2023 16.4.1/16.4.2. No exclusions
or passing expectations replace these failures.
Rebased onto master 9261b31 after #2146, #2149 and #2134. Preserve
both function-fork and deferred-fork registrations and retained evidence.
Post-sync validation passed 1,149 timing tests, 104 deferred API tests,
six host units, 20 final-procedure tests, 20 state-file tests, four retained
report tests and nine Node report tests, plus affected all-target clippy
and formatting. Runtime ownership and Observed/Reactive logic are unchanged
by conflict resolution; external fixtures and adapters are unchanged.
Completes deferred assertion composition portion of #2111.
Latest master synchronization preserves compound-event tests and retained report entries. Revalidated 83 fork/deferred integration tests, all 104 deferred assertion API tests, 49 focused deferred tests including host units, four retained-report tests and seven report script tests. Affected-crate Clippy and formatting pass.