Changes in 267e24b

PR #347 · Shrink the header of untitled groups and parallels to the bracket · claude/stoic-newton-bx42jy

267e24b Name owners as title-row content in the header docs

claude/stoic-newton-bx42jy workflow run

vs main ca6f2ae · vs previous push

8 renderer drift69 unchanged1 volatile

Full gallery

platform-2026 Examples renderer drift

examples/platform-2026.nowline
nowline v1

config

style enterprise-style "Enterprise readiness"
  bg: blue
  text: white

style risky-style
  border: dashed
  fg: orange

style audit-track-style
  bg: orange
  text: white

default item shadow:subtle
default roadmap padding:md header-height:md font:sans

roadmap platform-2026 "Platform 2026" author:"Acme Engineering" start:2026-01-05 scale:1w calendar:business

person sam "Sam Chen"
person jen "Jennifer Wu"

team platform-team "Platform Team"
team mobile-team "Mobile Team"

anchor kickoff date:2026-01-05
anchor code-freeze "Code Freeze" date:2026-03-02
anchor ga-date "GA Date" date:2026-03-16

size med effort:1w
size lg effort:2w
size xl effort:4w

label enterprise "Enterprise readiness" style:enterprise-style
label security "Security" style:enterprise-style
label low-confidence "Low confidence" style:risky-style

status handoff "Handoff"

swimlane platform "Platform" owner:platform-team
  item auth-refactor "Auth refactor" size:lg after:kickoff status:done owner:sam labels:enterprise link:https://github.com/acme/auth/issues/123
  parallel after:auth-refactor
    group audit-track "Audit Track" style:audit-track-style
      item audit-log "Audit log v2" size:lg before:code-freeze status:in-progress remaining:30% labels:[enterprise, security] link:https://wiki.acme.com/audit
      item audit-ui "Audit UI" size:med
    item sso "SSO plugins" size:med labels:[enterprise, low-confidence]
  item platform-qa "Platform QA" size:med status:handoff

swimlane mobile "Mobile" owner:mobile-team
  item offline "Offline mode" size:lg after:kickoff owner:jen status:at-risk remaining:60%
  item push-v2 "Push notifications v2" size:med owner:mobile-team

milestone beta "Beta" after:auth-refactor
milestone v1-ga "v1 GA" after:[auth-refactor, audit-log]
milestone ga-launch "GA launch" date:2026-03-16

footnote vendor-dep "Vendor dependency" on:audit-log
  description "Blocked until vendor contract is signed."
footnote capacity-risk "Team capacity risk" on:[mobile, platform]
  description "Mobile team is down to 2 engineers through Q2."

platform-2026-dark Examples renderer drift

examples/platform-2026.nowline
nowline v1

config

style enterprise-style "Enterprise readiness"
  bg: blue
  text: white

style risky-style
  border: dashed
  fg: orange

style audit-track-style
  bg: orange
  text: white

default item shadow:subtle
default roadmap padding:md header-height:md font:sans

roadmap platform-2026 "Platform 2026" author:"Acme Engineering" start:2026-01-05 scale:1w calendar:business

person sam "Sam Chen"
person jen "Jennifer Wu"

team platform-team "Platform Team"
team mobile-team "Mobile Team"

anchor kickoff date:2026-01-05
anchor code-freeze "Code Freeze" date:2026-03-02
anchor ga-date "GA Date" date:2026-03-16

size med effort:1w
size lg effort:2w
size xl effort:4w

label enterprise "Enterprise readiness" style:enterprise-style
label security "Security" style:enterprise-style
label low-confidence "Low confidence" style:risky-style

status handoff "Handoff"

swimlane platform "Platform" owner:platform-team
  item auth-refactor "Auth refactor" size:lg after:kickoff status:done owner:sam labels:enterprise link:https://github.com/acme/auth/issues/123
  parallel after:auth-refactor
    group audit-track "Audit Track" style:audit-track-style
      item audit-log "Audit log v2" size:lg before:code-freeze status:in-progress remaining:30% labels:[enterprise, security] link:https://wiki.acme.com/audit
      item audit-ui "Audit UI" size:med
    item sso "SSO plugins" size:med labels:[enterprise, low-confidence]
  item platform-qa "Platform QA" size:med status:handoff

