# Flow cards

The flow's cards are its records: one Markdown file each, YAML front matter the `flow` command owns, and a prose body the project writes.
There are six kinds — idea, question, task, finding, goal and direction — and this page is their specification: where a record lives and how its file is named, the front matter's form, every field of each kind and who writes it, and the states and the transitions between them.
[The flow](flow.md) is the tool: its commands, the index and the inbox beside the records, `flow.toml` and the check that refuses a record that does not hold together; [Getting started](getting-started.md) shows a record as the tool writes it.
Everything here is what `flow.py` does, and the kit's tests hold the field lists below to the script's schema.

## The files

`flow.toml` binds the records directory (`records/` by default), and the kinds each have a subdirectory of it, named by the kind's plural: `ideas/`, `questions/`, `tasks/`, `findings/`, `goals/`, `directions/`.
A closed task — done, aborted or removed — is moved to `archive/` by its closing transition, so the live directories show the front of work; a closed idea, question, goal or direction stays where it is, with its state.
One file stands beside the kinds, `INDEX.md`, generated by `flow index`; the inbox and the log are bound separately and may live anywhere.

A record's file is `<id>-<slug>.md`, as `task-0001-prove-the-lemma.md`.
The id is the kind's prefix from `[prefixes]`, a hyphen and a number zero-padded to `id_width` digits, numbered per kind from the highest id of that kind anywhere under the records directory, the archive included, so an id is never reused.
The slug is the title lowercased, every run of characters outside `a-z0-9` turned into one hyphen, cut at forty characters; it is for the reader, and a file is read by its id alone (`flow check` accepts a file with no slug, and refuses one whose id does not match its name or its directory).

## The form

The front matter stands between two `---` lines and is the subset of YAML the script writes: plain scalars, single-quoted strings (a quote doubled inside), double-quoted strings with escapes, `null`, `true` and `false`, integers, block lists (`- item`) and one-level maps.
Every field of the kind's schema is present, in the order the tables below give, `null` where it is empty and `[]` for an empty list; a hand edit stays inside that subset, since `flow check` reads every record back and fails one it cannot read.
A field of an older model, such as `derived_from`, `criterion`, `blocked`, `abandoned`, a task's `kind` or a finding's `status`, fails the check, and `flow doctor` says what it reads now.

The body is prose, one sentence per line, which `flow check` enforces because diffs and the index depend on it; where `markdownlint` is on PATH, a write that adds a violation is reverted.
The refusal says that nothing was written and, on a mint, that the id it names is not taken; it adds one line with the fix where the rule that failed is MD032 (a blank line before a list and after it) or MD033 (angle brackets in prose are put in backticks).
Where the root holds a `.markdownlint-cli2.*` file and none of the plain `.markdownlint.*` ones, and `[paths] markdownlint_config` binds none, the lint runs through `markdownlint-cli2`, which reads that file, where it is on PATH; otherwise `markdownlint` runs with the flow's built-in rules, and one line on the standard error says that the file is not read by `markdownlint` and that the built-in rules were used.
A body points at where its subject is STATED — a document's section, a module, a round — and never restates it, because the statement moves and a copy does not.
A question's body says what counts as an answer, or points at where that is stated; a goal's body what reached means and how far out it lies; a task's body what done means; the check reads none of these, and they are the convention a session keeps.
A body points at a repository path by a Markdown link whose target is the path from the project root, `[the theorem](<papers/alpha.md#Theorem 2.1>)`, the angle brackets where the target holds a space; `flow artifacts` lists every such path with the records naming it, and the check holds the path before any anchor to existence and to the tree, an absolute path or one climbing above the root by `..` being outside it (V24 on a live record, a warning on a closed or removed one), while a URL, a bare `#anchor` and a path in backticks are prose.
Transitions append dated notes to the end of a body, each `YYYY-MM-DD — label:` and, after one blank line, the text of the file given (`--body FILE` and `--resolution FILE` take a file, never inline text, or `-` for the standard input): `resolution:` for a task made, or aborted with `--resolution`, `note:` for any record given `flow note ID --body FILE`, `FIELD set: WORDS` for one given `flow set … --note WORDS`, and `title set; it read:` with the old title in a code span, the words of `--note` after it, for a title set (`--to-summary` writes none); `returned:`, `passed from A to B:`, `unparked:` and `unblocked:` carry their one-line notes (`unblocked ITEM:` where `--on` removed one item), an idea returned partly worked has what it produced so far appended, as `returned: NOTE; produced so far: idea-0002, task-0003`, and a question reopened has `reopened: REASON; it was STATE`, with `by F` where a finding settled it and `(DATE: its closing reason)` where it carried one.

