Skip to content

fix(bin): accept filed timestamps outside UTC - #7408

Open
thelad-dev wants to merge 2 commits into
kunchenguid:mainfrom
thelad-dev:fm/board-filed-zeitzone-20261016
Open

thelad-dev wants to merge 2 commits into
kunchenguid:mainfrom
thelad-dev:fm/board-filed-zeitzone-20261016

Conversation

@thelad-dev

@thelad-dev thelad-dev commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Intent

Das Entscheidungsboard verweigert ausserhalb UTC jeden Bau, sobald eine Zeile im Feld filed einen Zeitstempel traegt - obwohl der Skriptkopf genau diese Form erlaubt. Das wird an der fruehesten Grenze korrigiert.

Befund: valid_filed in bin/fm-bearings-board.sh prueft die Zeitstempelform ueber einen Rueckformatierungs-Vergleich mit fromdateiso8601. In jq 1.6 rechnet der Weg ueber den Epochenwert in LOKALER Zeit, und der Vergleich scheitert deshalb auf jeder Maschine, die nicht auf UTC steht. Der ganze Bau bricht dann mit "board data does not satisfy fm-bearings-board.v1" ab.

Nachgerechnet mit jq 1.6, Wert "2026-08-14T09:30:00Z":

  • TZ=UTC: fromdateiso8601|strftime ergibt "2026-08-14T09:30:00Z", Vergleich passt.
  • TZ=Europe/Berlin: derselbe Weg ergibt "2026-08-14T10:30:00Z", Vergleich scheitert.
  • Die Ursache sitzt im Epochen-Schritt: strptime|mktime|todate ergibt ebenfalls 10:30, waehrend strptime|strftime ohne Epochen-Umweg 09:30 ergibt, also korrekt bleibt.
  • Die Datumsform ohne Uhrzeit ist nicht betroffen, weil es dort keine Uhrzeit zu verschieben gibt.

Folge im Alltag: tests/fm-bearings-board-render.test.sh fuehrt in seiner eigenen Vorgabe charted-order einen Zeitstempel und scheitert deshalb auf jeder Maschine ausserhalb UTC - mit und ohne fremde Aenderungen. Auf UTC-Pruefläufern faellt es nie auf. Boards gehen hier bisher nur durch, weil beim Verfassen die Datumsform ohne Uhrzeit benutzt wird.

What Changed

  • Reworked valid_filed in bin/fm-bearings-board.sh so filed date/timestamp checks use strptime/strftime plus explicit month-length and second bounds, instead of an epoch round-trip through fromdateiso8601 that fails under non-UTC local time on jq 1.6.
  • Extended malformed-filed coverage and added a timezone-pinned build test so a UTC timestamp is accepted under both TZ=UTC and TZ=Europe/Berlin, while impossible dates stay rejected.

Risk Assessment

✅ Low: Narrow, well-bounded validation change that removes the TZ-dependent epoch round-trip, restores the documented filed forms outside UTC, and correctly fail-closes impossible seconds and month lengths without new behavior surface.

Testing

Ran the bearings-board unit and render suites (including the full render suite forced under Europe/Berlin), then manually built boards with a filed UTC timestamp under four machine timezones; each build exited 0, kept filed=2026-08-14T09:30:00Z in the HTML payload, rejected second 61, and the jq 1.6 demo still showed the old epoch path shifting to 10:30 under Berlin while the new path stays 09:30.

Evidence: E2E timezone board-build transcript

Source: E2E timezone board-build transcript

=== End-to-end: board build with filed timestamp under non-UTC TZ ===
jq version: jq-1.6
repo: /home/<user>/.no-mistakes/worktrees/0f2624469d68/01M52HT00QASX8YQ4391R75HJQ
host date default TZ=<unset>: Fri Oct 16 04:39:07 PM CEST 2026

--- TZ=UTC ---
payload.filed=2026-08-14T09:30:00Z
build_exit=0
board_exists=yes
built_board.charted[0].filed=2026-08-14T09:30:00Z
html_contains_timestamp=yes
invalid_second61_exit=1 (expect non-zero)
fm-bearings-board: board data does not satisfy fm-bearings-board.v1: /tmp/fm-board-tz-e2e.FTkRG4/e2e-UTC/payload.json

--- TZ=Europe/Berlin ---
payload.filed=2026-08-14T09:30:00Z
build_exit=0
board_exists=yes
built_board.charted[0].filed=2026-08-14T09:30:00Z
html_contains_timestamp=yes
invalid_second61_exit=1 (expect non-zero)
fm-bearings-board: board data does not satisfy fm-bearings-board.v1: /tmp/fm-board-tz-e2e.FTkRG4/e2e-Europe-Berlin/payload.json

--- TZ=America/New_York ---
payload.filed=2026-08-14T09:30:00Z
build_exit=0
board_exists=yes
built_board.charted[0].filed=2026-08-14T09:30:00Z
html_contains_timestamp=yes
invalid_second61_exit=1 (expect non-zero)
fm-bearings-board: board data does not satisfy fm-bearings-board.v1: /tmp/fm-board-tz-e2e.FTkRG4/e2e-America-New_York/payload.json

--- TZ=Asia/Kolkata ---
payload.filed=2026-08-14T09:30:00Z
build_exit=0
board_exists=yes
built_board.charted[0].filed=2026-08-14T09:30:00Z
html_contains_timestamp=yes
invalid_second61_exit=1 (expect non-zero)
fm-bearings-board: board data does not satisfy fm-bearings-board.v1: /tmp/fm-board-tz-e2e.FTkRG4/e2e-Asia-Kolkata/payload.json

=== jq 1.6 regression demonstration (old vs new path) under Europe/Berlin ===
TZ=Europe/Berlin
OLD fromdateiso8601 path: "2026-08-14T10:30:00Z"
NEW strptime|strftime path: "2026-08-14T09:30:00Z"
second 61 bound check: false

=== done ===
Evidence: fm-bearings-board.test.sh output

Source: fm-bearings-board.test.sh output

ok - path prints the stable home-scoped board location
ok - build refuses malformed payloads before touching the board
ok - a filed timestamp is accepted, and an impossible date refused, in any timezone
ok - charted kind is optional and accepts queued and warning
ok - build injects the payload, binds any-origin, then arms the source
ok - registration can consume answers only after any-origin binding exists
ok - build establishes the Lavish session before binding and arming
ok - rebuild refreshes the board in place without double-arming
ok - build refuses a template without exactly one data slot
ok - a board build reopens a session I ended instead of arming a dead one
ok - build reopens a session that ends between establish and listing
ok - build refuses to arm a poll on a session that stays ended
ok - a rebuild starts a listener when an already-armed board has none
ok - build drops decision cards whose subject already landed and keeps open ones
ok - build keeps remote decisions absent from the main backlog
ok - build fails when reconcile cannot prove a live listener
ok - every decision card carries exactly one reconcile choice
ok - build refuses a payload that occupies the reserved reconcile value
ok - build reserves reconcile across non-decision cards
Evidence: render suite under default host TZ

Source: render suite under default host TZ

ok - an underway row leads with the task name and still reports its run status
ok - an underway identifier label is not replaced by run status
ok - charted next renders the most recently filed work first
ok - charted rows with no filed date follow the dated rows in payload order
ok - a warning row badges needs repair while queued work keeps waiting
ok - the charted next count counts queued work only, and still renders warnings
ok - a warning-only board reports nothing queued and still shows the warning
ok - omitted warnings remain separate from omitted queued work
ok - an omitted kind renders exactly as queued work always did
Evidence: render suite under Europe/Berlin

Source: render suite under Europe/Berlin

ok - an underway row leads with the task name and still reports its run status
ok - an underway identifier label is not replaced by run status
ok - charted next renders the most recently filed work first
ok - charted rows with no filed date follow the dated rows in payload order
ok - a warning row badges needs repair while queued work keeps waiting
ok - the charted next count counts queued work only, and still renders warnings
ok - a warning-only board reports nothing queued and still shows the warning
ok - omitted warnings remain separate from omitted queued work
ok - an omitted kind renders exactly as queued work always did
Evidence: Built board under Europe/Berlin with filed timestamp

