gatelineAPI reference

What the pre-fold harvest needs to know about the dispatch it is rescuing (#184): which files the dispatch was allowed to touch, and who to commit as. For an implementer the surface is the task's file_contact_surface; for every other role it is harvestPathspecs — the role's own artifacts (#182), the same scope the shared-checkout harvest-commit used before #406 gave those roles a worktree of their own. Optional on foldTaskBranch so a caller with no dispatch context (the tests' direct fold) still folds — it simply harvests nothing.

interface TaskHarvest {
    identity: Identity;
    role?: string;
    round: null | number;
    slug: string;
    surface: string[];
    task: null | string;
}

Properties

identity: Identity
role?: string

The role that was dispatched; implementer when absent, the shape before #406.

round: null | number
slug: string
surface: string[]

Git pathspecs, used verbatim: a task's surface, or a role's artifact list.

task: null | string