Skip to content

feat(sv): isolate deferred assertions in fork processes - #2154

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/fork-deferred-assertions/isolate-deferred-assertions-fork-processes--919ac183
Oct 27, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/feat/fork-deferred-assertions/isolate-deferred-assertions-fork-processes--919ac183

Conversation

@tignear

@tignear tignear commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T05:11:27.840289Z a724b6c New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mergify

mergify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Queued — the merge queue status continues in this comment ↓.

@tignear
tignear force-pushed the stack/tignear/feat/fork-deferred-assertions/isolate-deferred-assertions-fork-processes--919ac183 branch from 2469513 to ed581c6 Compare October 26, 2026 15:00
@tignear

tignear commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial 2469513 2026-10-26 14:59 UTC
2 content 2469513 → ed581c6 Resolve PR2154 conflicts after master merged detached-function forks, container changes and CLI checkpoints; preserve deferred ownership and retained report union. 2026-10-26 14:59 UTC
3 content ed581c6 → a724b6c Resolve conflicts with current master for PR 2154 while preserving deferred assertion process ownership 2026-10-27 05:07 UTC

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
tignear force-pushed the stack/tignear/feat/fork-deferred-assertions/isolate-deferred-assertions-fork-processes--919ac183 branch from ed581c6 to a724b6c Compare October 27, 2026 05:09
@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 27, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 27, 2026
@mergify

mergify Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
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
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title

@mergify
mergify Bot merged commit e364e4d into master Oct 27, 2026
23 of 24 checks passed
@mergify
mergify Bot deleted the stack/tignear/feat/fork-deferred-assertions/isolate-deferred-assertions-fork-processes--919ac183 branch October 27, 2026 06:55
@mergify mergify Bot removed the queued Mergify queue entry label Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant