Skip to content

[renderer] Deterministic renderer + architecture spec#380

Open
leeovery wants to merge 3 commits into
mainfrom
feat/renderer
Open

[renderer] Deterministic renderer + architecture spec#380
leeovery wants to merge 3 commits into
mainfrom
feat/renderer

Conversation

@leeovery

Copy link
Copy Markdown
Owner

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.cjsfillTo/wrap/wrapWithPrefix core (single home of the gutter-budget math), signpost/box, and renderTree (recursive { title, body?, children? }; continuous gutter; the original wrap-overflow bug is structurally impossible).
    • conventions.cjs — domain composition (title/tag/derivedFrom/discoveryGlyph/titlecase).
    • Library and CLI; no build step. SKILL.md API reference.
  • ideas/ — the design log: render-shape survey, locked decisions, and discovery-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

leeovery and others added 2 commits June 10, 2026 19:42
…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>
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>
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.

1 participant