Ticket 6: execution/event model (ADR 0006) — design for ticket 8 - #179
Open
SnowCheetos wants to merge 1 commit into
Open
Ticket 6: execution/event model (ADR 0006) — design for ticket 8#179SnowCheetos wants to merge 1 commit into
SnowCheetos wants to merge 1 commit into
Conversation
Nonblocking poll_event via vkGetFenceStatus (no worker thread); bounded (CB, fence, descriptor) ring per context sized at max_events_per_context; Timeout::AfterNs rejected pre-admission (Hexagon/XDNA precedent); DEVICE_LOST -> Failed(DeviceLost) plus sticky poisoned instance; no EVENT_CANCELLATION.
This was referenced Sep 3, 2026
SnowCheetos
marked this pull request as ready for review
September 3, 2026 08:39
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The new ADR contains a verified misquote/inconsistency with SAFETY.md and a small spelling/formatting issue that should be corrected to keep design documentation accurate.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds ADR 0006 documenting the Vulkan backend’s execution/event model decisions needed to unblock the ticket 8 implementation work, with emphasis on nonblocking fence polling, bounded resource pools per context, and explicit timeout/cancellation semantics.
Changes:
- Introduces ADR 0006 describing
poll_eventviavkGetFenceStatus(no worker thread) and a bounded ring of (CB, fence, descriptor) resources per context. - Defines the submission “admission boundary” at
vkQueueSubmitsuccess, and rejects finiteTimeout::AfterNspre-admission withBackendError::DeadlineExpired. - Specifies device-loss mapping (sticky instance poisoning) and explicitly does not advertise
EVENT_CANCELLATION.
File summaries
| File | Description |
|---|---|
| docs/adr/0006-execution-event-model.md | New ADR capturing the execution/event model and constraints for the Vulkan backend ahead of ticket 8. |
Review details
Suppressed comments (1)
docs/adr/0006-execution-event-model.md:43
- “re-factoring” should be “refactoring”, and the current line break splits “under lavapipe” awkwardly; rewrap this paragraph for readability.
If ticket 8 benchmarks show `vkGetFenceStatus` polling dominates steady-state (e.g. under
lavapipe), the fallback to a worker-thread poll sits behind the same slot ring unchanged; the
AST gate in ticket 8 measures before re-factoring.
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+10
to
+12
| backends, no dispatch/synchronization worker is serialized. Ticket 8 proves this — the clause | ||
| in SAFETY.md says "no worker thread (proven in ticket 6, not assumed)" in proof form: if ticket | ||
| 8's I/O reaches indeterminate under blocking-poll, this design reopens. |
This was referenced Sep 3, 2026
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.
Stacked on #177. Resolves map ticket 6 (grilling). Decisions: nonblocking poll_event via vkGetFenceStatus (no worker thread; ticket 8 proves it); bounded (CB, fence, descriptor) ring per context sized at max_events_per_context; vkQueueSubmit success the admission boundary; Timeout::AfterNs rejected pre-admission with DeadlineExpired (Hexagon/XDNA precedent) since Vulkan lacks cancel; DEVICE_LOST maps to Failed(DeviceLost) + sticky instance poisoning; EVENT_CANCELLATION never advertised. Falsification guard: if fence polling dominates steady-state on lavapipe, a worker-thread poll sits behind the same slot ring unchanged.