swimlane mobile "Mobile" owner:mobile-team
  item offline "Offline mode" size:lg after:kickoff owner:jen status:at-risk remaining:60%
  item push-v2 "Push notifications v2" size:med owner:mobile-team

milestone beta "Beta" after:auth-refactor
milestone v1-ga "v1 GA" after:[auth-refactor, audit-log]
milestone ga-launch "GA launch" date:2026-03-16

footnote vendor-dep "Vendor dependency" on:audit-log
  description "Blocked until vendor contract is signed."
footnote capacity-risk "Team capacity risk" on:[mobile, platform]
  description "Mobile team is down to 2 engineers through Q2."

platform-2026-grayscale Examples renderer drift

examples/platform-2026.nowline
nowline v1

config

style enterprise-style "Enterprise readiness"
  bg: blue
  text: white

style risky-style
  border: dashed
  fg: orange

style audit-track-style
  bg: orange
  text: white

default item shadow:subtle
default roadmap padding:md header-height:md font:sans

roadmap platform-2026 "Platform 2026" author:"Acme Engineering" start:2026-01-05 scale:1w calendar:business

person sam "Sam Chen"
person jen "Jennifer Wu"

team platform-team "Platform Team"
team mobile-team "Mobile Team"

anchor kickoff date:2026-01-05
anchor code-freeze "Code Freeze" date:2026-03-02
anchor ga-date "GA Date" date:2026-03-16

size med effort:1w
size lg effort:2w
size xl effort:4w

label enterprise "Enterprise readiness" style:enterprise-style
label security "Security" style:enterprise-style
label low-confidence "Low confidence" style:risky-style

status handoff "Handoff"

swimlane platform "Platform" owner:platform-team
  item auth-refactor "Auth refactor" size:lg after:kickoff status:done owner:sam labels:enterprise link:https://github.com/acme/auth/issues/123
  parallel after:auth-refactor
    group audit-track "Audit Track" style:audit-track-style
      item audit-log "Audit log v2" size:lg before:code-freeze status:in-progress remaining:30% labels:[enterprise, security] link:https://wiki.acme.com/audit
      item audit-ui "Audit UI" size:med
    item sso "SSO plugins" size:med labels:[enterprise, low-confidence]
  item platform-qa "Platform QA" size:med status:handoff

swimlane mobile "Mobile" owner:mobile-team
  item offline "Offline mode" size:lg after:kickoff owner:jen status:at-risk remaining:60%
  item push-v2 "Push notifications v2" size:med owner:mobile-team

milestone beta "Beta" after:auth-refactor
milestone v1-ga "v1 GA" after:[auth-refactor, audit-log]
milestone ga-launch "GA launch" date:2026-03-16

footnote vendor-dep "Vendor dependency" on:audit-log
  description "Blocked until vendor contract is signed."
footnote capacity-risk "Team capacity risk" on:[mobile, platform]
  description "Mobile team is down to 2 engineers through Q2."

showcase Examples renderer drift

examples/showcase.nowline
nowline v1

roadmap showcase "Nowline Showcase" start:2026-01-05 scale:1m author:"Nowline"

anchor kickoff date:2026-01-05

swimlane engineering "Engineering"
  item design "Design spec" duration:2w after:kickoff status:done
  parallel after:design
    group build "Build"
      item api "API surface" duration:3w status:in-progress remaining:1w
      item ui "Web client" duration:3w status:in-progress remaining:2w
    item integrate "Integration tests" duration:2w
  item ship "Ship" duration:1w after:integrate

swimlane marketing "Marketing"
  item brief "Launch brief" duration:1w after:kickoff status:done
  item assets "Launch assets" duration:3w after:brief
  item announce "Announcement" duration:1w after:ship

milestone launch "Launch" after:[ship, announce]

text-wraps-inside-bars Tests renderer drift

tests/text-wraps-inside-bars.nowline
nowline v1

