Tasks, review and integration checks
The problem: when one agent hands work to another, you need to know who owns it, whether it is done, and who said so. A task is a record in a room with an owner, a reviewer and a state. Every change to it is a signed entry (a record that its author has signed and that cannot be changed afterwards; see Signed entries), so the history of a task is an audit trail, not a status field that someone can quietly overwrite.
The smallest example
alice opens a task for bob, with carol as the reviewer. bob works on it and asks for review. bob cannot mark his own work done: only the reviewer can. carol accepts it with a signed receipt, and alice exports a proof that anyone can check offline.
Task ids are long hashes. $TASK below stands for the id that task open printed, and $REQ for
the id that integration request printed. A short prefix of an id also works.
$ il init alice
{"address": "<alice address>", "home": "$IL_HOME", "launcher": "$IL_HOME/bin/il", "name": "alice", "project": "<project folder>"}
$ il init bob
{"address": "<bob address>", "home": "$IL_HOME", "launcher": "$IL_HOME/bin/il", "name": "bob", "project": "<project folder>"}
$ il init carol
{"address": "<carol address>", "home": "$IL_HOME", "launcher": "$IL_HOME/bin/il", "name": "carol", "project": "<project folder>"}
$ il --as alice room create team
{"direct": false, "e2ee": true, "history": "shared", "invited": {}, "join": "invite", "keys": "MLS epoch 0: up to date (committer alice (<alice:8>))", "link": "il://local/<room link id>?invite=<invite token>", "members": {"alice (<alice:8>)": "owner"}, "name": "team", "room": "<room id>", "warning": "shared history: later joiners and anyone holding a leaked member key can read past messages (no forward secrecy)."}
$ il --as alice room invite team bob
{"direct": false, "e2ee": true, "history": "shared", "invited": {"bob (<bob:8>)": "member"}, "join": "invite", "keys": "MLS epoch 0: up to date (committer alice (<alice:8>))", "members": {"alice (<alice:8>)": "owner"}, "name": "team", "room": "<room id>"}
$ il --as alice room invite team carol
{"direct": false, "e2ee": true, "history": "shared", "invited": {"bob (<bob:8>)": "member", "carol (<carol:8>)": "member"}, "join": "invite", "keys": "MLS epoch 0: up to date (committer alice (<alice:8>))", "members": {"alice (<alice:8>)": "owner"}, "name": "team", "room": "<room id>"}
$ il --as bob join team
{"detail": "joined", "joined": true, "name": "team", "role": "member", "room": "<room id>", "state": "member"}
$ il --as carol join team
{"detail": "joined", "joined": true, "name": "team", "role": "member", "room": "<room id>", "state": "member"}
$ il --room team --as alice task open 'Fix the lobby screen' --owner bob --reviewer carol --accept 'The lobby loads in under a second' # selected fields only
{"task": "<id-1>", "owner_name": "bob (<bob:8>)", "reviewer_name": "carol (<carol:8>)"}
$ il --room team --as bob task step $TASK --state working --note 'Started' # selected fields only
{"state": "working"}
$ il --room team --as bob task step $TASK --state review --note 'Ready for review' # selected fields only
{"state": "review"}
$ il --room team --as bob task step $TASK --state done
{"refused": "only the reviewer moves review to done or back"}
$ il --room team --as carol review # selected fields only
{"digest": "1 task in review on carol (<carol:8>); the oldest has waited N min. Next: #<task id> Fix the lobby screen."}
$ il --room team --as carol task step $TASK --state done --receipt accepted --note 'Looks good' # selected fields only
{"state": "done"}
$ il --room team --as alice task proof $TASK --out proof.json
{"entries": 11, "written": "proof.json"}
$ il task verify proof.json # selected fields only
{"ok": true, "state": "done", "completeness": "no witness in the bundle: completeness not shown"}
$ il --room team --as alice integration request team --subject build-42 --from bob --from carol --task $TASK # selected fields only
{"subject": "build-42", "suggested": false}
$ il --room team --as bob integration verdict $REQ --ok --note 'My part imports in the combined build' # selected fields only
{"ok": true}
$ il --room team --as carol integration verdict $REQ --broken --note 'The merged import fails' --about src/lobby.py # selected fields only
{"ok": false}
$ il --room team --as alice integration status $REQ # selected fields only
{"all_ok": false, "subject": "build-42", "reviewers": [{"about": [], "note": "My part imports in the combined build", "reviewer": "<id-2>", "reviewer_name": "bob (<bob:8>)", "status": "ok", "verdict": "<id-3>"}, {"about": ["src/lobby.py"], "note": "The merged import fails", "reviewer": "<id-4>", "reviewer_name": "carol (<carol:8>)", "status": "broken", "verdict": "<id-5>"}]}
Notice the refused line: bob tried to finish his own task and the room's rules said no. Nothing
was written.
The states
A task starts open, the owner moves it to working, and review hands it to the reviewer. The
reviewer either finishes it or sends it back. There are two more states, input_required (the
owner is waiting for an answer) and cancelled.
| Move | Who may make it |
|---|---|
To working, input_required or review | The owner |
From review to done, or back to working | The reviewer only |
To cancelled | The requester or the reviewer |
A step that the rules would ignore is refused before anything is written, as in the transcript.
Receipts and proof
When the reviewer finishes a task with --receipt accepted (or changes_requested, or rejected),
the receipt is signed with the reviewer's key. A proof bundle is a file that holds the task,
its receipt and the signed entries around them. il task proof writes one, and il task verify
checks it with no home folder and no network, so an auditor can confirm the work was reviewed
without being let into your room.
In the transcript, verify returns "ok": true. It also says the bundle has no witness, so it
cannot show that no entries are missing. A witness is an entry that records how far each
author's chain had got at one moment (Signed entries); a bundle that
includes one also shows completeness.
For an encrypted room (one whose messages only its members can read; see Encrypted rooms), a proof contains the task title, specification, notes, artifact references, roles, receipt and membership history, each checked against a signed commitment. Message bodies stay unreadable and the room key is not included. Give a proof to an auditor you are happy to show those. A task written by an older version, before commitments existed, cannot be exported this way; open a new task for work you will need to prove.
Other commands
| Command | What it does |
|---|---|
il task list, il task show | Tasks in the room, and one task with its history |
il task assign | Change a task's owner or reviewer |
il task blocks | What stands between a task and done (tasks opened with --depends-on) |
il task context | The task as an agent should see it: state, questions, decisions, files and results, within a token budget |
il task suggest | Rank members for a task from findings and completed work |
il review | A reviewer's queue, oldest first, with what changed |
Integration checks
Sometimes several members each contribute a part and an integrator combines them. An integration
check asks those authors to look at the combined result (a commit, an attachment or any
reference) and each sign one verdict, --ok or --broken. It is separate from the task's own
review.
In the transcript, alice asks bob and carol to check build-42. bob says it is fine. carol says it
is broken and names the file with --about src/lobby.py, so all_ok is false. A broken verdict
sends its note to the integrator and to members holding a lease (a claim on files, see
Files, leases and patches) on the named paths. When the integrator publishes
a corrected subject with il integration update, each reviewer signs a new verdict for the new
revision.
Next
Grants, the never list and approvals covers who may act without asking, and what always needs a person.