gatelineAPI reference
interface ArtifactDescription {
    contract: null | string;
    contractName: null | string;
    family: ArtifactFamily;
    format: ArtifactFormat;
    id: null | string;
    kind:
        | "intent-brief"
        | "spec"
        | "plan"
        | "work-item"
        | "review-report"
        | "verification-report"
        | "release-plan"
        | "state"
        | "docs-delta"
        | "integration-profile"
        | "other";
}

Properties

contract: null | string

The contract template this artifact is checked against, as a filename under contracts/ — or null when it is checked for presence only. A validation's contract stays a filename: it is one.

docs-delta.md and integration-profile.md have contracts but are presence-only today; their kinds are known, and validating them is a separate decision from naming them.

contractName: null | string

The contract's own name for what it defines (work item, review report), or null for other.

id: null | string

The id the path gives the artifact, or null when the kind alone names it.

  • A work item: its filename stem (tasks/06-pages-workflow.yaml → 06-pages-workflow). On the contract's tasks/NN-slug.yaml grammar that is the task's id — the name depends_on, the task board and a review's header all use. Off the grammar (tasks/hotfix.yaml → hotfix) it is still a name: no slash, no extension. Null only for a file in a subdirectory of tasks/, whose stem is a path.
  • A review report: what follows review- in its filename (review-04.md → 04, review-03-round2.md → 03-round2). An opaque ordering token, not a fact about the review: the current engine harvests reports as review-<task NN>*.md, older runs numbered them by dispatch order, and neither is a round — rounds are sections appended inside one report. The authority on what a report reviews is its # Review Report: header, which the view-model reads (ArtifactRef.reviewOf).
  • Every other kind: null. There is one spec, one plan, one ledger per run.
kind:
    | "intent-brief"
    | "spec"
    | "plan"
    | "work-item"
    | "review-report"
    | "verification-report"
    | "release-plan"
    | "state"
    | "docs-delta"
    | "integration-profile"
    | "other"