frizz-server 0.15.61 → 0.15.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/dev-child.js +280 -42
  2. package/package.json +1 -1
  3. package/runtime/cc-worker/hooks/session-seed.mjs +1 -1
  4. package/runtime/cc-worker/lib/frizz-tools.mjs +2 -2
  5. package/web-dist/assets/{abnfDiagram-VCTEODGH-D0SrNbkJ.js → abnfDiagram-VCTEODGH-B23viQiP.js} +1 -1
  6. package/web-dist/assets/architecture-7GRP2DOG-CNcdaCCI.js +1 -0
  7. package/web-dist/assets/{architectureDiagram-5GKGNRK7-BU7TRvZQ.js → architectureDiagram-5GKGNRK7-D8USefah.js} +1 -1
  8. package/web-dist/assets/{blockDiagram-I7D4REHJ-Dr4BLh_6.js → blockDiagram-I7D4REHJ-BtjLcrYi.js} +1 -1
  9. package/web-dist/assets/{c4Diagram-7LVT6UL2-HfvMIAbc.js → c4Diagram-7LVT6UL2-F76BIBsA.js} +1 -1
  10. package/web-dist/assets/channel-Ba68GPpA.js +1 -0
  11. package/web-dist/assets/{chunk-2E4U76K2-BYSN7I7E.js → chunk-2E4U76K2-CU1HWazS.js} +1 -1
  12. package/web-dist/assets/{chunk-4HAMMTFA-CLBDr3II.js → chunk-4HAMMTFA-UxW05P_i.js} +1 -1
  13. package/web-dist/assets/{chunk-75Z2AOVW-0J0HNJlm.js → chunk-75Z2AOVW-hVVY0e1L.js} +1 -1
  14. package/web-dist/assets/{chunk-CLGD4ZFX-D9h2nYEx.js → chunk-CLGD4ZFX-C1O2SPPZ.js} +1 -1
  15. package/web-dist/assets/{chunk-DU6HZSFF-SwKv8JqJ.js → chunk-DU6HZSFF-mBBDvwET.js} +1 -1
  16. package/web-dist/assets/{chunk-F27PBJKO-CfJIiTtI.js → chunk-F27PBJKO-YFj-bXUU.js} +1 -1
  17. package/web-dist/assets/{chunk-GMAD6QVW-DSmWAwgs.js → chunk-GMAD6QVW-DEtmMJEi.js} +1 -1
  18. package/web-dist/assets/{chunk-GVQU2GXP-DDnxTR2I.js → chunk-GVQU2GXP-CJ12GvUv.js} +1 -1
  19. package/web-dist/assets/{chunk-IMKFNOWR-DtbHfNdw.js → chunk-IMKFNOWR-BWv1ipDL.js} +1 -1
  20. package/web-dist/assets/{chunk-L3NEJ4N5-DHfMKhhU.js → chunk-L3NEJ4N5-CUhs1eCv.js} +1 -1
  21. package/web-dist/assets/{chunk-OSK3NFVY-B9lZMEWn.js → chunk-OSK3NFVY-wJEfgmTH.js} +1 -1
  22. package/web-dist/assets/{chunk-P2QGCYS3-JCMPKq0I.js → chunk-P2QGCYS3-DUXmdiIi.js} +1 -1
  23. package/web-dist/assets/{chunk-POPQ4Y6H-EtyFPch1.js → chunk-POPQ4Y6H-DWV_sMOc.js} +1 -1
  24. package/web-dist/assets/{chunk-PWAF6VOD-D8ldhTMH.js → chunk-PWAF6VOD-CI718SMM.js} +1 -1
  25. package/web-dist/assets/{chunk-SHT3W25Y-CIyV9BHE.js → chunk-SHT3W25Y-DnZEwNll.js} +1 -1
  26. package/web-dist/assets/{chunk-SVP7TREG-Bd3EBJ5S.js → chunk-SVP7TREG-DXl-FEaS.js} +1 -1
  27. package/web-dist/assets/{chunk-TICWLB2K-9qWCwEww.js → chunk-TICWLB2K-DzrPNrL4.js} +1 -1
  28. package/web-dist/assets/{chunk-TLUHSLCS-CQovB6TN.js → chunk-TLUHSLCS-cWeDLf7m.js} +2 -2
  29. package/web-dist/assets/classDiagram-ZZMXUADV-BIl8IrqN.js +1 -0
  30. package/web-dist/assets/classDiagram-v2-VYDZK3BY-BIl8IrqN.js +1 -0
  31. package/web-dist/assets/{cynefin-OW5HDTMX-DZVn-34Q.js → cynefin-OW5HDTMX-CGivvV6j.js} +1 -1
  32. package/web-dist/assets/{cynefinDiagram-5FMLGOSQ-CsrVP8pT.js → cynefinDiagram-5FMLGOSQ-DA6ojANA.js} +1 -1
  33. package/web-dist/assets/{dagre-GXQ25YYZ-DhWL88je.js → dagre-GXQ25YYZ-BxTkg-lK.js} +1 -1
  34. package/web-dist/assets/{diagram-S7CK7UJ4-BsUcwpFW.js → diagram-S7CK7UJ4-C8Hpstlc.js} +1 -1
  35. package/web-dist/assets/{diagram-UQ7AKVKN-BHzgvCTC.js → diagram-UQ7AKVKN-BDm_PZpG.js} +1 -1
  36. package/web-dist/assets/{diagram-VSXAHHWV-CIcmeJzv.js → diagram-VSXAHHWV-RArgMOsc.js} +1 -1
  37. package/web-dist/assets/{diagram-VX7I27RA-B-XLFpSP.js → diagram-VX7I27RA-DSU_8ZkT.js} +1 -1
  38. package/web-dist/assets/{diagram-Z3DM3KII-Dnhhim_V.js → diagram-Z3DM3KII-BPbq1Sjk.js} +1 -1
  39. package/web-dist/assets/{ebnfDiagram-PWID7BFC-o31sO5TI.js → ebnfDiagram-PWID7BFC-CxJgw_Ch.js} +1 -1
  40. package/web-dist/assets/{erDiagram-RLTQ6QDP-B_uM0QcU.js → erDiagram-RLTQ6QDP-C4Axha71.js} +1 -1
  41. package/web-dist/assets/eventmodeling-NTZA5JFV-Cye0HMxq.js +1 -0
  42. package/web-dist/assets/flowDiagram-HODETNUW-D-RU7U_9.js +1 -0
  43. package/web-dist/assets/{ganttDiagram-EL5Y4UJY-h8SKqsXp.js → ganttDiagram-EL5Y4UJY-B0nxZ4Xc.js} +1 -1
  44. package/web-dist/assets/{gitGraph-4MIJSDKK-BHLAa0dz.js → gitGraph-4MIJSDKK--aikGW2W.js} +1 -1
  45. package/web-dist/assets/{gitGraphDiagram-WWUBYQGX-C2MvGOM9.js → gitGraphDiagram-WWUBYQGX-BooAol-_.js} +1 -1
  46. package/web-dist/assets/index-OwSaXs6C.js +264 -0
  47. package/web-dist/assets/{info-A6RAGUB7-CBghe2wv.js → info-A6RAGUB7-pI1TzLwA.js} +1 -1
  48. package/web-dist/assets/{infoDiagram-27XIBGKW-nJnhZgd0.js → infoDiagram-27XIBGKW-M-kZYy18.js} +1 -1
  49. package/web-dist/assets/{ishikawaDiagram-5VMMS53U-BkqGxexK.js → ishikawaDiagram-5VMMS53U-DF0j9Mru.js} +1 -1
  50. package/web-dist/assets/{journeyDiagram-3NMN7TZE-CiJPMysM.js → journeyDiagram-3NMN7TZE-CuJaKMi7.js} +1 -1
  51. package/web-dist/assets/{kanban-definition-UXKFOSKX-CbwKqEiz.js → kanban-definition-UXKFOSKX-BW_bR4jD.js} +1 -1
  52. package/web-dist/assets/{line-DrgOlNEE.js → line-C4nu-MyE.js} +1 -1
  53. package/web-dist/assets/{mermaid-parser.core-Mqi5QuHA.js → mermaid-parser.core-D4YANiO2.js} +3 -3
  54. package/web-dist/assets/{mermaid.core-DwKUlFqD.js → mermaid.core-B0rUdjKb.js} +3 -3
  55. package/web-dist/assets/{mindmap-definition-YA3MSWOX-CIeNKhqA.js → mindmap-definition-YA3MSWOX-C-oMLpqe.js} +1 -1
  56. package/web-dist/assets/{packet-AYTQ26CC-CVRBIPRQ.js → packet-AYTQ26CC-C6UAHcr2.js} +1 -1
  57. package/web-dist/assets/{pegDiagram-XKGWAZYB-ufvPkIO8.js → pegDiagram-XKGWAZYB-5jrVGkld.js} +1 -1
  58. package/web-dist/assets/{pie-WAS4IAKB-DcLb2hxR.js → pie-WAS4IAKB-D4F4ioaC.js} +1 -1
  59. package/web-dist/assets/{pieDiagram-E7YTZNPT-C0C-XBir.js → pieDiagram-E7YTZNPT-hglGp1tZ.js} +1 -1
  60. package/web-dist/assets/{quadrantDiagram-AXDQQJYC-BCpaAJvs.js → quadrantDiagram-AXDQQJYC-LXRcDHFO.js} +1 -1
  61. package/web-dist/assets/{radar-RG4KPBEZ-Dy-O5BbV.js → radar-RG4KPBEZ-CTLrr81C.js} +1 -1
  62. package/web-dist/assets/{railroad-74A4TZTK-tTNsV2M_.js → railroad-74A4TZTK-D4i0I4m9.js} +1 -1
  63. package/web-dist/assets/railroad-abnf-HS5TGJTU-CCyFeptO.js +1 -0
  64. package/web-dist/assets/railroad-ebnf-LZEXJU2U-Dt3_mZmI.js +1 -0
  65. package/web-dist/assets/railroad-peg-WCYAUIDC-BEn1Og7V.js +1 -0
  66. package/web-dist/assets/{railroadDiagram-O6MQD6OU-B1j9pQFq.js → railroadDiagram-O6MQD6OU-u1yMp_hI.js} +1 -1
  67. package/web-dist/assets/{requirementDiagram-BXWQKSXE-0dgOJLF9.js → requirementDiagram-BXWQKSXE-7ISLLKF3.js} +1 -1
  68. package/web-dist/assets/{sankeyDiagram-P5KCCOFB-DRb1w1ib.js → sankeyDiagram-P5KCCOFB-BnK6rnjU.js} +1 -1
  69. package/web-dist/assets/{sequenceDiagram-WJ2MYXX4-CsqEg1_2.js → sequenceDiagram-WJ2MYXX4-CnuvmaQF.js} +1 -1
  70. package/web-dist/assets/{stateDiagram-D77RDMKH-CObRpScl.js → stateDiagram-D77RDMKH-Bj9ZPcRt.js} +1 -1
  71. package/web-dist/assets/stateDiagram-v2-MP3YSRHH-DlEsfbG-.js +1 -0
  72. package/web-dist/assets/{swimlanes-42K2YHIH-XBoupwXC.js → swimlanes-42K2YHIH-COI9EGIy.js} +1 -1
  73. package/web-dist/assets/swimlanesDiagram-VR7AAH4N-DBboc6Jp.js +8 -0
  74. package/web-dist/assets/{threadSurfaces-Xsgo03Re.js → threadSurfaces-Bxomexi7.js} +3 -3
  75. package/web-dist/assets/{timeline-definition-24CTP7MA-DVRZabSi.js → timeline-definition-24CTP7MA-L1aCW1vQ.js} +1 -1
  76. package/web-dist/assets/{treeView-Q6P3EWNA-Do8XE_Xj.js → treeView-Q6P3EWNA-DePmdkjB.js} +1 -1
  77. package/web-dist/assets/{treemap-WGGIJYW6-CALC32-8.js → treemap-WGGIJYW6-DOlGwmCm.js} +1 -1
  78. package/web-dist/assets/{vennDiagram-4TSXK5OY-cfXpLBgH.js → vennDiagram-4TSXK5OY-BCEFsIii.js} +1 -1
  79. package/web-dist/assets/{wardley-WFR3VGLG-5TUt4cjk.js → wardley-WFR3VGLG-CLVY7mnX.js} +1 -1
  80. package/web-dist/assets/{wardleyDiagram-VM6X3IG4-D0-kJXri.js → wardleyDiagram-VM6X3IG4-DYVUsvla.js} +1 -1
  81. package/web-dist/assets/{xychartDiagram-S5SC5T6Z-C-rDfQlr.js → xychartDiagram-S5SC5T6Z-D86vmsc2.js} +1 -1
  82. package/web-dist/index.html +1 -1
  83. package/web-dist/assets/architecture-7GRP2DOG-DIU5F6zk.js +0 -1
  84. package/web-dist/assets/channel-B6YILRFT.js +0 -1
  85. package/web-dist/assets/classDiagram-ZZMXUADV-JBZ700Dy.js +0 -1
  86. package/web-dist/assets/classDiagram-v2-VYDZK3BY-JBZ700Dy.js +0 -1
  87. package/web-dist/assets/eventmodeling-NTZA5JFV-BWDdowu3.js +0 -1
  88. package/web-dist/assets/flowDiagram-HODETNUW-DuHqUsOm.js +0 -1
  89. package/web-dist/assets/index-DSbOAssA.js +0 -262
  90. package/web-dist/assets/railroad-abnf-HS5TGJTU-eHslpV8G.js +0 -1
  91. package/web-dist/assets/railroad-ebnf-LZEXJU2U-CJ_yXDAW.js +0 -1
  92. package/web-dist/assets/railroad-peg-WCYAUIDC-DtrITDUL.js +0 -1
  93. package/web-dist/assets/stateDiagram-v2-MP3YSRHH-Cbx23E0g.js +0 -1
  94. package/web-dist/assets/swimlanesDiagram-VR7AAH4N-BNbK4Vi8.js +0 -8
