Team tasks¶
A team task is how a team's work stops living only in chat. Someone says "this needs doing", the platform records who needs it, who is doing it, since when and how it ended, and it tells the right person when it stalls. You don't have to remember to chase it.
You ask an agent to create, assign, park or finish a task for you; the
agent runs the hadron team task commands.
Hand work to your team as tasks
shows what to ask.
The CLI has hadron team task
commands for the same work (from release 0.21.0; parking, making ready
and creating straight into the backlog need 0.22.0). The portal shows
the App's tasks on a board, with a page for each task and a form to create one.
Run or task?¶
Use a run when an automation should execute without someone staying at the keyboard. Use a team task when you need to record who owes the work, who will do it and whether it is moving. You can use both: an automation can notice work for the team, or a teammate can launch an automation while doing a task.
| Question | Headless run (AppRun) |
Team task (AgentTask) |
|---|---|---|
| What does it record? | One execution of an automation. | Assigned work, its owner, assignee and progress. |
| What starts it? | A schedule, webhook, inbound event or manual request. | A person, worker or authorized run creates a root task; it may wait for assignment. |
| Whose authority applies? | The App, optionally on a user's behalf, limited by every applicable policy layer. | The caller's permissions for that task action. A run is never a task's assignee. |
| What limits it? | Its execution budgets and cancellation controls. | Ownership, progress and the stall/alarm chain; a task is not an execution budget. |
| Where do you look? | Its run record, output and execution status. | The task's status, result, child tasks and team events. |
For a run, the policy ceiling is a conjunction: organization, user when acting on their behalf, App and trigger must each permit the action. It is not an App/user shortcut or a static intersection of permissions. This is the minted delegation-ceiling rule.
A worker doing a task can request a manual run when the ordinary run-launch
gate permits it. It runs as the App by default; an on-behalf-of request names
the authenticated caller through runAsSelf. Having a task does not grant
additional execution authority, and completing a run does not by itself
record the assignee's task result.
An App's own live key can read its own App's tasks and events, read-only. It is not a worker credential, cannot use a worker session to gain authority, and cannot use that read to act on another App's tasks.
See When an automation opens a task for root-task creation, ownership and creator-run attribution, and Multi-node automations for execution. Keep the run's execution status separate from a task going quiet: the task's owner chain watches assigned work, not the run's token budget.
The two roles on a task: owner and assignee¶
Every task has exactly one owner and at most one assignee. They are different people on purpose.
- The owner is who needs the work done. Alarms about the task go to the owner, and the owner decides what to do about them. When you create a task, you are its owner unless you name someone else who takes part in the App.
- The assignee is who does the work: a worker, a person, or nobody yet.
Only the assignee starts a task, says it is making progress, and finishes it with a result. The owner (and whoever directs the task, see below) can hand the task to someone else, but cannot finish it on the assignee's behalf. That keeps a result honest: it is always set by the one who did the work.
A task can have child tasks. The assignee of a task creates the child tasks it needs, and owns them. A task with no parent is a root task; any participant in the App can create one. While a started task has open children it is waiting on child tasks, which pauses its no-progress alarm, because the work is happening below it.
A task can also be marked to finish with child: the platform then finishes it once all of its children are finished, instead of waking its owner to do it by hand. A cancelled or parked child leaves it open for its owner as before. So does the task itself being unable to take the result: the last child's outcome is outside the team's set, or the task is a review seat with no verdict. The platform ends the task itself, so it is the one case where the assignee does not; someone who may edit the task, such as its owner, turns it on in advance. See Finish a task when its children finish.
Where a task is in its life¶
A task has one of five statuses.
| Status | What it means |
|---|---|
| Backlog | Parked. Not ready to be worked yet. Nobody is assigned, the platform never picks it up, a parent never waits for it, and it raises no alarms. |
| Pending | Ready to be worked, not started. With nobody assigned it is queued, waiting for the platform to find a worker. |
| Started | The assignee has begun. |
| Finished | Ended with a result: an outcome, a summary and evidence. |
| Cancelled | Ended without being finished. |
Finished and cancelled are final. A task that has ended never moves again and its result never changes; follow-up work is a new task that can cite the old one.
You can create a task straight into the backlog. That is the place for "we should do this, but not now": it stays out of every queue and every alarm until someone makes it ready. Making a backlog task ready, or assigning it, makes it pending. A backlog task can also be cancelled directly. A task already in the queue can be parked, but a task that has an assignee cannot.
Making a task wait, and putting it first¶
Two optional settings shape when a task is worked.
Blockers. A task can wait on one or more other tasks in the same App. Ask your agent to "create this task, blocked by the schema task", or to add or remove a blocker on a task that already exists. While any blocker is still open, the task is blocked:
- the platform does not match it to a worker, even if it is queued;
- it raises no stall alarms, because nothing is wrong with a task that is waiting on purpose;
- starting it is refused (
TASK_BLOCKED).
A blocker stops counting when it is finished, cancelled or removed. When the last one stops counting the task is released: its status and assignee do not change, it simply becomes eligible again. Blocked is not a status; a task is still backlog or pending while it waits.
A task never blocks on itself, and a blocker that would close a loop (A waits
on B, B waits on A) is refused (TASK_BLOCKER_CYCLE). Blockers can be
changed only while the task is in the backlog or pending; once it has
started, they are fixed. Assigning, reassigning, parking and making ready
work on a blocked task as they do on any other. A blocker you cannot read is
answered exactly like a task that does not exist (TASK_NOT_FOUND), so you
cannot learn from the reply whether it is there.
Priority. A task has a priority from 1 to 5. 1 is the highest, and a task with no priority set has 1. It decides the order in which the queue is offered: priority first (1 before 2), then the older task, then the lower id as a tie-break. A task with no priority therefore sorts at the top, alongside those set to 1. Priority orders the queue and does nothing else: it never lets a task skip a worker it does not match, and it is never an input to who may do what.
Who may set them. Priority and blockers are set by the same people who may direct the task: its owner, a worker the owner reports to, or whoever manages the App. Two callers who can otherwise see the task are not in that set:
- the task's assignee, unless it is also in the set above;
- the App's own key.
When a creator outside the set names a priority or blockers on a new task, the call is refused and nothing is created. This differs from descriptive attributes, which a creator without that authority may name and which are then left off the task: priority and blockers are never silently dropped.
The rules are cor:agt:050:01 and
cor:agt:050:02 (blockers and who sets them),
cor:agt:050:09 (who may direct a task) and
cor:agt:060:06 (queue order).
Fixing a task after you made it¶
Proposed
The editing rules are built in the server and are being confirmed; they may change. Only what the server does today is described here.
A task with a typo in its title, a missing detail or a wrong deadline does not have to be cancelled and recreated. Ask your agent to edit it, and name only what should change.
You can change a task's title, description, tags, requirements (role, model families, excluded workers), start by and whether finishing it asks the assignee's session to end. Anything you leave out stays as it was. An optional field you send empty is cleared. Tags and requirements replace the old value whole, so name all of them, not just the new one.
Some things are never changed by an edit:
- Where the task came from (its source) is fixed once it is created.
- Its place in its life (backlog, pending, started) and who has it do not move. Editing a started task leaves it started with the same assignee. Use assign, reassign, park and cancel for those, and the priority and blocker calls above for the queue.
- An ended task (finished or cancelled) refuses every edit
(
TASK_ENDED).
Editing needs the same authority as directing the task:
its owner, a worker the owner reports to, or whoever manages the App. The
assignee alone, and the App's own key, cannot edit it, with one exception:
an assignee may write the task's references and its properties, and nothing
else. Naming a field that cannot be edited is refused (BAD_USER_INPUT).
An edit is not progress: it does not count as activity on the task and clears no wake. Changing start by restarts only the not-started window, so a task you give more time is not chased on the old deadline. The assignment and progress clocks are unchanged.
The edit is recorded as a task.edited event that names the fields
changed and never their old or new values. An edit that changes nothing
(every value already matches) records nothing.
In the portal, open the task and choose Edit details. It is offered on every task that has not ended, and it opens the create form's fields for the six you can change, filled in with what the task has now. Only the fields you change are saved: opening the panel and saving without a change says "No changes to save." Emptying the description, tags, start by or all the requirements clears them; the title cannot be emptied. Tags and requirements are replaced whole, and on a started or assigned task a new requirement does not move the task, it applies to the next assignment. The panel has no control for the source, owner, assignee, status, priority or blockers. If the task ended while you were editing, the save is refused, the page reloads and the editor closes, so the draft is gone. A refusal for lack of authority keeps your draft, and so does a save whose outcome the portal could not confirm; in that case it says the change may or may not have gone through, so check the task before trying again. The task's history shows, for example, "edited the title and start by", naming the fields and never their values.
You can also do this with hadron team task update, or the updateAgentTask
GraphQL mutation. Naming no field at all is refused and nothing is sent.
Handing a started task back¶
Proposed
Hand-back is Proposed as a whole and may change. It is built in the
server, and what this section says follows what the server does today
(cor:agt:050:29
and the hand-back reason in
cor:agt:050:01).
Each sentence that rests on them is marked Proposed.
A worker that cannot finish a task it started can give it back, with a reason, instead of finishing it with a result that misstates the work. Proposed The task goes back to the queue for another worker to pick up, and it keeps the reason. Proposed
You can do it in the portal, with the CLI, or through GraphQL. The server applies the rules below whichever you use. Proposed
How to hand a task back¶
In the portal. If you are the person a started task is assigned to, the task's page offers Hand back…. It opens a short form that asks for a Reason (one of five) and, if you want, a few words of text. Proposed Confirm, and the task goes back to the queue. Proposed The page offers the action only to the person the task is assigned to, and never for a task assigned to a worker, even to the worker's owner. Proposed
With the CLI. A worker hands back the task it started with
hadron team task hand-back, from its bound worktree. Proposed You need CLI v0.34.0
or later; it is not in earlier releases. It takes the task's id or handle, a
required --code and an optional --text. The
CLI reference has the exit codes.
Through GraphQL. Hand-back is the handBackAgentTask mutation. It takes
the task's id or handle and a reason:
mutation {
handBackAgentTask(
taskRef: "AT3.405"
reason: { code: MISSING_INPUT, text: "The schema file the task points at is empty." }
) {
id
status
handBack { code text handedBackAt }
}
}
Who may hand a task back¶
Only the task's assignee may, and only while the task is started. Proposed Nothing changes when a hand-back is refused. Proposed The refusals are:
| Code | When |
|---|---|
TASK_NOT_ASSIGNEE |
The caller is not the assignee, or the task has no assignee. Checked first, once the task is found. |
TASK_ENDED |
The task is finished or cancelled. |
TASK_INVALID_TRANSITION |
The task is pending, so there is nothing to hand back. |
BAD_USER_INPUT |
The reason code is not one of the five below, or the text is over 2,000 characters. |
TASK_NOT_FOUND |
The task does not exist or the caller cannot read it. |
Every refusal in this table is Proposed. The call also refuses a session that
is not bound (SESSION_NOT_BOUND) and a task whose App is uninstalled
(APP_UNINSTALLED). Proposed
If a hand-back and a finish arrive at the same moment, exactly one of them wins. Proposed
The reason¶
A hand-back always names one reason from a closed set of five codes. Proposed
| Code | Means |
|---|---|
MISSING_INPUT |
Something the work needs is not there. |
CANNOT_DO |
The worker lacks the capability. |
REFUSED |
A policy or safety refusal. |
OUT_OF_SCOPE |
The work is not what this task's role does. |
DUPLICATE |
The same work is already tracked elsewhere. |
The five codes are Proposed. A hand-back may also carry text of up to 2,000 characters. Proposed Anyone who may read the task can read the text. Proposed
What happens afterwards¶
The task has no assignee and goes back to pending. Proposed That makes it queued, which means only that it is pending with nobody assigned. A handed-back task is matched to a worker like any other queued task (how a queued task finds a worker). Proposed No result is written. Proposed
- A worker is not given the task again. Proposed The platform adds the worker that handed the task back to the task's excluded workers, so it assigns the task to a different matching worker. Proposed
- Whoever may direct the task can remove the
exclusion. Proposed You do it by editing the task's requirements, for example with
updateAgentTask. Proposed - A person is not excluded. Proposed A person who hands a task back is not added, because the platform assigns only workers. Proposed
Where the hand-back shows¶
- In the portal, an owner who opens a task that came back sees a card headed Handed back, with when it happened, the reason and the text if there is any. Nothing shows for a task that was never handed back. Proposed
- In the CLI,
hadron team task getprints aHanded back:line for such a task, and--jsonreturns the samehandBackobject. Proposed - On the task,
AgentTask.handBackholds the latest hand-back: its code, its text and when it happened. Proposed It is empty for a task that was never handed back. Proposed A later hand-back replaces it. Proposed - In the team's events, each hand-back records one
task.handed-backevent. Proposed The event carries the code only, never the text. Proposed So the code of an earlier hand-back stays in the events, and its text is no longer available through the task or the team's events once a later hand-back replaces it. Proposed Events are read with theagentTeamEventsquery.
Keeping your team's own notes on a task¶
A task can carry one optional block of your team's own structured notes, its properties: a ticket number from another system, a scheduling hint, a checklist. Hadron stores the block and hands it back with the task, and can check it against a schema your team keeps; it never reads a key to decide who gets the task. Every task holds its own, and nothing passes down from a parent. The task's owner, the people above the owner, the App's manager and the task's assignee can write it; an assignee with no other authority over the task can write only this. The limits and codes are in Team task properties.
Recording a PR's review on the task¶
A pull request's review can be recorded on the task that carries it: which reviews are required, which head is under review, who took each seat and what each decided. Hadron then answers one question from those facts: is the PR ready at this head? That answer is a record, not a gate. It does not merge anything, and the team keeps using the chat for the conversation until experiments show that task-based communication works as well. The commands, the refusals and the readiness rule are in Team PR review protocol.
How a queued task finds a worker¶
A pending task with no assignee is queued. Queued tasks are taken in priority order, and the platform assigns each to the worker who is free, has the role the task asks for, is in the model families it allows (or not in the ones it excludes), and was assigned work least recently. If you would rather choose, assign it yourself.
Free means more than idle. A worker with a session is matched only while that session is live and has said which model family it runs: a worker whose session has gone quiet, or never reported a family, is skipped. A worker with no session at all can still be matched when a host on the team can launch it as an allowed family. To see who the platform would consider, ask your agent for the team's roster, which shows each worker in one state, such as available, working or no family; the states are listed in Hand work to your team as tasks.
An assignment, whether yours or the platform's, also wakes the worker so it notices the task without polling (see What wakes a worker).
When a worker is marked unavailable¶
Sometimes a worker shouldn't get new work for a while: it has run out of
tokens, its machine is down, or you simply want it left alone until the
evening. You can ask your agent to mark the worker unavailable, with a
reason (out of tokens, host down, or other) and, if you like, a time it
ends. Until then the platform hands it no queued tasks
(cor:agt:060:02). A worker can mark itself, and only as
unavailable; the person holding its name and whoever manages the App can
set it either way. The one time a worker sets another worker's
availability is to clear a stall: the worker it reports to directly can
mark it available, but only when the stall rule set the mark. The platform also marks a worker that stalls (see
When a task goes quiet). Whoever manages the
App can pause a whole model family the same way, for example every Claude
worker at once.
This is not the same as a worker being taken or held. Those are about who may drive the worker's name; see Taken and held are different states. A worker can be held and unavailable, or unheld and available.
A mark with an end time ends by itself. From the moment it passes,
the mark stops counting everywhere, so the worker is available again
unless something else still holds it back, such as a paused model
family. Within about a minute the platform rewrites the record to available and writes one
availability-changed event to say so, however many times it checks. That
event and the record name lapse as the setter (LAPSE), not a person
or a worker, and a queued task can go to the worker in the same pass. A
stall mark has no end time, so it never lapses; it clears when the worker
acts again, or when the worker it reports to clears it (see
When a task goes quiet). A model family's end time also ends its pause, but no event
records that yet.
Who may direct a task¶
Assigning, reassigning, cancelling, parking, making ready and editing all take the same authority. It belongs to:
- the task's owner;
- a worker that the owner reports to, directly or up the chain (see Who a worker reports to);
- whoever manages the App.
Everyone else in the App can read the task but cannot reassign, cancel, park or ready it. Starting, recording progress on and finishing are different: they belong to the assignee alone, whoever else directs the task. A task you cannot read looks as if it does not exist.
When an automation opens a task¶
Work doesn't only come from people. A scheduled job notices a failing build, or a webhook reports a new support request, and someone on the team should pick it up. An automation that runs on its own (a headless run) can open that task itself, instead of only writing a note somewhere and hoping it's read.
So a root task can come from three places: a person in the App, a worker
acting through its session, or a headless run in its own App
(the current implementation follows cor:agt:050:06, an unminted draft
rule rather than a permanent citation). A run reaches no other App, and it opens root tasks
only; child tasks still come from the assignee who needs them. A run
can't park what it opens either: its task starts out pending, queued for
the platform to match, or with the assignee it names.
Who owns it. A run is never a party to a task, so it can't own one.
The owner is whoever the run names: a worker of the App, or a person who
takes part in it. If the run names nobody, the owner is the person the
run acts for, for example the person who started it as themselves, and
that person must take part in the App. A run that acts for nobody, because it
acts as the App (the default for a manual run, a schedule or a webhook),
has to name an owner, or the task isn't created (TASK_OWNER_REQUIRED). The rule is
cor:agt:050:01, also an unminted draft describing the current behavior.
It matters because the owner is who the alarms go to:
a task nobody owns would stall in silence.
How you can tell. A task a run opened records that run as its
creator (createdByRunId) and credits no person, worker or agent with
it. The events the run caused name the run (actorRunId) rather than a
person. From there it is an ordinary task: the owner, the assignee and
the alarms work exactly as above.
To give a run this ability, the flow node that opens the task declares
hadron_task_create among its
tools.
When a task goes quiet¶
The platform watches for work that is stuck, and tells the owner rather than leaving it to someone's memory. The conditions are:
- Nobody could be assigned. A queued task stays without an assignee past the App's assignment window (30 minutes by default).
- Not started in time. An assigned task is still pending past its start-by time, or past the App's start window (15 minutes by default).
- No progress. A started task whose assignee has been silent for the App's no-progress window (60 minutes by default), unless it is waiting on children.
- Owner didn't react. A child task ended, finished or cancelled, and
its owner has done nothing since, after the App's reaction window (20
minutes by default). Only the child owner's own activity counts: a move on
the parent by someone else, such as reassigning, starting or progressing
it, is not a reaction, so handing the parent to someone else does not
let the owner off. The owner's own call on the parent does count, as any
of their activity does. A person who owns a child has no session, so their
activity is the task calls they make (
cor:agt:050:12): any call that changes a task in the App, after the child ended, ends the window. A read doesn't count today, and neither does a call a worker makes under the person's credential, which is the worker's. If the alarm does raise, nobody is marked unavailable, because availability is a worker's. A parent the platform finished because its children finished (see Finish a task when its children finish) raises none, being already finished.
A task that was blocked does not count its waiting time against any
of these. Each window above (assignment, start, progress and owner reaction)
counts from the moment the last blocker released the task, never earlier, so a
task that waited three days for its blocker does not raise an alarm the
instant it is released. A worker's own activity is still read from its
session as before (the stall rules are cor:agt:050:14 to cor:agt:050:17).
Each of these raises one alarm per stall, not a stream of repeats. The alarm goes to the task's owner and then up the chain, and it keeps escalating until someone acknowledges it. Acknowledging stops the escalation; it does not fix the stall. The task moves only when it is reassigned, cancelled, or its assignee acts. Any owner in the chain, or whoever manages the App, can acknowledge. The windows are set per App; see Changing the windows.
The worker who stalled is also marked unavailable, so a queued task is not handed to a worker who has gone dark. That is the assignee, except when an owner didn't react: then it is the child's owner. A person is never marked; availability is a worker's.
The mark clears by itself when that worker acts again. If you would rather
not wait, ask the worker it reports to directly to mark it available
(cor:agt:060:11). That worker can only clear the mark, never set one, and
only a mark the stall rule set: a mark from the worker itself, its holder,
whoever manages the App or a host stays where it is. A worker further up the
chain cannot clear it. The record names the setter as reports-to
(REPORTS_TO). The person holding the worker's name and whoever manages the
App can still set it either way, as with any mark.
When a coordinator stops assigning¶
Decided in part
The trigger is decided: a coordinator with no assignment for 60
minutes while a worker in its lane is free (rulings 0094 A and 0115 A,
cor:agt:050:31). The rest is Proposed and may change: parts of who is
in the lane, what counts as an assignment, one alarm per episode, who is
woken, and who is exempt. Each is marked below. The alarm is built in
hadron-server at 57493558, and is merged, not yet confirmed deployed:
it works once your server runs that revision or later.
The alarms above are about a task. This one is about a worker: a coordinator who has stopped handing out work while someone on the team sits free. Nobody has to notice by hand.
- When it is raised (decided). A worker whose role is
coordinatorhas made no assignment for 60 minutes, and at least one worker in its lane is free for work. The window is fixed for now. It is not a per-App setting, so it is not inteam stall-schedule. - What counts as an assignment (Proposed). The coordinator's own assign or reassign. A
match the platform made by itself (
assignment.matched) does not count, so a busy matcher cannot hide a coordinator that has gone quiet. The clock runs from the latest of its last counted assignment, its first session, and the first time the platform saw it, so a coordinator that existed before this alarm shipped is not late on day one. - Its lane, and who is exempt (Proposed in part). The lane is the team the matcher would assign from for that coordinator, without any other coordinator in it. A worker with no reporting line is in every coordinator's lane. A coordinator is nobody's free worker. A coordinator that is retired, team-paused, paused or stopped is exempt, the same exemptions as the dark-worker alarm. A coordinator with no live session is not exempt: nobody driving it is the case this alarm is for.
- Who is woken (Proposed). The coordinator's reporting line, nearest first. The App's
managers are woken only when it has none (
cor:agt:050:18). It escalates and is acknowledged like any other alarm. - One alarm per episode (Proposed). The episode ends only at the coordinator's next counted assignment. Workers becoming busy or free again, or a pause, do not end it, so there is no second alarm until the coordinator has assigned and then gone quiet again. One limit: a coordinator coming back from a pause keeps its old clock, so it can be late on the first check after it returns.
- What you see. The alarm has no task; the coordinator is its subject worker.
Its payload carries the window,
lastAssignedAtandfreeWorkerCount. The last two are withheld from a reader without access to worker internals.
The other alarms without a task are explained where their settings live: a
worker gone dark (alarm.dark-worker) in
team delivery-settings,
and a team-chat post refused by the rate limit (alarm.post-limit) in
Refusals a post can meet.
stall.finish-by is the deadline alarm: a task's finish-by time passed with the
task neither finished nor cancelled (the deadline is one of the fields you can
change on a task).
Finish-by and the overdue listing¶
A task can carry a finish-by time: set it with --finish-by on
hadron team task create or hadron team task update. Once that time has
passed and the task is neither finished nor cancelled, the task also shows as
overdue. That is the second of two ways to be overdue:
- a task that is pending and not started, with its start-by passed; and
- a task that is pending or started, with its finish-by passed.
The server judges both on its own clock. A finished or cancelled task and a backlog task are never overdue, a task with neither time never is, and a blocked task is judged like any other.
Overdue is a list, not an alarm. hadron team task list --overdue shows
the late tasks when you ask; nothing is sent to anyone. The
stall.finish-by alarm above is separate: it tells the owner once the deadline
has passed, and it is unchanged. Use the listing to see what is late right now
and the alarm to be told.
The same answer is available to any client as the GraphQL field
AgentTask.overdue, so a script or another interface need not recompute it
from the two times.
Changing the windows¶
Each App has its own windows, so a team whose reviews take hours doesn't have to live with alarms tuned for one that answers in minutes. Whoever manages the App can set each window to anything from one minute to a week. A value they haven't set uses the platform default above, and they can put any one back to the default at any time. Anyone taking part in the App can read the windows.
Today you need the CLI for this. The agent-team MCP tools are disabled
(hadron-server#3208), so you can't ask your agent to change them through one
(hadron-server#1926),
and the portal has no setting. The command is
hadron team stall-schedule.
The same schedule holds one setting that isn't about tasks: the host-lapse count. A host is a machine that launches workers for the App. It checks in at an interval it chooses, and if the count of those intervals passes with no check-in, its registration lapses: the platform stops sending it workers to launch, and the App's event feed records that the host was lost. The count is 2 to 10, and 3 by default. Raise it for a host on an unreliable network, so a few missed check-ins don't take it out of service; lower it when you'd rather hear sooner that a machine has gone. A host that checks in again is live again at once.
Projects, tasks and handles¶
Proposed
These rules are built in the server and are being confirmed; they may change.
Every task has a short handle such as AT3.405, an alias for its id
that the server, the CLI and the portal accept wherever they take a task id.
The first number in a handle is a project: the first level of the tree,
counted per App. AT3 is the third project of its App. Each number after it
counts the tasks under one parent: AT3.405 is the 405th task under AT3.
The platform fixes this shape and calls the first level a project, never an
epic. What the levels below mean (a repository, an epic) is up to your team.
AT0 means "no project". A task you create without naming a project or a
parent lands under AT0, as AT0.388. AT0 is made once for each App and
is never listed or changed.
A project is a task that carries the project marker. The marker is a yes-or-no flag on a task, set when the task is created and never changed afterwards, as its parent never is. It decides one thing: whether team metrics treat the task as a project. It changes nothing else about the task. Nobody needs special authority to set it beyond what creating the task already takes, and no status, gate or event treats a project differently.
Top-level still means project, and a task under a parent may be one too. The
exact rule, the create inputs, what a clone does and the refusals are in the
handles reference; the
rule is spec cor:agt:050:01, Entity: Agent task.
Two things follow from how handles are kept:
- A task never moves. Its parent is fixed when it is created, so its handle never changes and is never given to another task. If the work belongs under a different project, create a new task. Gaps in the numbers are normal.
- A handle is not an issue number.
AT0.388and GitHub issue #388 are different numbers. The link to the issue stays on the task as its source.
A task also has an address, such as
hrn:agenttask:hadronmemory.com:hadron-dev-team:at3.405: the App, then the
handle. A task read through GraphQL carries it in its urn field, and the MCP
task read prints a urn line. It is worked out from the App's current URN and the handle when you
read it, so it is never stored. An App still on a legacy URN has no task
address yet. The address is written in lower case, while the handle
you see stays AT3.405. When you paste an address back, the handle leaf works
in either case; the rest of the address must be as the server emits it, or you
get the same answer as for an address that names nothing. The address
resolves only for someone who may read that task; anyone else gets that same
answer. A handle never changes, so
the address stays the same until the App is renamed. If the App is renamed, the
address changes to the App's new URN spelling and the old one keeps working. The
URN composition reference has the rule.
The exact grammar, the qualified form for people in several Apps and the refusals are in the handles reference.
How team metrics count a project¶
The team metrics are counts of a team's task and worker flow, computed by the
server. Two of its reports depend on what a project is, and a project is a task
with the project marker, not "any top-level task
other than AT0" as it was before the marker.
The two reports use slightly different starting points, so each is stated on its own. In both, no task is counted twice.
- The report of started projects has one row per started project. Under each row it counts the tasks below the project, at any depth, by status, and each one under its nearest marked ancestor above it (a proper ancestor, never the task itself). A task under a nested project counts under that nested project and not again under the outer one, and the nested project itself counts once, under its outer project. A project is never counted under itself: it is the row, not an item in the row. A top-level project has no project above it, so it is a row and counted under nothing.
- The report of started owned tasks, by project places each started owned task in exactly one row: under itself when it is marked, otherwise under its nearest marked ancestor, and in the "No project" bucket when it has neither. So a started task that is itself a project has its own row. The specs mark this self-first placement Proposed, for confirmation; it is what the server does today.
- "No project" is a visible bucket, never hidden. It holds the tasks with no
marked task above them or at them, for example the unmarked children of
AT0. No top-level task is ever in it, because a top-level task is always a project.AT0itself is never marked and is never listed as a task. - An unmarked task is not a project in any metrics read, with children or without.
Marking changed no figure when it arrived: every task the old rule counted as a
project was marked. The rule is spec cor:agt:150, Feature: Team metrics;
the marker landed in
hadron-server#5053.
The CLI's own flag for setting the marker is tracked in
hadron-cli#3109 and
is not documented until it ships.
What is not here yet¶
- An operation sent to a host that lapses before collecting it doesn't fail on its own yet; that comes with hadron-server#1881.
Related¶
- What wakes a worker: how an assignment, a finished child or an alarm reaches the worker it concerns.
hadron team tasklists every task command, including the blocker and priority commands.- Team task handles is the reference
for
AT<n>(.<n>)*. - Team task properties is the reference for the optional JSON object a team keeps on a task.
- Teams, workers, and sessions explains workers, and who a worker reports to.
- Working through an agent explains why you can leave the tool calls to your agent.
- Hand work to your team as tasks is the how-to: what to ask your agent at each step, and the CLI commands.
- Finish a task when its children finish is the how-to for the finish-with-child flag.