Source: Built board under Europe/Berlin with filed timestamp

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Bearings - fleet board</title>
<style>
/* ============================================================
   Bearings board - Firstmate Design System, inlined for portability.
   Tokens copied verbatim from myfirstmate priv/static/assets/app.css
   (the compiled adoption of .agents/skills/firstmate-design).
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Chango&family=Jost:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap");

:root {
  --rust-700: #8f2f17; --rust-600: #a93a1f; --rust-500: #c0452a;
  --rust-400: #d35f3f; --rust-300: #e08365; --rust-100: #f4d8c9; --rust-050: #fbece3;
  --navy-700: #1a2238; --navy-600: #222c49; --navy-500: #2a3656;
  --navy-300: #6c7796; --navy-100: #d9deea;
  --gold-600: #b5791c; --gold-500: #e0a52e; --gold-300: #f0d38c; --gold-100: #f8ecc9;
  --ocean-600: #2f6688; --ocean-500: #3c7ea6; --ocean-200: #b6d4e2; --ocean-050: #e8f1f5;
  --sea-700: #234e3a; --sea-500: #2f6b4f; --sea-200: #b9d4c5; --sea-050: #e9f2ec;
  --paper-000: #fbf4e2; --paper-100: #f6ecd3; --paper-200: #f0e3c4; --paper-300: #e7d6ae;
  --cream-line: #ddc89c;
  --ink-900: #241c14; --ink-700: #3f3224; --ink-500: #6f5e46; --ink-300: #9c8a6c;
  --white: #fffdf7;
  --bg-page: var(--paper-100);
  --surface-card: var(--white);
  --surface-card-warm: var(--paper-000);
  --text-strong: var(--ink-900); --text-body: var(--ink-700);
  --text-muted: var(--ink-500); --text-faint: var(--ink-300);
  --border-default: var(--cream-line); --border-soft: var(--paper-300);
  --status-online: var(--sea-500); --status-online-soft: var(--sea-050);
  --status-warn: var(--gold-600); --status-warn-soft: var(--gold-100);
  --status-danger: var(--rust-600); --status-danger-soft: var(--rust-050);
  --status-info: var(--ocean-500); --status-info-soft: var(--ocean-050);
  --font-display: "Chango", "Cooper Black", Rockwell, Georgia, serif;
  --font-sans: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-h3: 1.4rem; --fs-h4: 1.15rem; --fs-base: 1rem; --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem; --fs-2xs: 0.6875rem;
  --ls-caps: 0.16em;
  --radius-xs: 6px; --radius-sm: 9px; --radius-md: 12px; --radius-banner: 7px;
  --radius-lg: 18px; --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(36, 28, 20, 0.06), 0 4px 10px rgba(36, 28, 20, 0.06);
  --shadow-hard: 4px 4px 0 var(--ink-900);
  --shadow-hard-sm: 3px 3px 0 var(--ink-900);
  --texture-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  --focus-ring: 0 0 0 3px var(--gold-300);
  --container-app: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--bg-page);
  background-image: var(--texture-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ---- fm-badge (enamel sign-pin), verbatim contract ---- */
.fm-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-2xs); font-weight: 800; line-height: 1;
  padding: 5px 9px 4px; text-transform: uppercase; letter-spacing: 0.07em;
  border-radius: var(--radius-xs); border: 1.5px solid var(--ink-900);
  box-shadow: 2px 2px 0 var(--ink-900); white-space: nowrap;
}
.fm-badge--online  { background: var(--sea-500);  color: var(--paper-000); }
.fm-badge--warn    { background: var(--gold-500); color: var(--navy-700); }
.fm-badge--danger  { background: var(--rust-600); color: var(--paper-000); }
.fm-badge--info    { background: var(--ocean-500); color: var(--paper-000); }
.fm-badge--neutral { background: var(--paper-000); color: var(--ink-900); }
.fm-badge--solid   { background: var(--rust-500); color: var(--paper-000); }

/* ---- fm-btn ---- */
.fm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 800; line-height: 1; white-space: nowrap;
  border: 2px solid transparent; border-radius: var(--radius-banner); cursor: pointer;
  text-decoration: none; transition: background 120ms, border-color 120ms, transform 120ms, box-shadow 120ms;
}
.fm-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.fm-btn:active { transform: translateY(1px); }
.fm-btn--sm { font-size: var(--fs-xs); padding: 8px 16px; }
.fm-btn--primary { background: var(--rust-500); color: var(--white); border-color: var(--ink-900); box-shadow: var(--shadow-hard-sm); }
.fm-btn--primary:hover { background: var(--rust-600); }
.fm-btn--gold { background: var(--gold-500); color: var(--navy-700); border-color: var(--ink-900); box-shadow: var(--shadow-hard-sm); }
.fm-btn--gold:hover { background: var(--gold-600); color: var(--white); }
.fm-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---- fm-card ---- */
.fm-card {
  background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.fm-card--poster { border: 2px solid var(--ink-900); box-shadow: var(--shadow-hard); border-radius: var(--radius-md); }
.fm-card--warm { background: var(--surface-card-warm); }

/* ---- fm-sign (eyebrow section label) ---- */
.fm-sign {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800;
  text-transform: uppercase; letter-spacing: var(--ls-caps); font-size: var(--fs-xs);
  line-height: 1; white-space: nowrap;
}
.fm-sign--eyebrow { color: var(--rust-500); }
.fm-sign--muted { color: var(--ink-500); }
.fm-sign svg { width: 14px; height: 14px; }
.fm-ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }

/* ============================================================
   Board chrome (bb-*) - built on the same tokens
   ============================================================ */
.bb-nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper-100) 86%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border-default);
}
.bb-nav__inner {
  max-width: var(--container-app); margin: 0 auto; padding: 0 28px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.bb-brand { display: inline-flex; align-items: center; gap: 12px; }
.bb-brand__disc {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 999px; background: var(--rust-500); color: var(--paper-000);
  border: 2px solid var(--ink-900); box-shadow: var(--shadow-hard-sm);
}
.bb-brand__disc svg { width: 60%; height: 60%; }
.bb-brand__wm { font-family: var(--font-display); font-size: 23px; color: var(--text-strong); line-height: 1; }
.bb-meta-mono { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-faint); white-space: nowrap; }

.bb-main {
  max-width: var(--container-app); margin: 0 auto;
  padding: 26px 28px 72px; display: flex; flex-direction: column; gap: 22px;
}

/* stat strip */
.bb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.bb-stat {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-width: 0;
  background: var(--surface-card-warm); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
}
.bb-stat--call { background: var(--rust-050); border: 2px solid var(--rust-500); }
.bb-stat__num { font-family: var(--font-mono); font-size: var(--fs-h3); font-weight: 600; line-height: 1; color: var(--text-strong); }
.bb-stat--call .bb-stat__num { color: var(--rust-600); }
.bb-stat__label { font-family: var(--fon

... [21784 bytes truncated] ...

();
      answerLimit.classList.remove("is-visible");
      var fd = new FormData(form);
      var value = fd.get("answer");
      var note = (fd.get("note") || "").trim();
      var displayAnswer = value ? (note ? value + " - " + note : value) : note;
      if (!displayAnswer) return;
      if (utf8ByteLength(displayAnswer) > 512) {
        answerLimit.textContent = "Answer is too long to queue (512 bytes maximum).";
        answerLimit.classList.add("is-visible");
        return;
      }
      if (window.lavish && window.lavish.queuePrompt) {
        /* The versioned context keeps the selected option separate from its
           note, while close carries the composer-declared completion mode. */
        var ctxData = {
          schema: "fm-bearings-answer.v1",
          question: item.key,
          selection: value || "",
          note: note
        };
        if (item.close) ctxData.close = item.close;
        window.lavish.queuePrompt(
          "Captain's Call answer - " + item.title + ": " + displayAnswer,
          { tag: "choice", text: item.title + " -> " + displayAnswer, element: form,
            data: ctxData }
        );
      }
      card.classList.add("is-queued");
      /* deal the next card once this one is answered */
      setTimeout(function () { showCard(active < cards.length - 1 ? active + 1 : active); }, 450);
    });

    pad.appendChild(form);
    card.appendChild(pad);
    deck.appendChild(card);
  });

  /* stack navigation: one card at a time, dealt off the pile */
  var cards = Array.prototype.slice.call(deck.children);
  var active = 0;
  var stackCount = document.getElementById("bb-stack-count");
  var stackPrev = document.getElementById("bb-stack-prev");
  var stackNext = document.getElementById("bb-stack-next");
  var stackNav = stackCount.parentNode;
  function showCard(i) {
    active = Math.max(0, Math.min(cards.length - 1, i));
    cards.forEach(function (c, j) { c.hidden = j !== active; });
    var answered = deck.querySelectorAll(".is-queued").length;
    stackCount.textContent = "card " + (active + 1) + " of " + cards.length +
      (answered ? " · " + answered + " answered" : "");
    stackPrev.disabled = active === 0;
    stackNext.disabled = active === cards.length - 1;
    /* the pile thins as the deal approaches the bottom */
    deck.classList.toggle("bb-call--penult", active === cards.length - 2);
    deck.classList.toggle("bb-call--last", active === cards.length - 1);
  }
  if (cards.length) {
    stackPrev.addEventListener("click", function () { showCard(active - 1); });
    stackNext.addEventListener("click", function () { showCard(active + 1); });
    showCard(0);
  } else {
    deck.classList.add("bb-call--empty");
    deck.appendChild(el("div", "bb-empty", "Nothing needs your action right now."));
    stackNav.hidden = true;
  }

  /* Underway */
  var uw = document.getElementById("bb-underway");
  if (!data.underway.length) uw.appendChild(el("div", "bb-empty", "Nothing is underway."));
  data.underway.forEach(function (t) {
    var row = el("div", "bb-row");
    row.appendChild(badge(t.state === "working" ? "online" : "info", t.state));
    var main = el("div", "bb-row__main");
    /* the snapshot's durable name-or-id label leads the row so a scan says
       WHICH task this is; the run status keeps its place on the second line */
    main.appendChild(el("div", "bb-row__title", t.name));
    /* captain-facing rows name the repo; the internal task id shows only when
       no repo is known */
    main.appendChild(el("div", "bb-row__sub",
      t.doing + " · " + t.kind + " · " + (t.repo || t.id)));
    row.appendChild(main);
    uw.appendChild(row);
  });

  /* Landed */
  var ld = document.getElementById("bb-landed");
  if (!data.landed.length) ld.appendChild(el("div", "bb-empty", "No recent completions are in the current baseline."));
  data.landed.forEach(function (t) {
    var row = el("div", "bb-row");
    var chk = el("span", "bb-row__check");
    chk.innerHTML = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>';
    row.appendChild(chk);
    var main = el("div", "bb-row__main");
    main.appendChild(el("div", "bb-row__title", t.what));
    main.appendChild(el("div", "bb-row__sub", (t.repo || t.id) + " · " + t.owner));
    row.appendChild(main);
    if (t.pr_url) {
      var a = el("a", "bb-row__pr", "#" + t.pr_url.split("/").pop());
      a.href = t.pr_url; a.title = t.pr_url; a.target = "_blank"; a.rel = "noopener";
      row.appendChild(a);
    }
    ld.appendChild(row);
  });

  /* Charted Next + dispatch picker */
  var ch = document.getElementById("bb-charted");
  var bar = document.getElementById("bb-dispatch");
  var barCount = document.getElementById("bb-dispatch-count");
  var barBtn = document.getElementById("bb-dispatch-btn");
  var anyPickable = false;

  function pickedIds() {
    return Array.prototype.map.call(ch.querySelectorAll(".bb-pick:checked"), function (c) { return c.value; });
  }
  function refreshBar(limitMessage) {
    var n = pickedIds().length;
    barCount.textContent = limitMessage || (n ? n + " picked for dispatch" : "pick queued work to dispatch");
    barBtn.disabled = !n;
  }

  if (!chartedQueued(data.charted).length && !chartedMoreQueued) {
    ch.appendChild(el("div", "bb-empty", "Nothing is queued."));
  }
  chartedOrder(data.charted).forEach(function (t) {
    var row = el("div", "bb-row");
    if (t.dispatchable && !isWarning(t)) {
      anyPickable = true;
      var pick = document.createElement("input");
      pick.type = "checkbox"; pick.className = "bb-pick"; pick.value = t.id;
      pick.setAttribute("aria-label", "Pick " + t.id + " for dispatch");
      pick.addEventListener("change", function () {
        if (pick.checked && utf8ByteLength(pickedIds().join(",")) > 512) {
          pick.checked = false;
          refreshBar("Selection limit reached (512 bytes maximum). ");
          return;
        }
        refreshBar();
      });
      row.appendChild(pick);
    } else {
      row.appendChild(el("span", "bb-pick-spacer"));
    }
    var main = el("div", "bb-row__main");
    main.appendChild(el("div", "bb-row__title", t.title));
    /* second line keeps the title uncrowded in the half-width column */
    var chSub = t.repo || t.id;
    main.appendChild(el("div", "bb-row__sub", t.reason ? t.reason + " · " + chSub : chSub));
    row.appendChild(main);
    if (isWarning(t)) row.appendChild(badge("danger", "needs repair"));
    else if (t.reason) row.appendChild(badge("warn", "waiting"));
    ch.appendChild(row);
  });
  var chartedShown = chartedQueued(data.charted).length;
  var chartedTotal = chartedShown + chartedMoreQueued;
  document.getElementById("bb-charted-sub").textContent =
    chartedMoreQueued ? "showing " + chartedShown + " of " + chartedTotal : "";
  if (chartedMoreQueued) {
    ch.appendChild(el("span", "bb-morechip", "+" + chartedMoreQueued + " more queued - ask firstmate for the full chart"));
  }
  if (chartedMoreWarnings) {
    ch.appendChild(el("span", "bb-morechip", "+" + chartedMoreWarnings + " more repair warning" + (chartedMoreWarnings === 1 ? "" : "s") + " - ask firstmate for the full chart"));
  }

  if (anyPickable) {
    bar.hidden = false;
    refreshBar();
    barBtn.addEventListener("click", function () {
      var ids = pickedIds();
      var dispatchAnswer = ids.join(",");
      if (!ids.length) return;
      if (utf8ByteLength(dispatchAnswer) > 512) {
        refreshBar("Selection is too long to queue (512 bytes maximum). ");
        return;
      }
      if (window.lavish && window.lavish.queuePrompt) {
        window.lavish.queuePrompt(
          "Dispatch order - start this queued work now: " + ids.join(", "),
          { tag: "choice", text: "Dispatch: " + ids.join(", "), element: bar,
            queueKey: "dispatch.charted",
            data: { question: "dispatch.charted", answer: dispatchAnswer } }
        );
      }
      bar.classList.add("is-queued");
    });
  }
  } catch (e) {
    renderBoardError("The board data could not be rendered");
  }
})();
</script>
</body>
</html>
Evidence: jq 1.6 old path shifts under Berlin; new path and second-61 bound hold
TZ=Europe/Berlin
OLD fromdateiso8601 path: "2026-08-14T10:30:00Z"
NEW strptime|strftime path: "2026-08-14T09:30:00Z"
second 61 bound check: false
build under Europe/Berlin: exit 0, built_board.charted[0].filed=2026-08-14T09:30:00Z
invalid_second61_exit=1

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

