{% extends "base.html" %} {% import "_close.html" as cl %} {% import "_inbox.html" as ibx with context %} {% import "_side.html" as sidem with context %} {% import "_pause.html" as pz with context %} {% import "_open.html" as om with context %} {% import "_plan.html" as plm with context %} {% block title %}{{ here.name }}{% endblock %} {% block crumbs %}/ {{ here.name }}{% endblock %} {% block head %} {% endblock %} {% block main %}
{{ sidem.tab(side, here) }}
{% set total = cols.values()|map("length")|sum %}

{{ here.name }}

{% if here.title %}{{ here.title }}{% endif %} {% if total %}{% endif %} {% if here.name != main_board %}
{% endif %}
{% if total == 0 and not broken %}

Nothing on this board yet. Drag a card onto {{ here.name }} in the side tab, or use the Board setting on a project's page.

{% endif %} {% if batch %}

Showing the packets made together in {{ batch }}. Show all

{% endif %}
{% for col in columns %}

{{ col }}{{ cols[col]|length + ((captures|length + inbox_requests|length) if col == "Inbox" else 0) }}

{% if col == "Done" and cols[col] %}{% set clean = cols[col]|selectattr("name", "in", outs_clean)|list %}
{% if clean %}
{% for c in clean %}{% endfor %}
{% endif %}
{% endif %} {% if col == "Inbox" %}{% for d in captures %}
{{ ibx.row(d, inbox_projects, "/b/" ~ here.name|urlencode) }}
{% endfor %}{% for r in inbox_requests %}
{{ ibx.request(r) }}
{% endfor %}
{% endif %} {% for c in cols[col] %} {% set k = c.ball.kind %} {% set href = "/p/" ~ (c.name|urlencode) ~ ("/" ~ c.running.wpid ~ "/live" if c.running else "/compose" if c.setup else "#answer" if k == "question" else "") %}
{{ c.name }} {% set tags %}{% if c.agents %}{{ c.agents.text }}{% endif %}{{ plm.chips(c.plan, c.due, c.at_risk, c.forecast) }}{% if c.autonomy != "handoff" %}{{ c.autonomy }}{% endif %}{{ pz.badge(c, short=True) }}{% if c.trouble %}{{ c.trouble }} failed{% endif %}{% if c.column == "Done" %}{{ cl.chips(outs.get(c.name)) }}{% endif %}{% endset %}{% if tags|trim %}{{ tags }}{% endif %}
{#- One line, cut to fit; the whole of it is in the body. -#} {% if c.running %}{% set brief = (c.running.name or c.running.short) ~ " step " ~ c.running.step ~ (", " ~ c.running.for if c.running.for else "") %} {% elif k == "queued" %}{% set why = waiting.get(c.root.wpid) if c.root and waiting else none %}{% set brief = "waiting on: " ~ why.why if why and why.waiting else "due now" %} {% elif k == "scheduled" %}{% set brief = "wakes " ~ c.root.next %} {% elif k == "question" %}{% set brief = "Asks: " ~ c.ball.text %} {% elif k == "failure" %}{% set brief = c.ball.text %} {% elif k == "review" %}{% set brief = "finished " ~ c.finished ~ ": review it" %} {% elif c.column == "Done" %}{% set brief = c.lifecycle ~ (" · finished " ~ c.finished if c.finished else "") %} {% else %}{% set brief = c.ball.text %}{% endif %}
{% if c.running %}RUN {% endif %}{{ brief }}
{% if c.root and c.root.summary and c.root.summary != brief %}
{{ c.root.summary }}
{% endif %}
{{ c.name }} · {{ c.column }}
{% if c.agents %}{{ c.agents.title or c.agents.text }}{% endif %}{{ plm.chips(c.plan, c.due, c.at_risk, c.forecast) }}{% if c.autonomy != "handoff" %}autonomy: {{ c.autonomy }}{% endif %}{{ pz.badge(c) }}{% if c.trouble %}{{ c.trouble }} failed{% endif %}
{% if c.running %}RUN {% endif %}{{ brief }}
{% if c.root and c.root.summary and c.root.summary != brief %}
{{ c.root.summary }}
{% endif %} {% if c.intent %}
Next: {{ c.intent }}
{% endif %}
{% for st, n in c.counts %}{{ n }} {{ st|lower|replace("_", " ") }}{% endfor %}{{ c.spend_total|money }}
step {{ c.root.step if c.root else "?" }} · last step {{ c.last_step }}{% if c.since and c.since.as_of %} · as of {{ c.since.as_of }}{% endif %}
{% if c.running %}
RUNNING {{ c.running.name or c.running.short }} step {{ c.running.step }}{% if c.running.for %}, {{ c.running.for }}{% endif %}
{% if c.running.now %}
{{ c.running.now }}
{% endif %} {% if c.driver == "you + runner" %}
you and the runner are both working in it
{% endif %} {% elif k == "queued" %} {% if why and why.waiting %}
{{ why['class'] }} waiting on: {{ why.why }}
{% else %}
due now, waiting for {{ "the runner" if runner else "wpk tick"|safe }}
{% endif %} {% elif k == "scheduled" %}
wakes {{ c.root.next }}
{% elif k == "question" %}
Asks: {{ c.ball.text }}
open to answer, or wpk answer {{ c.name }}
{% elif k == "failure" %}
{{ c.ball.text }}
{% elif k == "review" %}
the runner finished {{ c.finished }}: look it over, then mark it done or hand it the next thing
{% elif c.column == "Done" %}
{{ c.lifecycle }}{% if c.finished %} · last change {{ c.finished }}{% endif %}
{% else %}
{{ c.ball.text }}
{% endif %} {% if c.root and c.root.summary %}
{{ c.root.summary }}
{% endif %} {% if c.intent %}
Next: {{ c.intent }}
{% endif %} {{ pz.draft(c, "/b/" ~ (here.name|urlencode)) }} {% if c.split_of %}{% endif %} {% if c.since and c.root.summary %}
as of {{ c.since.as_of }}{% if c.since.active %} · session {{ "active now" if c.since.live and c.since.active == "now" else "open, last active " ~ c.since.active if c.since.live else "active " ~ c.since.active }}{% if c.since.edits %} · {{ c.since.edits }} edit{{ "s" if c.since.edits != 1 }} since{% endif %}{% endif %}
{% endif %}
{% for st, k in c.counts %}{{ k }}{% endfor %} {{ c.spend_total|money }}{% if c.spend_today %} ({{ c.spend_today|money }} today){% endif %}
step {{ c.root.step if c.root else "?" }} · last step {{ c.last_step }}
Page{{ om.menu(c) }}{{ plm.menu(c.name, c.plan, "/b/" ~ (here.name|urlencode), milestones) }}{{ pz.button(c, "/b/" ~ (here.name|urlencode)) }}{{ pz.mark(c, "/b/" ~ (here.name|urlencode)) }}{% if c.column == "Done" and not c.archived %}Close…{% endif %}
{% endfor %}
{% endfor %}

Milestones Status

{% for m in milestones %}

{{ m.name }}{% if m.title %} {{ m.title }}{% endif %} · {{ m.date }}{% if m.days is not none %} ({{ "in %d days"|format(m.days) if m.days > 0 else "today" if m.days == 0 else "%d days ago"|format(-m.days) }}){% endif %} · {{ m.now.projects }} project{{ "s" if m.now.projects != 1 }}, {{ m.now.done }} done · left: {{ m.now.runner }} for the runner, {{ m.now.yours }} yours {% if m.forecast %}· forecast {{ m.forecast }}{% endif %} · Status

{% if m.cards %}

{% for c in m.cards %}{{ c.name }}{% if c.at_risk %} at risk{% endif %}{{ ", " if not loop.last }}{% endfor %}

{% else %}

No project yet: pick it under a card's Plan ▾.

{% endif %} {% if m.chart %}{% set g = m.chart %} runner and yours yours {{ g.top }} {{ g.start }} {{ g.end }}

Blue: all work left (runner and yours); orange: yours; dashed: on track to the date. A point a day, from when it was made.

{% else %}

The burn-down starts with the board's first snapshot of it (one a day).

{% endif %}
{% endfor %}
{% macro watch_form(w, label) -%}
{%- endmacro %}

Watchers

A watcher polls issue trackers and makes a project (or an Inbox item) for each new issue, or polls CI and makes one for each breakage. Saved in boards/{{ here.name }}.toml.

{% if watchers %} {% for w in watchers %} {% if w.problems %} {% else %} {% endif %} {% endfor %}
?bad [[watch]] in boards/{{ here.name }}.toml: {{ w.problems|join("; ") }}. Fix it by hand; the board won't rewrite it.
{{ w.name }}{% if not w.enabled %} (off){% endif %} {% for r in w.repos %}{{ r }}{% if not loop.last %}, {% endif %}{% endfor %} {% if w.on == "ci" %}· CI failures on {{ w.branches|join(", ") or "the default branch" }}{% if w.workflows %} ({{ w.workflows|join(", ") }}){% endif %} {% elif w.labels %}· labels {{ w.labels|join(", ") }}{% endif %}
every {{ w.every }} · polled {{ w.polled }} · {{ w.made|length }} made · {{ "to the Inbox" if w.propose else "held for setup" if w.hold else "handed to the runner" }} · into {{ w.dir }}
{% for k, e in w.failed %}
{{ k }}: {{ e }}
{% endfor %} {% for e in w.errors %}
{{ e }}
{% endfor %}
Edit{{ watch_form(w, "Save") }}
{% for k, n in w.made[-5:] %}{{ n }}{% if not loop.last %}, {% endif %}{% endfor %}
{% endif %} {% if not watchers or not watchers[0].problems %}
Add a watcher{{ watch_form(none, "Add") }}
{% endif %}

Packets and agent notes

Where this board's new packets go, and what an agent making or working on them should know (docs/agent-dispatch.md). wpk context --board {{ here.name }} shows the same.

{% if bset.packet_dir %}now: {{ bset.packet_dir }}/<name>{% endif %}

boards/{{ here.name }}.md: shown in full to sessions when short, and to runner steps (4 KB)

{% if bset.repos %}

Repos an agent may name: {% for r in bset.repos %}@{{ r.name }} ({{ r.scope }}){{ ", " if not loop.last }}{% endfor %}. Add more as [[repo]] in boards/{{ here.name }}.toml or config.toml.

{% endif %}
{% if broken %}

Projects that could not be read

{% for b in broken %}{% endfor %}
{{ b.name }}{{ b.why }}
{% endif %}
{% endblock %}