This repository was archived by the owner on Nov 25, 2025. It is now read-only.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that this error case would be returned only in scenarios where the caller is malfunctioning.
If the caller is the host runtime, then that means that the host has instantiated the component, called
runon it once and then called it again using the same store - effectively, the guest would signal to the host that the host's implementation has a bug. Is there a way that the host can handle this error and recover in any way?Similarly, and IMO, more rare usage of this, would be a component composition, where a component is calling
runon another component. Similarly, since this is a logical error, is there any reasonable recovery mechanism the caller can use if it receivesalready-called?Looking at it from another perspective, every guest toolchain would need to track this state and return this error if
runis called more than once. Are we confident that every toolchain would actually do that and return this error? In other words, can callers reliably assert that if arun()has returnederror::errorthat it is not "caller's fault"?Overall, I am struggling to find a use case for this error case, could you perhaps provide some examples of how this could be used?