Adding a note to WIT.md about WIT interface version interop & host downgrades
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- wasm
- Domain
- documentation
Research direction
Start by reading WIT.md and the linked Wasmtime Linker documentation on names and semver. Add a clear note covering host-specific interface downgrades and the possibility that adding functions can break guests running against older hosts, while distinguishing this behavior from a platform requirement.
Written by the indexing model from the issue text.
Description
Hey all,
So thinking about interfaces in WIT it seems clear that there are two somewhat surprising eventualities that happen in hosts today (wasmtime, jco at the very least):
- Linked interfaces may be downgraded to match what is in the host (i.e.
ns:pkg/iface@0.2.1being downgraded tons:pkg/iface@0.2.0) - Partly due to (1) but in general adding functions to an existing interface (even with
@since) could become a breaking change, because guests cannot predict whether hosts will have coverage or not.
This should likely be called out more clearly in WIT.md, similar to how it is called out explicitly in wasmtime's Linker documentation -- thoughts?
The ideal is to prevent people from being surprised when building components that target the newest version of a given interface but running in an older host/embedding and experiencing an unexpected runtime failure.
Downgrading is a host-specific quirk, and is technically not promised/required by a given platform (no guest can ensure that a certain platform does a certain thing with it's imports), but it is still surprising behavior that should probably be noted somewhere.
- Dominant language
- WebAssembly
- Stars
- 1.4k
- Forks
- 130
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 15
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from WebAssembly/component-model
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
WebAssembly/component-model#724 · 9 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 38/100
WebAssembly/component-model#718 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
WebAssembly/component-model#695 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 45/100
WebAssembly/component-model#694 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 38/100
WebAssembly/component-model#677 · 1 comment ·
All issues in WebAssembly/component-model
Similar issues
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Ecosystem: ClawMetry — the Qwen Code reader is now free and open source (follow-up to #9294 / #9338) Opencategory/integration priority/P3 scope/documentation status/ready-for-human type/feature-request
Difficulty 1/5 Under an hour Newbie friendliness 84/100