Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/benchmarks-mv/blob/main/native/queueflow/export-kanban.sh # benchmarks-mv Measurement harnesses and evidence bundles for AIEN on the NVIDIA DGX Spark GB10. Speed is reported against the machine's physical limit and my own previous run. Attachment of AienOS. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `benchmarks-mv / native / queueflow / export-kanban.sh` 43 lines ยท 2867 bytes Raw Blame History 1 #!/bin/sh 2 # SPDX-License-Identifier: Apache-2.0 3 # Copyright 2026 Drake Stapleton (AIEN / aien-dev) 4 # 5 # export-kanban.sh: read-only export of a Hermes kanban board (kanban.db) to integer TSV. 6 # Usage: sh export-kanban.sh KANBAN_DB OUT_DIR 7 # Opens the database read-only (sqlite3 -readonly, busy timeout 10 s) and writes: 8 # OUT_DIR/kanban-tasks.tsv idx created status pool completed 9 # OUT_DIR/kanban-runs.tsv idx started ended outcome 10 # OUT_DIR/kanban-events.tsv idx time kind 11 # OUT_DIR/kanban-export.txt the export time (epoch s) and the row counts 12 # idx: 1, 2, ... by task creation time then id (task ids, titles, bodies and payloads are not 13 # exported). status: 0 triage, 1 todo, 2 ready, 3 running, 4 blocked, 5 review, 6 done, 14 # 7 archived, 9 other. pool: the first of pool-10-11 (1), pool-8-9 (2), pool-12-14 (3), 15 # pool-16-18 (4) named in the task body, 0 none. completed/ended: 0 when null. outcome: 1 completed, 16 # 2 blocked, 3 crashed, 4 timed_out, 5 spawn_failed, 6 gave_up, 7 reclaimed, 0 null, 9 other. 17 # kind: 1 created, 2 completed, 3 archived, 0 any other event kind. 18 set -eu 19 db=${1:?kanban.db}; out=${2:?out dir} 20 [ -f "$db" ] || { echo "export-kanban: no file $db" >&2; exit 2; } 21 mkdir -p "$out" 22 tx=$(date -u +%s) 23 q() { sqlite3 -readonly -cmd ".timeout 10000" -separator "$(printf '\t')" "$db" "$1"; } 24 ix="with ix as (select id, row_number() over (order by created_at, id) as n from tasks)" 25 q "$ix select ix.n, t.created_at, 26 case t.status when 'triage' then 0 when 'todo' then 1 when 'ready' then 2 when 'running' then 3 27 when 'blocked' then 4 when 'review' then 5 when 'done' then 6 when 'archived' then 7 else 9 end, 28 case when instr(coalesce(t.body,''),'pool-10-11') > 0 then 1 when instr(coalesce(t.body,''),'pool-8-9') > 0 then 2 29 when instr(coalesce(t.body,''),'pool-12-14') > 0 then 3 when instr(coalesce(t.body,''),'pool-16-18') > 0 then 4 else 0 end, 30 coalesce(t.completed_at, 0) 31 from tasks t join ix on ix.id = t.id order by ix.n;" > "$out/kanban-tasks.tsv" 32 q "$ix select ix.n, r.started_at, coalesce(r.ended_at, 0), 33 case coalesce(r.outcome,'') when '' then 0 when 'completed' then 1 when 'blocked' then 2 when 'crashed' then 3 34 when 'timed_out' then 4 when 'spawn_failed' then 5 when 'gave_up' then 6 when 'reclaimed' then 7 else 9 end 35 from task_runs r join ix on ix.id = r.task_id order by r.started_at, r.id;" > "$out/kanban-runs.tsv" 36 q "$ix select ix.n, e.created_at, 37 case e.kind when 'created' then 1 when 'completed' then 2 when 'archived' then 3 else 0 end 38 from task_events e join ix on ix.id = e.task_id order by e.created_at, e.id;" > "$out/kanban-events.tsv" 39 { 40 echo "export_utc_epoch $tx" 41 echo "tasks $(wc -l < "$out/kanban-tasks.tsv") runs $(wc -l < "$out/kanban-runs.tsv") events $(wc -l < "$out/kanban-events.tsv")" 42 } > "$out/kanban-export.txt" 43 cat "$out/kanban-export.txt"