## The links

Five fields connect the records, one general and four with a rule.

| Field | On | Holds | Its rule |
| --- | --- | --- | --- |
| `references` | every kind | a list of record ids | none: the general link |
| `answered_by` | question | one finding | the finding that settles it, answered or impossible |
| `blocked_by` | question, task | a map of `date`, `on` (a list) and `reason` | the record is blocked while an item of `on` holds, and `draw` is refused |
| `serves` | question | a list of goal and direction ids | biases the ranking; the index lists each goal's and direction's questions |
| `consumed_by` | idea | a list of record ids | exactly the records that name the idea in `references`, whatever its state, written with the reference |

`references` is a connection with no obligation in the flow: what a record came from, rests on or is about.
An entry is a record of any kind in any state, a removed one included, since nothing is deleted; it is written at any mint with `--ref ID` and changed afterwards with `flow ref ID +X -Y`, refused only where the id does not exist, is the record's own or is held already.
No transition clears it, and nothing is refused, warned of or failed because one exists; the check holds it to the id's existence alone.
Where the id is an idea, the same command lists the record in the idea's `consumed_by`, and `flow ref ID -X` takes it out; the one refusal is removing the last card a consumed idea lists, which is reopened first.

An item of `blocked_by.on` is one of three kinds, told apart exactly:

| Kind | Written | Holds until |
| --- | --- | --- |
| a record | its id, a task's or a question's | the record is settled: done, aborted, removed, answered, wrong or impossible |
| a date | `YYYY-MM-DD` and nothing else, a day of the calendar | that day |
| words | anything else, a date inside words among them | removed by hand, `flow unblock ID --on "…"` |

Blocked is calculated: nothing marks a record unblocked when a blocker settles, and a blocker reopened blocks again.

## Decks, hands, standing and piles

An idea, a question and a task are cards, and live in decks and hands; a finding, a goal and a direction are held by nobody.
There is one common deck and one deck for each owner of `[hand]`: a card's `owner` is its deck, a name of `[hand]`, or `null` for the common one, which the commands call `common`, and a `[hand]` that names an owner `common` is refused.
A card's `drawn` is its hand, the date of the present hold, `null` where it is in no hand, and its `started` the date of its first draw, written by that draw and kept through a return, a pass and the closing.
A new card lands in the common deck unless it is minted `--for` an owner, and a card that leaves a hand stays in that owner's deck; a closed card is in no deck and no hand.
`state` stores a card's life only, so every live card is `open`, and its standing is calculated and never stored, the same four words for the three kinds:

| Standing | When |
| --- | --- |
| `held` | in a hand: `drawn` is set; a held card carries no parking and no block (V9) |
| `parked` | set down by decision |
| `blocked` | an item of its block holds today |
| `ready` | none of these: a refill may draw it now |

A card both parked and blocked reads `parked, blocked` in the lists, and an idea is only ever `held` or `ready`, since an idea is never parked or blocked.
A transition's `changed` line gives a parked standing with its date, `parked since DATE`, and `parked since DATE, blocked`; the lists and `--json` keep the bare word.
A closed card is in a pile, read from its state with no file moved for it: the discard pile holds a task done, an idea consumed, a question answered and a question impossible, the graveyard any card removed, a task aborted and a question wrong.

## The fields

The tables give each kind's fields in the order its front matter carries them, and who writes each.
*Minted* is the transition that creates the record, `flow idea`, `flow question`, `flow task`, `flow finding`, `flow goal` or `flow direction`; *transition* names the ones that change the field after; *`flow set`* (`flow set --from FILE` for many in one run), *`flow ref`*, *`flow serves`* and *`flow tag`* change a field at any time.
Every field is written by its command, and `tags` alone also by hand: the check does not read who wrote a field, but a hand edit that leaves a record without what its transition would have written fails it.

Every kind carries these:

| Field | Holds | Written by |
| --- | --- | --- |
| `id` | the record's id, matching its filename | minted |
| `type` | `idea`, `question`, `task`, `finding`, `goal` or `direction` | minted |
| `state` | the kind's states, below | minted; the transitions |
| `title` | one line of at most `[card] title_max` characters (100), never empty: what the card is, to a reader with no other record open; a goal's outcome, a direction's name | minted (the positional); `flow set` or `flow set --from FILE`, which keeps what it read in the body, or makes it the summary with `--to-summary` |
| `summary` | one paragraph of at most `[card] summary_max` characters (500), on one line of the file, or `null`: a brief explanation of the card, what it states, asks or does, in which setting, and what it is for; an idea, a question, a task and a finding are minted with one, a goal and a direction may have none | minted (`--summary`); `flow set` or `flow set --from FILE`, which keeps nothing of what it read; `none` clears it |
| `references` | the records it references, any kind, any state | minted (`--ref`); `flow ref` |
| `origin` | `current` for a record the flow minted, `legacy` for one imported from before it and written by hand, which lets an answered question name no finding | minted; hand, for a legacy record alone |
| `source` | where it came from: a talk, a paper; a repository path of the tree, such as the document a question was minted from, is a reference `flow artifacts` and `flow find --refers` read; a source with a path's shape (no space, no URL, a `/` or an extension) is held to the tree when the record is minted, so one in words takes a space (`arXiv 2301.12345`), and one outside the tree is words | minted (`--source`) |
| `created` | the ISO date of the minting; a direction's date | minted |
| `tags` | free words, no vocabulary validated; `research` and `upkeep` are the usual ones on a task, `rider` marks a task riding the next hand-over, `conjecture` a question that is one, `refuted` a finding that disproves a claim, `revival-owner` a card parked until the person's word (its park reads `--revival "on the owner's word"`; `flow unpark` and a restate remove it, and `flow find --tag revival-owner` lists the cards that wait), and `do-not-reopen` on a question lists it under "Settled, do not re-open" and on a question or an idea refuses `flow reopen`; `flow tags` reports them | minted (`--tag`); `flow tag`; hand |

An idea, a question and a task carry a `value`, one of `[card] values` or `null` while nobody has judged it; a finding, a goal and a direction carry none.
The closed records carry a map of `date` and `reason` in `closed`: a removed idea, a wrong or removed question, an aborted or removed task, a removed finding, a reached or given-up goal, a closed direction; a done task carries the map with its `date` alone and no reason, and no other record carries one.

### An idea

`id`, `type`, `state`, `title`, `summary`, `source`, `references`, `value`, `owner`, `drawn`, `started`, `rank`, `consumed_by`, `closed`, `origin`, `created`, `tags`.

| Field | Holds | Written by |
| --- | --- | --- |
| `state` | `open`, `consumed` or `removed` | minted; `consume`, `reopen`, `remove` |
| `value` | one of `[card] values` (`low`, `medium` and `high` by default, in rising order), or `null` while nobody has judged it: how much the card is worth to the project | minted (`--value`); `flow set`, `none` clears it |
| `owner` | the owner whose deck it is in, `null` for the common deck | minted (`--for`); `draw`, `pass`; kept by `return`; cleared by `consume`, `remove` and `reopen` |
| `drawn` | the ISO date of the present hold, `null` while it is in no hand | `draw`; cleared by `return`, `pass`, `consume` and `remove` |
| `started` | the ISO date of its first draw, or `null` | `draw`, the first time; kept by every other transition |
| `rank` | its place on the ranked list, a number alone, or `null` | `rank`; cleared by `consume` and `remove` |
| `consumed_by` | the list of the cards that name it in `references`, in the order the references were written; empty while the idea is fresh | any mint with `--ref IDEA`; `flow ref` |
| `closed` | `date` and `reason` once removed | `remove` |

### A question

