kindgi judge-classes
kindgi judge-classes
Section titled “kindgi judge-classes”Synopsis
kindgi judge-classes <command>Manage judge classes, the weighted kinds of judge (list / add / set / remove).
Commands
| Command | Description |
|---|---|
kindgi judge-classes list |
List judge classes, newest first. |
kindgi judge-classes add |
Add a judge class: a named kind of judge with a weight, for the tenant, a project, or an agent. |
kindgi judge-classes set |
Change a judge class's weight, description, or who may assert it. |
kindgi judge-classes remove |
Retire a judge class: no new judgments may name it; existing ones keep it. |
See also
kindgi judge-classes list
Section titled “kindgi judge-classes list”Synopsis
kindgi judge-classes list [--tenant | --project=<id> | --agent=<id> --project=<id>] [--limit=<n>] [--cursor=<c>]List judge classes, newest first.
Options
| Option | Default | Description |
|---|---|---|
--agent <value> |
none | One agent, by id. Needs --project. |
--cursor <value> |
none | Resume after this cursor, from the previous page's nextCursor. |
--limit <value> |
25 (at most 100) |
The most classes to return (default 25, at most 100). |
--project <value> |
none | A project, by id. With --agent, the project the agent is in. |
--tenant |
off (with no scope flag, no scope filter is sent) | The whole tenant. |
Every command also takes the global flags.
Examples
List the judge classes of the whole tenant.
kindgi judge-classes list --tenantList the classes of one agent in a project.
kindgi judge-classes list --agent=acme-ops.reply-drafter --project=<project-id>See also
kindgi judge-classes add
Section titled “kindgi judge-classes add”Synopsis
kindgi judge-classes add --name=<name> --weight=<w> (--tenant | --project=<id> | --agent=<id> --project=<id>) [--description=<text>] [--min-reviewer-role=standard|senior|admin] [--principal-kind=user|service ...] [--principal-id=<id> ...]Add a judge class: a named kind of judge with a weight, for the tenant, a project, or an agent. The restriction flags limit who may assert it; without them, anyone who may judge the run may.
Options
| Option | Default | Description |
|---|---|---|
--agent <value> |
none | One agent, by id. Needs --project. |
--description <value> |
none | What the class is for. |
--min-reviewer-role <value> |
none (anyone who may judge the run may assert) | Only reviewers of this role or above may assert the class: standard, senior, admin. |
--name <value> |
required | The class name, e.g. expert. Required. |
--principal-id <value> |
none (no restriction) | Only this user or token id may assert the class. Repeat the flag for several. Repeatable. |
--principal-kind <value> |
none (no restriction) | Only people (user) or service tokens (service) may assert the class. Repeat the flag for both. Repeatable. |
--project <value> |
none | A project, by id. With --agent, the project the agent is in. |
--tenant |
off (a scope is required: --tenant, --project, or --agent with --project) |
The whole tenant. |
--weight <value> |
required | How much a judgment of this class counts, a number of 0 or more. Required. |
Every command also takes the global flags.
Examples
From Judge a run's output:
pnpm exec kindgi judge-classes add --name=expert --weight=3 --project=<project-id>pnpm exec kindgi judge-classes add --name=expert --weight=3 --tenant --min-reviewer-role=senior --description="Order desk leads"See also
kindgi judge-classes set
Section titled “kindgi judge-classes set”Synopsis
kindgi judge-classes set <judge-class-id> [--weight=<w>] [--description=<text>] [[--min-reviewer-role=standard|senior|admin] [--principal-kind=user|service ...] [--principal-id=<id> ...] | --unrestricted]Change a judge class's weight, description, or who may assert it. The restriction flags replace the class's whole restriction; --unrestricted lifts it.
Options
| Option | Default | Description |
|---|---|---|
--description <value> |
unchanged | The new description. |
--min-reviewer-role <value> |
unchanged | Only reviewers of this role or above may assert the class: standard, senior, admin. |
--principal-id <value> |
unchanged | Only this user or token id may assert the class. Repeat the flag for several. Repeatable. |
--principal-kind <value> |
unchanged | Only people (user) or service tokens (service) may assert the class. Repeat the flag for both. Repeatable. |
--unrestricted |
off | Lift the restriction: anyone who may judge the run may assert the class. |
--weight <value> |
unchanged | The new weight, a number of 0 or more. |
Every command also takes the global flags.
Examples
Change a class's weight.
kindgi judge-classes set <judge-class-id> --weight=5Limit who may assert the class to senior reviewers.
kindgi judge-classes set <judge-class-id> --min-reviewer-role=seniorLift the restriction.
kindgi judge-classes set <judge-class-id> --unrestrictedSee also
kindgi judge-classes remove
Section titled “kindgi judge-classes remove”Synopsis
kindgi judge-classes remove <judge-class-id>Retire a judge class: no new judgments may name it; existing ones keep it.
Options
Every command also takes the global flags.
Examples
Retire a judge class.
kindgi judge-classes remove <judge-class-id>See also