🔧 **Review** - 1 issue found → auto-fixed ✅
  • ⚠️ bin/fm-bearings-board.sh:142 - After dropping the epoch round-trip, valid_filed still trusts strptime's field bounds. jq 1.6 strptime rejects hour 25 and minute 61, but accepts second 60 and 61 and strftime echoes them back, so values such as "2026-08-14T12:00:61Z" and "2026-12-31T23:59:61Z" pass validation (true under UTC and Europe/Berlin). The old fromdateiso8601 round-trip rejected them because they normalized to a different minute. The comment already notes that month length had to be checked explicitly for the same reason; bound seconds the same way (e.g. $parts[5] <= 59, optionally also hour/minute) so impossible UTC stamps stay fail-closed.

🔧 Fix: Bound filed seconds to 59 explicitly
✅ Re-checked - no issues remain.

✅ **Test** - passed

✅ No issues found.

  • bash tests/fm-bearings-board.test.sh
  • bash tests/fm-bearings-board-render.test.sh
  • TZ=Europe/Berlin bash tests/fm-bearings-board-render.test.sh
  • bash /home/<user>/.no-mistakes/evidence/01M52HT00QASX8YQ4391R75HJQ/run-e2e-filed-tz.sh — board build with filed=2026-08-14T09:30:00Z under TZ=UTC, Europe/Berlin, America/New_York, Asia/Kolkata; second 61 refusal; jq 1.6 old vs new path under Europe/Berlin
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