// Fixture for item-title wrapping (lolay/nowline#59). A title that is too
// wide for its bar on one line but fits on at most two whitespace-wrapped
// lines stays INSIDE the bar instead of spilling to the right. The old
// spill pushed the next chained item down a whole row.
//
// What to look for when rendering this:
//   - Platform lane: "Technology Selection" (2w at scale:2w, a 148px bar)
//     wraps to "Technology" / "Selection" inside its bar. The bar grows
//     16px to hold the second title line plus the meta line, and "API"
//     stays on the same row instead of dropping to a fresh one.
//   - Every other title in the issue's roadmap already fits on one line
//     (short title, or a bar of 3w or more), so it renders as before.
//   - Link icon lane: "Auth token refactor" wraps too, and its caption
//     starts past the 14px link-icon tile (24px inset, not 12px), so the
//     title never sits under the tile.
//   - Dot clearance lane: the first title line also stops short of the
//     status dot (and any footnote digits or `before:` glyph) in the bar's
//     upper-right. "Authentication refactor" in a 2w bar with a link icon
//     would put "Authentication" (about 106px) in a 103px first-line
//     budget, running under the dot, so it spills to the right instead.
//     This is the regression case for that overlap.
//
// A wrapped item WITHOUT a meta line (the 2-line, no-growth case: line 2
// lands at baseline 36, so the bar stays 56px) cannot be written in the
// DSL. Every item needs a `duration:` or `size:`, and either one is
// rendered as the meta line, so every bar wide enough to wrap carries
// meta. That case is pinned by the layout unit tests instead.
//
// Titles that cannot wrap into two lines still spill to the right; see
// text-spills-right.nowline and item-bumps-up.nowline (single words).

roadmap text-wraps-inside-bars "Generative AI" start:2026-04-06 scale:2w calendar:business

swimlane platform "Platform"
  item "Technology Selection" duration:2w status:done
  item api "API" duration:3w status:done
  item "Agent Instructions" duration:3w status:in-progress
  item api-integration "Agent Integration" duration:4w status:planned
  item "Agent MCP" duration:2w status:planned
  item platform-e2e-test "E2E Test" duration:2w status:planned

swimlane web "Web"
  item "Web Prototype" duration:4w status:done
  item "Web SDK" duration:2w status:planned after:api
  item "Web Integration" duration:4w status:planned
  item web-e2e-test "E2E Test" duration:2w status:planned after:api-integration

swimlane mobile "Mobile"
  parallel
    group ios "iOS"
      item "iOS Prototype" duration:4w status:done
      item "iOS SDK" duration:2w status:planned after:api
      item "iOS Integration" duration:4w status:planned
      item ios-e2e-test "E2E Test" duration:2w status:planned after:api-integration
    group android "Android"
      item "Android Prototype" duration:4w status:done
      item "Android SDK" duration:2w status:planned after:api
      item "Android Integration" duration:4w status:planned
      item android-e2e-test "E2E Test" duration:2w status:planned after:api-integration

swimlane link-icon "Link icon"
  item auth-token-refactor "Auth token refactor" duration:2w status:in-progress link:https://github.com/lolay/nowline/issues/59
  item "Rollout" duration:3w status:planned

swimlane dot-clearance "Dot clearance"
  item auth-refactor "Authentication refactor" duration:2w status:in-progress link:https://github.com/lolay/nowline/issues/59

milestone ai-release "AI Release" after:[platform-e2e-test, web-e2e-test, ios-e2e-test, android-e2e-test]

utilization-states Tests renderer drift

tests/utilization-states.nowline
nowline v1

// Fixture exercising the tri-state lane utilization underline (m13).
// Each lane has `capacity:` declared so the underline paints; the
// segments along the band's bottom edge map to the lane's per-timestep
// load against capacity:
//
//   green  — load < `utilization-warn-at` (default 80%)
//   yellow — load in `[warn-at, over-at)`  (default warn 80%, over 100%)
//   red    — load >= `utilization-over-at` (default 100%)
//
// Items use `duration:` literals (not `size:`) so each bar — and
// therefore each underline segment — is the full lane width and the
// color band is easy to read at a glance. For a small real-world story
// (on-call support as a capacity sink) see examples/capacity.nowline.
// See specs/rendering.md § Lane utilization underline for the full model.

