Skip to content

DSL

DSL reference

The .nowline language — keywords, syntax, validation rules.

The Nowline DSL is an indentation-significant, human-readable language for defining roadmaps. It is designed to feel like writing a structured outline — keywords read as plain English, and the file is meaningful without a rendering tool.

Parser: Langium (TypeScript-native, generates typed AST, provides LSP for free).

File extension: .nowline MIME type: text/vnd.nowline Fenced code block: ````nowline`

  1. ~20 keywords (currently 24). If the keyword count grows beyond ~20, the language is too complex. The symbol declaration was added to support custom-named symbols for icon: and capacity-icon:, the wave declaration to support barriers that span swimlanes (see specs/waves.md § 4.8 for its justification), and the non-working and working declarations to take days out of the schedule and put them back, so weekends, holidays and closures are data rather than code (see specs/working-calendar.md § 4.1 and the handoff’s decision 1 for the justification: they are one mechanism with one name, and no existing keyword can carry a dated or recurring list of days); further additions should stay rare.
  2. Indentation-significant. Two-space or one-tab indent defines nesting. Spaces and tabs must not be mixed within a file — the parser rejects mixed indentation with a clear error identifying the first offending line. No braces, brackets, or explicit block delimiters.
  3. Strings are double-quoted. "Auth refactor", not Auth refactor or 'Auth refactor'.
  4. Properties are key:value pairs on the same line as the entity. All key-value pairs use : as the single separator — the DSL does not use =. Values containing spaces must be double-quoted.
  5. Built-in DSL names are kebab-case. Property names (capacity-icon, days-per-week), section keywords, and built-in values (in-progress, at-risk) all use kebab-case. Author-chosen identifiers may use any combination of letters, digits, underscores, and dashes (must start with a letter or underscore) — auth-refactor, authRefactor, and auth_refactor are all valid.
  6. Order matters. Items render and execute sequentially in source order within a swimlane.
  7. Comments use // for single-line and /* */ for multi-line.
  8. Line continuation uses \ at the end of a line. The next line continues the same declaration. Indentation on the continuation line is cosmetic. Use \\ for a literal backslash.
  9. String escapes. Inside a double-quoted string, \n is a line break, \\ is a literal backslash and \" is a literal double quote, so "Technology\nSelection" is a two-line title, "a\\nb" shows the four characters a\nb, and "Say \"hi\"" shows Say "hi". A \n break is honored in item titles, where the title paints on separate lines (see specs/rendering.md “Item Bars”); everywhere else it behaves as whitespace: other chart text (lane, group and milestone titles) shows a single space, and the Mermaid and MS Project exports collapse it to one space (an .xlsx Title cell keeps it as an in-cell line break). These escapes are distinct from rule 8: the end-of-line \ continuation sits outside strings, while the escapes are only recognized inside them.

A .nowline file has four sections in strict order:

  1. **nowline directive** — DSL version declaration (optional but recommended, must be first line if present)
  2. Includes — include declarations (optional)
  3. Config — config marker followed by rendering configuration (optional)
  4. Roadmap — roadmap marker followed by content declarations (required)

The nowline directive declares which version of the DSL the file targets. It must be the very first non-comment, non-blank line in the file:

nowline v1

The DSL version is an integer-only major (v1, v2, v3, …) and is independent of the package version. The packages (@nowline/cli, the VS Code extension, etc.) ship under SemVer (MAJOR.MINOR.PATCH, see specs/releasing.md); the DSL major exists separately to express format-stability. Within a DSL major, the parser must accept every valid file written for that major: new syntax may be added between package minor/patch releases, but no breaking change to an existing valid nowline v1 file ships without bumping the directive to v2. When the parser encounters a version newer than it supports, it emits an error identifying the required version. When the directive is omitted, the parser assumes the latest version it supports.

The directive line accepts optional file-level properties after the version:

nowline v1 locale:fr-CA

The only directive property today is locale:, a BCP-47 tag controlling localized rendering and validator messages. Unknown directive keys are an error so typos surface immediately. See specs/localization.md for the full locale model, precedence chain, and bundle structure.

config and roadmap are section markers, not indent-containers. Config keywords (scale, style, symbol, default, calendar, non-working, working) appear at the top level after config. Roadmap keywords (person, team, anchor, label, size, status, wave, swimlane, milestone, footnote) appear at the top level after roadmap. Indentation is used where nesting is real: style properties under style, scale and calendar block properties under their keyword, team members under team, and swimlane contents under swimlane.

nowline v1
include "shared/teams.nowline"
config
style enterprise "Enterprise readiness"
bg: blue
fg: navy
text: white
border: solid
icon: shield
style risky
border: dashed
fg: orange
style subtle
bg: gray
style concurrent
bracket: solid
default item status:planned shadow:subtle
default label style:subtle
default swimlane padding:sm spacing:none
default roadmap padding:md header-height:md font:sans
default parallel bracket:none
roadmap platform-2026 "Platform 2026" author:"Acme Engineering" logo:"./brand/acme.svg" start:2026-01-06 scale:2w calendar:business
person sam "Sam Chen" link:https://github.com/samchen
person jen "Jennifer Wu"
team engineering "Engineering"
team platform "Platform Team"
person sam
person jen
team mobile "Mobile Team"
anchor kickoff date:2026-01-06
anchor code-freeze "Code Freeze" date:2026-05-01
anchor ga-date "GA Date" date:2026-06-01
size xs "Extra Small" effort:1d
size s "Small" effort:3d
size m "Medium" effort:1w
size l "Large" effort:2w
size xl "Extra Large" effort:1m
status awaiting-review "Awaiting Review"
status in-review "In Review"
label enterprise "Enterprise readiness" style:enterprise
label security "Security hardening" style:enterprise
label low-confidence style:risky
swimlane platform owner:platform capacity:5
item auth-refactor "Auth refactor" size:l after:kickoff \
status:done owner:sam labels:enterprise capacity:3 \
link:https://github.com/acme/auth/issues/123
parallel after:auth-refactor
group audit-track "Audit Track" labels:security
item audit-log "Audit log v2" size:xl before:code-freeze \
remaining:30% labels:[enterprise, security] capacity:2 \
link:https://notion.so/acme/audit-log-spec
description "Comprehensive audit trail for all admin actions"
item audit-ui "Audit UI" size:m capacity:1
item sso "SSO plugins" size:m labels:[enterprise, low-confidence] capacity:50%
item platform-qa "Platform QA" size:s capacity:2
swimlane mobile owner:mobile capacity:2
item offline "Offline mode" size:l after:kickoff owner:jen status:at-risk remaining:60% capacity:3 link:https://github.com/acme/mobile/pull/87
item push-v2 "Push notifications v2" size:m owner:mobile capacity:1
milestone beta "Beta" after:auth-refactor
milestone v1-ga "v1 GA" after:[auth-refactor, audit-log]
milestone ga-launch "GA launch" date:2026-06-01 after:[auth-refactor, audit-log]
footnote "Vendor dependency" on:audit-log
description "Blocked until vendor contract is signed. Expected March resolution."
footnote capacity-risk "Team capacity risk" on:[mobile, platform]
description "Mobile team is down to 2 engineers through Q2."
Keyword Purpose Notes
nowline DSL version declaration nowline v1. Optional but recommended. Must be the first non-comment, non-blank line. Accepts optional locale:<bcp47> (see localization.md).
Keyword Purpose Notes
config Section marker for rendering configuration Optional. Must appear before roadmap. Config keywords follow at the top level (not indented).
roadmap Section marker for content declarations [id] ["title"]. Optional author:"string", start:YYYY-MM-DD, scale:<duration>, calendar:business|full|custom, logo:"path", logo-size:<preset>. One per file. Roadmap keywords follow at the top level.

Config Keywords (after config, before roadmap)

Section titled “Config Keywords (after config, before roadmap)”
Keyword Purpose
scale Display settings for the timeline axis (properties indented beneath). Optional.
style Named visual definition (properties indented beneath).
symbol Named declaration of a custom symbol for use by icon: and capacity-icon: style properties. [id] ["title"] unicode:"..." (required) plus optional ascii:"..." fallback and universal properties.
default Default property values for a given entity type. One default <entity> <properties> declaration per entity type.
calendar Day-arithmetic overrides (properties indented beneath). Only valid when roadmap declares calendar:custom.
non-working Days that consume no work: weekends, holidays, closures. [id] ["title"] plus exactly one of date: (a date or a list), start: and end: (an inclusive range), or every: (weekdays, with optional start: and end: bounds). Both id and title are optional. A declaration named weekend replaces the business preset’s Saturday and Sunday. See “Non-working Declaration” below.
working Days that work again after a non-working declaration took them: a crunch Saturday, a make-up day. Same shape and properties as non-working. A working declaration wins a tie. See “Non-working Declaration” below.
Keyword Purpose Notes
swimlane Groups items by team/area/stream [id] ["title"]. Optional owner:id, capacity:N, utilization-warn-at:N%, utilization-over-at:N%. Items indented beneath. See “Capacity” below.
person Individual contributor declaration [id] ["title"]. May be declared at roadmap top level or nested inside a team. Bare person <id> inside a team is a membership reference. Declared at most once per merged scope.
team Team/group declaration [id] ["title"]. Nested teams/persons indented beneath.
anchor Named date on the timeline [id] ["title"] date:YYYY-MM-DD. date: is required.
label Semantic tag / chip vocabulary [id] ["title"]. Optional style:id plus universal properties (labels:, link:, description). Raw style properties are not allowed — declare a style in config and reference it.
size Named effort budget calibrated to single-engineer scale [id] ["title"]. Required effort:<duration literal> (decimal-aware: 0.5d, 2w, 1m). Universal properties (description, link:) also allowed. Must be declared before any entity referencing size:NAME. An item with size: derives its duration as effort ÷ item_capacity (item capacity: defaults to 1 when absent).
status Custom status value [id] ["title"]. Extends the built-in set (planned, in-progress (alias active), done (alias completed), at-risk, blocked). Universal properties (description, link:) also allowed. Must be declared before any entity referencing status:NAME.
wave Barrier that spans every swimlane id ["title"] (the id is required). Optional after: start floor (anchor, dated milestone, or one ISO date) plus universal properties. Declaration order is time order: no item in wave k+1 starts before every item in wave k ends. Work joins a wave with wave:<id> on item, group, or parallel. Must be declared before any entry referencing wave:NAME. See “Wave Declaration” below.
milestone Achievement marker [id] ["title"]. At least one of date: or after: is required. after: accepts a single id or a list of item/milestone/anchor/wave ids.
item Work item inside a swimlane [id] ["title"]. Indented under a swimlane.
parallel Parallel execution block [id] ["title"]. Children run in parallel. Implicit join on dedent.
group Sequential item bundle [id] ["title"]. Children run sequentially. Works inside swimlanes and parallel blocks.
footnote Attachable annotation [id] ["title"] on:id or on:[id1, id2]. Attaches to one or more entities.

Include Keyword (before config and roadmap)

Section titled “Include Keyword (before config and roadmap)”
Keyword Purpose Notes
include Include another .nowline file Path string with optional config: and roadmap: mode. include "teams.nowline"

Items are indented under a swimlane, prefixed with the item keyword. Each item follows the universal keyword [id] ["title"] [properties] pattern. Items execute in document order within a swimlane.

swimlane platform
item auth-refactor "Auth refactor" size:l status:done
item "Quick cleanup" size:s
item sso size:m

parallel is a block inside a swimlane (or group) that runs its children in parallel. Children can be bare items or groups.

swimlane platform
item auth "Auth refactor" size:l
parallel
item api-v2 "API v2" size:m
item sdk-update "SDK update" size:s
item integration "Integration" size:s
  • api-v2 and sdk-update start at the same time (after auth finishes).
  • Implicit join on dedent — when the parallel block ends, the next sibling (integration) waits for all parallel children to complete.
  • Parallel with no subsequent sibling: parallel tracks float to completion independently.
  • Parallel follows the universal [id] ["title"] pattern (both optional).
  • Drawing — a parallel is drawn like a group (below), above and around its tracks, which stack top to bottom in its body; its header bracket is dashed by default. See specs/rendering.md “Parallel and Group Rendering”.

group bundles items into a named sequential track. It works inside swimlanes, parallel blocks, or other groups.

swimlane platform
group api-work "API Work" labels:enterprise
item api-v2 "API v2" size:m
item api-docs "API docs" size:s
item deploy "Deploy" size:s
  • Items inside a group execute sequentially (same as swimlane behavior). The renderer uses the same row-pack engine swimlanes use, so an item whose desired start collides with a sibling’s logical right edge, an upstream caption’s spill reservation, or a slack-arrow corridor bumps to a new inner row inside the group’s content area, never above the previous child. The group’s body grows vertically to encompass every populated row.
  • Inside a swimlane (outside a parallel block), the group is sequential with respect to its siblings — deploy starts after api-docs finishes.
  • Drawing — a group is drawn above and around its items, never beside them: a header (its title over a bracket spanning exactly its dates) over a body shaded with its bg, padded above and below. style: changes only the colours; bracket: styles the header bracket (solid by default, none hides it). See specs/rendering.md “Parallel and Group Rendering”. Exception: in a roadmap with waves, a group with no title (an id alone is not one), no style:, and no labels: that carries wave: draws nothing at all; it only assigns membership (see “Wave Declaration”).

parallel with group — parallel sequential tracks

Section titled “parallel with group — parallel sequential tracks”

Combine parallel and group for parallel tracks where each track has its own sequential items.

swimlane platform
item kickoff-work "Kickoff" size:s
parallel streams "Parallel Streams"
group api-track "API Track"
item api-v2 "API v2" size:m
item api-docs "API docs" size:s
group sdk-track "SDK Track"
item sdk-update "SDK update" size:s
item sdk-tests "SDK tests" size:m
item sdk-release "SDK release" size:s
item integration "Integration testing" size:s
  • api-track and sdk-track start in parallel after kickoff-work.
  • Within each group, items are sequential (api-v2 then api-docs; sdk-update then sdk-tests then sdk-release).
  • integration starts after both groups finish (implicit join).

Both parallel and group support universal properties (labels, style, link, description) plus:

Property Type Description
status enum or string Aggregate/override status for the block as a whole.
owner person or team ref Accountable owner for the block.
after identifier, ISO date, or list The entire block starts after the referenced entity finishes (or after the inline ISO date). Single id: after:kickoff. Single date: after:2026-03-15. List: after:[a, b, 2026-03-15] — starts after the latest of all elements. Accepts item, milestone, anchor, parallel, or group ids. At most one inline date per direction; multiple dates are a validation error. See “Inline date pins” below.
before identifier, ISO date, or list The entire block must finish before the referenced entity starts (or before the inline ISO date). List form finishes before the earliest of all elements. At most one inline date per direction. See “Inline date pins” below.
wave wave ref The block and every descendant belong to the referenced wave (wave:build), and the block’s own start is held at the wave’s start. A descendant may repeat the value; a different value is an error. A block without wave: may hold children in different waves. Only in a roadmap with waves. See “Wave Declaration” below.

Not supported on parallel/group (computed from children):

  • duration — derived from children’s durations (sum for group, max for parallel).
  • remaining — derived from children’s progress.
  • capacity — derived from children (sum at each timestep across parallel; pass-through for group).
  • parallel is valid inside: swimlane, group.
  • group is valid inside: swimlane, parallel, group (nesting allowed).
  • item is valid inside: swimlane, parallel, group.
  • Bare items inside a parallel block are each their own parallel track (single-item groups, effectively).

Some entity types require specific keyed properties. Omitting a required property is a validation error; the error names the entity by id or title and the missing property.

Entity Required property
item size: or duration: (at least one)
milestone date: or after: (at least one)
anchor date:
footnote on:

All required fields are keyed properties — the language has no “positional required field” concept. Positional slots on entities are only id and title; at least one of the two must be present (see Universal Declaration Pattern).

These properties and directives are valid on every entity type: items, swimlanes, parallel blocks, groups, milestones, anchors, persons, teams, and footnotes.

Property / Directive Type Description
labels list Tags for filtering and display. labels:[enterprise, security]. On an item, each label renders as an atomic chiclet inside the bar; chips that don’t fit on a single row wrap to additional rows and the bar grows downward. See specs/rendering.md “Labels” for the wrapping contract.
link URL Single URL to external content.
style identifier Single reference to a named style declared in config. style:enterprise. This is the only visual property allowed on an entity.
description sub-directive Indented under the entity. Longer explanatory text. description "Details here"

Content vs. rendering separation. Entities in the roadmap section carry only semantic information (identity, ownership, sequencing, sizing, state, categorisation) plus an optional single style:id reference. Raw style properties (bg, fg, text, border, icon, shadow, font, weight, italic, text-size, padding, spacing, header-height, corner-radius, bracket, header-position, capacity-icon, timeline-position, minor-grid, non-working) may only appear in style blocks and default <entity> lines — both of which live in config. To flag an item in red, declare a named style in config (style flagged with bg: red properties indented beneath) and reference it (item blocked-work style:flagged).

These properties are specific to items. status, owner, after, and before are also valid on swimlanes, parallel blocks, and groups. wave is also valid on parallel blocks and groups, but not on swimlanes.

Property Type Description
status enum or string Built-in: planned, in-progress (alias active), done (alias completed), at-risk, blocked. Custom values allowed: status:awaiting-review.
owner person or team ref References a person or team. owner:sam or owner:platform. Singular — one accountable owner.
after identifier, ISO date, or list This item starts after the referenced entity finishes (or after the inline ISO date). Single id: after:auth-refactor. Single date: after:2026-03-15. List: after:[auth-refactor, audit-log, 2026-03-15] — starts after the latest of all elements. Accepts item, milestone, anchor, parallel, or group ids. An item, group, or parallel with after: in a swimlane or group starts once both the previous item in its lane and every referenced entity have finished, so after: only ever delays. At most one inline date per direction; multiple dates are a validation error. See “Inline date pins” below.
before identifier, ISO date, or list This item must finish before the referenced entity starts (or before the inline ISO date). List form (before:[code-freeze, 2026-05-01]) finishes before the earliest of all elements. At most one inline date per direction. See “Inline date pins” below.
size size alias References a size roadmap declaration (size:l). The item’s duration is calculated as effort ÷ item_capacity (capacity: defaults to 1 when absent). Overridden by an explicit duration: literal — see “Sizing precedence” below. Items only — not valid on parallel or group.
duration duration literal Raw duration literal only (duration:2w, duration:3m, duration:0.5d). No alias names; size: is the alias mechanism. When set alongside size:, this wins for bar width and meta-line driver (size chip omitted). Items only — not valid on parallel or group.
remaining percentage or literal Work remaining. Two equivalent forms — author picks whichever reads naturally: percent (remaining:30%) or single-eng effort literal (remaining:1w, remaining:0.5d). When a literal is given, the system computes remaining_literal ÷ total_effort to derive the percent (capacity divides the literal: total_effort = size.effort for sized items, or duration × item_capacity for duration-literal’d items). Both forms render identically — a percent of the bar. status:done takes priority. Items only — not valid on parallel or group.
capacity number Concurrent capacity consumed by this item while it runs. Positive integer (capacity:2), decimal (capacity:0.5), or percent literal (capacity:50%) which parses to a decimal. Items only — not valid on parallel or group. See “Capacity” below.
wave wave ref The single wave this item belongs to (wave:build). Must name a wave declared earlier in the roadmap section (Validation Rule 15). Inherited from the nearest enclosing group or parallel that carries wave:; never from a swimlane. An item with no effective wave is background work. See “Wave Declaration” below.

An item cannot be pinned to a fixed start date: date: and start: are not item properties. On an item, a group or a parallel they draw the unknown-property warning NL.W0700 with the hint after:<date>, and layout ignores them. A pin that lands before the work ahead of it in its lane has finished would overlap the lane’s order (Design Rule 6), and drawing that needs resource-level splits of the lane: resource contention and Gantt-chart scheduling, which principles.md excludes. Use after:<date> for “not before this date” (like every after:, it only ever delays), and an anchor or a milestone for a named date. Pinning may be revisited in the future.

capacity: is an optional annotation that models per-timestep throughput. Both swimlanes and items may declare it, and the two annotations are fully independent — neither requires the other.

swimlane platform capacity:5
item auth size:l capacity:2
parallel
item api size:m capacity:2
item sdk size:m capacity:1
item qa size:s capacity:50%

The unit is opaque to the DSL — the same way size:l is opaque until a size declaration gives it meaning. Authors decide whether 5 means engineers, story points, FTE, hours, story budget, or any other measure.

Where it can appear:

  • swimlane — integer or decimal only (no percent form). The lane’s per-timestep budget.
  • item — integer, decimal, or percent literal. The item’s concurrent consumption.
  • Not valid on parallel or group — derived from children (sum at each timestep across parallel; pass-through for group), same exclusion family as size, duration, and remaining.

Numeric formats:

  • Integer (\d+): capacity:2, capacity:5
  • Decimal (\d+\.\d+, leading and trailing digit required): capacity:0.5, capacity:1.5
  • Percent literal (\d+(\.\d+)?%): capacity:50%, capacity:12.5%. Authoring sugar only — the parser converts 50% to 0.5 at lex time, and the DSL stores a single decimal value with no record of which form the author wrote. There is no resolution step against the lane’s capacity.

All values must resolve to a positive number (> 0).

Independence: an item may declare capacity: whether or not its swimlane does, and vice versa. There is no validation rule coupling them.

Default capacity:

  • Sized items (size: declared, no explicit capacity:): capacity defaults to 1 in both duration derivation (duration = effort ÷ 1 = effort) and overload accounting (the item contributes 1 to the per-timestep load).
  • Duration-literal items (duration: declared, no size:, no explicit capacity:): capacity stays unset and the item contributes 0 to overload (uncounted). The literal duration is the bar width regardless.
  • Explicit capacity:N always wins for both purposes.

Lifetime: capacity is constant for the item’s full duration. No ramps in v1.

Utilization thresholds. Swimlanes that declare capacity: paint a tri-state utilization underline (green / yellow / red) along the bottom of the band based on the per-timestep load function f(x) = Σ items[i].capacity for items active at x. Two thresholds gate the colors and accept either a percent literal or a decimal in the same value family as capacity::

  • utilization-warn-at:N% (default 80%) — at or above this fraction of capacity:, the segment paints yellow.
  • utilization-over-at:N% (default 100%) — at or above this fraction of capacity:, the segment paints red.

Below warn-at (including segments with zero load), segments paint green — the underline reads as a continuous health bar wherever the lane has capacity: declared. Both thresholds accept the literal value none to opt out of that color band: utilization-warn-at:none collapses to a binary green/red indicator; utilization-over-at:none removes red entirely; setting both to none suppresses the underline outright. Use default swimlane utilization-over-at:none to disable utilization indicators globally; individual lanes can re-enable by setting their own threshold.

Removed in this release: overcapacity:show|hide. Suppression is now expressed via utilization-over-at:none (and/or utilization-warn-at:none); the binary show|hide form is no longer accepted.

Cross-reference: lane capacity renders inside the frame tab; item capacity renders as a N[glyph] suffix after the meta line’s driver token (duration literal or size chip). When size: drives, the suffix follows the chip (m 2×, or M 2× when the size declares title:"M"); when duration: drives, it follows the literal (2w 2×). The glyph is controlled by the capacity-icon: style property (default: multiplier, rendering as ×). The tri-state utilization underline is described in rendering.md § Lane utilization underline. See also rendering.md § Swimlane Capacity and § Item size chip.

Examples — switching the glyph:

// People-based capacity (uses default people-icon SVG from the renderer's library)
default swimlane capacity-icon:person
swimlane platform capacity:5
item auth size:l capacity:2 // renders as: l 2 [person] (effort 2w ÷ capacity 2 = 1w bar; meta driver is chip; suffix uses person glyph)
// Story-points-based capacity
default swimlane capacity-icon:points
swimlane backend capacity:13
item rewrite size:l capacity:8 // renders as: l 1.25d 8 ★ (effort 2w ÷ capacity 8 = 1.25d; folds to days when no whole-week match)

Example — custom symbol and inline literal:

config
symbol budget "Budget" unicode:"💰" ascii:"$"
style finance capacity-icon:budget
style adhoc capacity-icon:"⚙"
default swimlane style:finance
roadmap ops "Operations"
swimlane payroll capacity:50000
item q1-payroll size:m capacity:12000
swimlane tooling style:adhoc capacity:5
item ci-revamp size:l capacity:2

Example — tri-state utilization underline:

roadmap r "Utilization demo" start:2026-01-05 length:6w
size m effort:2w
// Default thresholds (warn:80%, over:100%) — three lanes show the
// three colors side by side at the same horizontal position.
swimlane healthy capacity:5
item a size:m capacity:2 // load 2/5 = 40% → green underline
swimlane stressed capacity:5
item b size:m capacity:4 // load 4/5 = 80% → yellow underline
swimlane overloaded capacity:5
parallel
item c size:m capacity:4
item d size:m capacity:2 // load 6/5 = 120% → red underline
// Custom thresholds — tighter warn band, slack on over.
default swimlane utilization-warn-at:60% utilization-over-at:120%
swimlane backend capacity:8
item rebuild size:l capacity:5 // load 5/8 = 62.5% → yellow
// Opt out of the underline on a specific lane.
swimlane research capacity:3 utilization-warn-at:none utilization-over-at:none
item explore size:m capacity:5 // no underline; capacity badge still shows "3×"
// Opt out globally; re-enable per lane.
default swimlane utilization-over-at:none
swimlane critical capacity:5 utilization-over-at:100%
item ship size:l capacity:6 // global default suppresses; lane override re-enables → red

When an item declares both size: and duration:, the explicit duration: literal wins for bar width and for the meta line: the size chip is not shown (only the literal appears as the driver token). When only size: is declared, the item’s duration is calculated as effort ÷ item_capacity (item capacity: defaults to 1 when absent); the meta line shows the size chip only — calendar span reads from the bar width. When only duration: is declared, the bar width is the literal value with no derivation and the meta line shows that literal.

size: duration: capacity: Resulting duration
l — — size.l.effort ÷ 1 (e.g. 2w)
l — 2 size.l.effort ÷ 2 (e.g. 1w)
l 2w 2 2w (literal wins; meta line shows 2w only — no chip)
— 2w 2 2w (capacity does not divide a literal duration)
— — — Validation error — item needs at least one of size:/duration:

An anchor is a named date on the timeline. Items reference anchors via after and before to pin their position.

anchor kickoff date:2026-01-06
anchor code-freeze "Code Freeze" date:2026-05-01
anchor "Project Kickoff" date:2026-01-06

Anchors are the only place absolute dates appear in the DSL (milestones optionally have dates too). The date: property is required on every anchor. See rendering.md for visual treatment.

A label is a semantic tag / chip vocabulary item. Labels are declared in the roadmap section so that content and vocabulary live together; their visual defaults live in config via default label and referenced style blocks.

label enterprise "Enterprise readiness" style:enterprise
label security "Security hardening" style:enterprise-red
label low-confidence style:risky-dotted

A label line follows the universal [id] ["title"] pattern and accepts:

  • style:id — reference to a named style declared in config. Styles the label’s own chip/badge.
  • Universal properties — labels:, link:, and the description sub-directive.

The id is the lookup key on entities (labels:enterprise). The chip renders the label’s optional title when provided, falling back to the id verbatim, the same rule as size and status chips. That lets the id carry a prefix it needs to stay unique in the file’s one namespace (label team-web "web" alongside team web) while the chip reads web. Chip width follows the text, so authors who want compact chips keep titles short or omit them.

Raw style properties (bg, fg, text, border, etc.) are not allowed on a label line. When an author wants a variant — e.g. a red-background security chip, or a dotted-border low-confidence chip — they declare a fresh named style in config (style enterprise-red with bg: red indented beneath, etc.) and reference it from the label.

A label’s style applies only to the label’s own chip/badge as rendered on a host entity — it never styles the host entity itself. If an author wants every entity tagged enterprise to appear blue, they set style:enterprise-look on those entities directly or via default item style:enterprise-look.

Labels used on items without a matching label declaration are valid (see Validation Rule 16). They render with chip defaults from default label (if declared in config) or system defaults otherwise.

A size declaration maps a named t-shirt size to a single-engineer effort budget. Items reference a size via size:NAME; the system divides the effort by the item’s capacity: to derive the bar’s calendar duration. Sizes live in the roadmap section so vocabulary co-locates with content.

size xs "Extra Small" effort:0.5d
size s "Small" effort:3d
size m "Medium" effort:1w
size l "Large" effort:2w
size xl "Extra Large" effort:1m

A size line follows the universal [id] ["title"] pattern and accepts:

  • effort:<duration literal> — required. The single-eng effort budget. Decimal-aware (0.5d, 1.5w); positive non-zero.
  • Universal properties — description, link:.

The id is the identifier used as the lookup key (size:xs, size:l). On items, the on-bar size chip renders the size’s optional title when provided, falling back to the id verbatim (case as typed). Authors who want the classic uppercased t-shirt look pin it explicitly: size m "M" effort:1w renders M, size m effort:1w renders m, size med effort:1w renders med. The title also surfaces in legends, tooltips, and elsewhere — see rendering.md § Item size chip. Changing a size declaration’s effort: later rescales every sized item that hasn’t pinned an explicit duration: literal.

size declarations must appear in the roadmap section before any swimlane or item that references them.

Effort vs. duration. A size carries effort calibrated to a single engineer; an item’s calendar duration falls out of effort ÷ capacity:. An item that overrides with an explicit duration:LITERAL ignores the derivation entirely for both bar width and meta-line display (no size chip on the meta line). See “Sizing precedence” under Capacity for the full table.

A status declaration extends the built-in set of item/swimlane/parallel/group status values (planned, in-progress / active, done / completed, at-risk, blocked). The aliases active (= in-progress) and completed (= done) canonicalize at the layout boundary — both spellings are valid input. Custom statuses are declared in the roadmap section so that vocabulary lives with the content that uses it.

status awaiting-review "Awaiting Review"
status in-review "In Review"
status deferred "Deferred"

A status line follows the universal [id] ["title"] pattern and accepts:

  • Universal properties — description, link:.

The id is the identifier used as the lookup key on entities via status:NAME. The optional title is for rendering in legends, chips, and status displays; when absent, renderers fall back to the id.

status declarations must appear in the roadmap section before any entity that references them.

Custom statuses have no inherent semantics beyond what renderers assign — the DSL only guarantees the value resolves and can carry a display title. Renderers may map custom statuses to visual treatments via default item style:… or entity-level style: overrides.

A wave is a strict, sequential barrier that spans every swimlane: no item in wave k+1 starts before every item in wave k has ended. A wave opens for every lane at the instant the previous wave’s slowest member ends, so lanes that finish early wait at the boundary. Waves are declared once, in order, in the roadmap section, and work joins a wave through the wave: property on item, group, or parallel. The rationale, the layout algorithm, and 21 worked examples live in specs/waves.md.

anchor fy-budget "FY budget" date:2026-03-02
wave discover "Discover"
wave build "Build"
wave launch "Launch" after:fy-budget
swimlane web "Web"
item research "UX research" duration:2w wave:discover
group wave:build
item checkout "Checkout v2" duration:3w
item a11y "Accessibility pass" duration:1w
item launch-page "Launch page" duration:1w wave:launch
swimlane ops "Ops"
item on-call "On-call and KTLO" duration:10w
milestone beta "Beta" after:build

A wave line accepts:

Slot or key Status Meaning
id (positional) required (NL.E1100) The wave’s identity. It joins the single shared id namespace (Structural Rule 2).
title (positional) optional The strip label. Falls back to the id.
after: optional; one value or a list Start floor. The wave cannot open before the latest of its elements. Each element must be an anchor id, the id of a milestone that has date:, or an ISO date (at most one date). Any other kind of entity is NL.E1106. Inline dates follow Validation Rules 24b, 27 and 28.
style: optional (universal) Wave colours: bg opts the wave into a column tint, fg colours its boundary line, text its strip label, border sets the boundary dash (solid, dashed, dotted). See specs/rendering.md “Waves”.
labels:, link:, description optional (universal) Carried in the AST, JSON and XLSX, and shown in LSP hover. Not painted.
footnote: error Waves host footnotes through on:.
before:, date:, start:, length:, duration:, size:, capacity:, remaining:, wave: error (NL.E1105) A wave’s span comes from its items. To give a wave a deadline, add a dated milestone after:<wave>; it turns red when the wave runs late.
any other key warning (NL.W0700) Ignored.
raw style properties error (Validation Rule 20) —

Membership and inheritance. The wave: value is exactly one declared wave id (wave:[w1] is the same as wave:w1; a list of two or more is an error). The effective wave of an item is its own wave: value, else that of its nearest enclosing group or parallel that carries one; swimlanes never contribute.

  • wave: is allowed on item, group, and parallel only. On a swimlane it is an error (a lane spans every wave; wrap its items in group wave:<id> instead), and so it is on milestone (use after:<wave> to mark the end of a wave) and every other entity (NL.E1104).
  • A descendant may repeat its container’s wave: value. A different value is an error (NL.E1102), so a descendant cannot opt out of its container’s wave.
  • A group or parallel with no wave: may hold children in different waves. That is how a group spans waves and how parallel tracks sit in different waves.
  • group wave:<id> is the idiom for a run of a lane’s work. When it has no title, no style:, and no labels:, it draws nothing; it only assigns membership. Prefer per-item wave: for one to three items.

Background work. An item whose effective wave is empty is background work (on-call, KTLO, ongoing support). It produces no diagnostic. A barrier never holds it back and its own end never extends a wave, but it still follows lane order and its own after:, so it can delay a later member of its own lane. The renderer draws it hatched.

Scheduling. Each wave spans [S_k, E_k] on the time axis. S_1 is the roadmap start (or the wave’s floor, if later); E_k is the later of S_k and the latest end of any member (so an empty wave has zero width); S_{k+1} is E_k, or the wave’s floor if that is later, which leaves a gap. Inside a wave every lane schedules exactly as it does today; an item in wave k simply cannot start before S_k. A wave id is a valid after:, before:, and on: target (see “Dependencies and Anchoring”).

Ordering. Wave order is declaration order (Design Rule 6). A wave: property must name a wave declared earlier in the roadmap section than the top-level entry that contains it, the same forward-declaration rule size: and status: follow (Validation Rule 15). after:, before:, and on: may name waves from anywhere in the file, like any other id. Recommended style: declare all waves together, after sizes and statuses and before the first swimlane. There is no default wave, and wave is not allowed on any default <entity> line (see “Banned on default”).

A roadmap “has waves” when its file declares at least one wave with a valid id. In a roadmap without waves, every wave: key (including one on a default line) is ignored with the warning NL.W0702, so v1 files that already carry a stray wave: key keep rendering. The bare word wave stays a valid identifier and value (item wave, after:wave, labels:[wave]); waves, wave-1, and wavefront are ordinary identifiers.

Property Type Description
date ISO date Fixed date for the milestone. Optional if after: is present; required if after: is absent.
after identifier or list after:id or after:[id1, id2] — the milestone is met when all referenced entities finish (i.e. after the latest of them). A wave id means the end of that wave (milestone beta after:build). Optional if date: is present; required if date: is absent.

At least one of date: or after: is required on every milestone. Three valid forms:

  • Date-fixed — milestone v1-ga "v1 GA" date:2026-06-30. Pinned to a specific date.
  • Dependency-driven — milestone v1-ga "v1 GA" after:[core-api, audit-log]. Occurs when dependencies finish; the date is derived by the renderer.
  • Both — milestone v1-ga "v1 GA" date:2026-06-30 after:[core-api, audit-log]. The date: is an intended target, not a hard cap. Slippage (dependencies not converging by the target date) is a rendering concern, not a validation error.

See rendering.md for visual treatment.

The roadmap declaration accepts an optional start:YYYY-MM-DD property that anchors the timeline baseline:

roadmap platform-2026 "Platform 2026" start:2026-01-06

Rules:

  • If the file contains any anchor declaration, or any milestone with a date: property, start: is required on the roadmap.
  • Every such anchor date and every dated milestone’s date must be on or after start:.
  • A roadmap with no absolute dates (schedules expressed purely with duration: and after:) does not need start:.

Renderers treat start: as the left edge of the timeline. A roadmap with no start: and no dates is purely relative — renderers choose their own reference date (e.g. the day of rendering).

The roadmap declaration accepts an optional company logo. The logo renders left of the title and author inside the roadmap header card, in both header-position:beside and above.

roadmap platform-2026 "Platform 2026" author:"Acme Engineering" logo:"./brand/acme.svg"
  • logo:"path" — path to the logo file, resolved relative to the .nowline file’s directory. Forward slashes on all platforms (same rule as include). Only local paths are supported. URLs (http://, https://, file://, data:) are not special-cased: they validate, are treated as a path, fail to resolve, and draw the missing-file warning at render time. Absolute paths are discouraged but allowed for authoring tools that resolve against a known root.
  • logo-size:<preset> — size preset (xs | sm | md | lg | xl). Defaults to md. Sets the drawn logo height (18 to 72 px); the width follows the logo’s own aspect ratio, so the logo fills its slot whether the source is larger or smaller. A logo taller than the title and author grows the header card. See rendering.md § Company Logo Size Presets.

Supported formats. The renderer accepts .svg, .png, .jpg / .jpeg, and .webp. Format is determined by file extension; content-type is not sniffed. Any other extension draws a render-time warning (below), not a validation error.

Asset resolution. Logo resolution happens at render time, not at parse time, so a .nowline file referencing a missing logo is still a valid document (nowline <input> --dry-run does not require the asset to exist). At render time, when the asset is missing, has an unsupported extension, or cannot be parsed, the renderer emits a warning and renders as if no logo were declared; nowline <input> --strict (and the equivalent renderer option) promotes warnings to errors. See rendering.md § Company Logo Error Handling.

Portability. Because logo: is a path, a .nowline file is not self-contained. To ship a self-contained artifact, inline the logo at export time (the renderer embeds SVG inline and raster formats as base64 data: URIs; see rendering.md § Roadmap Header). The DSL has no inline data: form, to keep the text readable; a data: value is just a path that will not resolve.

A footnote is an annotation that attaches to one or more entities via on:.

footnote "Vendor dependency" on:audit-log
description "Blocked until vendor contract is signed."
footnote capacity-risk "Team capacity risk" on:[mobile, platform]
description "Both teams are understaffed through Q2."

The on: property is required and references one or more identifiers (item, swimlane, anchor, milestone, wave, person, team). When referencing multiple entities, use bracket notation: on:[id1, id2]. Footnotes follow the universal [id] ["title"] pattern — a footnote with an id can itself be referenced.

Footnotes are numbered sequentially by document order: the file’s own footnotes as declared, then each merged include’s in include order (an isolated include’s continue after those; see Include Declaration). The id does not affect the number. A superscript number appears in the upper-right corner of every entity the footnote is attached to. The full footnote text renders in a footnote section below the roadmap. See rendering.md for visual treatment.

include pulls another .nowline file into the current file. Two optional properties — config: and roadmap: — control how the included file’s content is handled. They operate on two independent categories:

Category What it contains Examples
Config (rendering configuration) scale block, calendar block, styles, symbols, defaults, non-working and working declarations Everything between config and roadmap in the included file
Roadmap (content) roadmap declaration, persons, teams, anchors, labels, sizes, statuses, waves, swimlanes (+ contained items/parallel/groups), milestones, footnotes Everything after roadmap in the included file. Waves never merge: every participating file declares the same waves (Include Rule 12).
Mode Behavior
config:merge (default) The child’s config items are merged into the parent’s config. On name collision, the parent wins and the parser emits a warning per collision identifying the shadowed definition and its source file. A non-working or working declaration collides only with a parent declaration of the same keyword and name; unnamed ones never collide and always merge. Config is always merged before roadmap content is processed.
config:ignore The child’s config items are dropped entirely. If the child’s roadmap content is merged (roadmap:merge), it resolves styles from the parent’s post-merge config.
config:isolate The child’s config items are only available within the child file. The parent’s config is only available in the parent file (and to any already-merged roadmap items in the parent). Neither side’s config bleeds into the other.
Mode Behavior
roadmap:merge (default) The child’s content entities are merged into the parent. On name collision, the parent wins and the parser emits a warning. If a swimlane collides, its contained items are also dropped. Merged content resolves styles from the post-merge config. References still stay inside a file: the child’s after:, before: and on: name only its own ids (Reference rule 1, NL.E0302).
roadmap:ignore The child’s content entities are dropped. Only the child’s config is processed (subject to config: mode). Use for shared style libraries. Shared label, status, and size vocabulary — since they are all roadmap content — uses roadmap:merge instead.
roadmap:isolate The child’s content stays scoped to the child file. The child uses only the child’s config. The child must contain a roadmap declaration (needed for the region label). The isolated content renders as a visually distinct region — see rendering.md.

In all cases, the result renders as a combined drawing as if it were one file.

Includes are processed in file order, depth-first. When the processor encounters an include, it immediately processes that child file (and the child’s includes recursively) before continuing with the next declaration in the parent. Config is merged before roadmap content at each level.

1. Process includes (depth-first, recursive)
2. Merge/resolve config (per config: mode)
3. Merge/resolve roadmap content (per roadmap: mode, using post-merge config)

On merge, when the parent and child both declare an entity with the same identifier:

  • Config items (styles, symbols): parent wins, child’s definition is dropped, warning emitted.
  • Calendar declarations (non-working, working): collisions are per keyword, so non-working h and working h coexist. A child’s named declaration is dropped with the shadowing warning when the parent already held one with the same keyword and name; the warning reads Non-working "h" from child.nowline is shadowed by the parent's definition. (or Working "h" …) and has no code. Unnamed declarations never collide, so they all merge, and the order they merge in changes nothing (see “Non-working Declaration”). A child’s own duplicate id is NL.E0907 in the child, not a collision.
  • Roadmap entities (swimlanes, persons, teams, labels, sizes, statuses, anchors, milestones, footnotes, etc.): parent wins, child’s entity is dropped, warning emitted. If a swimlane collides, its contained items are also dropped.
  • Defaults: default <entity> lines can be declared in both parent and child. On collision of entity type, the parent’s default <entity> wins and a warning is emitted.
  • Waves are exempt from parent-wins merge. A child’s waves are never merged and never draw a shadow warning: Include Rule 12 requires every participating file to declare the same waves (same ids, order and resolved start floors), so the parent’s list is the list. Title and other presentation differences are a warning (NL.W0701), and the parent’s definition is used.

Diamond Includes (same file via multiple paths)

Section titled “Diamond Includes (same file via multiple paths)”

When the same file is reachable from multiple parents:

  • Duplicate include in the same file — error. Writing include "teams.nowline" twice in one file is a mistake.
  • Diamond (A includes B and C, both B and C include D) — valid. D is processed once on first encounter (depth-first). Each parent independently controls whether D’s config merges into its own scope. Entities from D are not duplicated.
  • Circular includes — error. Detected when a file appears in the currently-resolving stack (not the completed set).
// Shared style library — pull config only, no content
include "brand-styles.nowline" roadmap:ignore
// Shared team definitions — merge everything (default)
include "teams.nowline"
// Strip foreign styling, keep content
include "snippet.nowline" config:ignore
// Fully self-contained foreign roadmap
include "partner.nowline" config:isolate roadmap:isolate
config
roadmap platform-2026 "Platform 2026" scale:1w
swimlane platform owner:platform
item auth-refactor "Auth refactor" size:l after:kickoff
  • **include "brand.nowline" roadmap:ignore** — shared style library. Pull in styles/labels, no content.
  • **include "teams.nowline"** — merge config and content (both defaults). Brings in team/person declarations and any styles they define.
  • **include "snippet.nowline" config:ignore** — strip foreign styling. Content merges but resolves against parent’s config.
  • **include "partner.nowline" config:isolate roadmap:isolate** — embed a foreign roadmap as a self-contained visual region with its own styling.
  • Config items (styles, symbols, defaults) from the isolated file are not visible to the parent or other includes.
  • Config items from the parent are not visible to the isolated file’s entities.
  • Identifiers (items, swimlanes, anchors, etc.) are governed by roadmap: mode, not config: mode.
  • The child’s content stays scoped to the child file and uses only the child’s config.
  • The child’s swimlanes, items, anchors and milestones render inside a dashed-border region labeled with the child’s roadmap title. Its anchors and milestones take the region’s own marker row, under the label, and their cut lines stop at the region’s last lane.
  • The child’s footnotes join the chart’s one footnote panel, under the region’s title, numbered on after the parent’s (and after any isolated include before it).
  • References stay inside a file: the child’s after:, before: and on: resolve against its own ids, and the parent cannot name the child’s (or the reverse). Either one is NL.E0302 in the file that holds the reference (Reference rule 1).
  • The region includes an indicator (icon or badge) to distinguish it from native content.
  • Timeline scale is shared — the child’s content aligns to the parent’s scale/axis.
  • Waves are shared like the time axis: the child must declare the same waves (Include Rule 12), and its lanes take part in the global barriers. Its wave: values map to the parent’s waves by id; its other ids stay invisible to the parent.
  • The child must contain a roadmap declaration (error if missing).

Includes are resolved relative to the including file’s directory. Paths use forward slashes on all platforms. Includes must appear before config and roadmap — they are the first declarations in a file.

Included files can themselves contain include declarations (transitive includes). Circular includes are a validation error.

The optional config section marker must appear before roadmap. Config keywords follow at the top level (not indented under config). It defines:

Scale — column width and axis labels are configured in two places:

  1. The roadmap declaration sets the column width with scale:<duration> (e.g. scale:2w, scale:1q). This is a raw duration literal; it defaults to 1w when omitted. Items with durations finer than scale: remain valid and draw at their true width inside the column, down to a 1 px floor (see rendering.md “Item Bars”).
  2. Axis display settings live in an optional scale config block. Every property is optional; anything unspecified is chosen by the renderer.
config
scale
name: sprints
label-every: 2
label: "Sprint {n}"
  • name — display label for the scale unit (e.g. “sprint”). Defaults to an auto-generated name based on the roadmap’s scale: duration.
  • label-every — show an axis label every Nth column. Defaults to the renderer’s choice.
  • label — axis label format. {n} is the column index.

The scale config block is optional. A file can declare scale:2w on its roadmap with no scale block and the renderer picks all display defaults.

Calendar — day-arithmetic configuration (how many days per week, month, quarter, year). Selected via the calendar: property on the roadmap declaration. All three modes resolve to the same internal shape — four integer fields — so the rest of the system treats them uniformly.

roadmap platform-2026 "Platform 2026" start:2026-01-06 scale:2w calendar:business
  • calendar:business (default) — engineering working-day arithmetic. days-per-week:5, days-per-month:22, days-per-quarter:65, days-per-year:260.
  • calendar:full — calendar-day arithmetic including weekends. days-per-week:7, days-per-month:30, days-per-quarter:91, days-per-year:365.
  • calendar:custom — author-supplied values via the calendar config block below.

The default is business because engineering roadmaps almost always count working days when sizing work.

Non-working and working days — non-working and working declarations, beside calendar, say which dates consume no work and which are exceptions to that. They have their own section, “Non-working Declaration” below.

Under calendar:business the date axis counts working days and hides weekends, so a duration:1m bar (22 working days) spans about one month column. Month, quarter, and year ticks still sit on real month / quarter / year starts, and a boundary that falls on a weekend sits at the seam (see rendering.md § Timeline Scale). Under calendar:full and calendar:custom the axis counts calendar days and nothing is hidden.

No-transitivity rule. Each days-per-* field is independently defined. A duration like 1y resolves to days-per-year directly — not by multiplying through months or weeks. This is why business mode’s 1y = 260d, not 12 × 22d = 264d. Likewise a quarter is 13 weeks in both presets (business 1q = 65d, full 1q = 91d), not three months (3 × 30d = 90d). Year, quarter, month, week, and day are each first-class units with their own conversion to days.

Preset reference — the values baked into calendar:business and calendar:full, written in the same shape as a custom calendar block. These live hardcoded in the runtime; authors cannot and need not write them in a .nowline file:

// calendar:business (hardcoded in the runtime; not valid DSL)
calendar
days-per-week: 5
days-per-month: 22
days-per-quarter: 65
days-per-year: 260
// calendar:full (hardcoded in the runtime; not valid DSL)
calendar
days-per-week: 7
days-per-month: 30
days-per-quarter: 91
days-per-year: 365

Custom calendars — when the roadmap declares calendar:custom, supply all four days-per-* fields in a calendar config block:

config
calendar
days-per-week: 6
days-per-month: 26
days-per-quarter: 78
days-per-year: 312
roadmap rotating-shift "Rotating Shift Schedule" calendar:custom

All four entries are required and must be positive integers. There is no partial form — custom means fully specified. Mixing calendar:business or calendar:full (or the default) with a calendar config block is an error.

Styles — named visual definitions. Each style follows [id] ["title"] and has properties indented beneath it:

config
style enterprise "Enterprise readiness"
bg: blue
fg: navy
text: white
border: solid
icon: shield
style risky
border: dashed
fg: orange
style subtle
bg: gray
text: white
style elevated
shadow: soft
bg: white
style code-task
font: mono
bg: gray
style heading
weight: bold
text-size: lg
style concurrent
bracket: solid

Style properties:

Property Type Description
bg color or none Background/fill color. Named (red, blue, yellow, green, orange, purple (alias violet), gray (alias grey), navy, white), hex (#2563eb), or none (transparent).
fg color or none Border/outline color. Named, hex, or none (no border).
text color or none Text color. Named, hex, or none (hides text).
border enum Border/line style: solid, dashed, dotted.
icon identifier or string Named icon displayed on the entity. Built-in identifiers (rendered from a curated SVG library, identical across platforms): shield, warning, lock, plus the capacity-icon vocabulary. Custom: any identifier declared by a symbol declaration in config. Inline: a double-quoted Unicode literal ("💰", "\u{1F464}") — font-dependent.
shadow enum Drop shadow: none (default), subtle, soft, hard.
font enum Font family preset: sans (default), serif, mono.
weight enum Font weight: thin, light, normal (default), bold.
italic boolean Italic text: true or false (default).
text-size enum Text size preset: xs, sm, md (default), lg, xl. System owns the absolute pixel mapping.
padding enum Inset padding: none, xs, sm, md (default), lg, xl.
spacing enum Space between children: none, xs, sm, md, lg, xl. Default varies by entity.
header-height enum Timeline date-strip height. Roadmap-only (NL.W0703 on another entity’s default): none (no date strip, top or bottom; with timeline-position:bottom or both it draws the warning NL.W0704), xs 16 px, sm 20 px, md 24 px (default), lg 32 px, xl 40 px.
corner-radius enum Corner rounding: none, xs, sm, md, lg, xl, full.
bracket enum The header bracket over a group’s or parallel’s dates: none, solid (group default), dashed (parallel default). Containers only.
capacity-icon identifier or string Glyph used as the suffix to capacity numbers on lanes and items. Built-in identifiers (rendered from the same curated SVG library as icon:): none, multiplier (default — ×), person, people, points (★), time (⏱). Custom: any identifier declared by a symbol declaration in config. Inline: a double-quoted Unicode literal — font-dependent.
header-position enum Where the roadmap header card (title and author) sits. Roadmap-only (NL.W0703 on another entity’s default): beside (default) puts it in a column left of the chart, 120 to 240 px wide, with the title wrapping to fit and the chart starting to its right; above puts it in a full-width 72 px band above the chart, which then spans the whole canvas width.
timeline-position enum Where the timeline date strip is rendered. Roadmap-only (NL.W0703 on another entity’s default): top (default), bottom, both. both mirrors the strip at the chart bottom so dates stay readable on tall canvases. header-height:none removes every strip, so bottom or both with it draws no dates and warns NL.W0704.
minor-grid boolean When true, draws faint dotted grid lines at every tick boundary in addition to the standard major-tick grid. Roadmap-only (NL.W0703 on another entity’s default): true or false (default).
non-working enum How non-working days appear under a calendar that has them (calendar:business). Roadmap-only (NL.W0703 on another entity’s default): hide (default) collapses them to a seam; show draws them at full width as shaded bands. Set it on default roadmap; the render-time --non-working option (and its equivalent on each surface) overrides it. See working-calendar.md § 4.2.

All style properties are optional. Unset properties inherit from the system defaults.

Roadmap-only keys (header-height, header-position, timeline-position, minor-grid, non-working) are read only from the roadmap’s style. Set them on default roadmap, or in a style block the roadmap references. On any other entity’s default line they do nothing and draw the warning NL.W0703 (rule 20). A style block is not checked, because one block can serve the roadmap and other entities alike.

capacity-icon follows the same value-form contract as icon: — a built-in identifier, a custom name from a symbol config declaration, or a double-quoted Unicode literal — but applies to the capacity number rendered on lanes and items, not as an entity-leading badge. Default is multiplier because it has the cleanest ASCII fallback (5x) and reads as a quantity in every context without presupposing a unit type. Roadmaps measuring capacity in people switch via default swimlane capacity-icon:person; story-points roadmaps use capacity-icon:points; etc. The none value renders just the bare number with no glyph.

Built-in icon names are rendered from a curated SVG library shipped with the renderer, not from Unicode emoji codepoints. This guarantees consistent visual output across every platform (web, CLI, exports) — emoji rendering otherwise varies dramatically by OS and font (Apple, Google, Microsoft, Linux). Authors who want platform-default emoji rendering can use an inline literal (capacity-icon:"👤") instead of the named person icon.

Symbols — declare custom named symbols for use by icon: and capacity-icon:. Each symbol line follows the universal [id] ["title"] pattern.

symbol budget "Budget" unicode:"💰" ascii:"$"
symbol fte unicode:"\u{1F464}" ascii:"@"
symbol star unicode:"⭐"

A symbol line accepts:

  • unicode:"<string>" — required. The Unicode character (literal or escape, e.g. "\u{1F464}"). May be a multi-codepoint grapheme cluster (flag emoji, ZWJ sequences, etc.).
  • ascii:"<string>" — optional. Short ASCII fallback for terminals/exports that lack the Unicode glyph. Length ≤ 3 ASCII characters. Defaults to ? when omitted.
  • Universal properties — description, link:.

The id is the lookup key used by icon:my-symbol and capacity-icon:my-symbol. Custom symbol ids cannot shadow built-in icon names (none, multiplier, person, people, points, time, shield, warning, lock) — the renderer’s built-in vocabulary is reserved.

symbol declarations must precede any reference. Authors use the inline Unicode-literal form (capacity-icon:"💰") for one-off symbols; symbol declarations are for reusable named ones.

Defaults — set default property values for an entity type. Each line declares one default. Supported entity types: item, label, swimlane, roadmap, parallel, group, milestone, footnote, anchor.

default item status:planned shadow:subtle
default label style:subtle corner-radius:full
default swimlane padding:sm spacing:none
default roadmap padding:md header-height:md font:sans
default milestone weight:bold
default footnote style:subtle shadow:subtle
default anchor style:subtle
default parallel bracket:none
default group padding:xs spacing:xs

default is always flat — one declaration per line, one declaration per entity type. When an entity omits a property, the matching default applies. Explicit values on the entity always override defaults. For long default lines, use line continuation (\).

Banned on default — identity-defining, sizing, sequencing, reference, and prose properties cannot be defaulted because they must be explicit on each entity:

Entity Cannot default Rationale
default item size, duration, after, before, remaining, link, description, owner size/duration are sizing properties — at least one is required per item, and they are intentionally explicit. Sequencing creates invisible dependencies. remaining is transient progress. link/description are unique.
default milestone date, after, link, description date/after are identity/sizing properties — at least one is required per milestone.
default anchor date, link, description date is required and anchor-specific.
default footnote on, link, description on is the attachment target — identity-defining.

wave is banned on every default <entity> line, for the same reason as after: (sequencing creates invisible dependencies). The check depends on the roadmap: when it has waves, default <entity> wave:… is an error with the Validation Rule 23 message; when it has none, it is the warning NL.W0702, because v1 files may already carry the key. There is no default wave.

Allowed on every default <entity>: presentation properties (style: and raw style properties — see next paragraph), bulk-state (status:, labels:), plus any non-banned entity-specific property.

capacity is allowed on default item (e.g. default item capacity:1). It is not allowed on default swimlane because each lane’s budget is intentionally explicit at its declaration site. utilization-warn-at:, utilization-over-at:, and capacity-icon: (the capacity-adjacent properties), in contrast, are allowed on default swimlane and default item per the usual presentation-property rule.

Raw style properties are allowed on default as a catch-all escape hatch (e.g. default item shadow:subtle padding:md). default lives in config, which is the presentation section, so the ban on raw style properties applies to roadmap-section entities, not to default lines.

All config entries are optional. If config is omitted, all built-in defaults apply.

A non-working declaration takes days out of the schedule, and a working declaration puts them back. Durations count working days only, so an item that spans a non-working day ends later, and an item that spans a working exception ends sooner. Both keywords are config entries, declared in the config section beside calendar, and both share one shape. The rationale, the layout and the worked examples live in specs/working-calendar.md.

config
non-working weekend "Weekend" every:[fri, sat]
non-working new-year "New Year's Day" date:2027-01-01
non-working summit "Company summit" start:2026-09-14 end:2026-09-16
non-working shutdown "Year-end shutdown" date:[2026-12-24, 2026-12-25, 2026-12-28]
non-working fridays every:fri start:2026-07-01 end:2026-08-31
working crunch "Crunch Saturday" date:2026-01-10
roadmap r "Platform" start:2026-01-05 calendar:business

A declaration accepts:

Slot or key Status Meaning
id (positional) optional Needed only to be the file’s weekend or to tell two declarations apart in an include collision. It joins no shared namespace: non-working x and working x are fine together, and NL.E0907 reports a duplicate within one keyword and one file.
title (positional) optional The label the chart draws for the day. A dated non-working declaration with a title (date:, or start: with end:, without every:) is labelled on the chart as its titles joined with , , then · Nd, where N is the number of working days it removes (Thanksgiving · 2d; the suffix is dropped when N is 0). Under hide the label sits on a thin cut line at the seam, under show at the band’s left edge, both in the marker row. A dated working declaration with a title is labelled at the days it turns from non-working to working, as its titles, then · +Nd for the N days (Release crunch · +1d), in the marker row with no cut line in either view; a weekday make-up day inside a dated closure counts. A title on a bounded recurrence (every: with start: or end:) is not drawn on the chart, and the editor’s hover on such a declaration says so. MS Project names an exception with the titles of the dated declarations behind it, working ones included.
date: one ISO date, or a list The dates the declaration covers. Each element is a real calendar day (NL.E0405).
start: one ISO date Inclusive. The first day of a range, or the day a recurrence begins.
end: one ISO date Inclusive. The last day of a range, or the day a recurrence stops. Not before start: (NL.E0903; equal is fine).
every: one weekday or a list of sun, mon, tue, wed, thu, fri, sat A weekly recurrence. A name that is not a weekday is NL.E0904, and a weekday listed twice is NL.E0905.
any other key error (NL.E0901) Including style:, labels:, link:, wave: and raw style properties such as bg:. The declaration checks its own keys, so Rule 20 does not apply.

Three shapes (NL.E0900). A declaration is exactly one of:

  • dates: date: alone;
  • a range: start: and end: without every:, the same as listing every date between them;
  • a recurrence: every:, with start: and end: both optional. With neither it is open-ended: it holds in every week of the file. With one it is open on the other side, and with both it holds only inside the window.

Anything else is NL.E0900, once on the declaration: no properties, date: with any other key, or a lone start: or end:. start: and end: take one date each; a list of two or more is NL.E0902 (a one-element bracket is that date).

Precedence. On a given day the most specific declaration decides, and a working declaration wins a tie:

  1. a dated declaration (date:, or a range);
  2. a bounded recurrence (every: with start: and/or end:);
  3. the open-ended week.

Order never matters: the declarations in any order in the file, or merged from includes in any order, give the same schedule. calendar:business supplies non-working weekend "Weekend" every:[sat, sun] at level 3; calendar:full and calendar:custom supply nothing.

The weekend. A non-working declaration named weekend replaces the preset’s Saturday and Sunday (for any preset), so a Friday and Saturday week is non-working weekend every:[fri, sat], with no custom calendar. A declaration with any other name adds to the preset. The replacement counts every non-working named weekend, malformed ones included.

The open-ended week must keep a working day. Take the open-ended recurrences of the file, plus the business weekend unless the file replaces it, minus the open-ended working … every:. If that covers all seven days, NL.E0906 is reported on each open-ended non-working declaration. A recurrence with exactly one bound that would close the last open weekday is reported too. A recurrence bounded on both sides may close all seven days. days-per-week should agree with the working weekdays that remain; when it does not, the warning is NL.W0705 (a custom calendar with days-per-week: 6 and no every:, or business with working every:sat). Business, calendar:full and the Friday and Saturday week above are quiet.

Diagnostics. The kind in a message is non-working or working, verbatim in every language.

Code Severity Meaning
NL.E0900 error Not one of the three shapes.
NL.E0901 error A key other than date, start, end and every.
NL.E0902 error start: or end: given a list.
NL.E0903 error end: is before start:.
NL.E0904 error An every: value that is not a weekday name.
NL.E0905 error A weekday listed twice in one every:.
NL.E0906 error The open-ended week leaves no working day.
NL.E0907 error Duplicate id within one keyword in one file.
NL.W0705 warning days-per-week differs from the working days the open-ended week leaves.
NL.E0405 error A date that is not a real calendar day (2026-02-30), on a calendar declaration as on every other entity’s date:, start: or end:, and in an inline date pin (after:2026-02-30).
NL.W0700 warning end: or every: on any other entity: the key is ignored.

Includes. Calendar declarations follow config: modes (see “Include Declaration”). On config:merge they merge, a named child declaration is shadowed by the parent’s of the same keyword and name, and unnamed ones always merge. config:ignore merges none. On config:isolate the child’s declarations stay in its region’s config and have no effect on the chart yet: an isolated region is laid out on the host’s calendar, and per-region calendars are not part of this release. The validator reads only its own file, so a non-working weekend or an open-ended recurrence in an include is not counted by NL.E0906 and NL.W0705; the calendar falls back to the preset if an included file closes the whole week. A malformed declaration in an include is skipped.

Bare words. non-working and working are keywords where a declaration starts, but stay valid as identifiers and values (item non-working, after:working, labels:[working]). non-working-team, working-group, nonworking and workings are ordinary identifiers. A bare style, symbol, non-working or working line takes the next line’s keyword as its id, as with wave.

person and team declarations provide metadata for person and team references. A person can be declared either at the roadmap top level or nested inside a team; either form is valid. team declarations can nest other teams and reference persons as members.

Declaration vs. reference — the parser rule for person:

  • person <id> alone (no title, no keyed properties) — a reference. Inside a team it denotes membership; at the roadmap top level it is a no-op (the parser may emit a warning).
  • person <id> ["title"] [properties] — a declaration. Creates the person. If nested inside a team, the declaration also establishes membership of that person in the enclosing team.

Identity and scoping. Person identifiers are global within the merged file scope regardless of where they are declared — a person declared inside team platform is still a valid target for owner:sam anywhere in the roadmap. Team-nesting the declaration does not scope the id.

A person may be declared at most once in the merged scope. Duplicate declarations of the same person id are a validation error, even if the metadata matches. Authors must pick a single canonical declaration location.

Three ergonomic patterns:

// Multi-team member — declare once at top level, reference in each team
person sam "Sam Chen" link:https://github.com/samchen
team platform "Platform Team"
person sam
team mobile "Mobile Team"
person sam
// Single-team member — declare inline under the team
team platform "Platform Team"
person sam "Sam Chen" link:https://github.com/samchen
// Reference-only, no declaration anywhere — valid, renders as the bare id
team platform "Platform Team"
person sam

team nesting inside another team is always a declaration (as today). Teams cannot be referenced with a bare team <id> line.

Declarations are optional. If owner:sam or owner:platform appears without a matching declaration, the reference is still valid — just without a display name or metadata. The link property and description directive are supported on both person and team.

The nowline directive is a simple two-token line: the keyword nowline followed by a version string matching v\d+ (e.g., v1, v2). It does not follow the universal declaration pattern — no identifier, no title, no properties. It must be the first non-comment, non-blank line in the file if present.

Every entity declaration (item, anchor, label, duration, status, wave, milestone, footnote, swimlane, parallel, group, person, team, roadmap) follows the same pattern:

keyword [id] ["title"] [key:value ...]
  • Positional slots are only id and title. At least one of the two must be present. A wave must have an id, because work references it with wave:<id> (WV1).
  • Identifier — unquoted, matches [a-zA-Z_][a-zA-Z0-9_-]*. Used for referencing. Optional — auto-generated from the title (kebab-cased) if omitted.
  • Title — a double-quoted string. Human-readable display name. Optional. Titles are always double-quoted, even single-word titles (the quote is how the parser distinguishes id from title).
  • The parser distinguishes them by format: unquoted = identifier, quoted = title.
  • Every other input (date:, duration:, status:, after:, before:, on:, owner:, style:, labels:, link:, etc.) is a keyed property using key:value.
  • Required-ness is enforced by validation (see Required Properties), not by grammar shape.

Examples:

  • item auth-refactor "Auth refactor" size:l — both id and title
  • item "Auth refactor" size:l — title only, auto-id: auth-refactor
  • item auth-refactor size:l — id only, display name: auth-refactor

The nowline directive is the only construct without an id or title; every other declaration follows the Universal Declaration Pattern. The directive accepts optional key:value properties after the version (currently just locale:) using the same BlockProperty shape as the indented scale and calendar blocks.

Identifiers match [a-zA-Z_][a-zA-Z0-9_-]* — letters, digits, underscores, and dashes, starting with a letter or underscore. Idiomatic Nowline uses kebab-case (auth-refactor, push-v2, ga-launch), but authRefactor, auth_refactor, and MED are equally valid; pick what reads best for your team. They must be unique across the merged result (the file and all its includes).

When omitted, the parser generates one by slugifying the title to kebab-case: "Audit log v2" becomes audit-log-v2. Auto-generated ids are always kebab-case for stability across reruns. These internal keys make title-only declarations render and participate in include merge maps, but they are not referenceable — declare an explicit id on an entity before using it in after:, before:, or on:. An explicit id always claims its key ahead of any auto-derived slug (regardless of source order), and two title-only entities whose titles slugify to the same key de-dupe silently (platform, platform-2, …) without a shadowing warning. Id-less parallel and title-less group blocks receive internal positional handles (parallel-1, group-1, …) for layout flow segmentation only; likewise not referenceable. An id-less item that itself declares after:/before: still renders its own dependency arrow — layout gives it an internal, non-referenceable handle so it registers as a dependency-edge target — but, being non-referenceable, it cannot be the target of another entity’s after:/before:/on: until you give it an explicit id.

Any list-typed property accepts a single value without brackets or multiple values with bracket notation. Both forms are equivalent when there is one item:

  • Single: labels:enterprise
  • Multiple: labels:[enterprise, security]

No quotes around identifiers in lists. Comma-separated, optional spaces.

The link property takes a bare URL (no quotes). One link per entity. The URL is absolute and its scheme is http or https, or it is a mailto: URL, which has to be quoted (link:"mailto:ops@acme.example") because the bare URL token only matches http(s)://. Any other value, such as a javascript: or data: URL, a relative path or a bare identifier, is NL.E0414 (Validation Rule 16a).

Both after: and before: accept a single identifier, a single ISO date literal, or a bracketed list mixing both. References may target items, milestones, anchors, parallel blocks, groups, or waves.

  • after:id — this entity starts after the referenced entity finishes (or after the referenced anchor date).
  • after:2026-03-15 — inline date pin. This entity starts on the given date with no anchor declaration required. See “Inline date pins” below.
  • after:[id1, id2, ...] — this entity starts after all referenced entities finish (i.e. after the latest of them). List elements may be ids, an ISO date literal, or a mix.
  • before:id — this entity must finish before the referenced entity starts (or before the referenced anchor date).
  • before:2026-05-01 — inline date pin. This entity must finish on or before the given date. See “Inline date pins” below.
  • before:[id1, id2, ...] — this entity must finish before the earliest of the referenced entities starts. List elements may be ids, an ISO date literal, or a mix.
  • after:<wave> — this entity starts no earlier than the end of the wave (for a wave with no members, its start). Use it for background work and milestones that wait for a whole wave; a floating milestone … after:<wave> sits exactly on the wave’s closing boundary. On work in the same wave or an earlier one it is an error (NL.E1103).
  • before:<wave> — this entity should finish before the start of the wave. Like every before:, it is soft: nothing moves, and a miss paints the existing red overflow.

An item, group, or parallel with after: in a swimlane or group starts once both the previous item in its lane and every referenced entity have finished, so after: only ever delays: it never starts a lane child before the item that precedes it in the lane.

Wave references draw no dependency arrow. A wave’s own after: accepts only constants (an anchor, a dated milestone, or one ISO date); see “Wave Declaration”.

Circular dependencies across the full graph (including every element of list-form references) are a validation error. Inline date literals are not graph nodes and do not participate in cycle detection, and neither are a wave’s own after: edges (their targets are constants).

An inline date literal pins the entity directly without a named anchor declaration. The form is intentionally lightweight — useful for one-off date constraints that don’t deserve a named, chart-spanning anchor.

item ship "Ship release" size:m after:2026-03-15
item code-review size:s before:2026-05-01
item integration size:l after:[auth-refactor, 2026-04-01]
group api-track after:2026-02-01
parallel rollouts before:2026-06-30

Rules:

  • Inline dates are valid on item, parallel, and group, and on a wave’s after: (a start floor). They are not valid on milestone (which already has its own date:), swimlane, anchor, footnote, person, or team. Using an inline date on those entity types is a validation error. (A wave’s before: is rejected outright by NL.E1105.)
  • At most one inline date per direction. after:[2026-03-15, 2026-04-01] is a validation error — collapse to a single binding date instead. Mixing one date with any number of id references in the same list (after:[kickoff, 2026-03-15]) is allowed.
  • The roadmap must declare start: whenever the file contains any inline date (same rule as for anchor declarations and dated milestones — see Validation Rule 27).
  • Every inline date must be on or after the roadmap’s start: (Validation Rule 28).
  • ISO 8601 format only (YYYY-MM-DD); the date literal terminal already enforces this. The date must also name a real calendar day: after:2026-02-30 is NL.E0405 (Validation Rule 1), and the layout ignores it.

Visual treatment. Each inline-date pin renders as a small calendar glyph on the entity’s left (after) or right (before): in an item bar’s top-left / top-right decoration row, joining the existing status-dot / footnote-indicator family, and in a group’s or parallel’s title row, beside its title. There is no inline date caption next to the glyph and no chart-spanning vertical cut line — the lightweight form deliberately stays quiet. The ISO date is available as a tooltip and lives in the source. Authors who want a louder, chart-spanning visual should declare a real anchor. See specs/rendering.md “Inline-date glyph” for full geometry.

A \ at the end of a line means the next line continues the same declaration. Indentation on the continuation line is cosmetic (ignored by the parser). Only valid at the end of a property line — not inside strings or comments. Use \\ for a literal backslash. Inside a string, \ starts an escape instead (\n, \\, \"); see Design Rule 9.

item auth "Auth refactor" duration:2w status:in-progress \
owner:sam labels:[security,enterprise] \
link:https://github.com/acme/auth/issues/123 \
style:flagged
// This is a single-line comment
/* This is a
multi-line comment */

The parser enforces these rules and produces clear error messages with file position and suggestions (e.g., fuzzy-match “did you mean X?”).

  1. Exactly one roadmap declaration per file. Included files’ roadmap declarations are governed by the roadmap: mode.
  2. All identifiers are unique across the merged result (items, parallel blocks, groups, anchors, persons, teams, milestones, footnotes, waves share one namespace). On merge collision, parent wins and a warning is emitted (waves excepted; see Include Rule 12).
  3. Every entity must have at least an identifier or a title (or both).
  4. File structure must follow the section order: nowline directive (optional), includes, config, roadmap. The nowline directive, if present, must be the first non-comment, non-blank line.
  5. The nowline directive version must match v\d+. If the version is newer than the parser supports, emit an error identifying the required version.
  6. At least one swimlane is required in the merged result (NL.E0004, on the roadmap declaration). Swimlanes from roadmap:merge includes and from roadmap:isolate regions count, so a file whose only content comes from includes is valid; roadmap:ignore includes do not. The validator reads only its own file, so it applies the rule only to a file with no includes or only roadmap:ignore ones; for any other file resolveIncludes applies it after every include is resolved, and stays silent when it has already reported an error (an unreadable or unparsable include may be the one that holds the swimlane).
  7. Indentation must be consistent within a file — either spaces or tabs, not both. Mixed indentation is a parse error identifying the first offending line.
  8. label declarations must appear in the roadmap section, not under config. A label line placed before roadmap is an error. The error message should suggest moving the declaration under roadmap.
  9. size declarations must appear in the roadmap section, not under config. A size line placed before roadmap is an error. The error message should suggest moving the declaration under roadmap.
  10. status declarations must appear in the roadmap section, not under config. A status line placed before roadmap is an error. The error message should suggest moving the declaration under roadmap.
  11. wave declarations must appear in the roadmap section, like label, size, and status. A wave line placed before roadmap makes the following roadmap line a parse error.
  1. All elements of after:, before:, and on: properties (whether single or list) resolve to identifiers declared in the same file. An element that does not is NL.E0302. References never cross a file boundary, in either direction and in any include mode: a parent cannot name a child’s ids, a child cannot name its parent’s or a sibling include’s, and roadmap:merge does not change that, even though the merged content shares one timeline. The validator reads only its own file and an included file is parsed without validation, so resolveIncludes applies this rule to every file it reaches through a merge or isolate include, each file once, and reports NL.E0302 in that file, at the same line, column and span as the file’s own validation (the whole property), with the same message. A file reached only through roadmap:ignore is not checked (its content is dropped), and neither is one that failed to parse (its syntax errors are reported instead, Include rule 13).
  2. No circular dependencies in after/before chains. Detection operates on the full dependency graph, including every element of list-form references.

Dates, durations, sizes, scales

  1. date:, start: and end: values (on the roadmap, an anchor, a milestone or a calendar declaration; on an item they are unknown keys, see “Pinning is not supported”), and inline date pins in after: / before: (on an item, group or parallel, and a wave’s after:), are ISO 8601 dates that name a real calendar day: 2026-02-30 is NL.E0405, not March 2, and the layout reads it as no date. An impossible inline pin is checked by this rule only, not by Rules 27 and 28, and layout ignores it: it neither moves nor caps the entity and draws no glyph.
  2. duration: property values must match the raw duration pattern (\d+(\.\d+)?[dwmqy]) — literal only, no alias name lookup. scale: property values use the same raw duration pattern.
  3. size: property values must reference a size declaration in the roadmap section. Forward references are an error (rule 15 applies to size: the same way it applied to duration:).
  4. A size declaration’s id must not match the raw duration pattern \d+(\.\d+)?[dwmqy] and must not be a bare d, w, m, q, or y. This avoids ambiguity at the call site.
  5. Every size declaration must specify an effort: property, and its value must match the raw duration pattern \d+(\.\d+)?[dwmqy] (positive, non-zero). A size declaration without effort: is a validation error. Duplicate size declaration ids within a single file are an error (same rule as duplicate status or label ids).

Calendar

  1. calendar: on roadmap must be one of business, full, or custom. Omitted defaults to business.
  2. A calendar config block is only meaningful when the roadmap declares calendar:custom. Presence of a calendar config block when the roadmap declares calendar:business, calendar:full, or the default is an error.
  3. When calendar:custom is declared, the calendar config block must be present and must declare all four entries: days-per-week, days-per-month, days-per-quarter, days-per-year. Missing any entry is an error. Empty or absent block is an error.
  4. days-per-week, days-per-month, days-per-quarter, days-per-year values must be positive integers. 9a. A non-working or working declaration is exactly one of three shapes: date: alone; start: and end: without every:; or every: with optional start: and end: (NL.E0900). Its only keys are date, start, end and every (NL.E0901), and start: and end: take one date each (NL.E0902). 9b. Every date on a calendar declaration is a real calendar day (NL.E0405), and end: is not before start: (NL.E0903). 9c. every: values are sun, mon, tue, wed, thu, fri or sat (NL.E0904), each at most once per every: (NL.E0905). The open-ended week keeps at least one working weekday (NL.E0906), and days-per-week agrees with the weekdays it leaves working (NL.W0705, a warning). 9d. A non-working or working id is unique within its keyword in one file (NL.E0907). The two keywords do not share a namespace.

Required properties per entity

  1. item declarations must include at least one of size: or duration:. Omitting both is an error that identifies the item by id/title and line number. Declaring both is valid; the explicit duration: literal wins for bar width and meta-line display (size chip omitted; see Sizing Precedence in the Capacity section).
  2. anchor declarations must include a date: property.
  3. milestone declarations must include at least one of date: or after:.
  4. footnote declarations must include an on: property referencing one or more valid identifiers. Single: on:id. Multiple: on:[id1, id2].

Status, labels, remaining

  1. status values are a built-in value (planned, in-progress (alias active), done (alias completed), at-risk, blocked) or a value declared by a status declaration in the roadmap section.
  2. A size:, status:, or wave: property reference must resolve to a declaration that appears earlier in the file (or in an earlier include, per config:/roadmap: mode). Forward references are a validation error. The error message should point to both the reference site and suggest the declaration location. For wave:, “earlier” means earlier in the roadmap section of the same file than the top-level entry that contains the reference (includes never contribute waves; see Include Rule 12), and the error is NL.E1101 (WV6).
  3. labels values are identifiers (rule 5). Undeclared labels are valid (no config entry required). 16a. A link: value, on any entity, is an absolute http:// or https:// URL, or a quoted mailto: URL (NL.E0414). Quoted or bare, the scheme is what counts: link:"javascript:alert(1)", link:"./spec.md" and link:spec are errors. The rendered link is a live <a href> in the embed, the preview and the HTML export, so the layout and the renderer also drop a non-web link when a caller skips validation.
  4. remaining values are either a percentage (0%–100%) or a single-eng effort literal (\d+(\.\d+)?[dwmqy], e.g. 1w, 0.5d). Both forms normalize to a percent of the item’s total effort during layout: percent = remaining_literal ÷ total_effort, where total_effort = size.effort for sized items, or duration_literal × item_capacity for duration-literal’d items (item_capacity defaults to 1). When the literal exceeds total effort (computed percent > 100%), the layout step emits a soft warning and clamps the painted bar to 100% remaining; rendering is never blocked.

Capacity

17a. capacity: on a swimlane must match a positive number literal (integer \d+ or decimal \d+\.\d+). Percent form is not allowed on swimlanes. 17b. capacity: on an item must match a positive number literal or percent literal (\d+(\.\d+)?%). The percent literal is parsed to its decimal equivalent (50% → 0.5). 17c. capacity: is not valid on parallel or group (same exclusion as size, duration, and remaining). 17d. utilization-warn-at: and utilization-over-at: on a swimlane (or default swimlane) must each match either a positive percent literal (\d+(\.\d+)?%), a positive decimal (\d+(\.\d+)?, interpreted as a fraction — 0.8 ≡ 80%), or the bareword none. Defaults: utilization-warn-at:80%, utilization-over-at:100%. When both numeric thresholds are present on the same lane (or merged from a default swimlane), utilization-warn-at must be ≤ utilization-over-at; otherwise it is a validation error. Not valid on any other entity type. 17e. capacity-icon: value must be a built-in identifier (none, multiplier, person, people, points, time), an identifier matching a symbol declaration in scope, or a double-quoted Unicode literal. Like all raw style properties, it is only valid inside style blocks and default <entity> lines — not inline on entities. Defaults to multiplier when omitted. The same value-form rule applies to icon:.

Non-rules (intentionally not validated):

  • Item and swimlane capacity are independent. An item declaring capacity: without its swimlane declaring one is valid and produces no diagnostic.
  • A lane declaring utilization-warn-at: or utilization-over-at: without a capacity: value is valid but produces no underline (the load function has no denominator). Renderer treats it as a silent no-op; consider adding capacity: to make the threshold meaningful.
  • A lane being over capacity — concurrent item capacity exceeding swimlane capacity at any timestep — is not a validation error and produces no parser output. It is rendered visually per rendering.md.
  • utilization-warn-at:none and/or utilization-over-at:none on a swimlane that has no capacity: (or no items contributing load) is valid and a no-op — there is nothing to color.

Symbol declarations

17f. Every symbol declaration must specify a unicode:"<string>" property. Missing unicode: is a validation error (NL.E0806). 17g. unicode: value must be a non-empty quoted string. May contain Unicode escapes (\u{...}) or literal Unicode characters. May be a multi-codepoint grapheme cluster. An empty value is NL.E0807. 17h. ascii: value, if present, must be a quoted string of length ≤ 3 ASCII characters (NL.E0808). A symbol line takes only unicode:, ascii:, link:, and description; any other property is NL.E0809. 17i. A symbol id must not match any built-in icon name (none, multiplier, person, people, points, time, shield, warning, lock, calendar, plus any other built-ins the renderer reserves). Shadowing is an error (NL.E0805). 17j. Duplicate symbol declaration ids within a single file are an error (same rule as duplicate status or label ids), reported as NL.E0810. 17k. A symbol reference (icon:NAME or capacity-icon:NAME) must resolve to either a built-in or an earlier symbol declaration. A name that is neither is NL.E0811; forward references are an error (NL.E0812).

Styles and content/rendering separation

  1. style: references on entities and labels must resolve to a style declared in the applicable config scope.
  2. Style property values must be valid for their type: color properties (bg, fg, text) must be named colors (including aliases grey for gray and violet for purple), hex values, or none; border must be solid, dashed, or dotted; shadow must be none, subtle, soft, or hard; font must be sans, serif, or mono; weight must be thin, light, normal, or bold; italic must be true or false; text-size, padding, spacing, header-height must be none, xs, sm, md, lg, or xl; corner-radius must be none, xs, sm, md, lg, xl, or full; bracket must be none, solid, or dashed; header-position must be beside or above; capacity-icon must be none, multiplier, person, people, points, time, a custom symbol id, or a double-quoted Unicode literal; timeline-position must be top, bottom, or both; minor-grid must be true or false; non-working must be hide or show (any other value is NL.E0800, one error per value). An invalid color is NL.E0801 and a value outside an enumerated key’s list is NL.E0802, in a style block or on a default line; a key in a style block that is not a style property is NL.E0803.
  3. Raw style properties (bg, fg, text, border, icon, shadow, font, weight, italic, text-size, padding, spacing, header-height, corner-radius, bracket, header-position, capacity-icon, timeline-position, minor-grid, non-working) may only appear in style blocks and default <entity> lines (both in config). Using them on any roadmap-section entity is an error (NL.E0804), including non-working on the roadmap line itself: write default roadmap non-working:show in config. The roadmap-only keys (header-height, header-position, timeline-position, minor-grid, non-working) are ignored on another entity’s default line, which draws the warning NL.W0703 (default item minor-grid:true); the file still validates. default roadmap takes them without a warning, and style blocks are not checked, since one block can be referenced by the roadmap and by other entities. When the roadmap’s resolved style (its default roadmap line, then the style of each label on the roadmap line with the first label winning, then its own style:, a later key winning) sets header-height:none together with timeline-position:bottom or both, no date strip is drawn at all, which draws the warning NL.W0704 on the timeline-position value. The check reads only styles and labels the file declares: a roadmap style: or label from an include could reset either key, so it stays silent then.

Defaults

  1. The first positional argument after default must be one of the supported entity types: item, label, swimlane, roadmap, parallel, group, milestone, footnote, anchor.
  2. Duplicate default <entity> declarations for the same entity type within a single file are an error. On include with config:merge, the parent’s default <entity> wins over the child (existing merge semantics apply).
  3. A default <entity> declaration that sets a banned property (see the “Banned on default” table) is an error. The error names the banned property, the entity type, and points to the table. wave is banned on every default <entity> line when the roadmap has waves; when it has none, the key draws the warning NL.W0702 instead (WV8 and WV9).

Dependencies

  1. after: and before: on any entity accept a single identifier, a single ISO date literal, or a bracketed list mixing both. Each non-date element must resolve to an item, milestone, anchor, parallel, group, or wave identifier declared in the same file (NL.E0302, Reference rule 1). A wave’s own after: is narrower: see WV4. 24a. Inline date pins are valid only on item, parallel, and group, and on a wave’s after:. An ISO date literal in after: or before: on milestone, swimlane, anchor, footnote, person, or team is a validation error (NL.E0411: “Allowed only on item, parallel, and group, and on a wave’s after:”). A wave’s before: is reported only by NL.E1105, never by NL.E0411. 24b. At most one inline date per direction. A list with two or more ISO date literals in the same after: or the same before: property is a validation error (NL.E0410). Mixing one date with any number of id references in the same list is allowed.
  2. Circular dependency detection operates on the full graph across all after:/before: references (including every element of list-form references). Inline date literals are not graph nodes and do not participate in cycle detection. A wave’s own after: edges are skipped: their targets are constants, so wave w2 after:gate together with milestone gate date:… after:w2 (the wave-deadline idiom) is not a cycle. Cycles that run through wave barriers are WV10.

Roadmap start:

  1. roadmap start: values are valid ISO 8601 dates (format YYYY-MM-DD, calendar-valid).
  2. If a file contains any anchor declaration, any milestone with a date: property, any item/parallel/group with an inline date literal in after: or before:, or any wave with an inline date literal in after:, the roadmap declaration must also declare start:. One error is emitted per offending dated entity (NL.E0412 for inline-date offenders).
  3. Every anchor date, every dated milestone’s date:, and every inline date literal in after:/before: (including a wave’s after:) must be on or after the roadmap’s start:. One error is emitted per offender (NL.E0413 for inline dates).
  4. If start: is present but fails the date-format rule, the two rules above are suppressed for that file — the user sees only the format error until they fix it.

Persons and teams

  1. A person may be declared at most once in the merged file scope. A declaration is identified by the presence of a title or any keyed property on the person line. Multiple declarations of the same person id (regardless of whether metadata matches) are an error that identifies both declaration locations.
  2. A bare person <id> inside a team denotes membership and is valid with or without a separate declaration.
  3. A bare person <id> at roadmap top level with no matching declaration anywhere is a no-op; the parser may emit a warning suggesting the author either add properties or remove the line.

Every include error is coded and reported on the path of the include line that names it, in the including file, so every surface reports it like a validator error (CLI exit 1): rules 1, 2, 4, 10, 11 and 14 to 16 below.

  1. include paths must resolve to an existing .nowline file relative to the including file’s directory. A path that does not end in .nowline, or a file that cannot be found or read, is NL.E0203; the message names the reason (not found, a directory, permission denied, not a .nowline file) and never the absolute path. The file is not read when its extension is wrong.
  2. No circular includes (A includes B includes A). Detected when a file appears in the currently-resolving stack, before that file is read again: NL.E0204 on the include that closes the cycle, with the chain.
  3. include declarations must appear before config and roadmap (after the nowline directive if present).
  4. Duplicate include of the same file in a single file is an error (NL.E0205). Diamond includes (same file via different parents) are valid — the file is processed once.
  5. config: on include must be merge, ignore, or isolate.
  6. roadmap: on include must be merge, ignore, or isolate.
  7. On config:merge, if a child config entry collides with a parent entry, the parent wins and the parser emits a warning with the source file path and shadowed name. A non-working or working declaration collides only with a parent declaration of the same keyword and name; an unnamed declaration never collides and always merges.
  8. On roadmap:merge, if a child entity collides with a parent entity, the parent wins and the parser emits a warning. Swimlane collisions also drop contained items.
  9. On config:isolate, style: references within the isolated file must resolve within that file’s own config. References to parent config are a validation error. Label, size, and status references are governed by roadmap:isolate, not config:isolate, because labels, sizes, and statuses are roadmap content.
  10. On roadmap:isolate, the included file must contain a roadmap declaration (needed for the region label; NL.E0206). A child that failed to parse (rule 13) is not checked.
  11. For any include whose roadmap: mode is not ignore (i.e. merge or isolate), if the child file declares a roadmap, the parent and child must agree on start:: both absent, or both present with identical values. A mismatch is an error (NL.E0207) reported on the parent’s include line. This is an explicit exception to rule 8’s “parent wins with warning” merge behaviour. start: defines the shared timeline baseline, so silently shadowing a child’s start: would cause rendered dates to drift from what the author wrote. roadmap:ignore is exempt because the child’s roadmap content is dropped entirely. A child that failed to parse (rule 13) is not compared: the parser may have lost its start:.
  12. For any include whose roadmap: mode is not ignore (i.e. merge or isolate), if the child participates (it declares a roadmap, has at least one swimlane, or declares at least one wave), the parent and child must declare the same waves: the same ids, in the same order, with the same resolved start floors. Floors are compared by the date they resolve to, not by how they are written (after:fy-budget and after:2026-02-02 agree when the anchor is on that date); a wave with no floor matches only a wave with no floor. Both directions are errors (NL.E0202), reported on the parent’s include line: a parent with waves and a participating child without them (its work would silently become background work), and a child with waves and a parent without them (its waves would vanish in the merge). Two files with no waves pass. Like rule 11, this is an explicit exception to rule 8’s “parent wins with warning” merge behaviour. Waves are barriers across the whole canvas, so a silently shadowed wave list would move every lane’s columns. When ids, order and floors agree, a differing title, style:, labels:, link:, or description is a warning (NL.W0701) and the parent’s definition is used. Each edge is compared against its direct parent, so by induction every file agrees with the root, and the check runs after all of a file’s includes, so include order does not matter. A vocabulary-only child (persons, teams, labels, sizes, statuses, anchors; no roadmap, no swimlanes, no waves) does not participate. roadmap:ignore is exempt because the child’s roadmap content is dropped entirely. A child that failed to read or to parse (rule 13), or whose waves lack ids (NL.E1100), is not compared.
  13. An included file must parse. An included file is parsed without validation, so resolveIncludes reports each of its lexer and parser errors itself: in that file, at the error’s line and column, with the same message and code that checking the file on its own gives, and an error fails the run like a validator error (CLI exit 1). This holds in every config: and roadmap: mode, roadmap:ignore included, since an ignored child’s config is still merged (and a file the parent names must stay valid on its own), and at every depth; a file reached through several includes is reported once. A file that failed to parse still contributes whatever the parser recovered, but the checks that read its declarations skip it (rules 10, 11 and 12, and Reference rule 1’s NL.E0302), so a lost roadmap or start: never surfaces as a second, misleading error. The root file’s own syntax errors are the validator’s.
  14. A caller can turn includes off (resolveIncludes’ includePolicy: { kind: 'disabled' }, the CLI’s --no-includes). Every include is then NL.E0209 and nothing is read. A file that names no includes is unaffected.
  15. A caller can confine includes to a root directory (includePolicy: { kind: 'rooted', root }, the CLI’s --include-root). Every include, at any depth, must be a relative path that resolves, symbolic links followed, to a file inside the root. An absolute path, a .. that leaves the root, or a symbolic link that points out of it is NL.E0208, and the file is not read. A file reached through two spellings (a symlink inside the root) is one file for rules 2 and 4, and diagnostics name it by its real path.
  16. An include chain is at most 16 includes deep (the root’s own includes are depth 1). A deeper include is NL.E0210 and is not read, so a chain the cycle check cannot see, such as a symbolic link to a directory that contains it, still ends.
  1. parallel must contain at least 2 children (items or groups). A single-child parallel is a warning.
  2. group must contain at least 1 child (item, parallel, or nested group).
  3. size, duration, and remaining are not valid on parallel or group (computed from children).
  4. parallel is valid inside swimlane or group. group is valid inside swimlane, parallel, or group.

These rules apply to files that use wave or wave:. A roadmap has waves when its file declares at least one wave with a valid id. Every wave rule has a stable diagnostic code; messages are listed in specs/waves.md § 6.4. WV1–WV9 run per file (and, through resolveIncludes, on every participating included file, which is parsed without validation); WV10–WV12 run over a layout scope (the merged main lanes, and each isolated region), so they see after: edges that cross merged files (each such edge is also NL.E0302 in the file that holds it, Reference rule 1); WV13–WV14 run on include edges. The WV numbers match specs/waves.md § 6.2, which also defines the layout insights WV16–WV18 (WV15 is retired).

# Rule Severity Code
WV1 A wave declaration has an explicit id. error NL.E1100
WV2 Wave ids share the global id namespace (Structural Rule 2). Across includes, a participating file’s explicit ids must not equal the root’s wave ids. error NL.E0300
WV3 A wave declaration does not take before:, date:, start:, length:, duration:, size:, capacity:, remaining:, or wave:. error NL.E1105
WV4 Each element of a wave’s after: resolves to an anchor, a milestone with date:, or (at most once) an ISO date. Rules 24b, 27 and 28 apply to the date. error NL.E1106
WV5 wave: appears only on item, group, and parallel. error NL.E1104
WV6 A wave: value is exactly one wave declared earlier (Value Rule 15): not a list of two or more, not undeclared, not declared below the referencing entry, not an id of another kind. error NL.E1101
WV7 A descendant’s wave: equals its container’s wave:. error NL.E1102
WV8 When the roadmap has waves, wave is banned on every default <entity> line. error Rule 23 message
WV9 When the roadmap has no waves, every wave: key is ignored. This replaces WV5–WV8 for the file. warning NL.W0702
WV10 The wave order can be realized: no member is forced to start at or after the end of its own wave. In every lane or group flow, assigned waves must not decrease, a block’s successor must not be in an earlier wave than any of its tracks, and no after: may name the item’s own wave, a later wave, or work in a later wave, directly or through a chain of other work. error NL.E1103
WV11 A before: that the wave structure guarantees can never be met (for example, work in wave 2 with before: an item in wave 1). Misses that depend on durations or dates stay the layout-time NL.I1003. warning NL.W1100
WV12 In a roadmap with waves, an after: or before: that layout ignores: a forward reference (to a later swimlane, or later in the same flow), a reference to the group or parallel that encloses it, or a reference to a floating milestone. A reference that closes an explicit cycle is left to rule 25. warning NL.W1101
WV13 Include wave agreement (Include Rule 12). error NL.E0202
WV14 An included wave’s presentation (title, style:, labels:, link:, description) differs from the parent’s. warning NL.W0701

WV10 reports one diagnostic per root cause, in one of five forms: sequence (a run of items placed after work in a later wave), join (an item after a parallel block with a track in a later wave), after-item, after-wave, and chain (a hidden route through background work, which the cycle check in rule 25 cannot see). An item with no wave never produces a diagnostic.

No duplicate diagnostics. wave never draws the generic unknown-property warning NL.W0700; a wave’s before: gets only NL.E1105 (never NL.E0411); an element of a wave’s after: that resolves to nothing gets only the “does not resolve” error (NL.E0302), and one that resolves to the wrong kind gets only NL.E1106. An invalid wave: value makes the item background work for the later rules, and a container’s wave wins over a conflicting descendant’s.

Layout insights (WV16–WV18). Three more codes come from layout, not validation: NL.W1002 (the barrier solver hit its pass cap; unreachable for valid input), NL.I1006 (one or more waves have no members), and NL.I1007 (a wave overruns a dated milestone whose after: names it). See specs/rendering.md “Waves”. NL.W1001 (a barrier moved an item’s date:/start: pin, WV15) is retired with item pins (see “Pinning is not supported”). Outside the wave rules, layout also reports NL.I1008 (info) when the date in an item’s after: falls on a non-working day under calendar:business and sets its start: the item starts on the next working day instead (see working-calendar.md §6).