thelad-dev added 2 commits October 16, 2026 16:27
valid_filed prueft die Zeitstempelform ueber einen Rueckformatierungs-Vergleich.
Der Weg lief bisher ueber einen Epochenwert, und jq 1.6 rechnet dort die lokale
Sommerzeit mit: "2026-08-14T09:30:00Z" kam als "2026-08-14T10:30:00Z" zurueck,
der Vergleich scheiterte, und der ganze Bau brach mit "board data does not
satisfy fm-bearings-board.v1" ab - auf jedem Rechner, der gerade Sommerzeit
fuehrt. Auf UTC-Pruefläufern fiel das nie auf.

Die Pruefung laeuft jetzt ohne Epochen-Umweg: strptime fuellt die zerlegten
Felder wortgetreu, strftime formatiert direkt daraus zurueck. Das liefert unter
UTC, Europe/Berlin, America/New_York und Asia/Kolkata dasselbe Ergebnis.
strptime prueft nur die Feldgrenzen fuer sich, faengt also Monat 13, Tag 32 und
Stunde 99, nicht aber 2026-02-29 oder 2026-04-31; die Monatslaenge steht deshalb
ausdruecklich dabei, statt wie vorher aus der Normalisierung zu fallen. Die
akzeptierten Formen bleiben unveraendert.

