Tags¶
A tag says what a turn's cost was for. This page explains how tags behave: which keys OpenALR reserves, which hold one value and which many, how the tags in force carry from one turn to the next, and what the tag checks do. For the steps to set, switch, and move tags, see Tag Your Work.
What a Tag Is¶
A tag is text of 1 to 128 characters: letters, digits, and the characters :,
_, ., and -. Tags are case-sensitive. The text before the first : is the
tag's key, and the rest is its value: project:ACME-2026-14 has the key
project. A tag with no : is a free tag and has no key.
/alr-tag refuses a tag that does not fit. In ALR_TAGS or a .alr-tags file
it is dropped, with a note that names it, and the rest still apply. A tag
travels with every record it is stamped on, so keep secrets and personal details
out of tags.
The Reserved Keys¶
Five keys have a meaning of their own. A record never carries two values of the same reserved key.
| Key | What It Says |
|---|---|
project: |
The job the money is spent on |
task: |
One planned piece of that job; the plan's budget and acceptance belong to it |
client: |
Who the work is for |
cost_center: |
Whose budget pays for it |
work_type: |
The kind of work, across tasks (the starter values are plan, build, test, review, docs, support, and research) |
Adding a new value of a reserved key replaces the old value: after
/alr-tag add task:ACME-2026-14:build-api, the session no longer carries
task:ACME-2026-14:design. If two layers (below) each supply a value, the
higher layer wins, and OpenALR says once which value replaced which. The rows of
alr summary --by project, --by task, --by client, --by cost_center, and
--by work_type each put a turn under exactly one value, so they add up to the
total.
Reports and plans key on these five. The journal export and the general-ledger
mapping use project, task, cost_center, and client; work_type is a
reporting dimension only.
One Value or Many¶
| Kind of Key | Values per Record | Examples |
|---|---|---|
| Reserved | One | project, task, client, cost_center, work_type |
effort: |
One | effort:ACME-26-C-1201, effort:overhead:training |
| Any other key | As many as you add | phase:, ticket:, team: |
Free tag (no :) |
As many as you add | urgent |
effort:is an accepted tag for tools that already write it. It holds one value, and its value must have one of two shapes: an effort id such asACME-26-C-1201(a name of 2 to 16 capital letters and digits starting with a letter, a two-digit year,CorH, and four digits), oroverhead:and a class. Plans do not use it.phase:is an ordinary tag. Use it to group tasks into the phases of a project. It holds as many values as you add and has no rule of its own.task_classis not a tag. It is a field of the record, set with/alr-ctl config task_class. Atask_class:tag is refused.
Your Own Keys¶
Any key that is not reserved is yours. It can hold several values at once, and
nothing checks its values. Remove one value with /alr-tag rm ticket:ACME-412,
or every value of the key with /alr-tag rm ticket:. Use your own key for
anything below a task, such as a ticket or a step. Do not add a step to the
task value: task:ACME-2026-14:design:step2 is a different task and matches
nothing in your plan.
alr summary --by tag shows one row per tag, so a turn with two tags appears in
both rows. Those rows overlap and are not meant to add up; the total row counts
each turn once.
How Tags Carry From Turn to Turn¶
The tags in force are built from layers, lowest first:
- The
default_tagsof the repository's project file, and the repository's.alr-tagsfile. A repository's layer keeps only free tags and tags keyedproject:,task:,client:, andcost_center:. - The
default_tagsof your own user config. - The
ALR_TAGSenvironment variable. - The session's own tags, set with
/alr-taginside the session.
For a one-value key, the highest layer that sets it wins. /alr-tag rm of a
tag from a lower layer hides it for this session only. See
Configuration for how each layer is found and what a
repository may set.
Each turn takes the tags in force when the turn started, and the record carries
them. So a change you make with /alr-tag applies from the next turn on, and
the turns before it keep what they had. The session's tags are saved with the
session and survive a resume and a compaction. A new session starts from the
layers alone.
Tags apply to turns going forward. To change the tags of turns already done, move a tag, which adds lines and never edits a record (see Records and the Audit Trail).
On headless Grok Build and the Anthropic SDK there is no in-session command. Set
tags there with ALR_TAGS or a .alr-tags file in the project directory.
Tag Checks¶
OpenALR can check the values of four reserved keys against what your organization expects:
| Key | Checked Against |
|---|---|
task: |
The tasks of its project's issued plan. Only judged when there is a project: tag and an issued plan for it. |
client: |
Your alr-clients.csv list and the clients setting. Only checked where a list exists. |
cost_center: |
Your alr-cost-centers.csv list and the cost_centers setting. Only checked where a list exists. |
work_type: |
The starter values and the work_types setting. |
project: and your own keys are never checked.
The tag_checks setting says what a failed check does:
"warn"(the default, on every profile): the tag is accepted and one line says(warning: ...; accepted)."refuse": the tag is refused, nothing is written, and the message names a code:task_not_in_plan,work_type_unlisted,client_unlisted,cost_center_unlisted, or, where a list file has a problem,client_list_problemorcost_center_list_problem.
A warning or a refusal names the key and never the value you typed.
Only your own (or your organization's provisioned) user config sets
tag_checks and the work_types, clients, and cost_centers settings. A
repository's project file may tighten
tag_checks from "warn" to "refuse" and may add values to the lists, never
the reverse, and under the managed profile it may do neither. See
Configuration.
Every form that adds a tag is checked. That is /alr-tag add, set,
move, and the numbered pick from the /alr-tag listing, a plain
alr tag TARGET TAG (on one request or a whole session), and alr tag --move.
For a move, the new tag is checked, on past turns and with from-now alike.
Removing is never checked. /alr-tag rm, alr tag --remove, the old tag of
a move, and /alr-tag undo (which only puts back tags the session already held)
write nothing that could fail a check.
A separate setting, required_tags, lists keys that every record should carry.
It only reports: alr summary and alr check count the records that lack one
and never drop or refuse a record. See
Configuration Keys.
Where to Go Next¶
- Tag Your Work: set tags before work starts, switch them as work changes, move a tag on past turns, and read the cost by key.
- Plan a Project: how a plan names its project and tasks by tag values, and how to set your client, cost center, and work type lists.
- Slash Commands: every
form of
/alr-tag.