package/dist/dev-child.js CHANGED
@@ -14532,6 +14532,144 @@ function liveOpsLines(ops, needsInput = false) {
14532
14532
  section("Monitors you registered:", "monitors", ops?.commands ?? []);
14533
14533
  return lines;
14534
14534
  }
14535
+ function signoffNudgeMessage(ops, needsInput = false, strayFence = false) {
14536
+ const plain = needsInput ? SIGNOFF_NUDGE_MESSAGE_NEEDS_INPUT : SIGNOFF_NUDGE_MESSAGE;
14537
+ const base = strayFence ? plain.replace(SIGNOFF_NUDGE_BARE_LINE, SIGNOFF_NUDGE_STRAY_LINE) : plain;
14538
+ const lines = liveOpsLines(ops, needsInput);
14539
+ if (lines.length) {
14540
+ lines.push("", "An ```awaiting fence names only what you are ACTUALLY waiting on, one such list per kind, plus");
14541
+ if (needsInput) {
14542
+ lines.push("a required `for:` duration (`30s`/`15m`/`2h`/`3d`) and a required `status:` (`working`, `watching`");
14543
+ lines.push("or `needs_input`), then a `---` line and whatever prose the human needs. Frizz checks every id:");
14544
+ lines.push("name something that is not running and you are bumped rather than parked.");
14545
+ } else {
14546
+ lines.push("a required `for:` duration (`30s`/`15m`/`2h`/`3d`), then a `---` line and whatever prose you want");
14547
+ lines.push("(optional). Frizz checks every id: name something that is not running and you are bumped");
14548
+ lines.push("rather than parked.");
14549
+ }
14550
+ }
14551
+ return lines.length === 0 ? base : `${base}
14552
+ ${lines.join("\n")}`;
14553
+ }
14554
+ function signoffNudgeAwaitingLines(needsInput) {
14555
+ if (!needsInput) {
14556
+ return [
14557
+ "- `` ```awaiting `` \u2014 you are WAITING on work that is actually running. FRONTMATTER, THEN MARKDOWN:",
14558
+ " one YAML list per kind of thing you are waiting on, a REQUIRED `for:` duration, then a `---` line and",
14559
+ " as much prose as you want. The prose is OPTIONAL; the lines above it are not.",
14560
+ "",
14561
+ " ```awaiting",
14562
+ " shells: [<the id your runtime gave you>]",
14563
+ " prs: [owner/repo#123]",
14564
+ " for: 2h",
14565
+ " ---",
14566
+ " What you are waiting for, in your own words \u2014 this is what the human reads on your card.",
14567
+ " ```"
14568
+ ];
14569
+ }
14570
+ return [
14571
+ "- `` ```awaiting `` \u2014 you are WAITING on work that is actually running: a background shell, a",
14572
+ " sub-agent, a timer or a registered PR. FRONTMATTER, THEN MARKDOWN: one YAML list per kind of thing",
14573
+ " you are waiting on, a REQUIRED `for:` duration, a REQUIRED `status:`, then optionally a `---` line",
14574
+ " and prose.",
14575
+ "",
14576
+ " ```awaiting",
14577
+ " agents: [<the id your runtime gave you>]",
14578
+ " status: working",
14579
+ " for: 2h",
14580
+ " ```",
14581
+ "",
14582
+ " `status:` says where the thread sits while you wait, in one of three words:",
14583
+ " - `working` \u2014 what you named finishes by itself: a test, a build, a benchmark, CI, a sub-agent doing",
14584
+ " a task. The thread shows as running until the work wakes you.",
14585
+ " - `watching` \u2014 something has to HAPPEN outside the thread: a release, a review, another agent's",
14586
+ " merge, the next daily cycle. The thread is snoozed, and nothing on its row moves, until a named",
14587
+ " item reports or `for:` runs out.",
14588
+ " - `needs_input` \u2014 the human can read, try or act on something NOW while the work runs (a partial",
14589
+ " result, a file you wrote, a server to try), even if you need nothing back from them. The thread",
14590
+ " goes into their queue, and the prose under `---` says what to look at.",
14591
+ " `working` and `watching` owe NO write-up: the fence alone is the whole message. If you wrote ANY",
14592
+ " words for the human at this rest, it is `needs_input` \u2014 nothing else is put in front of them. A rest",
14593
+ " on running work with NO fence is a bare rest, and it lands in the human's queue."
14594
+ ];
14595
+ }
14596
+ function signoffNudgeText(needsInput) {
14597
+ return [
14598
+ `${SIGNOFF_NUDGE_MARKER} Nothing about your task has changed, and no new work is being asked of you.`,
14599
+ "",
14600
+ SIGNOFF_NUDGE_BARE_LINE,
14601
+ "",
14602
+ "**IF THE TASK STILL HAS PARTS LEFT, THE FENCE IS NOT WHAT YOU OWE \u2014 THE WORK IS.** If ANY part of the",
14603
+ "original task is unfinished, unverified, or deferred, resume it NOW, in THIS turn, and sign off once it",
14604
+ "is genuinely finished. A milestone, a green test run and a long turn are none of them endings, and",
14605
+ "neither is naming the next step or writing it into a scratch file.",
14606
+ "",
14607
+ "**AND THAT TASK IS ALSO THE CEILING \u2014 finish it, and nothing else.** Work you notice on the way is a",
14608
+ "FINDING TO REPORT in your sign-off, never work to take on: the bug beside the one you were sent for,",
14609
+ "the refactor the code obviously wants, the second issue the first one touches. Widening the job is not",
14610
+ "thoroughness \u2014 it is a different job nobody asked for, and it buries the answer they did ask for under",
14611
+ "changes they now have to review. If it should be done, name it in one line and let the human dispatch",
14612
+ "it.",
14613
+ "",
14614
+ "**IF WHAT YOU WERE ASKED FOR IS A DOCUMENT, THE DOCUMENT IS THE ENDING.** A triage, a review, an",
14615
+ "investigation, a recommendation, a plan \u2014 when that is the deliverable, the finished write-up IS the",
14616
+ "work. Implementing what it proposes is the NEXT job, and not yours unless you were asked. Sign off with",
14617
+ "the write-up.",
14618
+ "",
14619
+ "**DECIDE RATHER THAN ASK.** Stop only for a decision that is genuinely the human's AND that blocks you",
14620
+ "right now: ask that one in a ```question fence. Every other open choice INSIDE the task \u2014 a name, a",
14621
+ "default, a reversible design call \u2014 is yours to make: decide it, say in one line which way you went and",
14622
+ "what would reverse it, and carry on. A choice that would ENLARGE the task is not one of those: an",
14623
+ "unanswered question is not permission to go build the answer.",
14624
+ "",
14625
+ "Otherwise, sign off \u2014 a question in your prose, or a fence at the END of your next message:",
14626
+ "",
14627
+ "- `` ```question `` \u2014 you need the human's decision. Write each fence right under the paragraph it",
14628
+ " decides, never stacked at the bottom: `id:` (a slug of your choosing), `kind:` (`choice`, `multi`,",
14629
+ " `text` or `secret`), a one-line `question:`, and `options:` with one-line trade-offs, the recommended",
14630
+ " one first. Frizz registers it when the message lands, and a question asked at this rest is its",
14631
+ " sign-off: rest normally.",
14632
+ "- `` ```done `` \u2014 genuinely FINISHED. A DISMISSAL: the card is filed away and nobody looks again, so",
14633
+ " if anything is still owed, it is not done. Body: 1-3 sentences, then bullets, each opening with a",
14634
+ " **bolded verb phrase**.",
14635
+ ...signoffNudgeAwaitingLines(needsInput),
14636
+ "",
14637
+ " Frizz CHECKS every line: name something that is not running and you are bumped rather than parked.",
14638
+ " A fence that names NOTHING is not a park at all \u2014 if you are not waiting on anything, you are not",
14639
+ " awaiting, you are done. Register a PR with `frizzctl watch-pr add` and a timer with",
14640
+ " `frizzctl timer set`; `frizzctl activity` reads back everything you have running, with its id.",
14641
+ "- `` ```awaiting `` with `steps:` \u2014 the human must PERFORM something you cannot: sign in, approve,",
14642
+ " merge, press a button you may not. List each step as a `- ` line under `steps:`, written to be",
14643
+ " followed cold: a real Markdown link to every page and file it names, every command in a code span,",
14644
+ " every value the act needs written in. Frizz reads them verbatim. Detail the line cannot hold goes in",
14645
+ " a Markdown body indented under it after a blank line. Steps name the HUMAN as the wait,",
14646
+ " so the fence needs no other name and no `for:`, and the thread goes into their queue. Their Done",
14647
+ " comes back to you as their reply; anything else they need to say comes as a message of their own.",
14648
+ "- A question you asked at an EARLIER rest and have not had answered: its card is still on screen",
14649
+ " where you asked it, so leave it there. Only if the human has typed past it since, name it again",
14650
+ " with a ```question fence carrying its `id:` alone under the paragraph it belongs to, which draws its",
14651
+ " card in this message and puts it back in their queue. One you no longer need, withdraw with",
14652
+ " `frizzctl unask <id>` first.",
14653
+ "",
14654
+ "**STILL OWED counts things you are not going to do yourself.** A decision you are RECOMMENDING, a",
14655
+ "draft you wrote but did not send, follow-up work you discovered \u2014 all of it dies with the card, even",
14656
+ "the part that is someone else's to do. Each ends on a question with your recommendation as option A,",
14657
+ "or you DO it first \u2014 a sub-agent's result comes BACK to you, so it lands on your card; a new card via",
14658
+ "`frizzctl spawn-thread` is the LAST resort, since nothing it learns returns to you or its siblings.",
14659
+ "None of them is a `done`. And what is not",
14660
+ 'worth a card is not worth a SENTENCE: delete the dangling "one thing to carry forward", never park it',
14661
+ "in the handoff.",
14662
+ "",
14663
+ "**DO NOT REPEAT YOURSELF.** If the message you just wrote already stands on its own, reply with the",
14664
+ "fence ALONE \u2014 the human reads both together, so restating it costs them the second read for nothing.",
14665
+ "The same holds inside one message: the card is the ledger of what shipped, the prose is only what a",
14666
+ "ledger cannot hold, and a sentence that reads the same in either belongs in exactly one of them.",
14667
+ "",
14668
+ "Only if it does NOT stand alone, fix that first, briefly. It has to be readable cold: the human has",
14669
+ "seen nothing since their own last message \u2014 the Goal, this reminder, a watcher wake all came from",
14670
+ "frizz \u2014 so anything you assumed they had followed, they have not."
14671
+ ].join("\n");
14672
+ }
14535
14673
  function isParkCorrection(text2) {
14536
14674
  const t = text2.trimStart();
14537
14675
  return t.startsWith(PARK_CORRECTION_NAMES_LEAD) || t.startsWith(PARK_CORRECTION_RETIRED_LEAD) || t.startsWith(PARK_CORRECTION_QUESTION_LEAD) || t.startsWith(PARK_CORRECTION_NEEDS_INPUT_LEAD) || t.startsWith(QUESTION_FENCE_CORRECTION_LEAD) || t.startsWith(DONE_FENCE_CORRECTION_LEAD) || t.startsWith(SIGNOFF_CORRECTION_LEAD);
@@ -14600,8 +14738,8 @@ function parkExpiredWakeMessage(status) {
14600
14738
  ...status,
14601
14739
  "",
14602
14740
  "Re-park if they are genuinely still going \u2014 there is no limit on that, and a long job is not a",
14603
- "failure. If something is finished, read its result. If nothing is left, end in ```done, ask the",
14604
- "human in a ```question fence, or rest on your reply with no fence."
14741
+ "failure. If something is finished, read its result. If nothing is left, end in ```done, or ask",
14742
+ "the human in a ```question fence."
14605
14743
  ].join("\n");
14606
14744
  }
14607
14745
  function parkFinishedWakeMessage(status, several) {
@@ -14613,7 +14751,7 @@ function parkFinishedWakeMessage(status, several) {
14613
14751
  "READ ITS OUTPUT AND CARRY ON. This is not a broken fence and there is nothing to fix: the wait",
14614
14752
  "you declared simply ended. Do NOT relaunch the same work \u2014 its result is already on disk.",
14615
14753
  "",
14616
- "Then park on whatever comes next. If nothing is left, end in ```done, a ```question, or your reply with no fence."
14754
+ "Then park on whatever comes next, or end in ```done or a ```question if nothing is left."
14617
14755
  ].join("\n");
14618
14756
  }
14619
14757
  function prWatchExpiredWakeMessage(ref, kind = "pull") {
@@ -15301,7 +15439,7 @@ function parseGithubWakeSteer(text2) {
15301
15439
  function frizzRoute(path5) {
15302
15440
  return `${FRIZZ_ROUTE_PREFIX}${path5.startsWith("/") ? path5 : `/${path5}`}`;
15303
15441
  }
15304
- var import_yaml2, ATTACHMENT_IMAGE_EXTENSIONS, ATTACHMENT_TEXT_EXTENSIONS, ATTACHMENT_OFFICE_EXTENSIONS, ATTACHMENT_DATA_EXTENSIONS, ATTACHMENT_ARCHIVE_EXTENSIONS, ATTACHMENT_DOC_EXTENSIONS, ATTACHMENT_EXTENSIONS, ATTACHMENT_MAX_BASE64_CHARS, ATTACHMENT_MAX_BYTES, ATTACHMENT_EXT_SET, ATTACHMENT_ACCEPT, FrizzStatus, BlockMechanism, RuntimeState, Backend, BACKEND_FOLLOW_UPS, CodexModel, ClaudeModel, CODEX_MODELS_FALLBACK, AcpAgent, ACP_MODEL_PREFIX, OPENCODE_MODEL_PREFIX, ANTIGRAVITY_MODEL_PREFIX, AntigravityModel, AntigravityModels, AntigravityModelsInput, AntigravityQuotaInput, OpencodeModel, OpencodeModels, AcpAgentModel, AcpAgentModels, AcpAgentModelsInput, ThreadProfileOption, ThreadAgent, SubAgentView, BgShellView, CompletionHoldOp, CompletionHold, AskOption, AskQuestion, PendingAsk, AwaitingHint, RETIRED_AWAITING_KINDS, RETIRED_LINE_RE, RETIRED_AWAITING_REPLACEMENT, AWAITING_KEY_RE, AWAITING_YAML_KEYS, AWAITING_SEQUENCE_KEYS, AWAITING_HINT_MAX, AWAITING_HINT_VALUE_MAX, AWAITING_SCALAR_KINDS, AWAITING_STEPS_MAX, AWAITING_STEP_VALUE_MAX, AWAITING_STEP_BODY_MAX, AWAITING_QUESTIONS_MAX, AWAITING_TITLE_MAX, FENCE_DELIMITER_RE, STEP_CODE_FENCE_RE, indentOf2, AWAITING_STATUSES, AWAITING_ITEM_KINDS, AWAITING_DURATION_RE, DURATION_UNIT_MS, AWAITING_FOR_MAX_MS, SnoozeUntil, SNOOZE_PROMPT_MAX, SnoozePrompt, RECURRING_PROMPT_MAX, RECURRING_MIN_INTERVAL_SECONDS, RECURRING_MAX_INTERVAL_SECONDS, RecurringPromptText, RecurringIntervalSeconds, ThreadRecurringPrompt, INTERRUPT_MARKERS, ALLDONE_SENTINEL, OPT_OUT_NOTE, OVER_QUESTION_NOTE, TIMER_PROMPT_MAX, TIMER_MAX_DELAY_SECONDS, TIMER_MAX_ARMED, TimerPromptText, TIMER_DESCRIPTION_MAX, TimerDescriptionText, PR_WATCH_SPENT_TRAILER, PR_WATCH_ARMED_TRAILER, SHELL_DONE_TRAILER, ISSUE_WATCH_SPENT_TRAILER, ISSUE_WATCH_ARMED_TRAILER, LEGACY_PR_WATCH_ARMED_TRAILER, LEGACY_ISSUE_WATCH_ARMED_TRAILER, INTERRUPT_ENDED_LEAD, SIGNOFF_NUDGE_MARKER, PARK_CORRECTION_NAMES_LEAD, PARK_CORRECTION_RETIRED_LEAD, PARK_CORRECTION_QUESTION_LEAD, PARK_CORRECTION_NEEDS_INPUT_LEAD, QUESTION_FENCE_CORRECTION_LEAD, DONE_FENCE_CORRECTION_LEAD, SIGNOFF_CORRECTION_LEAD, ThreadWatchKind, GithubChecksState, GithubMergeState, GithubWatchStatus, GITHUB_READING_STALE_MS, GithubIssueStatus, CommandWatchRun, MonitorStatus, ThreadWatchView, PR_WATCH_FOR_MAX_MS, PR_WATCH_DEFAULT_FOR_MS, PR_WATCH_MAX_ARMED, PrWatchView, AddOwnPrWatchInput, AddOwnPrWatchResult, DropOwnPrWatchInput, DropOwnPrWatchResult, OwnWatchKind, AddOwnWatchInput, OwnWatchView, AddOwnWatchResult, DropOwnWatchInput, DropOwnWatchResult, OWN_WATCH_MAX_ARMED, COMMAND_WATCH_EVERY_MIN_MS, COMMAND_WATCH_EVERY_MAX_MS, COMMAND_WATCH_FOR_MAX_MS, COMMAND_WATCH_MAX_ARMED, COMMAND_WATCH_COMMAND_MAX, COMMAND_WATCH_OUTPUT_MAX_BYTES, COMMAND_WATCH_RUN_TIMEOUT_MS, MONITOR_DESCRIPTION_MAX, CommandWatchState, CommandWatchView, AddOwnCommandWatchInput, AddOwnCommandWatchResult, DropOwnCommandWatchInput, DropOwnCommandWatchResult, ListOwnCommandWatchesInput, OwnCommandWatchesResult, COMMAND_WATCH_FALLBACK, COMMAND_WATCH_PASSED_TRAILER, COMMAND_WATCH_EXPIRED_TRAILER, COMMAND_WATCH_CANCELLED_TRAILER, COMMAND_WATCH_TRAILERS_EXPIRED, MONITOR_BATCH_MS, MONITOR_LINE_MAX_CHARS, MONITOR_EVENT_MAX_LINES, MONITOR_FLOOD_MAX_EVENTS, MONITOR_FLOOD_WINDOW_MS, MONITOR_REGISTRATION_WINDOW_MS, MONITOR_SERVER_MAX_RUNNING, AddOwnMonitorInput, AddOwnMonitorResult, MONITOR_FALLBACK, MONITOR_EVENT_TRAILER, MONITOR_EXITED_TRAILER, MONITOR_EXPIRED_TRAILER, MONITOR_CANCELLED_TRAILER, MONITOR_FLOOD_REASON, MONITOR_STOPPED_BY_HUMAN_REASON, QUESTION_FENCE_RETIRED_AT, NEEDS_INPUT_REQUIRED_AT, AskQuestionKind, ASK_MAX_DEPTH, AskedOptionSchema, AskedQuestionSchema, AskInput, RegisteredQuestionView, QuestionFenceFaultView, ClosedQuestionView, SECRET_ANSWER_PREFIX, SECRET_TTL_MS, AskResult, UnaskInput, UnaskResult, QuestionAnswerSchema, AnswerQuestionsInput, AnswerQuestionsResult, DismissQuestionsInput, DismissQuestionsResult, SettledQuestionView, ClosedQuestionSpecView, ThreadSettledQuestionsResult, ThreadRegisteredDoneResult, BURIED_ANSWERS_HEADER, ANSWER_FOLLOW_UP_MARKER, ANSWER_CONTINUATION_INDENT, indentAnswerContinuation, ANSWER_PICK_PREFIX, DISMISSED_ANSWER, ANSWER_ROW_ID_PATTERN, ANSWER_ROW_ID, answerRowId, ANSWERS_NOTE_HEADER, STEPS_DONE, MarkOwnDoneInput, MarkOwnDoneResult, ListOwnPrWatchesInput, OwnPrWatchesResult, ThreadTimerView, ThreadFence, LimitWindow, LimitPause, ProviderError, ThreadLinkView, HumanTodo, SetHumanTodoInput, UpsertOwnLinkInput, UpsertOwnLinkResult, DropOwnLinkInput, DropOwnLinkResult, ThreadWorktreeView, GitRevision, AddOwnWorktreeInput, OwnWorktreesResult, AddOwnWorktreeResult, DropOwnWorktreeInput, DropOwnWorktreeResult, ListOwnWorktreesInput, LiveTool, ThreadView, SPINNING_UP_TITLE, UNTITLED_THREAD_TITLE, SPIN_UP_MS, CODEX_TITLE_SIGNAL_GRACE_MS, BoardErrorItem, BoardSnapshot, BoardState, QuotaWindow, ProviderQuota, QuotaSnapshot, ProviderAuth, AccountEmails, AuthSnapshot, AccountBackend, AccountLogoutInput, AccountLogoutResult, PermissionMode, LocalFileOpener, Settings, DispatchProviderPreferences, DispatchPreferences, DispatchProfileSnapshotShape, DispatchProfileSnapshot, SetDispatchPreferenceInput, DispatchInput, ADOPT_THREAD_MESSAGE_MAX_CHARS, AdoptThreadInput, AdoptThreadResult, AdoptSessionInput, FollowUpInput, SteerThreadInput, SteerThreadResult, SpawnThreadInput, SpawnThreadResult, SpawnChildInput, SpawnChildResult, DismissFailedFollowUpInput, DismissFailedFollowUpResult, UnqueueFollowUpInput, UnqueueFollowUpResult, DeliverQueuedNowInput, DeliverQueuedNowResult, CompactThreadInput, SetThreadSnoozeInput, SetThreadPinnedInput, ReorderPinnedThreadsInput, SetThreadConsolePinnedInput, ReorderConsolePinnedThreadsInput, SetThreadRecurringPromptInput, SetOwnThreadRecurringPromptInput, SetOwnThreadRecurringPromptResult, GetOwnThreadRecurringPromptInput, OwnThreadRecurringPromptResult, SetOwnThreadTimerInput, CancelOwnThreadTimerInput, ListOwnThreadTimersInput, OwnThreadTimersResult, ThreadActivityItem, ListOwnThreadActivityInput, OwnThreadActivityResult, ThreadBand, ThreadListing, ListThreadsInput, ListThreadsResult, FindThreadsInput, ThreadMatch, FindThreadsResult, SetOwnThreadTimerResult, CancelOwnThreadTimerResult, SetOwnThreadStopHookInput, SetOwnThreadHeartbeatInput, RenameThreadInput, AiRenameThreadInput, AiRenameThreadResult, SetOwnThreadTitleInput, SetOwnThreadTitleResult, SetThreadPermissionInput, SetThreadPermissionResult, ThreadProfileOptionsInput, ThreadProfileOptionsResult, ThreadSkillSource, ThreadSkill, ThreadSkillsInput, ThreadSkillsResult, McpTarget, McpServerState, McpServerReading, McpStatusInput, McpStatusResult, McpServerName, McpReloadChange, McpReloadInput, McpReloadResult, McpSignInInput, McpSignInState, McpSignInResult, McpSignInAttemptInput, McpSignInPollResult, McpSignInFinishInput, SetThreadProfileInput, SetThreadProfileResult, UpgradeThreadModelInput, UpgradeThreadModelResult, DISPATCH_TASK_BANNER, DISPATCH_TASK_BANNER_MARKER, GITHUB_DISPATCH_UI_BOUNDARY, WAKE_TIME_HEADER_TAIL, WAKE_TRAILERS, HUMAN_GAP_FLOOR_MS, HUMAN_GAP_NOTE_TAIL, WAKE_DELIVERY_TOKEN_TAIL, WAKE_DELIVERY_TOKEN_LINE, MERGED_WAKE_LEAD, MERGED_WAKE_HEADING, NOISE_PREFIXES, AGENT_MESSAGE_WRAPPER, CROSS_SESSION_PREAMBLE, CROSS_SESSION_WRAPPER, CROSS_SESSION_GUIDANCE, XML_ATTRIBUTE, THREAD_MESSAGE_OPEN, THREAD_MESSAGE_CLOSE, THREAD_MESSAGE_GUIDANCE, sealThreadMessageBody, unsealThreadMessageBody, RETRY_FOLLOW_UP, GithubWakeItem, GithubWakeSteer, WAKE_SCOPE, WAKE_REVIEW_LEAD, WAKE_BACKLOG_TAIL, WAKE_REF, WAKE_SINGLE, WAKE_MULTI_HEAD, WAKE_ITEM, WAKE_MORE, PR_WATCH_FINISHED, PR_WATCH_CI_PASSED, PR_WATCH_CI_GATED, PR_WATCH_STATE, PR_WATCH_CI_FAILED, GithubStatus, GithubAccount, GithubRefCard, GithubRefPreviewInput, GithubRefPreviewResult, GithubItem, GithubListInput, GithubListResult, GithubBatchInput, GithubBatchResult, BoardMeta, BoardDeltaEvent, ServerEvent, BoardDeltasInput, BoardDeltasResult, TranscriptEdit, TranscriptTodo, TranscriptToolCall, TranscriptPart, TranscriptMessage, TranscriptPageCursor, EditedFile, WorktreeChangedFile, WorktreeChanges, ScratchFiles, TranscriptPage, TranscriptEarlierInput, SocketTranscriptSlug, SocketFilePath, SocketTranscriptClientMsg, SocketFileClientMsg, SocketBoardClientMsg, SocketClientMsg, ProjectCard, ProjectRailCounts, PROJECT_ICON_EXTENSIONS, PROJECT_ICON_MAX_BASE64_CHARS, DirectoryPickResult, ThreadLocation, FRIZZ_ROUTE_PREFIX, DEFAULT_PORT, threadIdentityName;
15442
+ var import_yaml2, ATTACHMENT_IMAGE_EXTENSIONS, ATTACHMENT_TEXT_EXTENSIONS, ATTACHMENT_OFFICE_EXTENSIONS, ATTACHMENT_DATA_EXTENSIONS, ATTACHMENT_ARCHIVE_EXTENSIONS, ATTACHMENT_DOC_EXTENSIONS, ATTACHMENT_EXTENSIONS, ATTACHMENT_MAX_BASE64_CHARS, ATTACHMENT_MAX_BYTES, ATTACHMENT_EXT_SET, ATTACHMENT_ACCEPT, FrizzStatus, BlockMechanism, RuntimeState, Backend, BACKEND_FOLLOW_UPS, CodexModel, ClaudeModel, CODEX_MODELS_FALLBACK, AcpAgent, ACP_MODEL_PREFIX, OPENCODE_MODEL_PREFIX, ANTIGRAVITY_MODEL_PREFIX, AntigravityModel, AntigravityModels, AntigravityModelsInput, AntigravityQuotaInput, OpencodeModel, OpencodeModels, AcpAgentModel, AcpAgentModels, AcpAgentModelsInput, ThreadProfileOption, ThreadAgent, SubAgentView, BgShellView, CompletionHoldOp, CompletionHold, AskOption, AskQuestion, PendingAsk, AwaitingHint, RETIRED_AWAITING_KINDS, RETIRED_LINE_RE, RETIRED_AWAITING_REPLACEMENT, AWAITING_KEY_RE, AWAITING_YAML_KEYS, AWAITING_SEQUENCE_KEYS, AWAITING_HINT_MAX, AWAITING_HINT_VALUE_MAX, AWAITING_SCALAR_KINDS, AWAITING_STEPS_MAX, AWAITING_STEP_VALUE_MAX, AWAITING_STEP_BODY_MAX, AWAITING_QUESTIONS_MAX, AWAITING_TITLE_MAX, FENCE_DELIMITER_RE, STEP_CODE_FENCE_RE, indentOf2, AWAITING_STATUSES, AWAITING_ITEM_KINDS, AWAITING_DURATION_RE, DURATION_UNIT_MS, AWAITING_FOR_MAX_MS, SnoozeUntil, SNOOZE_PROMPT_MAX, SnoozePrompt, RECURRING_PROMPT_MAX, RECURRING_MIN_INTERVAL_SECONDS, RECURRING_MAX_INTERVAL_SECONDS, RecurringPromptText, RecurringIntervalSeconds, ThreadRecurringPrompt, INTERRUPT_MARKERS, ALLDONE_SENTINEL, OPT_OUT_NOTE, OVER_QUESTION_NOTE, TIMER_PROMPT_MAX, TIMER_MAX_DELAY_SECONDS, TIMER_MAX_ARMED, TimerPromptText, TIMER_DESCRIPTION_MAX, TimerDescriptionText, PR_WATCH_SPENT_TRAILER, PR_WATCH_ARMED_TRAILER, SHELL_DONE_TRAILER, ISSUE_WATCH_SPENT_TRAILER, ISSUE_WATCH_ARMED_TRAILER, LEGACY_PR_WATCH_ARMED_TRAILER, LEGACY_ISSUE_WATCH_ARMED_TRAILER, INTERRUPT_ENDED_LEAD, SIGNOFF_NUDGE_MARKER, SIGNOFF_NUDGE_BARE_LINE, SIGNOFF_NUDGE_STRAY_LINE, SIGNOFF_NUDGE_MESSAGE, SIGNOFF_NUDGE_MESSAGE_NEEDS_INPUT, PARK_CORRECTION_NAMES_LEAD, PARK_CORRECTION_RETIRED_LEAD, PARK_CORRECTION_QUESTION_LEAD, PARK_CORRECTION_NEEDS_INPUT_LEAD, QUESTION_FENCE_CORRECTION_LEAD, DONE_FENCE_CORRECTION_LEAD, SIGNOFF_CORRECTION_LEAD, ThreadWatchKind, GithubChecksState, GithubMergeState, GithubWatchStatus, GITHUB_READING_STALE_MS, GithubIssueStatus, CommandWatchRun, MonitorStatus, ThreadWatchView, PR_WATCH_FOR_MAX_MS, PR_WATCH_DEFAULT_FOR_MS, PR_WATCH_MAX_ARMED, PrWatchView, AddOwnPrWatchInput, AddOwnPrWatchResult, DropOwnPrWatchInput, DropOwnPrWatchResult, OwnWatchKind, AddOwnWatchInput, OwnWatchView, AddOwnWatchResult, DropOwnWatchInput, DropOwnWatchResult, OWN_WATCH_MAX_ARMED, COMMAND_WATCH_EVERY_MIN_MS, COMMAND_WATCH_EVERY_MAX_MS, COMMAND_WATCH_FOR_MAX_MS, COMMAND_WATCH_MAX_ARMED, COMMAND_WATCH_COMMAND_MAX, COMMAND_WATCH_OUTPUT_MAX_BYTES, COMMAND_WATCH_RUN_TIMEOUT_MS, MONITOR_DESCRIPTION_MAX, CommandWatchState, CommandWatchView, AddOwnCommandWatchInput, AddOwnCommandWatchResult, DropOwnCommandWatchInput, DropOwnCommandWatchResult, ListOwnCommandWatchesInput, OwnCommandWatchesResult, COMMAND_WATCH_FALLBACK, COMMAND_WATCH_PASSED_TRAILER, COMMAND_WATCH_EXPIRED_TRAILER, COMMAND_WATCH_CANCELLED_TRAILER, COMMAND_WATCH_TRAILERS_EXPIRED, MONITOR_BATCH_MS, MONITOR_LINE_MAX_CHARS, MONITOR_EVENT_MAX_LINES, MONITOR_FLOOD_MAX_EVENTS, MONITOR_FLOOD_WINDOW_MS, MONITOR_REGISTRATION_WINDOW_MS, MONITOR_SERVER_MAX_RUNNING, AddOwnMonitorInput, AddOwnMonitorResult, MONITOR_FALLBACK, MONITOR_EVENT_TRAILER, MONITOR_EXITED_TRAILER, MONITOR_EXPIRED_TRAILER, MONITOR_CANCELLED_TRAILER, MONITOR_FLOOD_REASON, MONITOR_STOPPED_BY_HUMAN_REASON, QUESTION_FENCE_RETIRED_AT, NEEDS_INPUT_REQUIRED_AT, AskQuestionKind, ASK_MAX_DEPTH, AskedOptionSchema, AskedQuestionSchema, AskInput, RegisteredQuestionView, QuestionFenceFaultView, ClosedQuestionView, SECRET_ANSWER_PREFIX, SECRET_TTL_MS, AskResult, UnaskInput, UnaskResult, QuestionAnswerSchema, AnswerQuestionsInput, AnswerQuestionsResult, DismissQuestionsInput, DismissQuestionsResult, SettledQuestionView, ClosedQuestionSpecView, ThreadSettledQuestionsResult, ThreadRegisteredDoneResult, BURIED_ANSWERS_HEADER, ANSWER_FOLLOW_UP_MARKER, ANSWER_CONTINUATION_INDENT, indentAnswerContinuation, ANSWER_PICK_PREFIX, DISMISSED_ANSWER, ANSWER_ROW_ID_PATTERN, ANSWER_ROW_ID, answerRowId, ANSWERS_NOTE_HEADER, STEPS_DONE, MarkOwnDoneInput, MarkOwnDoneResult, ListOwnPrWatchesInput, OwnPrWatchesResult, ThreadTimerView, ThreadFence, LimitWindow, LimitPause, ProviderError, ThreadLinkView, HumanTodo, SetHumanTodoInput, UpsertOwnLinkInput, UpsertOwnLinkResult, DropOwnLinkInput, DropOwnLinkResult, ThreadWorktreeView, GitRevision, AddOwnWorktreeInput, OwnWorktreesResult, AddOwnWorktreeResult, DropOwnWorktreeInput, DropOwnWorktreeResult, ListOwnWorktreesInput, LiveTool, ThreadView, SPINNING_UP_TITLE, UNTITLED_THREAD_TITLE, SPIN_UP_MS, CODEX_TITLE_SIGNAL_GRACE_MS, BoardErrorItem, BoardSnapshot, BoardState, QuotaWindow, ProviderQuota, QuotaSnapshot, ProviderAuth, AccountEmails, AuthSnapshot, AccountBackend, AccountLogoutInput, AccountLogoutResult, PermissionMode, LocalFileOpener, Settings, DispatchProviderPreferences, DispatchPreferences, DispatchProfileSnapshotShape, DispatchProfileSnapshot, SetDispatchPreferenceInput, DispatchInput, ADOPT_THREAD_MESSAGE_MAX_CHARS, AdoptThreadInput, AdoptThreadResult, AdoptSessionInput, FollowUpInput, SteerThreadInput, SteerThreadResult, SpawnThreadInput, SpawnThreadResult, SpawnChildInput, SpawnChildResult, DismissFailedFollowUpInput, DismissFailedFollowUpResult, UnqueueFollowUpInput, UnqueueFollowUpResult, DeliverQueuedNowInput, DeliverQueuedNowResult, CompactThreadInput, SetThreadSnoozeInput, SetThreadPinnedInput, ReorderPinnedThreadsInput, SetThreadConsolePinnedInput, ReorderConsolePinnedThreadsInput, SetThreadRecurringPromptInput, SetOwnThreadRecurringPromptInput, SetOwnThreadRecurringPromptResult, GetOwnThreadRecurringPromptInput, OwnThreadRecurringPromptResult, SetOwnThreadTimerInput, CancelOwnThreadTimerInput, ListOwnThreadTimersInput, OwnThreadTimersResult, ThreadActivityItem, ListOwnThreadActivityInput, OwnThreadActivityResult, ThreadBand, ThreadListing, ListThreadsInput, ListThreadsResult, FindThreadsInput, ThreadMatch, FindThreadsResult, SetOwnThreadTimerResult, CancelOwnThreadTimerResult, SetOwnThreadStopHookInput, SetOwnThreadHeartbeatInput, RenameThreadInput, AiRenameThreadInput, AiRenameThreadResult, SetOwnThreadTitleInput, SetOwnThreadTitleResult, SetThreadPermissionInput, SetThreadPermissionResult, ThreadProfileOptionsInput, ThreadProfileOptionsResult, ThreadSkillSource, ThreadSkill, ThreadSkillsInput, ThreadSkillsResult, McpTarget, McpServerState, McpServerReading, McpStatusInput, McpStatusResult, McpServerName, McpReloadChange, McpReloadInput, McpReloadResult, McpSignInInput, McpSignInState, McpSignInResult, McpSignInAttemptInput, McpSignInPollResult, McpSignInFinishInput, SetThreadProfileInput, SetThreadProfileResult, UpgradeThreadModelInput, UpgradeThreadModelResult, DISPATCH_TASK_BANNER, DISPATCH_TASK_BANNER_MARKER, GITHUB_DISPATCH_UI_BOUNDARY, WAKE_TIME_HEADER_TAIL, WAKE_TRAILERS, HUMAN_GAP_FLOOR_MS, HUMAN_GAP_NOTE_TAIL, WAKE_DELIVERY_TOKEN_TAIL, WAKE_DELIVERY_TOKEN_LINE, MERGED_WAKE_LEAD, MERGED_WAKE_HEADING, NOISE_PREFIXES, AGENT_MESSAGE_WRAPPER, CROSS_SESSION_PREAMBLE, CROSS_SESSION_WRAPPER, CROSS_SESSION_GUIDANCE, XML_ATTRIBUTE, THREAD_MESSAGE_OPEN, THREAD_MESSAGE_CLOSE, THREAD_MESSAGE_GUIDANCE, sealThreadMessageBody, unsealThreadMessageBody, RETRY_FOLLOW_UP, GithubWakeItem, GithubWakeSteer, WAKE_SCOPE, WAKE_REVIEW_LEAD, WAKE_BACKLOG_TAIL, WAKE_REF, WAKE_SINGLE, WAKE_MULTI_HEAD, WAKE_ITEM, WAKE_MORE, PR_WATCH_FINISHED, PR_WATCH_CI_PASSED, PR_WATCH_CI_GATED, PR_WATCH_STATE, PR_WATCH_CI_FAILED, GithubStatus, GithubAccount, GithubRefCard, GithubRefPreviewInput, GithubRefPreviewResult, GithubItem, GithubListInput, GithubListResult, GithubBatchInput, GithubBatchResult, BoardMeta, BoardDeltaEvent, ServerEvent, BoardDeltasInput, BoardDeltasResult, TranscriptEdit, TranscriptTodo, TranscriptToolCall, TranscriptPart, TranscriptMessage, TranscriptPageCursor, EditedFile, WorktreeChangedFile, WorktreeChanges, ScratchFiles, TranscriptPage, TranscriptEarlierInput, SocketTranscriptSlug, SocketFilePath, SocketTranscriptClientMsg, SocketFileClientMsg, SocketBoardClientMsg, SocketClientMsg, ProjectCard, ProjectRailCounts, PROJECT_ICON_EXTENSIONS, PROJECT_ICON_MAX_BASE64_CHARS, DirectoryPickResult, ThreadLocation, FRIZZ_ROUTE_PREFIX, DEFAULT_PORT, threadIdentityName;
15305
15443
  var init_src = __esm({
15306
15444
  "packages/shared/src/index.ts"() {
15307
15445
  "use strict";
@@ -15827,6 +15965,15 @@ var init_src = __esm({
15827
15965
  LEGACY_ISSUE_WATCH_ARMED_TRAILER = "(Registered issue watcher \u2014 STILL ARMED. It reports again on the next comment, label or assignee change, and once more when the issue closes. Drop it with `mcp__frizz__watch_issue` when it stops mattering.)";
15828
15966
  INTERRUPT_ENDED_LEAD = "\u26A0\uFE0F The human's last follow-up was sent with INTERRUPT, which aborted your turn \u2014 and the runtime ends every background sub-agent with the turn. These did not return:";
15829
15967
  SIGNOFF_NUDGE_MARKER = "**This message is from frizz, not from the human.**";
15968
+ SIGNOFF_NUDGE_BARE_LINE = "You rested without a fence, so this thread cannot be triaged.";
15969
+ SIGNOFF_NUDGE_STRAY_LINE = [
15970
+ "Your last message wrote a ```done or ```awaiting fence, but not as its END, so it signals nothing and this",
15971
+ "thread cannot be triaged. Only whitespace and ```question fences may follow the signal fence. Prose after it",
15972
+ "turns it into a plain code block, and so does a code block inside it whose own closing ``` line closes a",
15973
+ "three-backtick fence early: open a fence that holds code blocks with four backticks."
15974
+ ].join("\n");
15975
+ SIGNOFF_NUDGE_MESSAGE = signoffNudgeText(false);
15976
+ SIGNOFF_NUDGE_MESSAGE_NEEDS_INPUT = signoffNudgeText(true);
15830
15977
  PARK_CORRECTION_NAMES_LEAD = "\u26A0\uFE0F Your ```awaiting fence names ";
15831
15978
  PARK_CORRECTION_RETIRED_LEAD = "\u26D4 Your ```awaiting fence uses ";
15832
15979
  PARK_CORRECTION_QUESTION_LEAD = "\u26A0\uFE0F Your ```awaiting fence landed while ";
@@ -25554,6 +25701,14 @@ function createStorage(source, projectId) {
25554
25701
  WHERE project_id = @project_id AND id = ? AND state = 'armed'
25555
25702
  `);
25556
25703
  const delThreadTimers = scope.prepare("DELETE FROM thread_timer WHERE project_id = @project_id AND thread_slug = ?");
25704
+ const countNudgeStmt = scope.prepare(`
25705
+ UPDATE session SET signoff_nudges = signoff_nudges + 1, signoff_nudge_anchor = ?
25706
+ WHERE project_id = @project_id AND slug = ? AND signoff_nudge_anchor IS NOT ?
25707
+ `);
25708
+ const resetNudgesStmt = scope.prepare(`
25709
+ UPDATE session SET signoff_nudges = 0, signoff_nudge_anchor = NULL
25710
+ WHERE project_id = @project_id AND slug = ? AND signoff_nudges > 0
25711
+ `);
25557
25712
  const countParkBumpStmt = scope.prepare(`
25558
25713
  UPDATE session SET park_bumps = park_bumps + 1, park_bump_anchor = ?
25559
25714
  WHERE project_id = @project_id AND slug = ? AND park_bump_anchor IS NOT ?
@@ -26302,6 +26457,8 @@ function createStorage(source, projectId) {
26302
26457
  setBgSnoozeRestedAtIfCurrent: (slug, sessionId, generation, restedAt) => bgSnoozeRestedAtIfCurrentStmt.run(restedAt, slug, sessionId, generation).changes === 1,
26303
26458
  setRecurringPromptIfCurrent: (slug, sessionId, generation, write) => recurringStmt.run(...recurringArgs(write), slug, sessionId, generation).changes === 1,
26304
26459
  setRecurringPromptBySlug: (slug, write) => recurringBySlugStmt.run(...recurringArgs(write), slug).changes === 1,
26460
+ countSignoffNudge: (slug, anchor) => void countNudgeStmt.run(anchor, slug, anchor),
26461
+ resetSignoffNudges: (slug) => void resetNudgesStmt.run(slug),
26305
26462
  countParkBump: (slug, anchor) => void countParkBumpStmt.run(anchor, slug, anchor),
26306
26463
  resetParkBumps: (slug) => void resetParkBumpsStmt.run(slug),
26307
26464
  armPrWatch: (watch2) => void armPrWatchStmt.run({ ...watch2, kind: watch2.kind ?? "pull" }),
@@ -26716,8 +26873,8 @@ var init_storage = __esm({
26716
26873
  recurring_rest_fired_at TEXT,
26717
26874
  recurring_schedule_fired_at TEXT,
26718
26875
  recurring_compact_fired_at TEXT,
26719
- -- THE RETIRED SIGN-OFF REMINDER (scheduler SOURCE 9, 2026-08-12 \u2192 2026-11-19) counted its deliveries
26720
- -- here. Nothing reads or writes these two any more; they stay so an existing database still matches.
26876
+ -- THE BUILT-IN SIGN-OFF NUDGE (scheduler SOURCE 9): how many times in a row frizz has told this
26877
+ -- thread how to sign off without a fence appearing, and the last-nudged delivery id.
26721
26878
  signoff_nudges INTEGER NOT NULL DEFAULT 0,
26722
26879
  signoff_nudge_anchor TEXT,
26723
26880
  -- Cleared by resetParkBumps when a park is actually HONOURED.
@@ -48079,7 +48236,7 @@ function readAwaitingPark(hints) {
48079
48236
  forMs = parseAwaitingDurationRaw(value);
48080
48237
  }
48081
48238
  }
48082
- return { items, forMs, steps: awaitingSteps(hints), questions: awaitingQuestions(hints), reply: items.length === 0 && awaitingNeedsInput(hints) === true };
48239
+ return { items, forMs, steps: awaitingSteps(hints), questions: awaitingQuestions(hints) };
48083
48240
  }
48084
48241
  function liveActivityOf(tele, registeredPrWatches, armedTimerIds, registeredIssueWatches = /* @__PURE__ */ new Set(), armedCommandWatches = /* @__PURE__ */ new Set(), idlePrs, liveChildThreads2 = /* @__PURE__ */ new Set()) {
48085
48242
  const shells = /* @__PURE__ */ new Set();
@@ -48119,7 +48276,7 @@ function parkWaitsOnThisSide(park, live2) {
48119
48276
  return park.items.length > 0 && park.items.every((i) => i.kind === "pr" && live2.idlePrs?.has(liveKey(i)) === true);
48120
48277
  }
48121
48278
  function parkOnHuman(park) {
48122
- return park.steps.length > 0 || park.questions.length > 0 || park.reply === true;
48279
+ return park.steps.length > 0 || park.questions.length > 0;
48123
48280
  }
48124
48281
  function needsInputParkHolds(hints, live2, fenceAtMs, nowMs) {
48125
48282
  if (awaitingNeedsInput(hints) !== false) return false;
@@ -48703,7 +48860,7 @@ EOF
48703
48860
 
48704
48861
  When you come to rest NEEDING the human, what you write is the interface: the human reads it in a
48705
48862
  queue, hours later, with none of your context. Every prompt since their own last message (the Goal, a
48706
- correction, a watcher wake) came from frizz, not from them, and so did every quiet park below.
48863
+ sign-off reminder, a watcher wake) came from frizz, not from them, and so did every quiet park below.
48707
48864
  Frizz shows them their own last message, your first words after it, and then EVERY sign-off you have
48708
48865
  written since, with the work between folded away. So your first sign-off after their message covers the
48709
48866
  whole stretch since it: what you did, found, changed, and would do next. Each later one adds only what is
@@ -48736,35 +48893,32 @@ nothing else: no prose, no question fences. Your sign-offs stay exactly where th
48736
48893
  and the human reads them there. The fence's \`status:\` still says where the thread sits, and **A QUIET
48737
48894
  PARK TAKES THE THREAD OUT OF THE QUEUE, EVEN RIGHT AFTER A \`needs_input\` SIGN-OFF:** your newest
48738
48895
  \`status:\` is the answer. A report they only had to read no longer needs them, so \`working\` or
48739
- \`watching\`. A page to review, a result to try, an open question, or your reply that is all you wait on
48740
- still does, so \`status: needs_input\` \u2014 with nothing running, that fence names nothing else and waits
48741
- on the human. Only \`steps:\` and questions keep the thread in their queue by themselves, until they type to
48896
+ \`watching\`. A page to review, a result to try, or an open question that is all you wait on still does,
48897
+ so \`status: needs_input\` \u2014 with nothing running, that fence names nothing else and waits on the
48898
+ question. Only \`steps:\` and questions keep the thread in their queue by themselves, until they type to
48742
48899
  this thread, answer a question or snooze it. A done you recorded with \`frizzctl done\` stands through
48743
48900
  every wake until the human types, so on a finished thread a wake with nothing new takes one line and no
48744
48901
  second done. Anything new for the human is a new sign-off, carrying only what is new.
48745
48902
 
48746
- **A REPLY NEEDS NO FENCE.** When what the human needs is your message itself \u2014 the answer to their
48747
- question, a finding, a result they asked to see \u2014 and nothing is running and nothing needs their
48748
- decision, end on the message with no fence. That rest is a sign-off: the thread goes into their queue
48749
- with your message on it, waiting on their reply, and Frizz sends you nothing about it. It is the right
48750
- rest for a conversation that goes on, where \`done\` would file the thread away. What it must never be is
48751
- a stop with the task half-done: if any part of what you were asked is still owed, do it now, and rest
48752
- only when the message you end on is the honest state of things. Finished work still ends on \`done\`, a
48753
- decision still on a question, and a wait on running work still on the \`awaiting\` fence.
48903
+ **ALWAYS SIGN OFF.** A bare rest \u2014 nothing said about where you stand \u2014 is not a handoff, it is an item
48904
+ nobody can triage: it says neither "answer me" nor "this is finished", so it sits in the queue meaning
48905
+ nothing. Frizz bumps you for one, twice, then gives up \u2014 a turn wasted each time.
48754
48906
 
48755
48907
  **A REGISTRATION OUTLASTS A SENTENCE.** \`frizzctl done\` records a ROW, and so does a question: Frizz
48756
48908
  registers a \` \`\`\`question \` fence the moment the message carrying it lands. Frizz reads both as a
48757
- sign-off. A \`done\` or \`awaiting\` fence is a sentence with the lifetime of the message carrying it,
48758
- so it has to be rewritten at every rest and is wrong the moment anything changes; a row survives your turn ending, a compaction and a Frizz restart.
48909
+ sign-off \u2014 it will not bump you for a missing fence after either. A \`done\` or \`awaiting\` fence is a
48910
+ sentence with the lifetime of the message carrying it, so it has to be rewritten at every rest and is
48911
+ wrong the moment anything changes; a row survives your turn ending, a compaction and a Frizz restart.
48759
48912
  **The \`done\` fence below still works**, and it is still the right shape for the prose the human reads
48760
48913
  \u2014 but where a command exists for what you are saying, run it. **A WAIT IS THE ONE EXCEPTION, and it
48761
48914
  always takes the fence.** \`frizzctl watch\` registers WHEN you wake; where the thread sits meanwhile is
48762
48915
  an answer about THIS rest, and only the \` \`\`\`awaiting \` fence carries it (\`status:\`, below). A rest
48763
48916
  on running work with no fence is a bare rest, and it lands in the human's queue.
48764
48917
 
48765
- **A QUESTION YOU ASK IS THAT REST'S SIGN-OFF \u2014 REST NORMALLY.** Add no fence at the rest that asked: an
48766
- \`awaiting\` fence after a question is only for work that is also still running. When the work that does
48767
- not depend on the answer runs out, write your handoff prose and STOP. The card is drawn where you wrote the fence, until it is answered or withdrawn \u2014 so a
48918
+ **A QUESTION YOU ASK IS THAT REST'S SIGN-OFF \u2014 REST NORMALLY.** Frizz does not bump you for a missing
48919
+ fence at the rest that asked, so add none: an \`awaiting\` fence after a question is only for work that
48920
+ is also still running. When the work that does not depend on the answer runs out, write your handoff
48921
+ prose and STOP. The card is drawn where you wrote the fence, until it is answered or withdrawn \u2014 so a
48768
48922
  sign-off is not a last line: each fence sits in the prose, under the paragraph it decides, and the
48769
48923
  write-up carries the reasoning around the ask, never a copy of it (see Questions for the human).
48770
48924
  **A QUESTION YOU ASKED STAYS YOUR ASK UNTIL THE HUMAN TYPES TO THIS THREAD.** A wake does not retire
@@ -49074,8 +49228,8 @@ exactly ONE of them.
49074
49228
  you are BUMPED immediately and told which, and the thread sits in the queue until you fix it.
49075
49229
  **A FENCE THAT NAMES NOTHING IS NOT A PARK** \u2014 \`for:\` describes a wait, it is not one \u2014 so
49076
49230
  "waiting on the checks" plus a duration just sits in the queue: REGISTER the PR and name it, and
49077
- if nothing is actually running, end with \`\`\`done, ask a question, or rest on your reply with no
49078
- fence. (\`steps:\` counts: it names the human, and so does \`status: needs_input\` naming nothing.)
49231
+ if nothing is actually running, end with \`\`\`done or ask a question. (\`steps:\` counts: it names
49232
+ the human.)
49079
49233
  - **WAITING ON A PERSON TO DECIDE IS A QUESTION** \u2014 a \` \`\`\`question \` fence, and in each later
49080
49234
  sign-off, its \`id:\` alone. **WAITING ON ONE TO ACT IS \`steps:\`.** There is no
49081
49235
  human gate and no prose park.
@@ -49123,9 +49277,8 @@ how you break it. Take the first exit that fits:
49123
49277
  4. **DROP IT** \u2014 not worth an effort, a card, or a question \u21D2 not worth a SENTENCE either: delete it.
49124
49278
  Do not park it in the handoff as "one thing to carry forward".
49125
49279
 
49126
- A reply with no fence keeps the thread in the human's queue, so nothing in it is filed away, but it is not
49127
- a fifth exit: a finding that needs their decision is still a question. A mid-conversation turn carries NO
49128
- fence. Nor is a turn on
49280
+ A bare rest is the residual, not a plan \u2014 legitimate only when nothing above fits, and frizz will ask
49281
+ you twice for a fence before it gives up. A mid-conversation turn carries NO fence. Nor is a turn on
49129
49282
  a thread that still points at future work \u2014 a live code-change discussion above all \u2014 ever \`done\`.`;
49130
49283
  AGENT_COMPLETION = `## Agent completion invariant
49131
49284
 
@@ -55412,6 +55565,9 @@ function concurrencyGate(limit) {
55412
55565
  }
55413
55566
  };
55414
55567
  }
55568
+ function signoffFenceId(restedAt) {
55569
+ return `${SIGNOFF_FENCE_PREFIX}:${restedAt}`;
55570
+ }
55415
55571
  function isSignoffFenceId(fenceId) {
55416
55572
  return fenceId.startsWith(`${SIGNOFF_FENCE_PREFIX}:`);
55417
55573
  }
@@ -55552,6 +55708,9 @@ function createScheduler(deps) {
55552
55708
  const deliveryBatchSize = Math.max(0, deps.deliveryBatchSize ?? 50);
55553
55709
  const deliveryOwner = randomUUID16();
55554
55710
  const startedAtMs2 = now();
55711
+ if (deps.stampSignoffNudgeFrom && deps.storage.getSetting(SIGNOFF_NUDGE_FROM_SETTING) === void 0) {
55712
+ deps.storage.setSetting(SIGNOFF_NUDGE_FROM_SETTING, new Date(startedAtMs2).toISOString());
55713
+ }
55555
55714
  const outbox = createWakeDeliveryStore(deps.storage.scope, { quietWindowMs: deps.wakeQuietWindowMs ?? WAKE_QUIET_WINDOW_MS });
55556
55715
  const reviewFailures = /* @__PURE__ */ new Map();
55557
55716
  let timer = null;
@@ -55670,7 +55829,12 @@ function createScheduler(deps) {
55670
55829
  if (deps.storage.getThreadTimer(timerIdOf(item.fenceId))?.state !== "armed") return "superseded";
55671
55830
  return tele.turn === "idle" ? "current-idle" : "current-busy";
55672
55831
  }
55673
- if (isSignoffFenceId(item.fenceId)) return "superseded";
55832
+ if (isSignoffFenceId(item.fenceId)) {
55833
+ if (tele.authFault || tele.apiFault) return "superseded";
55834
+ if (item.fenceId !== signoffFenceId(tele.lastAssistantAt ?? "")) return "superseded";
55835
+ if (tele.lastFence || tele.pendingQuestion) return "superseded";
55836
+ return tele.turn === "idle" ? "current-idle" : "current-busy";
55837
+ }
55674
55838
  if (isReportFenceId(item.fenceId)) {
55675
55839
  const stillMissing = tele.droppedReports?.some((r) => reportFenceId(r.taskId) === item.fenceId);
55676
55840
  if (!stillMissing) return "superseded";
@@ -55902,6 +56066,67 @@ function createScheduler(deps) {
55902
56066
  checkpoint("after-enqueue", item);
55903
56067
  }
55904
56068
  }
56069
+ function evalSignoffNudges(nowMs) {
56070
+ if (deps.storage.getSetting(SIGNOFF_NUDGE_SETTING) === "off") return;
56071
+ const nudgeFrom = deps.storage.getSetting(SIGNOFF_NUDGE_FROM_SETTING);
56072
+ const nudgeFromMs = typeof nudgeFrom === "string" ? Date.parse(nudgeFrom) : Number.NaN;
56073
+ for (const row of deps.storage.allSessions()) {
56074
+ if (row.state === "archived" || row.archived === 1) continue;
56075
+ const tele = deps.tailer.get(row.slug);
56076
+ if (!tele || tele.turn !== "idle") continue;
56077
+ const spokeAt = tele.lastAssistantAt;
56078
+ if (!spokeAt) continue;
56079
+ if (tele.lastUserAt && Date.parse(tele.lastUserAt) >= Date.parse(spokeAt)) continue;
56080
+ if (Date.parse(spokeAt) < nudgeFromMs) continue;
56081
+ if (tele.restFromAt && Date.parse(tele.restFromAt) >= Date.parse(spokeAt)) continue;
56082
+ if (tele.authFault) continue;
56083
+ if (tele.apiFault) continue;
56084
+ if (tele.operatorStopped) continue;
56085
+ const needsInput = needsInputRequired(row.spawned_at);
56086
+ const questionRows = deps.storage.listThreadQuestions(row.slug);
56087
+ const standing = standingQuestions(questionRows, tele, deps.questionFaults?.of(row.slug));
56088
+ if (outbox.get(wakeDeliveryId(row.slug, row.session_id, parkFenceId(QUESTION_FENCE_CAUSE, spokeAt)))) continue;
56089
+ if (signOffFaultRests.get(row.slug) === spokeAt) continue;
56090
+ if (outbox.get(wakeDeliveryId(row.slug, row.session_id, parkFenceId(SIGNOFF_INCOMPLETE_CAUSE, spokeAt)))) continue;
56091
+ if (tele.lastFence || tele.pendingQuestion || registeredDoneFence(deps.storage.getThreadDone(row.slug), doneEndsAt(tele)) !== void 0 || standing.length > 0 || answersInFlight(questionRows, answersReceivedAt(tele), row.recurring_on_rest === 1 && Boolean(row.recurring_prompt?.trim())) !== void 0 || !needsInput && deps.storage.listThreadWatches(row.slug, { armedOnly: true }).length > 0) {
56092
+ if ((row.signoff_nudges ?? 0) > 0) deps.storage.resetSignoffNudges(row.slug);
56093
+ continue;
56094
+ }
56095
+ if (questionFaultRests.get(row.slug) === spokeAt) continue;
56096
+ if (tele.pendingAsk || tele.permPrompt) continue;
56097
+ if (tele.lastAssistantAllDone) continue;
56098
+ if ((row.signoff_nudges ?? 0) >= SIGNOFF_NUDGE_MAX) continue;
56099
+ const fenceId = signoffFenceId(spokeAt);
56100
+ const deliveryId = wakeDeliveryId(row.slug, row.session_id, fenceId);
56101
+ if (outbox.get(deliveryId)) continue;
56102
+ const ops = {
56103
+ shells: (tele.bgShells ?? []).filter((sh) => sh.state === "running").map((sh) => ({ id: sh.taskId ?? sh.id, label: sh.label })),
56104
+ subAgents: (tele.subAgents ?? []).filter((a) => a.state === "running").map((a) => ({ id: a.taskId ?? a.id, label: a.label })),
56105
+ // The other two registries, so the nudge lists EVERY kind an awaiting fence can name rather
56106
+ // than the two the fold happens to know about — a worker told about half its work writes half
56107
+ // a fence, and the half it left out is not what gets it bumped.
56108
+ timers: deps.storage.listThreadTimers(row.slug, { armedOnly: true }).map((t) => ({ id: t.id, label: t.prompt.trim().replace(/\s+/g, " ").slice(0, 80) })),
56109
+ prs: deps.storage.listPrWatches(row.slug, { armedOnly: true }).filter((w) => w.kind !== "issue").map((w) => ({ id: `${w.owner}/${w.repo}#${w.number}`, label: `${w.owner}/${w.repo}#${w.number}` })),
56110
+ issues: deps.storage.listPrWatches(row.slug, { armedOnly: true }).filter((w) => w.kind === "issue").map((w) => ({ id: `${w.owner}/${w.repo}#${w.number}`, label: `${w.owner}/${w.repo}#${w.number}` })),
56111
+ commands: commandWatchOps(deps.storage, row.slug)
56112
+ };
56113
+ const item = outbox.enqueue({
56114
+ id: deliveryId,
56115
+ slug: row.slug,
56116
+ sessionId: row.session_id,
56117
+ fenceId,
56118
+ hintKey: SIGNOFF_HINT_KEY,
56119
+ message: withClock(signoffNudgeMessage(ops, needsInput, tele.strayFence === true), spokeAt),
56120
+ reason: "rested without signing off"
56121
+ }, nowMs).delivery;
56122
+ log3(`waker: queued ${row.slug} \u2014 ${item.reason}`);
56123
+ checkpoint("after-enqueue", item);
56124
+ }
56125
+ }
56126
+ function settleSignoffNudge(item) {
56127
+ if (!isSignoffFenceId(item.fenceId)) return;
56128
+ deps.storage.countSignoffNudge(item.slug, item.fenceId);
56129
+ }
55905
56130
  function evalParkBumpRelease() {
55906
56131
  for (const row of deps.storage.allSessions()) {
55907
56132
  if ((row.park_bumps ?? 0) <= 0 || !row.park_bump_anchor) continue;
@@ -56079,12 +56304,13 @@ ${wakeTimeHeader(nowMs, spokeAt)}`,
56079
56304
  const deliveryId = wakeDeliveryId(row.slug, row.session_id, fenceId);
56080
56305
  if (outbox.get(deliveryId)) continue;
56081
56306
  const reason = faults.missing.length > 0 ? `sign-off leaves out ${faults.missing.length} open question(s)` : `sign-off only re-lists ${faults.relisted.length} question(s)`;
56307
+ const bare2 = !tele.lastFence && standingQuestions(rows, tele, deps.questionFaults?.of(row.slug)).length === 0;
56082
56308
  const item = outbox.enqueue({
56083
56309
  id: deliveryId,
56084
56310
  slug: row.slug,
56085
56311
  sessionId: row.session_id,
56086
56312
  fenceId,
56087
- hintKey: fenceId,
56313
+ hintKey: bare2 ? `signoff:incomplete:${spokeAt}` : fenceId,
56088
56314
  message: `${signOffCorrection(faults)}
56089
56315
 
56090
56316
  ${wakeTimeHeader(nowMs, spokeAt)}`,
@@ -56281,8 +56507,8 @@ ${wakeTimeHeader(nowMs, spokeAt)}`,
56281
56507
  "in a sentence breaks the YAML, which is why `reason:` is gone.",
56282
56508
  "",
56283
56509
  "`frizzctl activity` lists everything you have running, and prints it back as a ready-to-paste",
56284
- "fence. If you are not waiting on anything, you are not awaiting \u2014 end with ```done, ask the",
56285
- "human in a ```question fence, or rest on your reply with no fence."
56510
+ "fence. If you are not waiting on anything, you are not awaiting \u2014 end with ```done, or ask the",
56511
+ "human in a ```question fence."
56286
56512
  ].join("\n") : nameless ? [
56287
56513
  `${PARK_CORRECTION_NAMES_LEAD}nothing to wait on, so it is not a park \u2014 your thread is still`,
56288
56514
  "in the queue, and nothing will wake you.",
@@ -56301,17 +56527,16 @@ ${wakeTimeHeader(nowMs, spokeAt)}`,
56301
56527
  "The frontmatter is YAML: PLURAL keys, each taking a list, and your prose below the `---`.",
56302
56528
  "Use `frizzctl activity` to read it all back as a ready-to-paste fence.",
56303
56529
  "",
56304
- "AND IF YOU ARE NOT WAITING ON ANYTHING, you are not awaiting. Finished work ends with ```done, a",
56305
- "decision the human owes is a ```question fence, and a reply that waits on their next message",
56306
- "needs no fence at all: rest on it as it stands."
56530
+ "AND IF YOU ARE NOT WAITING ON ANYTHING, you are not awaiting \u2014 you are done. End with ```done,",
56531
+ "or ask the human in a ```question fence if you need them."
56307
56532
  ].join("\n") : expired ? parkExpiredWakeMessage(status) : allFinished ? parkFinishedWakeMessage(status, dead.length !== 1) : [
56308
56533
  `${PARK_CORRECTION_NAMES_LEAD}${dead.length === 1 ? "something that is" : "things that are"} not running, so it is not a park and your thread stayed in the queue.`,
56309
56534
  "",
56310
56535
  ...status,
56311
56536
  "",
56312
56537
  "Use `frizzctl activity` to read back what you actually have out, with the exact id each line",
56313
- "needs, then re-fence naming only those. With nothing left to wait for, end in ```done, a",
56314
- "```question fence, or your reply with no fence."
56538
+ "needs, then re-fence naming only those \u2014 or end in ```done or a ```question fence if there is",
56539
+ "nothing left to wait for."
56315
56540
  ].join("\n");
56316
56541
  const cause = retired.length > 0 ? "retired" : nameless ? "nameless" : expired ? "expired" : "dead";
56317
56542
  if (signOffFaultRests.get(row.slug) === spokeAt) continue;
@@ -57347,6 +57572,8 @@ ${clock}`;
57347
57572
  if (tele.apiFault) continue;
57348
57573
  if (restMessageIsSignedOff(deps.storage, row.slug, tele, registeredPrWatchesOf(deps.storage, row.slug), armedTimerIdsOf(deps.storage, row.slug), armed.armedAt)) continue;
57349
57574
  if (answersInFlight(deps.storage.listThreadQuestions(row.slug), answersReceivedAt(tele), true) !== void 0) continue;
57575
+ const reminder = outbox.get(wakeDeliveryId(row.slug, row.session_id, signoffFenceId(restedAt)));
57576
+ if (reminder && reminder.state !== "superseded" && reminder.state !== "exhausted") continue;
57350
57577
  const questionCorrection = outbox.get(wakeDeliveryId(row.slug, row.session_id, parkFenceId(QUESTION_FENCE_CAUSE, restedAt)));
57351
57578
  if (questionCorrection && questionCorrection.state !== "superseded" && questionCorrection.state !== "exhausted") continue;
57352
57579
  const doneCorrection = outbox.get(wakeDeliveryId(row.slug, row.session_id, parkFenceId(DONE_OVER_QUESTION_CAUSE, restedAt)));
@@ -57442,6 +57669,7 @@ ${clock}`;
57442
57669
  settleCompactPrompt(item);
57443
57670
  settleTimer(item);
57444
57671
  settleQuestionAnswers(item);
57672
+ settleSignoffNudge(item);
57445
57673
  log3(`waker: delivered ${item.slug} \u2014 ${item.reason}${item.attempts > 1 ? ` (on attempt ${item.attempts})` : ""}`);
57446
57674
  }
57447
57675
  continue;
@@ -57615,6 +57843,7 @@ ${wakeTimeHeader(now(), spokeAt)}`;
57615
57843
  const sentAt = now();
57616
57844
  if (outbox.markSent(item.id, deliveryOwner, sentAt, sentAt + confirmGraceMs)) {
57617
57845
  for (const d of companions) outbox.markSent(d.id, deliveryOwner, sentAt, sentAt + confirmGraceMs);
57846
+ for (const d of frame) settleSignoffNudge(d);
57618
57847
  log3(`waker: sent ${item.slug} \u2014 ${item.reason}; confirming within ${Math.round(confirmGraceMs / 1e3)}s`);
57619
57848
  checkpoint("after-delivery", item);
57620
57849
  continue;
@@ -57627,7 +57856,10 @@ ${wakeTimeHeader(now(), spokeAt)}`;
57627
57856
  if (!acked.includes(item)) {
57628
57857
  log3(`waker: delivery acknowledgement lost ownership for ${item.slug}; preserving the authoritative terminal state`);
57629
57858
  }
57630
- for (const d of acked) settleDelivered(d);
57859
+ for (const d of acked) {
57860
+ settleDelivered(d);
57861
+ settleSignoffNudge(d);
57862
+ }
57631
57863
  if (!acked.includes(item)) continue;
57632
57864
  const acknowledged = outbox.get(item.id);
57633
57865
  if (acknowledged) checkpoint("after-ack", acknowledged);
@@ -57695,10 +57927,11 @@ ${wakeTimeHeader(now(), spokeAt)}`;
57695
57927
  evalQuestionFences(now());
57696
57928
  evalDoneOverQuestions(now());
57697
57929
  evalSignOffCompleteness(now());
57930
+ evalSignoffNudges(now());
57698
57931
  evalParkIntegrity(now());
57699
57932
  } catch (err) {
57700
57933
  if (err instanceof InjectedSchedulerCrash) throw err;
57701
- log3(`waker: sign-off correction pass failed: ${err instanceof Error ? err.message : String(err)}`);
57934
+ log3(`waker: sign-off nudge pass failed: ${err instanceof Error ? err.message : String(err)}`);
57702
57935
  }
57703
57936
  try {
57704
57937
  evalRestPrompts(now());
@@ -57811,7 +58044,7 @@ ${wakeTimeHeader(now(), spokeAt)}`;
57811
58044
  stopMonitorByHuman
57812
58045
  };
57813
58046
  }
57814
- var PR_REF_RE2, OFF_MERGE_PATHS, NEW_HEAD_CI_WAIT_MS, MERGING_PERMISSIONS, LIMIT_FENCE_PREFIX, LIMIT_HINT_PREFIX, LIMIT_RESUME_GRACE_MS, LIMIT_RESUME_HEADROOM_PERCENT, LIMIT_HEADROOM_MIN_FAULT_AGE_MS, REPORT_FENCE_PREFIX, REPORT_HINT_PREFIX, SNOOZE_FENCE_PREFIX, SNOOZE_HINT_PREFIX, HEARTBEAT_FENCE_PREFIX, HEARTBEAT_HINT_PREFIX, STOP_HOOK_FENCE_PREFIX, STOP_HOOK_HINT_KEY, COMPACT_FENCE_PREFIX, COMPACT_HINT_KEY, TIMER_FENCE_PREFIX, TIMER_HINT_PREFIX, SHELL_FENCE_PREFIX, INTERRUPT_ENDED_FENCE_PREFIX, PR_WATCH_FENCE_PREFIX, PR_WATCH_EXPIRED_FENCE_PREFIX, OWN_WATCH_EXPIRED_FENCE_PREFIX, COMMAND_WATCH_FENCE_PREFIX, COMMAND_WATCH_EXPIRED_FENCE_PREFIX, COMMAND_WATCH_CANCELLED_FENCE_PREFIX, MONITOR_EVENT_FENCE_PREFIX, MONITOR_EXITED_FENCE_PREFIX, MONITOR_EXPIRED_FENCE_PREFIX, MONITOR_CANCELLED_FENCE_PREFIX, MONITOR_OUTPUT_PRUNE_EVERY_MS, QUESTION_ANSWER_FENCE_PREFIX, ANSWER_REOFFER_BACKOFF_MS, CONTEXT_SUPERSEDED, PR_WATCH_POLL_MS, PR_WATCH_GONE_MS, PR_STATUS_FALLBACK_LIMIT, SIGNOFF_FENCE_PREFIX, PARK_BUMP_MAX, OWN_COMPLETION_NOTICE_GRACE_MS, PARK_FENCE_PREFIX, QUESTION_FENCE_CAUSE, DONE_OVER_QUESTION_CAUSE, SIGNOFF_INCOMPLETE_CAUSE, DONE_GATE_FROM_MS, FAULTS_OUTLIVE_HUMAN_FROM_MS, GITHUB_STATUS_CAP, REVIEW_SEEN_CAP, REVIEW_STEER_CAP, AWAITING_KEY_OF, MID_TURN_HOLD_MAX_MS, WAKE_HOLD_DEFERRAL, CODEX_CAPACITY_UNCONFIRMED;
58047
+ var PR_REF_RE2, OFF_MERGE_PATHS, NEW_HEAD_CI_WAIT_MS, MERGING_PERMISSIONS, LIMIT_FENCE_PREFIX, LIMIT_HINT_PREFIX, LIMIT_RESUME_GRACE_MS, LIMIT_RESUME_HEADROOM_PERCENT, LIMIT_HEADROOM_MIN_FAULT_AGE_MS, REPORT_FENCE_PREFIX, REPORT_HINT_PREFIX, SNOOZE_FENCE_PREFIX, SNOOZE_HINT_PREFIX, HEARTBEAT_FENCE_PREFIX, HEARTBEAT_HINT_PREFIX, STOP_HOOK_FENCE_PREFIX, STOP_HOOK_HINT_KEY, COMPACT_FENCE_PREFIX, COMPACT_HINT_KEY, TIMER_FENCE_PREFIX, TIMER_HINT_PREFIX, SHELL_FENCE_PREFIX, INTERRUPT_ENDED_FENCE_PREFIX, PR_WATCH_FENCE_PREFIX, PR_WATCH_EXPIRED_FENCE_PREFIX, OWN_WATCH_EXPIRED_FENCE_PREFIX, COMMAND_WATCH_FENCE_PREFIX, COMMAND_WATCH_EXPIRED_FENCE_PREFIX, COMMAND_WATCH_CANCELLED_FENCE_PREFIX, MONITOR_EVENT_FENCE_PREFIX, MONITOR_EXITED_FENCE_PREFIX, MONITOR_EXPIRED_FENCE_PREFIX, MONITOR_CANCELLED_FENCE_PREFIX, MONITOR_OUTPUT_PRUNE_EVERY_MS, QUESTION_ANSWER_FENCE_PREFIX, ANSWER_REOFFER_BACKOFF_MS, CONTEXT_SUPERSEDED, PR_WATCH_POLL_MS, PR_WATCH_GONE_MS, PR_STATUS_FALLBACK_LIMIT, SIGNOFF_FENCE_PREFIX, SIGNOFF_HINT_KEY, SIGNOFF_NUDGE_MAX, PARK_BUMP_MAX, OWN_COMPLETION_NOTICE_GRACE_MS, SIGNOFF_NUDGE_SETTING, SIGNOFF_NUDGE_FROM_SETTING, PARK_FENCE_PREFIX, QUESTION_FENCE_CAUSE, DONE_OVER_QUESTION_CAUSE, SIGNOFF_INCOMPLETE_CAUSE, DONE_GATE_FROM_MS, FAULTS_OUTLIVE_HUMAN_FROM_MS, GITHUB_STATUS_CAP, REVIEW_SEEN_CAP, REVIEW_STEER_CAP, AWAITING_KEY_OF, MID_TURN_HOLD_MAX_MS, WAKE_HOLD_DEFERRAL, CODEX_CAPACITY_UNCONFIRMED;
57815
58048
  var init_scheduler = __esm({
57816
58049
  "packages/server/src/scheduler.ts"() {
57817
58050
  "use strict";
@@ -57874,8 +58107,12 @@ var init_scheduler = __esm({
57874
58107
  PR_WATCH_GONE_MS = 30 * 6e4;
57875
58108
  PR_STATUS_FALLBACK_LIMIT = 4;
57876
58109
  SIGNOFF_FENCE_PREFIX = "signoff";
58110
+ SIGNOFF_HINT_KEY = "signoff:rest";
58111
+ SIGNOFF_NUDGE_MAX = 2;
57877
58112
  PARK_BUMP_MAX = 3;
57878
58113
  OWN_COMPLETION_NOTICE_GRACE_MS = 6e4;
58114
+ SIGNOFF_NUDGE_SETTING = "signoffNudge";
58115
+ SIGNOFF_NUDGE_FROM_SETTING = "signoffNudgeFrom";
57879
58116
  PARK_FENCE_PREFIX = "park";
57880
58117
  QUESTION_FENCE_CAUSE = "question-fence";
57881
58118
  DONE_OVER_QUESTION_CAUSE = "done-open-question";
@@ -100168,6 +100405,7 @@ function createContextUnchecked(opts, resources) {
100168
100405
  const scheduler = createScheduler({
100169
100406
  storage,
100170
100407
  tailer,
100408
+ stampSignoffNudgeFrom: true,
100171
100409
  questionFaults,
100172
100410
  commandWatches,
100173
100411
  // CHILD THREADS (scheduler SOURCE 17): the board's verdict on each child's rest, the child's own words,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frizz-server",
3
- "version": "0.15.61",
3
+ "version": "0.15.62",
4
4
  "private": false,
5
5
  "description": "Replaceable Frizz server runtime",
6
6
  "license": "MIT",
@@ -72,7 +72,7 @@ const scratch = scratchDirLabel(dir, sid ?? '<session-id>') ?? 'the scratch dire
72
72
  // prompt. Trimmed 2026-08-26 (maintainer: "Definitely trim the session seed hook if it's fully
73
73
  // repetitive") as part of cutting the per-session token overhead Frizz adds over a plain TUI session.
74
74
  const core =
75
- '⟦frizz worker contract⟧ You are a frizz WORKER driving EXACTLY ONE effort. Your FULL operating contract — the end-of-turn signal fences (```done / ```awaiting), the ```question fence that asks the human (a new `id:` registers a question where you write it; an `id:` alone references one you asked before), the scratch-directory rules, the sub-agent rules, the question handback and the stop criterion — lives in your SYSTEM PROMPT; follow it there. SIGN OFF with a fence, a registration (`frizzctl done`, or a question you ask or reference at this rest, which is the sign-off: rest normally), or — when your message is itself what the human needs and nothing is running or to decide — the message alone, with no fence. A rest on running work takes the ```awaiting fence with `status: working|watching|needs_input` — `working` and `watching` are quiet parks and need no write-up.\n' +
75
+ '⟦frizz worker contract⟧ You are a frizz WORKER driving EXACTLY ONE effort. Your FULL operating contract — the end-of-turn signal fences (```done / ```awaiting), the ```question fence that asks the human (a new `id:` registers a question where you write it; an `id:` alone references one you asked before), the scratch-directory rules, the sub-agent rules, the question handback and the stop criterion — lives in your SYSTEM PROMPT; follow it there. ALWAYS SIGN OFF — a fence OR a registration (`frizzctl done`, or a question you ask or reference at this rest, which is the sign-off: rest normally). A rest on running work takes the ```awaiting fence with `status: working|watching|needs_input` — `working` and `watching` are quiet parks and need no write-up.\n' +
76
76
  'SCRATCH DIRECTORY (OPTIONAL): `' + scratch + '` — a folder kept FOR YOU, nothing in it read automatically, never a substitute for doing the work. Give each sub-agent its OWN file rather than a shared one.';
77
77
 
78
78
  const grounding =
@@ -1481,8 +1481,8 @@ async function activity() {
1481
1481
  return (
1482
1482
  "Nothing is running on this thread — no background shells, no sub-agents, no armed timers, no " +
1483
1483
  "registered PRs, and no open questions.\n\nSo there is nothing to wait on: an ```awaiting fence " +
1484
- "would have nothing to name. End finished work with ```done, ask a ```question if you need the " +
1485
- "human's decision, or rest on your reply with no fence if your message is what they need." + linksBlock
1484
+ "would have nothing to name, and a fence naming nothing is not a park. End with ```done, or " +
1485
+ "ask a ```question if you need the human." + linksBlock
1486
1486
  )
1487
1487
  }
1488
1488
  const lines = items.map((i) => {