Skip to content

Trim the README to what a consumer needs to get started - #31

Merged
ww-mw merged 1 commit into
mainfrom
readme-trim
Sep 16, 2026
Merged

ww-mw merged 1 commit into
mainfrom
readme-trim

Conversation

@ww-mw

@ww-mw ww-mw commented Sep 16, 2026

Copy link
Copy Markdown
Member

Docs only — no source, no version bump, no tag.

The README had grown into a reference: the part-layout matrix for both .slx/.mdl eras, which release stopped recording a model UUID, the (BlockType, parameter) menu-versus-expression rules. That detail is documented where it is measuredtest/parity/matlab/README.md for the layouts, the tables themselves for the parameters — so the README points there now instead of restating it, and cannot drift out of step with it.

In its place is what was missing: how the one real consumer consumes this. The old opening example was createSession plus ingest/toDTO/loadFromPathnone of which the VS Code extension calls. It parses and hands the result to the DataModel session, and asks about a folder through buildUsageIndex. Those are now the two examples, and both were executed against test/fixtures/ before being written down (getDataSourceIds() really does answer ['params.sldd', 'a.slx'] there; editProperty/undo/usagesOf/paramsOf all resolve).

Kept in full — the four things a consumer cannot guess: SID addressing, the MATLAB shadowing order, linkTarget: '' being an answer rather than an absence, and an unreadable file contributing nothing instead of failing the set.

Newly stated, having been tribal knowledge: releases are tags, dist/ is committed so installing needs no build step, the barrel is the whole supported surface, and host changes land here before the extension moves its pin.

147 lines to 118.

It had grown into a reference: the `.slx`/`.mdl` part-layout matrix across
both eras, which release stopped recording a model UUID, the
`(BlockType, parameter)` menu-versus-expression rules. All of that is
documented where it is measured — `test/parity/matlab/README.md` for the
layouts, the tables themselves for the parameters — so the README now
points there instead of restating it, and cannot drift out of step with it.

What replaces it is the part that was missing: how the one real consumer
actually consumes this. The old opening example was `createSession` plus
`ingest`/`toDTO`/`loadFromPath`, none of which the VS Code extension calls
at all; it parses and hands the result to the `DataModel` session, and asks
about a folder through `buildUsageIndex`. Those two are now the two
examples, and both were run against `test/fixtures/` before being written
down — `getDataSourceIds()` really does answer
`['params.sldd', 'a.slx']` there. `createSession` and the Node subpath stay
as the one-liners they should always have been.

Kept in full: the four things a consumer cannot guess and will get wrong
without being told — that a block is addressed by SID because a name is
unique only within its system, the MATLAB shadowing order, that
`linkTarget: ''` is an answer rather than an absence, and that an
unreadable file contributes nothing instead of failing the set.

Also states what was only tribal knowledge: releases are tags, `dist/` is
committed so an install needs no build step, the barrel is the whole
supported surface, and host changes land here before the extension moves
its pin.
@ww-mw
ww-mw merged commit aab036e into main Sep 16, 2026
1 check passed
@ww-mw
ww-mw deleted the readme-trim branch September 16, 2026 18:23
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.

1 participant