{% extends "base.html" %} {% block title %}{{ view.title }} · Loopcaptain{% endblock %} {% block where %}{{ view.repo.key }} / {{ view.loop_id }}{% endblock %} {% block body_attrs %} data-pulse-url="{{ url_for('loop_pulse', repo_key=view.repo.key, loop_id=view.loop_id) }}" data-pulse="{{ pulse }}"{% endblock %} {% set here = url_for('loop_page', repo_key=view.repo.key, loop_id=view.loop_id) %} {% macro file_link(path, text) %}{% if path %}{{ text or path }}{% endif %}{% endmacro %} {% block main %}
Loops / {{ view.repo.key }} / {{ view.loop_id }}
{{ note }}
{% endif %} {% if error %}{{ error }}
{% endif %} {% if state.question %} {% set q = state.question %}{{ 'A step needs you' if q.needs_person else 'The loop asks' }}{% if q.round %}, round {{ q.round }}{% endif %} · {{ q.asked|ago }}{% if q.blocks %} · it stands still until you answer{% if q.gives_up %}, at most until {{ q.gives_up|stamp }}{% endif %}{% endif %}
{{ q.text }}
{% if q.options %} {% endif %}No round has run yet.
{% endif %} {% if state.rounds %}| Step | {% for r in state.rounds %}{{ r.number }} | {% endfor %}|
|---|---|---|
| {{ (step.name if step else '') or step_id }}{{ step.kind if step else 'not in loop.json' }} | {% for r in state.rounds %} {% set runs = r.runs_of(step_id) %} {% set on = ' on' if shown and r.number == shown.number else '' %} {% if not runs %}did not run | {% else %} {% set finds = runs|sum(attribute='material_open') %} {% set st = 'running' if runs|selectattr('status', 'equalto', 'running')|list else ('failed' if runs|selectattr('status', 'equalto', 'failed')|list else ('ok' if runs|selectattr('status', 'equalto', 'ok')|list else 'skipped')) %}{% if finds %}{{ finds }}{% else %}{{ st }}{% endif %} | {% endif %} {% endfor %}
| Verdict | {% for r in state.rounds %}{{ (r.verdict or 'live')|replace('continue', 'go on') }} | {% endfor %}|
| Minutes | {% for r in state.rounds %}{{ r.minutes if r.minutes is not none else '' }} | {% endfor %}|
| Cost | {% for r in state.rounds %}{{ r.cost_usd|usd }} | {% endfor %}
{{ shown.commit[:10] }}{% endif %} · {{ shown.findings_open }} open, {{ shown.findings_closed }} closed
{% for m in shown.all_metrics %}{{ m.value|figure(m.unit) }} {{ m.name }}{% if m.target is not none %} target {{ m.target|figure(m.unit) }}{% endif %}{% endfor %}
{% endif %} {% if shown.plan or shown.plan_artifact %}Plan{% if shown.plan_artifact %} · {{ file_link(shown.plan_artifact, 'the whole plan') }}{% endif %}
{% if shown.plan %}{{ shown.plan }}
{% endif %}| Step | State | What it did and found | Tokens | Cost | File |
|---|---|---|---|---|---|
| {{ (step.name if step else '') or run.step }}{% if run.label %}{{ run.label }}{% endif %}{{ step.kind if step else '' }}{% if step and step.backend %} · {{ step.backend }}{% endif %}{% if step and step.model %} · {{ step.model }}{% endif %} | {{ run.status }}{% if run.attempt and run.attempt > 1 %} · try {{ run.attempt }}{% endif %} | {% if run.error %} {{ 'Needs you: ' if run.error.kind == 'needs_person' else 'Error: ' }}{{ run.error.text }} {% endif %}{{ run.summary }}{% if run.metrics %} · {% for m in run.metrics %}{{ m.name }} {{ m.value|figure(m.unit) }}{{ ', ' if not loop.last }}{% endfor %}{% endif %}{% if run.model %} · model{{ run.model }}{% endif %}{% if run.session %} · session {{ run.session }}{% endif %}{% if run.findings %}
|
{% if run.cost %}{{ run.cost.tokens|tokens }}{% if run.cost.estimated %}~{% endif %}{% endif %} | {% if run.cost %}{{ run.cost.usd|usd }}{% endif %} | {{ file_link(run.artifact, 'open') }} |
No step has reported yet.
{% endif %} {% if shown.summary or shown.next or shown.questions %}Verdict{% if shown.verdict_artifact %} · {{ file_link(shown.verdict_artifact, 'all of it') }}{% endif %}
{{ shown.summary }}
Next round
{{ shown.next }}
Asked you
{% for q in shown.questions %}{{ q }}
{% endfor %}| Found by | Finding | Weight | File |
|---|---|---|---|
| {{ (step.name if step else '') or run.step }}{% if run.label %}{{ run.label }}{% endif %}{{ step.kind if step else '' }} · no. {{ finding.id }} | {{ finding.text }} | {{ finding.severity }} | {{ file_link(run.artifact, 'open') }} |
Nothing is open{% if not state.rounds %}: no round has run yet{% endif %}.
{% endif %} {% elif tab == 'inbox' %}| Sent | Kind | What | Taken by the loop | From |
|---|---|---|---|---|
| {{ item.entry.ts|stamp }} · {{ item.entry.ts|ago }} | {{ item.entry.kind }} | {{ item.entry.text or 'Stop after the current round.' }}{% if item.entry.choice %} (picked option {{ item.entry.choice }}){% endif %}{% if item.entry.round %} · round {{ item.entry.round }}{% endif %} | {% if item.read %}taken{% else %}not yet{% endif %} | {% if mark is true %}this board{% elif mark is false %}not from the board{% else %}unknown{% endif %} |
A line marked "not from the board" was written into inbox.jsonl by something else, an agent of the loop perhaps. A loop that checks signed ignores it.
Nothing sent yet. An answer, a note or a stop from this page shows here.
{% endif %} {% elif tab == 'items' %} {% if not state.items %}This loop reports no items. A loop that evaluates a list of things sends a check event per check.
| Item | {% for kind in state.check_kinds %}{{ kind }} | {% endfor %}|
|---|---|---|
| {{ item.name }} | {% for kind in state.check_kinds %} {% set latest = item.latest(kind) %} {% if latest %}{{ latest.result }}{{ latest.at|stamp }}{% if latest.who %} · {{ latest.who }}{% endif %}
|
{% else %}not run | {% endif %} {% endfor %}
No progress?
A loop that goes round without getting closer costs rounds and money. Read the last review, then send a note that changes the approach, or stop it.
Silent since {{ state.last_event|stamp }}, {{ state.last_event|ago }}
The last line was {{ state.last_line }}.{% if state.expected %} The loop said it would be back by {{ state.expected|stamp }}.{% endif %} No line since, and {% if process %}the process the board started {{ 'still runs' if process.alive else 'has ended' }}{% else %}the board did not start it{% endif %}.
{{ manifest.workspace.worktree }}){% endif %}: is its process alive, is it waiting on something outside?{{ 'What you sent' if state.question else 'Tell the loop' }}
{% if not state.question %} {% endif %} {% if state.inbox %}Run
{{ log_tail }}{% endif %}
Goal
{{ brief.goal }}
For
{{ brief.audience }}
Done when
{{ brief.bar }}
Makes: {% for output in manifest.outputs %}{{ file_link(output.path, output.name) }}{{ ', ' if not loop.last }}{% endfor %}
{% endif %} {% if manifest.workspace or manifest.state %}{% if manifest.workspace %}Runs on {% if manifest.workspace.branch %}branch {{ manifest.workspace.branch }}{% endif %}{% if manifest.workspace.worktree %} in {{ manifest.workspace.worktree }}{% endif %}. {% endif %}{% if manifest.state %}Hands from round to round: {% for item in manifest.state %}{{ file_link(item.path, item.name) }}{{ ', ' if not loop.last }}{% endfor %}.{% endif %}
finishedrunningfailedskippednot run3open material findings
loopcaptain validate in the loop's repository