[renderer] Deterministic renderer + architecture spec#380
Open
leeovery wants to merge 3 commits into
Open
Conversation
…entions
New self-contained workflow-render skill. Generic layout primitives
(render.cjs): fillTo/wrap/wrapWithPrefix core (the single home of the
gutter-budget math), signpost + box, and renderTree — a recursive
{ title, body?, children? } tree owning branch glyphs, the continuous │
gutter, and wrap-with-gutter-budget (the original overflow bug is
structurally impossible). Domain composition in conventions.cjs
(title/tag/derivedFrom/discoveryGlyph/titlecase). Library + CLI; no
build step. SKILL.md API reference; test-render.cjs (additive only — no
existing skill touched).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Design log for the renderer initiative: the render-shape survey, locked design decisions, and the discovery/projection architecture spec (generic engine + schema-in-skill, grounded invocation mechanics, epic strawman, open decisions) — the hand-off plan for the next phase. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jun 10, 2026
One document per feature. Join discovery-architecture-spec.md verbatim into the renderer idea doc as a final 'going forward' part (history + survey + decisions + build log, then the integration spec). Nothing removed or summarised; fix the now-self-referential intro line and delete the separate spec file. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Consolidates the renderer work (was split across #346/#348/#351, now closed) into one branch off current
main. Additive only — no existing skill/runtime file is touched.Summary
skills/workflow-render/(new skill) — the deterministic renderer:render.cjs—fillTo/wrap/wrapWithPrefixcore (single home of the gutter-budget math),signpost/box, andrenderTree(recursive{ title, body?, children? }; continuous│gutter; the original wrap-overflow bug is structurally impossible).conventions.cjs— domain composition (title/tag/derivedFrom/discoveryGlyph/titlecase).SKILL.mdAPI reference.ideas/— the design log: render-shape survey, locked decisions, anddiscovery-architecture-spec.md(generic engine + schema-in-skill, grounded invocation mechanics, epic strawman, open decisions §9). The hand-off plan.The renderer core is built and proven against the hardest real case (epic dashboard) via a spike that was deliberately wound back; the architecture spec captures how to integrate it cleanly, skill-by-skill.
Test plan
node --test tests/scripts/test-render.cjs— 30 tests (core invariants, prefix-budget guard, signpost/box widths, recursive tree, conventions). Validated byte-exact against live hand-drawn markers.🤖 Generated with Claude Code