Skip to content

docs: replace npx advice and hardcoded versions with verified guidance - #7

Merged
ryanleecode merged 2 commits into
mainfrom
docs/verified-readme-guidance
Sep 11, 2026
Merged

ryanleecode merged 2 commits into
mainfrom
docs/verified-readme-guidance

Conversation

@systemfsoftware-maker

@systemfsoftware-maker systemfsoftware-maker commented Sep 11, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The READMEs merged in #6 documented things that were not true, and several of the false claims rot on their own schedule. This corrects all of them.

  • No more unpinned execution. The quick starts recommended npx and pnpm dlx, which fetch and run whatever the registry serves at that moment. For a tool whose entire job is auditing what your package resolves, that is the wrong default. Installs are now lockfile-pinned dev dependencies invoked through the package manager, with a note explaining why.
  • The engine is shown as an Effect, not as an awaited runPromise. checkPackage returns a lazy Effect; the snippets unwrapped it at the call site, which interprets per call and hides the fibers from the edge that is supposed to own them. Every snippet now composes with Effect.gen + yield*, and the single interpretation edge is stated once: NodeRuntime.runMain for a program that terminates, yield* into a larger Effect otherwise. runMain is verified present in the installed @effect/platform-node and is the primitive that installs the SIGINT/SIGTERM handlers and sets the exit code.
  • The CheckResult branch was wrong. The untyped result is { packageName, packageVersion, types: false } — the documented branch iterated a problems array that does not exist on it. Both branches were exercised against the built engine.
  • No more self-rotting version claims. The root package table carried a version column that goes stale at the next release, and the engine README warned it was pre-1.0 at 4.0.0 while it ships 7.0.0. Both are removed rather than re-pinned.
  • The CLI sample was invented. It is now a captured run of the exact documented command.

What changed

File Correction
Root README.md Dropped the version column; replaced npx with a pinned install; Effect.gen example with the single-edge note; captured output instead of a fabricated matrix
@systemfsoftware/arethetypeswrong README All four snippets composed as Effects; corrected CheckResult branch; memfs aside no longer casts to never; dropped the stale pre-1.0 warning
@systemfsoftware/arethetypeswrong-cli README Retitled to the package name; pinned install first; removed the npx blocks

Validation

  • pnpm check:ci passes workspace-wide.
  • Every documented command was run and its real output captured: attw --pack . reports No problems found. across all four resolution modes.
  • Both CheckResult branches were exercised against the built engine: the typed branch yields entrypoints and problems; a package without types yields types: false and neither key.
  • The Effect.gen snippets were executed as written, and the memfs aside was run to confirm its key shape and read path.
  • typescript@^6.0.3 and node >=24 are the only remaining version statements, and both match package metadata.

@systemfsoftware-maker
systemfsoftware-maker changed the base branch from chore/cleanup-starter-and-update-readme to main September 11, 2026 16:51
Two defects made the READMEs untrustworthy.

The root package table carried a version column that goes stale at the next
release, and the engine package warned that it was pre-1.0 at 4.0.0 while it
ships 7.0.0. Both claims are removed rather than re-pinned.

The quick starts recommended `npx` and `pnpm dlx`, which execute whatever the
registry serves at that moment. A tool that audits what your package resolves
should not itself float, so installs are now lockfile-pinned dev dependencies
invoked through the package manager. A note records why.

The engine snippets were also wrong about the API: `checkPackage` returns a
lazy Effect, so `await` on it was a no-op, and the untyped result carries no
`problems` array to iterate. Both are corrected against the published types.

The CLI output sample in the root README was invented; it is now a captured
run of the documented command
@systemfsoftware-maker
systemfsoftware-maker force-pushed the docs/verified-readme-guidance branch from f6f0a83 to 651ce29 Compare September 11, 2026 16:51
`checkPackage` returns a lazy Effect, and the READMEs taught consumers to
unwrap it with `await Effect.runPromise(...)` at the call site. That is the
wrong boundary: it interprets per call, and it teaches a shape that leaves
the interpreting edge with no reach over the fibers doing the work.

Every snippet now composes instead of interprets — `Effect.gen` with
`yield*`, returning the analysis — and the single interpretation edge is
stated once in prose: run the program with `NodeRuntime.runMain` when it
terminates, or `yield*` it into a larger Effect. The `runMain` primitive is
verified present in the installed `@effect/platform-node`, and it is the
one that installs the SIGINT/SIGTERM handlers and sets the exit code.

The in-memory filesystem aside is corrected the same way, and it no longer
casts `contents` to `never`; the real shape is `Record<string, string |
Uint8Array>` keyed by the `/node_modules/<name>/...` prefix
@ryanleecode
ryanleecode merged commit 05349db into main Sep 11, 2026
3 checks passed
@ryanleecode
ryanleecode deleted the docs/verified-readme-guidance branch September 11, 2026 19:11
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