gatelineAPI reference
interface LexiconEntry {
    artifact: string;
    body: string;
    definition: string;
    id: string;
    kind: LexiconKind;
    line: number;
    qualifier?: string;
    shortName: string;
}

Properties

artifact: string

Run-relative path of the defining artifact ('spec.md' | 'plan.md').

body: string

What a human-facing card or footnote shows under a header that already names the id: the definition minus its defining marker — and for decisions, just the **Choice:** line (the decision in force; the Rejected/Consequences argument stays behind the click-through). Falls back to the full block body when no Choice bullet exists. Derived by elision only — never rewording.

definition: string

Verbatim definition block: the heading or list item through the end of its body. A requirement's block stops before its acceptance-criteria list — criteria are first-class entries of their own, and a card that repeats them renders the same content twice.

id: string

'R5' | 'AC10.2' | 'ADR-8'

line: number

1-based line where the definition starts.

qualifier?: string

Parenthetical heading qualifier, e.g. 'amended 2026-07-13, G1 decline'.

shortName: string

Heading title for requirements/decisions; '' for criteria.