Skip to content

Rename lf-specimen to lf-sample - #1326

Merged
max-sixty merged 4 commits into
mainfrom
rename-specimen
Sep 27, 2026
Merged

max-sixty merged 4 commits into
mainfrom
rename-specimen

Conversation

@max-sixty

@max-sixty max-sixty commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

"Specimen" read as clinical. The element holds any invented example: without a template it quotes illustrative content (a made-up ticket, an inert decision), and with template[data-sample] it runs a live, disposable Leaf page. "Sample" fits both modes, and the lf- prefix already says it's Leaf's.

This is a mechanical rename across the tag, data-sample / data-sample-threads, the runtime module (sample.js, mountSample), leaf/samples.py, the child-page route (/api/samples), CSS classes, the "live sample" caption, docs, examples, an eval case and tests. Two passages where "sample" would have been ambiguous now say "scenarios" (gallery entries, examples/AGENTS.md) and "recordings" (regtest outputs, tests/AGENTS.md). A test's attempt id became child-sample-comment, because sample-comment is below the event schema's 16-character minimum.

#1314 edits a test that selects #overview-specimen; whichever lands second renames it to #overview-sample.

This was written by Claude Code on behalf of max-sixty

🤖 Generated with Claude Code

max-sixty and others added 2 commits September 27, 2026 10:43
"Specimen" read as clinical. The element covers any invented example: inert
quoted content, or a live disposable Leaf page in `template[data-sample]`.
"Sample" fits both modes.

The rename covers the tag, `data-sample` and `data-sample-threads`, the runtime
module (`sample.js`, `mountSample`), `leaf/samples.py`, the child-page API
route (`/api/samples`), CSS classes, the "live sample" caption, docs, examples,
and tests. The gallery guidance in examples/AGENTS.md now calls its entries
"scenarios", and tests/AGENTS.md calls regtest outputs "recordings", so
"sample" keeps one meaning.

A test's attempt id became `child-sample-comment`, since `sample-comment` is
below the 16-character floor the event schema sets.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
leaf-agent previously approved these changes Sep 27, 2026
@max-sixty
max-sixty merged commit 632be5f into main Sep 27, 2026
5 checks passed
@max-sixty
max-sixty deleted the rename-specimen branch September 27, 2026 19:04
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