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
| Default | Value |
|---|---|
| On by default | no: an entry turns it on |
| Fail mode | open |
| Timeout | 30000 ms |
| Events | PostToolUse |
| Tools | Bash, mcp__* |
| Agent types | every agent, or as its options set |
Options
| Option | Type | Default | Description |
|---|---|---|---|
defaults | object | — | The fields every project requires of an issue in progress (owner, description, estimate, sprint), each on unless switched off. |
projects | object | — | The fields single tracker projects require, by their key prefix, on top of the defaults. |
issueKeyFields | object | — | 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. |
overrideFile | string | — | 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',
},
],
});status-sync
The built-in Policy status-sync, 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.
codegraph
The built-in Policy codegraph, against a checkout that loads another checkout’s packages, a stale worktree, a full disk: its defaults, its options and a configuration that writes it.