`id`, `type`, `state`, `title`, `summary`, `references`, `size`, `value`, `owner`, `drawn`, `started`, `checked`, `parked`, `blocked_by`, `rank`, `serves`, `answered_by`, `closed`, `origin`, `source`, `created`, `tags`.

| Field | Holds | Written by |
| --- | --- | --- |
| `state` | `open`, `answered`, `wrong`, `impossible` or `removed` | minted; `finding --answers`, `answer`, `wrong`, `impossible`, `remove`, `reopen` |
| `size` | one of `[question] sizes` | minted (`--size`); `flow set` |
| `value` | as an idea's | as an idea's; a set leaves `checked` as it is |
| `owner`, `drawn`, `started` | as an idea's | as an idea's; cleared by every closing and by `reopen`, `started` kept |
| `checked` | the ISO date the question was last looked at | minted; `rank ID N`, `park`, `unpark`, `block`, `unblock`, `reopen`, `checked` |
| `parked` | `null`, or a map of `date`, `reason` and `revival` while set aside by decision; every new park names its revival, and a card parked before that rule may carry none | `park`, `unpark`; cleared by every closing; `park` returns a held card to its owner's deck |
| `blocked_by` | `null`, or a map of `date`, `on` (a list, one item for each thing it waits on) and `reason` | `block`, `unblock`; cleared by every closing; `block` returns a held card to its owner's deck, and `draw` clears a block none of whose items holds |
| `rank` | its place on the ranked list, a number alone, or `null` | `rank`; cleared by every closing |
| `serves` | the open goals and directions it serves, a list; a closed question keeps its as history, and nothing clears an entry when its goal or direction closes | minted (`--serves`); `flow serves` |
| `answered_by` | the one finding that settles it, answered or impossible, as one value, not a list; `null` otherwise, and on a legacy question that names none | `finding --answers`, `answer --by`, `impossible --by`; cleared by `reopen` |
| `closed` | `date` and `reason` once wrong or removed | `wrong`, `remove`; cleared by `reopen` |

A question has no kind and no criterion: a conjecture is a question tagged `conjecture`, and what counts as an answer is in its body.

### A task

`id`, `type`, `state`, `title`, `summary`, `references`, `size`, `value`, `owner`, `drawn`, `started`, `due`, `after`, `rank`, `parked`, `blocked_by`, `closed`, `origin`, `source`, `created`, `tags`.

| Field | Holds | Written by |
| --- | --- | --- |
| `state` | `open`, `done`, `aborted` or `removed` | minted; `make`, `abort`, `remove` |
| `size` | one of `[question] sizes`, an estimate for ordering | minted (`--size`); `flow set` |
| `value` | as an idea's | as an idea's |
| `owner` | the owner whose deck it is in, `null` for the common deck | minted (`--for`); `draw`, `pass`; kept by `return`; cleared by `make`, `abort` and `remove` |
| `drawn` | the ISO date of the present hold, `null` while it is in no hand | `draw`; cleared by `return`, `pass`, `make`, `abort` and `remove` |
| `started` | the ISO date of its first draw, the day its work began, or `null` | `draw`, the first time; kept by every other transition, a closing included |
| `due` | its due date, `YYYY-MM-DD`, or `null`; it never moves a rank: the index lists the open tasks that have one under `Due`, soonest first, `flow state` names one that has passed and `flow check` warns on it | minted (`--due`); `flow set` |
| `after` | what follows its completion, in words, or `null`; `make` and `abort` print it at the close for the agent to follow | minted (`--after`); `flow set` |
| `rank` | as a question's; no mint gives a task one | `rank`; cleared by `make`, `abort` and `remove` |
| `parked`, `blocked_by` | as a question's, on an open task | `park`, `unpark`, `block`, `unblock`; `draw` clears a block none of whose items holds; cleared by every closing |
| `closed` | `date` and `reason` once aborted or removed; `date` alone once done | `make`, `abort`, `remove` |

A task has no kind and no definition-of-done field: what a kind said is a tag, `research` for work that came from the research, `upkeep` for the project's own, a project's words beside them, and what done means is in its body.
A task and a question are connected when either references the other, so a reference between the two may stand on either record; a task not connected to a question, a follow-up unrelated to it among them, is referenced by none and references none.

### A finding

`id`, `type`, `state`, `title`, `summary`, `evidence`, `references`, `closed`, `origin`, `source`, `created`, `tags`.
A finding is a checkable claim, and its trust is read off the forms its evidence carries; it stands until it is found false, and is then removed.

| Field | Holds | Written by |
| --- | --- | --- |
| `state` | `standing` or `removed` | minted; `remove` |
| `evidence` | one or more items `form:target`, each resolved when it is written and at every check while the finding stands, no item twice; the set of forms present is the finding's trust, shown where a status stood, and `removed` shows instead on a removed one | minted (`flow finding TITLE --summary S --evidence ITEM…`); `evidence`, which adds items, swaps one for another (`--replace OLD NEW`) or retires one (`--retire OLD --reason R`, refused where it leaves none), the last two with a dated note in the body; refused on a removed finding |
| `closed` | `date` and `reason` once removed | `remove` |

What a finding came from or rests on, a task, an idea, a question, another finding, is in its `references`; the question it answers (`--answers`) names it in `answered_by`.

An evidence item's form is one of the words `[evidence] forms` lists; the kit ships five, the project keeps the ones it accepts and adds its own, and what each means for the project is in its instructions:

| Form | Example | Resolved against |
| --- | --- | --- |
| `formal` | `formal:Lib/Foo.lean#lemma_L`, or a whole module `formal:Lib/Foo.lean` | machine-checked, the path relative to the formal workspace, not to the project's root: asked of the resolver, `formal resolve --protocol` of the `formal` plugin, which answers from the manifests `formal.toml` binds ([The flow](flow.md#evidence-resolvers) has the protocol) |
| `statistical` | `statistical:probes/p.py`; `statistical:results/run.md#FV-1` | the project's own data: a probe listed in the register of `[evidence] probes`, a Markdown table whose first column holds the file's name in backticks; or a committed result by its path, a row anchor checked as a document's |
| `peer-reviewed` | `peer-reviewed:jen1990`, `peer-reviewed:jen1990#lemma` | a card of the bound reference library, by its key; an extract after `#` |
| `stated` | `stated:papers/alpha.md#Theorem 2.1`; `stated:papers/alpha.md#FV-1` | the project's own word: a numbered statement of a document of the project — Theorem, Proposition, Lemma, Corollary, Definition, Remark, Fact, Conjecture or Example, then its number, at a line start, after `**` or in a heading — or a table row of it whose first cell is the id, two or three capitals, a hyphen, then letters and digits |
| `reference` | `reference:https://doi.org/…`; `reference:notes/talk.md` | any other source: a URL, held to its form alone; a repository path, held to its existence and to the tree, an absolute path or one climbing above the root by `..` refused |
| the project's own | `benchmark:results/bench.md` | a path, held to its existence; anything else reported unchecked |

A declaration resolves when it exists in the manifests, a private declaration's included; whether a document may cite it is the `formal` plugin's gates' claim, at the document row and the citation.
Where no resolver, register or library is found, such evidence is reported unchecked and the check's coverage line says so; an item of a form the project does not list, and an item with no form, are refused.
A finding resting on `stated` alone is the project's own word and the trust to raise: `flow evidence` adds the proof formalized, the probe run or the work cited.

### A goal

`id`, `type`, `state`, `title`, `summary`, `references`, `closed`, `origin`, `source`, `created`, `tags`.
A goal is a destination the owner commits to, formed by the owner alone, possibly after the work has started; there may be several, and there may be none.
Its title names the outcome, and its body says what reached means and how far out it lies; a date on the schedule is a task's `due`.

| Field | Holds | Written by |
| --- | --- | --- |
| `state` | `open`, `reached` or `given_up` | minted; `reach`, `giveup` |
| `closed` | `date` and `reason` once reached (what shows it) or given up | `reach`, `giveup` |

### A direction

`id`, `type`, `state`, `title`, `summary`, `references`, `closed`, `origin`, `source`, `created`, `tags`.
A direction is the owner's dated statement of where the research moves: its name is the title, its words the body, its date `created`; a goal implies its own direction and needs no record here.

| Field | Holds | Written by |
| --- | --- | --- |
| `state` | `open` or `closed` | minted; `drop` |
| `closed` | `date` and `reason` once dropped | `drop` |

## The states and the transitions

A record's state changes only through a transition, which writes everything the new state needs and nothing a hand would have to add.
Each table below gives a kind's states, the transition between each pair, and what the transition writes beside the state; a transition refuses a record in the wrong state, so the tables are complete.
A position — in a deck, in a hand, parked, blocked — is written beside the state and does not change it, and a closed card is in none.
A transition that changes a record's state, or parks, unparks, blocks or unblocks it, prints the records referring to it by any link, each with its state, for the session to decide on; it refuses nothing for them ([The flow](flow.md#the-notice)).

### An idea's

| From | To | Transition | What else it writes |
| --- | --- | --- | --- |
| — | `open` | `idea` | `title`, `summary`, `source`, `references`, `tags`, `value` where `--value` gives one, `owner` where `--for` names one, a body where `--body` gives one |
| `open` | `open`, in a hand | `draw --owner`, refused when the owner's hand is full, the idea is in a hand already or in another owner's deck | `owner`, `drawn` and, the first time, `started` |
| `open`, in a hand | `open`, in its owner's deck | `return --note`, the note required | `drawn` cleared, `owner` kept; a `returned:` note, which lists the cards the idea produced so far |
| `open` | `open`, in another deck | `pass --to --note`, the note required; refused where the idea is in that deck already, and where it is in that owner's hand, which is a return | `owner` the deck's, `drawn` cleared, a `passed from A to B:` note |
| `open` | `consumed` | `consume`, once the idea is fully processed, refused when `consumed_by` is empty | `owner`, `drawn` and `rank` cleared; `consumed_by` and `started` stay as they are |
| `consumed` | `open` | `reopen --reason`, refused on an idea tagged `do-not-reopen` | a `reopened:` note keeping that it was consumed; the idea is in the common deck; `consumed_by` stays as it is |
| `open` | `removed` | `remove` | `closed` with its date and reason; `owner`, `drawn` and `rank` cleared; `consumed_by` and `started` stay as they are |

A fresh idea is an open one whose `consumed_by` is empty, calculated and never stored.
Drawn, an idea is worked: what it produces — ideas, questions, tasks, findings, goals and directions, the last two on the owner's answer to the agent's question — references it (`--ref`) and is listed in its `consumed_by`, until the idea is fully processed and consumed, or removed.
No mint closes an idea, and a removed idea stays final: it is restored from git where it was removed by mistake.
A drawn idea counts toward its owner's hand limit as any held card does.
A consumed idea is in the discard pile, a removed one in the graveyard.

### A question's

| From | To | Transition | What else it writes |
| --- | --- | --- | --- |
| — | `open` | `question`, standing alone, `--ref` for an idea, a finding or a question it comes from, `--source PATH` for a document | `title`, `summary`, `references`, `serves`, `size`, `value`, `checked` set to today, `owner` where `--for` names one |
| `open` | `open`, in a hand | `draw --owner`, as an idea's | `owner`, `drawn` and, the first time, `started` |
| `open`, in a hand | `open`, in its owner's deck | `return --note` | `drawn` cleared, `owner` kept, a `returned:` note |
| `open` | `open`, in another deck | `pass --to --note`, as an idea's | `owner` the deck's, `drawn` cleared, a `passed from A to B:` note |
| `open` | `open`, parked | `park --reason R --revival V`, refused without a revival or with an empty one; `--tag T`, repeatable | `parked` with its date, reason and revival, the tags added, `checked` set to today; the rank stays; a held question is returned to its owner's deck, `drawn` cleared |
| `open`, parked | `open`, parked | `park`, restated | `parked`'s reason and revival replaced, its date kept, `checked` set to today, a `park restated; the reason read: OLD; the revival read: OLD` note (with the tags it added or dropped), the tag `revival-owner` dropped unless `--tag revival-owner` is given again; refused where reason, revival and tags are all as they were |
| `open`, parked | `open` | `unpark` | `parked` cleared, the tag `revival-owner` removed where the card carries it, `checked` set to today, an `unparked:` note |
| `open` | `open`, blocked | `block --on X` | `blocked_by` with its date, what it waits on and the reason, `checked` set to today; the rank stays; a held question is returned to its owner's deck |
| `open`, blocked | `open` | `unblock`, or `unblock --on X` for one item | `blocked_by` cleared, or the item taken out of it, `checked` set to today, an `unblocked:` note |
| `open` | `answered` | `finding … --answers Q`, which mints the finding that settles it, or `answer --by F`, F a standing finding | `answered_by`, that finding |
| `open` | `wrong` | `wrong --reason` | `closed` with its date and reason |
| `open` | `impossible` | `impossible --by F`, F a standing finding | `answered_by`, F |
| `open` | `removed` | `remove --reason` | `closed` with its date and reason |
| `answered`, `impossible`, `wrong` or `removed` | `open` | `reopen --reason`, refused on a question tagged `do-not-reopen` | `answered_by` and `closed` cleared, `checked` set to today, a `reopened:` note keeping what it was; it comes back into the common deck, unranked, unparked and unblocked |

Every closing clears the owner, the hand, the rank, the parking and the block, keeps `started`, and none is refused for a task that references the question: a question's closing is its own act.
A question may be parked and blocked at once, and is closed in either position.
An open question that tasks reference, all of them closed, is listed as needing a task or an answer.
A question that is not open refuses `--answers`, `answer` and `impossible`: it is reopened first.
An answered or impossible question is in the discard pile, a wrong or removed one in the graveyard.
`rank`, `checked`, `flow serves` and `flow set` act on an open question without changing its state; reaching or giving up a goal and dropping a direction leave every question's `serves` as it is.

### A task's

| From | To | Transition | What else it writes |
| --- | --- | --- | --- |
| — | `open` | `task`, `--ref` for what it came from, a question, an idea, a task, or none; `--for` for the owner's deck | `title`, `summary`, `references`, `size`, `value`, `due`, `after`, `tags`, `owner`; no rank |
| `open` | `open`, parked | `park --reason R --revival V`, refused without a revival or with an empty one; `--tag T`, repeatable | `parked` with its date, reason and revival, the tags added; the rank stays; a held task is returned to its owner's deck |
| `open`, parked | `open`, parked | `park`, restated | `parked`'s reason and revival replaced, its date kept, a `park restated; the reason read: OLD; the revival read: OLD` note (with the tags it added or dropped), the tag `revival-owner` dropped unless `--tag revival-owner` is given again; refused where reason, revival and tags are all as they were |
| `open`, parked | `open` | `unpark` | `parked` cleared, the tag `revival-owner` removed where the card carries it, an `unparked:` note |
| `open` | `open`, blocked | `block --on X` | `blocked_by` with its date, what it waits on and the reason; the rank stays; a held task is returned to its owner's deck |
| `open`, blocked | `open` | `unblock`, or `unblock --on X` for one item | `blocked_by` cleared, or the item taken out of it, an `unblocked:` note |
| `open` | `open`, in a hand | `draw --owner`, refused while it is parked, its block holds, the owner's hand is full or it is in another owner's deck | `owner`, `drawn` and, the first time, `started`; a block none of whose items holds cleared |
| `open`, in a hand | `open`, in its owner's deck | `return --note`, the note required | `drawn` cleared, `owner` kept, a `returned:` note |
| `open` | `open`, in another deck | `pass --to --note`, the note required, refused where the task is in that deck already, and where it is in that owner's hand, which is a return | `owner` the deck's, `drawn` cleared, a `passed from A to B:` note |
| `open`, held or not | `done` | `make --resolution FILE`, refused without one or on an empty one; it prints `after` and mints nothing | a `resolution:` note; `closed` with the day of the command and no reason; `owner`, `drawn` and the rank cleared, `started` kept; the file moved to the archive |
| `open`, started | `aborted` | `abort --reason`, held or not, which prints `after`; refused on a task never started | `closed`, a `resolution:` note where `--resolution` gives one; `owner`, `drawn` and the rank cleared, `started` kept; the file moved to the archive |
| `open`, never started | `removed` | `remove --reason`; refused on a started task, which `abort` closes | `closed`; `owner`, the rank, the parking and the block cleared; the file moved to the archive |

A done task is in the discard pile, an aborted or removed one in the graveyard.
A held task that must wait is returned to its owner's deck by the `park` or the `block` itself, and a task is aborted, never removed, once its work has begun.
A task handed to a prover's session stays held in the agent's hand and counts toward its limit; the handoff's log entry says it is with the prover.
A follow-up is minted after the make, `flow task "…" --summary "…" --ref T`; `rank`, `flow ref` and `flow set` act on an open task without changing its state.

### A finding's

| From | To | Transition | What else it writes |
| --- | --- | --- | --- |
| — | `standing` | `finding --evidence ITEM…`, the one mint whatever produced it; `--answers Q` closes Q answered by it | `title`, `summary`, `evidence`, `references`, `tags`, a body where `--body` gives one |
| `standing` | `removed` | `remove --reason`, when it is found false | `closed` with its date and reason; the card kept, out of the index's lists and counts |

A task's finding is minted after the task is made or aborted, referencing it, as the skill's practice; `flow evidence` adds items to a standing finding's evidence, and replaces or retires one whose file is gone with a dated note in the body.
A finding found false is removed and never reopened: what rested on it is reviewed by hand, a question it answered reopened, re-answered or left, and the finding that replaces it references it; a finding removed by mistake is restored from git.

### A goal's

| From | To | Transition | What else it writes |
| --- | --- | --- | --- |
| — | `open` | `goal`, on the owner's word; `--ref` for the direction it was produced along or the idea it came from | `title`, `summary` where `--summary` gives one, `references`, `tags`, a body where `--body` gives one |
| `open` | `reached` | `reach --reason`, what shows it | `closed` with its date and reason |
| `open` | `given_up` | `giveup --reason` | `closed` with its date and reason |

### A direction's

| From | To | Transition | What else it writes |
| --- | --- | --- | --- |
| — | `open` | `direction`, on the owner's word, the name its title and `--body FILE` the owner's words | `title`, `summary` where `--summary` gives one, `references`, `tags`, the body |
| `open` | `closed` | `drop --reason` | `closed` with its date and reason |

A goal produced along a direction (`goal --ref D`) leaves the direction open; nothing dissolves one into the other, since a goal is its own direction.

### The ranked list

`rank` places an open idea, an open question or an open task at a place on the list, a held, parked or blocked one included, which keeps its rank while it waits; everything else is refused.
There is one ranked list for the whole project, across the decks, the schedule of the work, and the agent's hand is filled from its top.
`flow draw --refill --owner O` is the refill: from the top of the list, every card whose standing is `ready` in the common deck or O's own is drawn, until the hand's limit, and each ranked card it passes over is printed with why (`parked`, `blocked on …`, `in owner's deck`, `held by owner`), then the hand as `3 of 4` with the room left; an unranked card is never drawn by it, a hand with no limit and an ID given with the flag are refused, a hand already full draws nothing and says so, and under `--json` the lists `drawn` and `skipped` and the hand's `count`, `limit` and `room` are its answer.
A minted task gets no rank by itself, whatever it references; ranks are written only by `flow rank`, and a task minted for work now is drawn with `flow draw ID` and ranked at the next ranking.
A rank is a number alone: `flow rank ID N` gives one record a free rank, `--insert` takes a held rank and moves the records below it down by one, `flow rank --set ID…` fixes the whole order at once and clears every rank it does not name, printing each record as `ranked ID (rank N) — Title` or `unranked ID (was N) — Title`, and `flow rank ID --clear` clears one.
A question given a rank by `rank ID N` has its `checked` date refreshed, a judgment about that one record; `rank --set`, a shift by `--insert` and a clear only order the list and leave it, and `flow checked ID …` records a read of an open question.
Every transition that clears a rank — `make`, `abort`, `remove`, `consume`, `wrong`, `impossible`, `answer`, `finding --answers`, a clear — renumbers the records that keep theirs and prints each as `re-ranked ID (N → M) — Title`, so the list stays `1..n` without a hand on it.
A due date never moves a rank: the open tasks that have one are listed under `Due`, soonest first, apart from the ranked list.