roadmap r "Lane utilization states" start:2026-01-05 length:8w

// Lane 1 — healthy. Single item at 2/5 = 40% load. Green for the
// whole span (the underline reads as one continuous green rectangle).
swimlane healthy "Healthy (40%)" capacity:5
  item a "Build" duration:6w capacity:2

// Lane 2 — warn. Single item at 4/5 = 80% load lands exactly on the
// `warn-at` threshold. One yellow rectangle.
swimlane stressed "At warn threshold (80%)" capacity:5
  item b "Build" duration:6w capacity:4

// Lane 3 — over. Two parallel items push load to 6/5 = 120%, painting
// red for the whole span.
swimlane overloaded "Over capacity (120%)" capacity:5
  parallel
    item c1 "Stream A" duration:6w capacity:4
    item c2 "Stream B" duration:6w capacity:2

// Lane 4 — segment coalescing demo. The underline transitions across
// time as load changes:
//   warmup alone  : 1/5 = 20% → green
//   parallel block: 5/5 = 100% → red
//   cooldown alone: 1/5 = 20% → green
swimlane mixed "Coalesced segments (green-red-green)" capacity:5
  item warmup "Warm" duration:1w capacity:1
  parallel
    item p1 "Burst A" duration:4w capacity:3
    item p2 "Burst B" duration:4w capacity:2
  item cooldown "Cool" duration:1w capacity:1

// Lane 5 — custom thresholds. Tighter warn band (50%) and slack on
// over (120%). Same 4-capacity item now reads yellow (80%) without
// tipping red until load passes 120%.
swimlane custom "Custom thresholds (warn:50% over:120%)" capacity:5 utilization-warn-at:50% utilization-over-at:120%
  item d "Build" duration:6w capacity:4

// Lane 6 — full opt-out. Lane has capacity but no underline paints.
// Useful when the lane's capacity is a budget signal but the author
// doesn't want the per-timestep visual.
swimlane silent "Opt-out (warn:none over:none)" capacity:5 utilization-warn-at:none utilization-over-at:none
  item e "Build" duration:6w capacity:8

before-overruns Tests renderer drift

tests/before-overruns.nowline
nowline v1

// Fixture for `before:` misses. An item paints a red tail over its own
// late part, never left of the item and behind its caption. A group,
// parallel or swimlane paints the same red behind its children, from the
// cap (or its start, if later) to its end: a body, or a lane's full
// height. A child turns red only through its own `before:`.
//
// See specs/rendering.md "Before Constraints".

roadmap r "Before overruns" start:2026-01-05 length:12w

anchor freeze date:2026-02-02

// An item that starts past its cap: the tail covers the item only.
swimlane items "Items"
  item design "Design" duration:3w
  item build "Build" duration:2w before:freeze
  item polish "Polish with a long title" duration:5w before:freeze

// A group and a parallel that overrun; only Build and Docs carry their own
// before:. The parallel starts past the cap, so its whole body is red.
swimlane containers "Group and parallel"
  group api "API work" before:freeze
    item a "Spec" duration:2w
    item b "Build" duration:3w before:freeze
    item c "Harden" duration:1w
  parallel p "Docs and SDK" before:freeze
    item d "Docs" duration:1w before:freeze
    item e "SDK" duration:2w

// An inline date on a group draws its glyph and the overrun.
swimlane dated "Inline date"
  group g "Rollout" before:2026-01-26
    item r1 "Region 1" duration:2w
    item r2 "Region 2" duration:2w

// A lane overrun stacked on a capacity overrun: the tint runs the lane's
// full height and the utilization underline stays on top.
swimlane docs "Docs" capacity:2 before:freeze
  item w "Write docs" duration:3w
  parallel
    item rv "Review" duration:2w before:freeze
    item tr "Translate" duration:2w capacity:2
  item pub "Publish" duration:1w

break-stress Tests renderer drift

tests/break-stress.nowline
nowline v1

