gatelineAPI reference

A work item as G1 carries it: the parsed file, and the file as a reference (#415).

interface G1WorkItem {
    acceptanceTests: string[];
    dependsOn: string[];
    fileContactSurface: string[];
    id: string;
    notes: string;
    path: string;
    ref: ArtifactRef;
    requirements: string[];
    scope: string;
    status:
        | null
        | "done"
        | "pending"
        | "in-progress"
        | "in-review"
        | "review-approved"
        | "verified";
    statusText: string;
    title: string;
    withheld: null
    | WithheldReason;
}

Hierarchy

Properties

acceptanceTests: string[]
dependsOn: string[]

Ids of items that must merge first, verbatim.

fileContactSurface: string[]

The declared file_contact_surface, verbatim and in declared order. Entries are whatever the architect wrote — repo-relative paths in practice, but the record also carries prose entries, and neither is normalized here.

id: string

The id: value — what depends_on elsewhere in the set refers to.

notes: string
path: string

Run-relative path, e.g. 'tasks/01-pr-ensure.yaml'.

The kind and the id its filename gives it — the name to use when id: is missing.

requirements: string[]

Spec requirement ids this task covers, verbatim and in declared order.

scope: string
status:
    | null
    | "done"
    | "pending"
    | "in-progress"
    | "in-review"
    | "review-approved"
    | "verified"

Null when the status cell is not a word the contract names.

statusText: string

The status cell verbatim — the record's word, not this parser's.

title: string
withheld: null | WithheldReason

Why no view may speak for this item, looked for in the item's own file (#424), or null.