Repository navigation
Remove code and declarations nothing reads: Atlas $work keys, lf-toc's lends, aim's destroy - #5720
Merged
Merged
Conversation
…r.payload_provenance The Atlas example's lf-atlas-task role, and the work fixture's lf-test-task copied from it, declared `review`, `stalled` and `depends`. `work.js` reads only `state`, `done`, `stopped`, `stoppedAt` (and `running`, `retired`, `on` for a worker), as module-reading.md "Work hierarchies" documents, so a package author copying the worked example copied three declarations that do nothing. `review` and `stalled` stay among the role's `stopped` values. The service record's `runtime` description named `hosting.payload_provenance`; the function is `layer.payload_provenance`, which hosting imports. The protocol baseline carries the same annotation. `lfWatchPlatform.cancelLater` had no reader in the tree. No behavior changes.
…o-op return `drawToc`'s `lends` reading let the deleted first-paint renderer (`packages/default/initial/lf-toc.js`, removed in #4724) read the outline without lending ids. Every caller since passes `true`, so the `!lends` branch was unreachable; `lf-toc` also passed `#reconcile` a second copy of the reading its constructor already holds. The stale "Delivery and live behavior call this same template" comment goes with it. `createAim`'s `destroy` had no caller (leaf.js mounts aim for the page's life). `lf-suggestion`'s `setup()` ended on `if (quoted(this)) return;`, which did nothing; `#offer()` is the guard, and its comment moves there. No behavior changes.
…rametrizes Its cases are M, P and V, so `suffix == "T"` never matched and the comment still described Threads sharing the On Me branch. The test exercises the same three destinations as before.
This was referenced Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Removes declarations and branches nothing reads, found in the nightly survey. No behavior changes.
$workkeys.lf-atlas-taskin the command-hub example declaredreview,stalledanddepends, and the work test fixture copied them.work.jsreads onlystate,done,stoppedandstoppedAton a goal, which is also the setmodule-reading.md, "Work hierarchies", documents. A package author copying the worked example would copy three declarations that do nothing.reviewandstalledremain among the role'sstoppedvalues.lf-toc'slendsreading. It existed for the first-paint renderer that Use one browser rendering lifecycle and native document layout #4724 deleted. Every caller now passestrue, so the!lendsbranch could not run. It is gone fromtoc-view.js,lf-toc.jsand two runtime tests, and#reconcilenow re-renders with the reading the drawing already holds, not a copy of it.createAim'sdestroyhad no caller. Theif (quoted(this)) return;at the end oflf-suggestion'ssetup()did nothing, so its comment moves to#offer(), the guard it describes.lfWatchPlatform.cancelLaterhad no reader. The go-to destination test kept a Threads ("T") branch that its parametrize no longer reaches.runtimedescription namedhosting.payload_provenance, but the function islayer.payload_provenance. The protocol baseline carries the same annotation, which is not part of the comparison.Verification:
pnpm run test:runtime(906 pass) andpnpm run check:browserpass.leaf package check examples/command-hub.pagereports no findings. Focused browser tests pass:test_render_work.py, sixlf-toctests intest_contents_and_glosses.py(outline, title groups, live reconcile, empty route, section marks, generated interface), the quoted-widget exhibit, the suggestion margin tests andtest_the_reference_enters_named_go_to_destinations.