// Stress fixture for breaks (specs/break.md §6, §7). Stresses: everything an
// item with breaks has to share a row with, on a business calendar drawn with
// `non-working:show`, so every stretch paints across shaded weekend bands.
//
// The pause on "Inside" is 10d, a whole number of weeks, so the Design wave
// closes on a Friday and the Build wave starts on the weekend after it, which
// engine A draws at the previous wave's end and engine C dates on the Monday.
//
// What to look for when rendering this:
//   - Many stretches: "Many stretches" is six hatched stretches (background
//     work) with five dotted gaps, boundary marks only across stretches.
//   - Slivers: "Sliver" starts and ends with a stretch under 3 px wide, still
//     drawn, never dropped, and the caption spills clear of both.
//   - The three caption placements: "Inside" (title wrapped inside the first
//     stretch, label chips under it), "Gap" (spilled into the first pause)
//     and "Last" (the pause is too short, so it spills right of the last
//     stretch and pushes the next item to the next row).
//   - Capacity: the "Staffed" lane's underline reads zero load over the
//     pause of "Staffed item", which holds capacity:1 beside a steady item.
//   - Styled, linked, footnoted: one item with breaks carries a style, a
//     link icon and a footnote; the icon and footnote sit in the first
//     stretch, later stretches are bare.
//   - Arrows: "Feeder" -> "Broken" lands on Broken's first stretch and
//     "Broken" -> "Consumer" leaves its last, a vertical leg may cross a gap.
//   - Group and parallel: items with breaks inside a group and inside a
//     parallel track, the container brackets spanning the last stretch.
//   - `before:`: "Late" has a red overflow tail on its LAST stretch only; the
//     cap falls inside an earlier pause.

config

style loud "Loud"
  bg: red
  fg: navy
  text: white
  border: dashed

default roadmap non-working:show

roadmap break-stress "Break stress" start:2026-01-05 scale:1w calendar:business

label urgent "Urgent"
label review "Needs review"

anchor cap "Cap" date:2026-02-02

wave design "Design"
wave build "Build"

swimlane many "Many stretches"
  item many-stretches "Many stretches" duration:12w
    break after:2d duration:3d
    break after:2d duration:3d
    break after:2d duration:3d
    break after:2d duration:3d
    break after:2d duration:3d

swimlane slivers "Slivers"
  item sliver "Sliver" duration:2w wave:design
    break after:0.2d duration:1w
    break before:0.2d duration:1w

swimlane captions "Caption placements"
  item inside "Inside: a title that wraps within its first stretch" duration:8w wave:design labels:[urgent, review]
    break after:5w duration:10d
  item gap "Gap" duration:6w wave:build status:in-progress
    break after:1w duration:3w
  item last "Last" duration:3w wave:build
    break after:1w duration:1d
  item after-last "After last" duration:2w wave:build

swimlane staffed "Staffed" capacity:2
  parallel
    item staffed-item "Staffed item" duration:4w capacity:1 wave:design
      break after:1w duration:2w
    item steady "Steady" duration:4w capacity:1 wave:design

swimlane styled "Styled, linked, footnoted"
  item decorated "Decorated item" duration:6w style:loud link:https://example.com/plan wave:design
    break after:3w duration:2w

swimlane feed "Arrows in"
  item feeder "Feeder" duration:2w wave:design
swimlane flow "Arrows through"
  item broken "Broken" duration:5w after:feeder wave:design
    break after:2d duration:2w
swimlane sink "Arrows out"
  item consumer "Consumer" duration:2w after:broken wave:build

swimlane containers "Group and parallel"
  group handoff "Handoff"
    item in-group "In a group" duration:4w wave:design
      break after:1w duration:1w
    item next-in-group "Next" duration:1w wave:design
  parallel tracks "Tracks"
    item in-track "In a track" duration:4w wave:build
      break after:1w duration:1w
    item other-track "Other track" duration:5w wave:build

swimlane capped "Overflow"
  item late "Late" duration:5w before:cap wave:design
    break after:1w duration:2w

footnote fn "Pauses are working weeks" on:decorated