Skip to content

refactor: Allow op and model initialisation to fail, and promises - #246

Open
tperami wants to merge 1 commit into
genprom-emit-all-threadsfrom
opmodel-initialisation-failures
Open

refactor: Allow op and model initialisation to fail, and promises#246
tperami wants to merge 1 commit into
genprom-emit-all-threadsfrom
opmodel-initialisation-failures

Conversation

@tperami

@tperami tperami commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

OpModel allows initialisation to fail
GenPromise allows initialisation and promise emission to fail

This PR is part of a stack containing 2 PRs:

  1. main
  2. refactor(GenProm): Allow promise hook to change all threads #234
  3. "refactor: Allow op and model initialisation to fail, and promises" (this PR)

OpModel allows initialisation to fail
GenPromise allows initialisation and promise emission to fail
Comment thread ArchSem/GenPromising.v
((∃ tid, Error s ∈ PState.run_tid isem prom tid finPs)
(∃ tid ev,
PState.allowed_promises_tid isem prom certified finPs

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should consider the case where emit_promise returns Error "invalid promise". In certified mode, this branch still requires allowed_promises_tid, which requires the same promise call to return Ok. Therefore, it cannot return an Error here, and promise-emission failures can never be reported by the certified model. Could we handle the Error case before checking certification?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants