IDs and the registry
Every artifact and every issue has an ID of the form TYPE-N-SUFFIX. IDs are global and permanent. They are never renumbered and never reused.
| ID | Names |
|---|---|
WS-N-SUFFIX |
A workstream |
PLN-N-SUFFIX |
A plan |
IL-N-SUFFIX |
An issue list |
TL-N-SUFFIX |
A task list |
ISS-N-SUFFIX |
An issue, unique across all issue lists |
N is a number. SUFFIX is exactly six lowercase base-36 characters, [0-9a-z]{6}, drawn at random when the ID is claimed. The suffix makes an ID safe across clones of the same flowcharge/ folder that work independently. Two clones can claim the same N and still never collide, because each ID also carries its random suffix. For the same reason, sorting by ID is not a true creation order. The created date is.
Tasks have no ID of their own. They are numbered inside their task list (1, 2, 1.1, 2.3) and addressed as TL-4-a3x9k2 task 2.1, or in the compact form TL-4-a3x9k2.2.1.
The registry
Section titled “The registry”flowcharge/ids.md records the last number issued for each type.
FlowCharge claims an ID by creating a marker directory for it under flowcharge/ids/. Creating a directory is atomic and fails only when that exact ID already exists. A claim that collides draws a new suffix at the same number, so no lock file or background process is needed. If the registry is missing or behind, the claim seeds it from the highest of three sources: the registry, the artifacts and the marker directories.
FlowCharge claims a run’s workstream ID when it creates the workstream. Each stage claims the IDs it writes when it writes them, never ahead, because an unused claim leaves an orphaned marker.
Example
Section titled “Example”This repository’s workstream WS-64-7atiti holds the plan PLN-28-yy59ll and the task list TL-39-m8dnlo. Task 2.1 of that list is TL-39-m8dnlo task 2.1, or TL-39-m8dnlo.2.1.
An artifact’s file name starts with its ID. See What FlowCharge writes to your project and Frontmatter. The marker directories are kept out of git. See What Core keeps out of git.
Checked against FlowCharge Core v0.6.0.
