Skip to content

contracts: rewrite embedder-api.md for semantic density - #277

Merged
lannbot merged 1 commit into
mainfrom
rewrite/embedder-api-semantic-density
Sep 4, 2026
Merged

contracts: rewrite embedder-api.md for semantic density#277
lannbot merged 1 commit into
mainfrom
rewrite/embedder-api-semantic-density

Conversation

@lannbot

@lannbot lannbot commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Restyles contracts/embedder-api.md after the Component Model Explainer: TOC, terse rule lists, mapping tables, interface blocks in place of argued prose.

  • Every section heading cited from code (§"Streams and futures" etc.) is preserved verbatim.
  • Import marks and sync() become subsections of "Functions and async"; direct-access byte edges a subsection of "Streams and futures"; "Bindgen obligations" folds into "Implementation strategy" (its one citation in crates/bindgen/src/codegen.rs updated).
  • No normative rule added or removed. The StreamWriter interface, previously prose, is spelled out from protocol/src/handles.ts.
  • 1390 → 934 lines, 11.6k → 6.8k words.

Gates: just version-guard-local, cargo check on the bindgen crate.

Automerge armed.

Restyle the host-facing contract after the Component Model Explainer:
a table of contents, terse rule lists, mapping tables, and interface
blocks in place of argued prose. Every section heading cited by code
comments (`§"..."`) is preserved verbatim; the import marks and
`sync()` become subsections of "Functions and async", the direct-access
byte edges a subsection of "Streams and futures", and "Bindgen
obligations" folds into "Implementation strategy" (its one citation in
crates/bindgen updated). No normative rule is added or removed; the
`StreamWriter` interface, previously prose, is spelled out from
protocol/src/handles.ts. 1390 -> ~930 lines, 11.6k -> 6.8k words.
@lannbot
lannbot enabled auto-merge September 4, 2026 21:49
@lannbot
lannbot merged commit cd65ca7 into main Sep 4, 2026
4 checks passed
@lannbot
lannbot deleted the rewrite/embedder-api-semantic-density branch September 4, 2026 21:53
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