Dates and scheduling
You write only the dates you know: a fixed start here, a duration and a dependency there. Facet computes the rest (every node’s start and end, which tasks are late, the critical path) and shows it in the views. Computed dates are never written back to the file.
# Station roll-outstart:: 2027-04-05
- [ ] Site survey [id:: survey] [duration:: 1 week]- [ ] Order docks [id:: docks] [after:: !survey] [duration:: 3 weeks]- [ ] Install docks [id:: install] [after:: !docks + 2 days] duration:: 10 days- Pilot opens [type:: milestone] [after:: !install] [due:: 2027-05-31]The survey starts with its parent on 5 April and lasts a week. Ordering starts when the survey ends, installing two days after the order ends, and the milestone sits at the end of the installation. If that end passes 31 May, the milestone is late.
Dates appear only in properties (start::, end::, due::, last::,
away::), never at the start of a line.
| Form | Example | Covers |
|---|---|---|
| year | 2027 |
the whole year |
| month | 2027-06 |
the whole month |
| day | 2027-06-10 |
the whole day |
| date and time | 2027-06-10T09:30 |
that minute |
| with seconds | 2027-06-10T09:30:15 |
that second |
| today | today |
the current day |
| Markwhen date | June 2027, 1/5/2027, 5 Jan 2027 9am |
its precision |
- ISO dates are written
YYYY,YYYY-MM,YYYY-MM-DD, then optionallyTHH:mmand:ss. Other forms are read with Markwhen’s date grammar, as long as they name a single date (a year, a month, a day or a time). - Time zones are not supported (
2027-06-10T09:30Zis an error); dates are local, without zone. - A date that names a range (
2027-06-10/2027-06-12), a relative phrase such asnext friday, or an!idis not a date. To start after another node, useafter::. - A date that cannot be read is a
bad-dateerror.
A date stands for its whole precision:
start:: 2027-06starts on 1 June andend:: 2027-06ends with 30 June.- A date-only
endis inclusive:end:: 2027-06-10includes all of 10 June. - A date and time is a point:
end:: 2027-06-10T17:00ends at 17:00.
Durations
Section titled “Durations”duration:: is one positive whole number and a unit:
| Unit | Spellings |
|---|---|
| minutes | m, min, minute, minutes |
| hours | h, hour, hours |
| days | d, day, days |
| weeks | w, week, weeks |
| months | month, months |
| years | y, year, years |
A space between number and unit is optional: 4h, 3 days, 2 w.
Fractions (1.5 days) and zero are errors (bad-duration).
Durations add calendar time. There are no working-day calendars and no
holidays: 2 business days or 5 working days is a bad-duration error.
Months and years follow the calendar: 1 month from 31 January ends on the
last day of February.
Dependencies
Section titled “Dependencies”after:: makes a node start when other nodes end (finish to start).
- [ ] Paint the docks [after:: !install]- [ ] Open to the public [after:: !paint + 3 days, !permit]- Each entry is
!id, optionally followed by an offset:!id + 2 days. The offset is a duration. - Several entries are comma-separated. The node starts at the latest end among them, offsets included.
- Targets must be tasks, events, milestones or groups. A note, requirement,
file, folder or repeating task is a
bad-after-targeterror. An id that does not exist is anunknown-iderror. - Only
after::creates scheduling links. An!idin a title or description is a link to navigate, never a dependency. - Cycles are
dependency-cycleerrors, including cycles through a parent: a child that comesafter::its own roll-up parent.
How a node is scheduled
Section titled “How a node is scheduled”Facet computes a start and an end for every node it can. A node’s start comes from the first of these that applies:
- its fixed
start::; - its
end::minus itsduration::; - its
after::dependencies: the latest target end plus offset; - with only a
duration::: the start of its nearest anchored ancestor (see Unanchored nodes).
Its end comes from its fixed end::, else its start plus duration::.
So start::, or end:: with duration::, wins over after::. Whatever is
still missing comes from the node’s children (see Roll-up),
never giving an end before the start.
A leaf node with a start but nothing that gives an end lasts the date it
was given: start:: 2027-06-10 alone lasts that day, start:: 2027-06 the
whole month, and start:: 2027-06-10T09:30 is a point. A leaf with only
after:: starts and ends at the end of its targets.
If a node’s start (fixed or from after::) is past its own fixed end::,
lint warns end-before-start and the node has zero length at its start.
Unanchored nodes
Section titled “Unanchored nodes”A node with a duration:: but no start::, no end:: and no after:: is
unanchored. It starts at the start of its nearest ancestor that has a start
of its own: fixed, from after::, or itself unanchored and placed. A start
that a parent only rolls up from its children does not count.
# Workshop weekstart:: 2027-09-06
- [ ] Prepare tools [duration:: 2 days]Without such an ancestor the node is unscheduled: the Gantt shows it in
an “unscheduled” lane, and lint warns unscheduled on tasks. A task that
already has an error that prevents scheduling (an unknown or bad after::
target, a dependency cycle, a bad date or duration) does not also raise
unscheduled, nor does a task waiting on an unscheduled one.
Milestones
Section titled “Milestones”Milestones have zero length. A milestone
sits at its start::, else at the end of its after:: targets, else, with
neither, on its due:: day.
Parent boxes
Section titled “Parent boxes”A parent with dates of its own (a start and an end of its own, for example
start:: and duration::) is a box: its children are scheduled inside
it.
- [ ] Festival stand [start:: 2027-07-02] [end:: 2027-07-04] - [ ] Set up [id:: setup] [duration:: 1 day] - [ ] Demo rides [after:: !setup] [duration:: 2 days]- An
after::inside a box never starts before the box starts. - A child that starts before or ends after its box gets a
children-outside-parentwarning. - So does a child that starts before a parent’s own start, or ends after its own end, when the parent has only one of them.
Roll-up
Section titled “Roll-up”A parent without its own dates is pure roll-up:
- its span runs from its children’s earliest start to their latest end;
- its progress is its children’s progress weighted by their duration (a plain average when none has a duration);
- its state is rolled up from its tasks, see States.
Cancelled children do not count for any of these. A parent with only one own
date (a start:: or an end::) takes the missing side from its children.
Deadlines
Section titled “Deadlines”due:: is a deadline, not a scheduling date; it is mostly used on
milestones. If a node’s computed end passes the end of its due:: date, the
node is late: red in the Gantt and a late warning. Done, cancelled and
repeating tasks are never late.
Critical path
Section titled “Critical path”The critical path of what a view shows (a file, a folder, an included node)
is the chain of after:: dependencies and anchors that sets its end. The
Gantt highlights it; see the Gantt view.
Repeating tasks
Section titled “Repeating tasks”Repeating tasks have no bar and take no part in scheduling. Their next occurrence is shown instead, see Repeating tasks.
Computed dates are virtual
Section titled “Computed dates are virtual”Computed dates are shown in views and returned by the CLI, but never written to the file. Only an explicit change writes dates: dragging a bar in the Gantt writes fixed dates in the form the node already uses, as described in How Facet writes.
Checking the schedule
Section titled “Checking the schedule”facet schedule <dir> prints the computed dates of a workspace, one line per
node with dates, a repeat or a scheduling problem. For the example at the top
of this page, with a weekly task in another file:
pilot/stations.md:1:3: 2027-04-05..2027-05-14 Station roll-out criticalpilot/stations.md:4:7: 2027-04-05..2027-04-11 Site survey criticalpilot/stations.md:5:7: 2027-04-12..2027-05-02 Order docks criticalpilot/stations.md:6:7: 2027-05-05..2027-05-14 Install docks criticalpilot/stations.md:8:3: 2027-05-15 Pilot opens milestone criticalteam.md:2:7: next 2027-04-12 Clean the docks
5 scheduled, 0 unscheduledEach line is path:line:column: when title flags.
when |
Meaning |
|---|---|
start..end |
the span, end inclusive |
| one date | a single day, or a milestone |
next <date> |
the next occurrence of a repeating task |
unscheduled |
no start and no anchored ancestor |
undated (error) |
a bad value or after:: target |
undated (cycle) |
the node is in a dependency cycle |
undated (waiting) |
an after:: target or its anchor has no dates |
| Flag | Meaning |
|---|---|
milestone |
zero length |
box |
the node has its own start and end, and children |
critical |
on the critical path of the node’s file or folder |
late (due <date>) |
the computed end passes due:: |
The last line counts scheduled and unscheduled nodes. The command takes
--today YYYY-MM-DD to compute as of another day. See also
Lint and
querying with the CLI.