Repository navigation
Conversation
Every harness template uses bash-only "$(cat __BRIEF__)" substitution, sent via tmux send-keys to whatever interactive shell the pane runs. Under fish (esp. pre-3.4) this fails outright. Wrap the fully assembled LAUNCH string in shell_quote()'d bash -c so the pane shell only needs to parse 'bash -c <string>', independent of its own syntax support. Verified with a standalone repro: built the exact LAUNCH strings for claude/opencode/codex/secondmate templates (incl. nested quotes and env prefixes) and ran them wrapped under fish, bash, and zsh - identical correct output in all three. Also confirmed the separate 'export GOTMPDIR=...' send-keys line is unaffected (fish supports plain export VAR=val).
|
Closing — this PR was opened manually, bypassing the pipeline, so it can't pass the required no-mistakes check. Reopening properly now that the gate is configured to push through the fork. |
Three of the last five fleet PRs (kunchenguid#176, kunchenguid#177, kunchenguid#179) shipped a review verdict older than their branch head, because a commit or rebase landed after the verdict and invalidated it, costing a full loop round. Embed the ordering structurally in the ship brief instead of relying on per-task discipline: implement and fix, rebase onto the current main as the last code step, then request the verdict, then freeze the branch until the verdict covers the head, checking mergeability before every verdict request. The ordering lives once in fm_verdict_ordering_block and is rendered into the direct-PR and no-mistakes definitions of done (the two modes that request a review verdict); local-only never requests one and stays free of it. Tests pin the generated briefs for both verdict modes and the local-only negative; docs updated.
) Three of the last five fleet PRs (kunchenguid#176, kunchenguid#177, kunchenguid#179) shipped a review verdict older than their branch head, because a commit or rebase landed after the verdict and invalidated it, costing a full loop round. Embed the ordering structurally in the ship brief instead of relying on per-task discipline: implement and fix, rebase onto the current main as the last code step, then request the verdict, then freeze the branch until the verdict covers the head, checking mergeability before every verdict request. The ordering lives once in fm_verdict_ordering_block and is rendered into the direct-PR and no-mistakes definitions of done (the two modes that request a review verdict); local-only never requests one and stays free of it. Tests pin the generated briefs for both verdict modes and the local-only negative; docs updated.
Números numa só fonte (PR 4 de 6): antes e depoisPara o capitão aprovar antes de a migração 306 correr em produção. Base: cópia só de leitura da produção de 2026-10-18. ResumoOs números oficiais passam a sair todos de uma vista única,
Como se mediuCópia só de leitura da produção (
Resultados por mês (2026, regime de acréscimo, sem IVA)
(Novembro e dezembro só têm 143,40 € de Segurança Social agendada; a página Resultados só mostra até hoje.) Porque é que os gastos sobem (cada diferença explicada)O custo de uma despesa era calculado de duas maneiras: o Resultados usava a base do documento quando havia documento; os KPIs usavam o valor da despesa. Agora há uma só definição: custo = valor sem IVA (o valor é o total do documento; tira-se o IVA exato) se o IVA é dedutível, valor com IVA se não é. Onde o documento e a despesa discordavam, a definição nova conta o total pago menos o IVA recuperável, que é o custo real.
Por mês: jan +2,23 (B), fev +2,84 (B), mar +2,11 (B), abr +12,98 (B +12,99, C -0,01), mai +11,33 (A +8,00, B +3,33), jun +13,29 (B), jul +9,00 (B +9,06, D -0,06), ago +8,95 (B), set +59,79 (A +45,55, B +14,25, C -0,01), out 0,00. As outras 621 despesas com custo no Resultados de 2026 não mudam um cêntimo. IVA por mês (2026, regime de débito, por data prevista da despesa)O IVA dedutível já incluía o IVA exato das faturas de taxas mistas desde a #167 (as 200 despesas, 791,32 €, já estão no "antes": este PR não as volta a mudar). O que muda aqui:
Por trimestre (a vista do separador IVA do Fiscal):
Três causas, todas cêntimos:
O IVA liquidado (faturas) não muda. Outros números que passam a sair da mesma vista
O que este PR muda no códigoResultados, IVA (separador, estimativa do Fiscal e ponte do banco), Fiscal (obrigações), Previsão (despesas previstas e retenção), Prazos (PMP e saídas pagas), KPIs de lucro, margem do cliente e Rentabilidade passam a ler Decisão pedidaAprovar estas diferenças antes de a migração 306 correr em produção. Se não, reverte-se com |
…unchenguid#176) * fix(bin): keep the Herdr pane relabel off the watcher's beacon path With two dozen task records and a slow Herdr, the coalesced-signal relabel ran inline for minutes: the liveness beacon lapsed past its budget and the guard then refused to re-arm supervision because the lock was held by a live pid with a stale heartbeat. Three things made one pass that expensive. Every task's project aggregate re-read the authoritative state of every managed task in that project, so a pass cost O(tasks x tasks) reads; each task in a project renamed that project's workspace again; and no backend round trip had a deadline, so one wedged call held the whole pass. bin/fm-visible-status.sh now reads each task's state once per pass, renames each workspace once per pass, bounds every round trip per call, per task and per pass, skips a task whose computed label matches the one last published for it, and runs one pass at a time per home with an exported guard that makes a nested pass a no-op. The published labels live in state/<id>.visible-label and state/.visible-workspace-<id>, both caches that are safe to delete; --republish ignores them, which is what session-start recovery now uses. A single-task refresh still always publishes, so a spawn, relaunch or push transition projects as before. bin/fm-watch.sh starts that pass detached, exactly like the published summary beside it, so the beacon never waits on presentation. tests/fm-watch-presentation.test.sh drives a real watcher against 22 task records and a deliberately slow backend and asserts the beacon keeps advancing while the relabel is still in flight and that one coalesced set starts at most one pass; tests/fm-visible-status.test.sh covers the pass's own bounds, the label cache and the single-flight lock over the same fixture fleet. * chore(fork-surface): declare the watcher presentation regression test tests/fm-watch-presentation.test.sh proves the same capability as the other Herdr presentation suites, so it belongs to herdr-worker-presentation rather than being an unclaimed fork-only path.
Summary
launch_template()used bash-only"$(cat __BRIEF__)"command substitution, which fails outright when the treehouse worktree's interactive pane shell is fish instead of bash/zsh.shell_quote()'dbash -cright before the finaltmux send-keys, so the pane's own shell only ever needs to parsebash -c '<string>'regardless of whether it's fish, zsh, or bash.stat -fvsstat -cdetection).Test plan
shell_quote()/launch_template()logic across fish, bash, and zsh for all five harness template shapes (including nested quotes and the secondmateFM_HOME=env-prefix case)