Der neue Testfall nagelt die Zeitzone fest: eine Zeile mit Zeitstempel muss
unter TZ=Europe/Berlin angenommen werden und ein Datum, das es nicht gibt,
weiter abgelehnt. Ohne gesetzte Zone faellt derselbe Fehler nur ausserhalb UTC
auf. tests/fm-bearings-board-render.test.sh laeuft damit auch mit lokaler
Zeitzone ohne die bisher scheiternde Zusicherung durch.
@thelad-dev

Copy link
Copy Markdown
Contributor Author

About the red check here: Behavior portable serial 2 was cancelled, not failed. The log shows every assertion up to the cancellation passing and then just The operation was canceled. - no failing test. That shard also does not run the board suites this change touches, and the other 17 jobs are green. Could you rerun that one job?

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate (OSS triage, not the captain).

Thanks @thelad-dev — and you are right about the red check. Head 2d28e929 is unchanged and the attestation MATCHES.

Contract-class: restore. The bin/fm-bearings-board.sh header already promises that a Charted Next row's filed may be YYYY-MM-DD or that date with a UTC timestamp. On jq 1.6 hosts with a non-UTC/DST local zone, the fromdateiso8601 round-trip read valid stamps back an hour off and refused the whole board build. This tip validates by strptime/strftime with explicit month-length and second bounds, so it keeps the same rejection set (Feb 29 on non-leap years, Apr 31, second 60/61) and adds no new surface. Your new TZ-pinned test passes on this head merged with current main.

VISION.md, rule by rule: One captain (aligns — the board builds again for captains outside UTC). Authority explicit (aligns — no new authority). Scripts own the mechanics (aligns — a deterministic validator). Restart a non-event (neutral). Delegation with a spine (aligns — regression coverage). Outlives any vendor (neutral). Scope (aligns).

CI: Behavior portable serial 2 on run 38917745545 has now been CANCELLED at the 30-minute ceiling on all three attempts, with no failing assertion before the cancel. That shard does not run the board suites. This is the known #7255 shard-budget ceiling, which main itself hits. I am not re-running it again: more re-runs will not clear a ceiling. Every other check on this head is green, including Require no-mistakes.

Outcome: waiting-ci under a strict green gate. This is not waiting on you, and there is nothing more you need to do right now. Whether to land it despite that ceiling is a Firstmate/captain call, so I have flagged it there. I will not squash-merge while the required check shows cancelled.

@thelad-dev

Copy link
Copy Markdown
Contributor Author

Following up: I tried that shard three more times and it hits the 30-minute cap every run, so there's nothing new to show from my side - still a cancellation, no failing assertion, and the shard doesn't cover the board suites this touches. Restarting the job needs permissions I don't have here (403).

From my side this one is done: 19 of 20 green, and the twentieth is the known timeout from #7255 rather than anything in this diff. Happy for you to treat that single check as the known flake and take it from here, or tell me what else you'd want to see.

@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate: thank you, @thelad-dev, for trying again and for writing it up so clearly. Nothing more is needed from you on this one.

Where it stands now:

  • Head 2d28e929 is unchanged and still merges cleanly into current main (4e6b9f59).
  • 19 of 20 checks are green, and Require no-mistakes passes with the attestation MATCH.
  • The one red check is Behavior portable serial 2, cancelled at the 30-minute ceiling on all three attempts of run 38917745545, with no failing assertion. That shard doesn't exercise the board suites this touches.
  • Contract-class is still restore, and my VISION read is unchanged.

Landing despite that known serial 2 ceiling is the captain's call, not something an automatic merge can decide, so this is now a captain-decision hold. It is not waiting on you. I've passed it up with that framing. Thanks for your patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants