Skip to Content
harness-kit

tracker-fields

The built-in Policy tracker-fields, against a turn that ends with failing lint, unsaved work or an incomplete hand-off: its defaults, its options and a configuration that writes it.

To learn what it guards against and see it at work, read the guide: Stop checks and hand-off.

Defaults

DefaultValue
On by defaultno: an entry turns it on
Fail modeopen
Timeout30000 ms
EventsPostToolUse
ToolsBash, mcp__*
Agent typesevery agent, or as its options set

Options

OptionTypeDefaultDescription
defaultsobject—The fields every project requires of an issue in progress (owner, description, estimate, sprint), each on unless switched off.
projectsobject—The fields single tracker projects require, by their key prefix, on top of the defaults.
issueKeyFieldsobject—The field of an MCP write tool's input that names the issue it wrote, by tool name or a prefix ending in * ({ "mcp__linear__*": "id" }); the most specific entry wins, issueIdOrKey without one.
overrideFilestring—A user-level JSON file of the same form (~/ is the home folder) deep-merged on top, so a person may switch a field off for themselves.

Example

A configuration that writes every option, a comment above each:

import { defineConfig } from '@microeinhundert/harness-kit';

export default defineConfig({
  // The Policy entries, in the order their Decisions merge in.
  policies: [
    {
      // The Policy's name, unique in the configuration; messages and logs name the Policy by it.
      id: 'tracker-fields',
      // The constructor's options, which it decodes.
      options: {
        // The fields every project requires of an issue in progress (owner, description, estimate,
        // sprint), each on unless switched off.
        defaults: {
          // Whether an issue in progress must have a description.
          description: true,
          // Whether an epic or another parent issue in progress must have an owner.
          epicOwner: true,
          // Whether an issue in progress must have an estimate.
          estimate: true,
          // Whether an issue in progress must have an owner.
          owner: true,
          // Whether an issue in progress must be in an active sprint.
          sprint: true,
        },
        // The fields single tracker projects require, by their key prefix, on top of the defaults.
        projects: {
          OPS: {
            // Whether an issue in progress must have a description.
            description: true,
            // Whether an epic or another parent issue in progress must have an owner.
            epicOwner: true,
            // Whether an issue in progress must have an estimate.
            estimate: true,
            // Whether an issue in progress must have an owner.
            owner: true,
            // Whether an issue in progress must be in an active sprint.
            sprint: true,
          },
        },
        // The field of an MCP write tool's input that names the issue it wrote, by tool name or a
        // prefix ending in `*` (`{ "mcp__linear__*": "id" }`); the most specific entry wins,
        // `issueIdOrKey` without one.
        issueKeyFields: {
          'mcp__linear__*': 'id',
        },
        // A user-level JSON file of the same form (`~/` is the home folder) deep-merged on top, so
        // a person may switch a field off for themselves.
        overrideFile: '~/.config/harness/tracker-fields.json',
      },
      // The name of the kit's Policy constructor that builds the Policy.
      use: 'tracker-fields',
    },
  ],
});

On this page