[renderer] Core + signpost slice#348
Closed
leeovery wants to merge 1 commit into
Closed
Conversation
First slice of the deterministic renderer (idea #32). Adds skills/workflow-render — a library+CLI sharing one wrap/width core: - core: fillTo, wrap (greedy + hard-split), wrapWithPrefix (budget = width - prefix.length, the single home of the gutter-budget bug) - shapes: signpost (step/sub-step markers), box (phase-title) - CLI (Claude, via Bash) + library (scripts require() in-process) - SKILL.md API reference; 17 tests Proven byte-exact against live hand-drawn markers/borders pulled from skills; surfaced existing 50-char sub-step drift the renderer normalises. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jun 4, 2026
Owner
Author
|
Consolidated into #380 (single branch off current main, same content, additive-only). Closing to keep one clean hand-off PR. |
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.
Summary
First code slice of the deterministic renderer (idea #32; design log in #346). Adds
skills/workflow-render— a library and CLI sharing one wrap/width core, so the gutter-budget bug can exist in exactly one place.fillTo,wrap(greedy + hard-split),wrapWithPrefix(budget =width − prefix.length; throws on an impossible prefix rather than overflowing).signpost(step / sub-step markers),box(phase-title).module.exportsfor data-owning scripts torequire()in-process (guarded byrequire.main). SKILL.md API reference.Test plan
node --test tests/scripts/test-render.cjs— 17 tests (core invariants, prefix-budget guard, shape widths).── … ──step markers and the●──●border match exactly.·· Document Review ··is 50 chars in two files, 49 in a third — the renderer normalises to the canonical 49.🤖 Generated with Claude Code