frizz 0.2.0 → 0.3.0
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.
- package/README.md +17 -17
- package/dist/claude-agent-broker.js +63 -23
- package/dist/dev-child.js +6877 -4459
- package/dist/frizz.js +654 -529
- package/package.json +6 -2
- package/runtime/cc-worker/.claude-plugin/plugin.json +1 -1
- package/runtime/cc-worker/DECISIONS.md +64 -4
- package/runtime/cc-worker/bin/frizz-mcp.mjs +494 -57
- package/runtime/cc-worker/hooks/agent-dispatch.mjs +1 -1
- package/runtime/cc-worker/hooks/deny-plan.mjs +1 -1
- package/runtime/cc-worker/hooks/hooks.json +0 -7
- package/runtime/cc-worker/hooks/precompact-instructions.mjs +39 -28
- package/runtime/cc-worker/hooks/scratchpad.mjs +142 -169
- package/runtime/cc-worker/hooks/session-seed.mjs +16 -15
- package/runtime/cc-worker/skills/waits/SKILL.md +2 -2
- package/web-dist/apple-touch-icon.png +0 -0
- package/web-dist/assets/{TerminalPane-ROKHp1ib.js → TerminalPane-CTdetDJJ.js} +2 -2
- package/web-dist/assets/{abnfDiagram-VRR7QNED-DcpdhBs3.js → abnfDiagram-VRR7QNED-BDKrjCMs.js} +1 -1
- package/web-dist/assets/architecture-TIHT7OUA-ChUMo004.js +1 -0
- package/web-dist/assets/{architectureDiagram-ZJ3FMSHR-CUAKf0mn.js → architectureDiagram-ZJ3FMSHR-BJebpUUM.js} +1 -1
- package/web-dist/assets/{blockDiagram-677ZJIJ3-BPwpJIzx.js → blockDiagram-677ZJIJ3-BNbuk25k.js} +1 -1
- package/web-dist/assets/{c4Diagram-LMCZKHZV-1lptuHzZ.js → c4Diagram-LMCZKHZV-lCfyotdU.js} +1 -1
- package/web-dist/assets/channel-pr7r6raB.js +1 -0
- package/web-dist/assets/{chunk-32BRIVSS-CFR9AKjY.js → chunk-32BRIVSS-DP72SEkr.js} +1 -1
- package/web-dist/assets/{chunk-52WLFC77-CM9uct7m.js → chunk-52WLFC77-DxO3gN-p.js} +1 -1
- package/web-dist/assets/{chunk-C7G6YPKG-DiveJARw.js → chunk-C7G6YPKG-BXFx9Vlr.js} +1 -1
- package/web-dist/assets/{chunk-EX3LRPZG-BE1CBw8F.js → chunk-EX3LRPZG-CR3sHpPf.js} +1 -1
- package/web-dist/assets/{chunk-FWX5IMBZ-DL42uXiO.js → chunk-FWX5IMBZ-CJ8L__oG.js} +2 -2
- package/web-dist/assets/{chunk-HOUHSVGY-DPhJWgDw.js → chunk-HOUHSVGY-BCl3JSWr.js} +1 -1
- package/web-dist/assets/{chunk-ICXQ74PX-CwYy-6AP.js → chunk-ICXQ74PX-CZxFMci1.js} +1 -1
- package/web-dist/assets/{chunk-MOJQB5TN-Ds5I9wxq.js → chunk-MOJQB5TN-Ck3_47dB.js} +1 -1
- package/web-dist/assets/{chunk-OGEWGWER-DHiZJwQD.js → chunk-OGEWGWER-CVXjES-F.js} +1 -1
- package/web-dist/assets/{chunk-PUDLZKDR-B-eyQTsF.js → chunk-PUDLZKDR-JjrVgaR7.js} +1 -1
- package/web-dist/assets/{chunk-Q4XR5HBZ-DK7dB3Ti.js → chunk-Q4XR5HBZ-C5YMRAQ0.js} +1 -1
- package/web-dist/assets/{chunk-V7JOEXUC-Dn59m74L.js → chunk-V7JOEXUC-DK0mfUHU.js} +1 -1
- package/web-dist/assets/{chunk-VAUOI2AC-DK7x36hd.js → chunk-VAUOI2AC-BKBntpid.js} +1 -1
- package/web-dist/assets/{chunk-VR4S4FIN-D7-CI3Yl.js → chunk-VR4S4FIN-zgE1dG6U.js} +1 -1
- package/web-dist/assets/{chunk-WYO6CB5R-B3l-mLCs.js → chunk-WYO6CB5R-CZhh1IBq.js} +1 -1
- package/web-dist/assets/{chunk-ZGVPDNZ5-Dobxlxie.js → chunk-ZGVPDNZ5-CrNjIEem.js} +1 -1
- package/web-dist/assets/classDiagram-OUVF2IWQ-CvGbPMn_.js +1 -0
- package/web-dist/assets/classDiagram-v2-EOCWNBFH-CvGbPMn_.js +1 -0
- package/web-dist/assets/{cynefin-VYW2F7L2-Dh7RuEUJ.js → cynefin-VYW2F7L2-Ca_BPfTG.js} +1 -1
- package/web-dist/assets/{cynefinDiagram-TSTJHNR4-ClPi2mZZ.js → cynefinDiagram-TSTJHNR4-CsINQf6g.js} +1 -1
- package/web-dist/assets/{dagre-VKFMJZFB-52_WP1QV.js → dagre-VKFMJZFB-CE0DYMFy.js} +1 -1
- package/web-dist/assets/{diagram-FQU43EPY-D_1zVsTL.js → diagram-FQU43EPY-BqTduEYE.js} +1 -1
- package/web-dist/assets/{diagram-G47NLZAW-CdZxuGUy.js → diagram-G47NLZAW-Cho718s6.js} +1 -1
- package/web-dist/assets/{diagram-NH7WQ7WH-C8pSFu0P.js → diagram-NH7WQ7WH-D0Z8t9UC.js} +1 -1
- package/web-dist/assets/{diagram-OA4YK3LP-C5bjZLre.js → diagram-OA4YK3LP-CBacyeDx.js} +1 -1
- package/web-dist/assets/{diagram-WEI45ONY-Bxzhiuzn.js → diagram-WEI45ONY-CozpXa4j.js} +1 -1
- package/web-dist/assets/{ebnfDiagram-CCIWWBDH-g-Z0J2wP.js → ebnfDiagram-CCIWWBDH-ba4NbQQo.js} +1 -1
- package/web-dist/assets/{erDiagram-Q63AITRT-DVNkgIHp.js → erDiagram-Q63AITRT-B3BciOYa.js} +1 -1
- package/web-dist/assets/eventmodeling-45OFAUF4-DKmyo-jd.js +1 -0
- package/web-dist/assets/flowDiagram-23GEKE2U-DluCBvT4.js +1 -0
- package/web-dist/assets/{ganttDiagram-NO4QXBWP-_71pQYEK.js → ganttDiagram-NO4QXBWP-lPmrRit4.js} +1 -1
- package/web-dist/assets/{gitGraph-TEB2WS4Q-ChIZiGZS.js → gitGraph-TEB2WS4Q-BjyclOq0.js} +1 -1
- package/web-dist/assets/{gitGraphDiagram-IHSO6WYX-DCHAFI0l.js → gitGraphDiagram-IHSO6WYX-pzeb4Yrw.js} +1 -1
- package/web-dist/assets/index-BQtjYMpV.css +1 -0
- package/web-dist/assets/index-CLW1Q49U.js +360 -0
- package/web-dist/assets/{info-DKCQHKI2-BW-n_T1j.js → info-DKCQHKI2-Bwycegvf.js} +1 -1
- package/web-dist/assets/{infoDiagram-FWYZ7A6U-CgDYsKi9.js → infoDiagram-FWYZ7A6U-BCvRGj_5.js} +1 -1
- package/web-dist/assets/{ishikawaDiagram-FXEZZL3T-ClzGNt9N.js → ishikawaDiagram-FXEZZL3T-Ofw1RMj3.js} +1 -1
- package/web-dist/assets/{journeyDiagram-5HDEW3XC-DSCQxkHC.js → journeyDiagram-5HDEW3XC-C5ROwFio.js} +1 -1
- package/web-dist/assets/{kanban-definition-HUTT4EX6-CdrdX9N8.js → kanban-definition-HUTT4EX6-YLPLkpeT.js} +1 -1
- package/web-dist/assets/{line-ha38Dc-1.js → line-KtkNqRgI.js} +1 -1
- package/web-dist/assets/{mermaid-parser.core-Z4uMcpip.js → mermaid-parser.core-D_FfqBe7.js} +3 -3
- package/web-dist/assets/{mermaid.core-iZRq3hbu.js → mermaid.core-Ffv8anVf.js} +3 -3
- package/web-dist/assets/{mindmap-definition-LN4V7U3C-DmhInJO_.js → mindmap-definition-LN4V7U3C-B2jj4vfm.js} +1 -1
- package/web-dist/assets/{packet-7NZHBO7P-DBPB36Kl.js → packet-7NZHBO7P-BjmWHwra.js} +1 -1
- package/web-dist/assets/{pegDiagram-2B236MQR-CAH3ljfj.js → pegDiagram-2B236MQR-Dq3iJDyq.js} +1 -1
- package/web-dist/assets/{pie-RZYD4A2V-_h_eX4Ca.js → pie-RZYD4A2V-jBbH1lv9.js} +1 -1
- package/web-dist/assets/{pieDiagram-ENE6RG2P-DFBPus8j.js → pieDiagram-ENE6RG2P-C3ETW9lq.js} +1 -1
- package/web-dist/assets/{quadrantDiagram-ABIIQ3AL-DMvOCjt8.js → quadrantDiagram-ABIIQ3AL-DItSmme7.js} +1 -1
- package/web-dist/assets/{radar-I7S5WNFK-2EzoPHEZ.js → radar-I7S5WNFK-6ey6crgP.js} +1 -1
- package/web-dist/assets/{railroad-3IZDKUUU-BPJnn-hm.js → railroad-3IZDKUUU-Cii-Mn0E.js} +1 -1
- package/web-dist/assets/railroad-abnf-AHOZXSZD-U_vb4BrX.js +1 -0
- package/web-dist/assets/railroad-ebnf-EBAXGLYW-BIHG7gNU.js +1 -0
- package/web-dist/assets/railroad-peg-LSFZ7HO6-Cpd9r-tB.js +1 -0
- package/web-dist/assets/{railroadDiagram-RFXS5EU6-DKq5FagA.js → railroadDiagram-RFXS5EU6-M363ils_.js} +1 -1
- package/web-dist/assets/{requirementDiagram-TGXJPOKE-BJ5tGazp.js → requirementDiagram-TGXJPOKE-CTs2_V6T.js} +1 -1
- package/web-dist/assets/{sankeyDiagram-HTMAVEWB-XSJjcBhX.js → sankeyDiagram-HTMAVEWB-QTLLcDPD.js} +1 -1
- package/web-dist/assets/{sequenceDiagram-DBY2YBRQ-CBb8emSe.js → sequenceDiagram-DBY2YBRQ-Bxw9Tr6e.js} +1 -1
- package/web-dist/assets/{stateDiagram-2N3HPSRC-DDfRW94V.js → stateDiagram-2N3HPSRC-BecB6roG.js} +1 -1
- package/web-dist/assets/stateDiagram-v2-6OUMAXLB-JXw9T96l.js +1 -0
- package/web-dist/assets/{swimlanes-5IMT3BWC-DvRYbkZi.js → swimlanes-5IMT3BWC-COiYgS0w.js} +1 -1
- package/web-dist/assets/swimlanesDiagram-G3AALYLV--1Wv7FQQ.js +8 -0
- package/web-dist/assets/{timeline-definition-FHXFAJF6-BNUa_DwI.js → timeline-definition-FHXFAJF6-Ci22coeH.js} +1 -1
- package/web-dist/assets/{treeView-QDETBFTQ-I6-IW6nJ.js → treeView-QDETBFTQ-4DW35czh.js} +1 -1
- package/web-dist/assets/{treemap-6X3UGDF4-CWWmEUYJ.js → treemap-6X3UGDF4-Dq_-Z6-Y.js} +1 -1
- package/web-dist/assets/{vennDiagram-L72KCM5P-DTDrPGLk.js → vennDiagram-L72KCM5P-CHQSIEYq.js} +1 -1
- package/web-dist/assets/{wardley-OPB4EBWU-CNsdgXXA.js → wardley-OPB4EBWU-Bwlh7HCY.js} +1 -1
- package/web-dist/assets/{wardleyDiagram-EHGQE667-YE0tq3Kh.js → wardleyDiagram-EHGQE667-DctjuPYn.js} +1 -1
- package/web-dist/assets/{xychartDiagram-FW5EYKEG-D0ofMX8C.js → xychartDiagram-FW5EYKEG-ZoIGosv8.js} +1 -1
- package/web-dist/favicon-16.png +0 -0
- package/web-dist/favicon-32.png +0 -0
- package/web-dist/favicon.svg +17 -61
- package/web-dist/icon-192.png +0 -0
- package/web-dist/icon-512.png +0 -0
- package/web-dist/icon-maskable-512.png +0 -0
- package/web-dist/index.html +19 -8
- package/web-dist/manifest.webmanifest +3 -3
- package/runtime/cc-worker/hooks/scratchpad-stop.mjs +0 -125
- package/runtime/cc-worker/skills/handoff/SKILL.md +0 -209
- package/web-dist/assets/architecture-TIHT7OUA-CAviNivx.js +0 -1
- package/web-dist/assets/channel-CqKDIFQF.js +0 -1
- package/web-dist/assets/classDiagram-OUVF2IWQ-B_-6iXYY.js +0 -1
- package/web-dist/assets/classDiagram-v2-EOCWNBFH-B_-6iXYY.js +0 -1
- package/web-dist/assets/eventmodeling-45OFAUF4-MpmeH5YZ.js +0 -1
- package/web-dist/assets/flowDiagram-23GEKE2U-D-QgjjhF.js +0 -1
- package/web-dist/assets/index-w4v-GZEc.js +0 -358
- package/web-dist/assets/index-zyi22LPz.css +0 -1
- package/web-dist/assets/railroad-abnf-AHOZXSZD-YeUoiySk.js +0 -1
- package/web-dist/assets/railroad-ebnf-EBAXGLYW-Ddw1SuGG.js +0 -1
- package/web-dist/assets/railroad-peg-LSFZ7HO6-Dd8BOGeW.js +0 -1
- package/web-dist/assets/stateDiagram-v2-6OUMAXLB-hc41W5Lx.js +0 -1
- package/web-dist/assets/swimlanesDiagram-G3AALYLV-BZyGdgSG.js +0 -8
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// @ts-check
|
|
3
|
-
// Optional rest-time reminder carried by the thread's canonical scratchpad. A worker registers one
|
|
4
|
-
// by writing `stop_hook:` in scratch.md's YAML front matter and deregisters it by removing that key.
|
|
5
|
-
// The hook passes the message back verbatim when the worker tries to stop. A persisted two-minute
|
|
6
|
-
// cooldown prevents a forgotten reminder from creating a tight stop/block loop.
|
|
7
|
-
import { readFileSync, writeFileSync, renameSync, rmSync } from 'node:fs';
|
|
8
|
-
import { join } from 'node:path';
|
|
9
|
-
import { currentSessionId } from '../scripts/frizz/config.mjs';
|
|
10
|
-
|
|
11
|
-
const COOLDOWN_MS = 2 * 60 * 1000;
|
|
12
|
-
const MAX_MESSAGE_CHARS = 8_000;
|
|
13
|
-
|
|
14
|
-
/** @param {string[]} argv @param {string} flag */
|
|
15
|
-
function flagValue(argv, flag) {
|
|
16
|
-
const hit = argv.find((arg) => arg.startsWith(flag + '='));
|
|
17
|
-
return hit ? hit.slice(flag.length + 1) : null;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/** @param {string} value */
|
|
21
|
-
function inlineYamlString(value) {
|
|
22
|
-
const trimmed = value.trim();
|
|
23
|
-
if (!trimmed) return '';
|
|
24
|
-
if (trimmed.startsWith('"') && trimmed.endsWith('"')) {
|
|
25
|
-
try {
|
|
26
|
-
const parsed = JSON.parse(trimmed);
|
|
27
|
-
return typeof parsed === 'string' ? parsed : '';
|
|
28
|
-
} catch {
|
|
29
|
-
return '';
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
if (trimmed.startsWith("'") && trimmed.endsWith("'")) {
|
|
33
|
-
return trimmed.slice(1, -1).replace(/''/g, "'");
|
|
34
|
-
}
|
|
35
|
-
return trimmed;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Reads only the reserved `stop_hook` key from top-of-file YAML front matter. The scratchpad body
|
|
40
|
-
* remains free-form Markdown; accepting the common literal/folded block forms keeps multi-line
|
|
41
|
-
* reminders readable without pulling a YAML runtime into a zero-dependency hook.
|
|
42
|
-
* @param {string} source
|
|
43
|
-
*/
|
|
44
|
-
export function scratchpadStopMessage(source) {
|
|
45
|
-
const frontmatter = source.match(/^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/)?.[1];
|
|
46
|
-
if (!frontmatter) return null;
|
|
47
|
-
const lines = frontmatter.split(/\r?\n/);
|
|
48
|
-
for (let i = 0; i < lines.length; i++) {
|
|
49
|
-
const match = lines[i].match(/^stop_hook:\s*(.*?)\s*$/);
|
|
50
|
-
if (!match) continue;
|
|
51
|
-
const value = match[1];
|
|
52
|
-
if (value === '|' || value === '>-'
|
|
53
|
-
|| value === '>' || value === '|-' || value === '|+' || value === '>+') {
|
|
54
|
-
const block = [];
|
|
55
|
-
for (let j = i + 1; j < lines.length; j++) {
|
|
56
|
-
const line = lines[j];
|
|
57
|
-
if (line.trim() && !/^\s/.test(line)) break;
|
|
58
|
-
block.push(line.replace(/^(?: {2}|\t)/, ''));
|
|
59
|
-
}
|
|
60
|
-
const text = value.startsWith('>')
|
|
61
|
-
? block.map((line) => line.trim()).join(' ').trim()
|
|
62
|
-
: block.join('\n').trim();
|
|
63
|
-
return text ? text.slice(0, MAX_MESSAGE_CHARS) : null;
|
|
64
|
-
}
|
|
65
|
-
const text = inlineYamlString(value);
|
|
66
|
-
return text ? text.slice(0, MAX_MESSAGE_CHARS) : null;
|
|
67
|
-
}
|
|
68
|
-
return null;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @param {unknown} input
|
|
73
|
-
* @param {{ projectDir: string, sessionId: string, now?: number }} context
|
|
74
|
-
*/
|
|
75
|
-
export function evaluateScratchpadStop(input, context) {
|
|
76
|
-
if (!input || typeof input !== 'object' || !context.sessionId) return {};
|
|
77
|
-
const threadDir = join(context.projectDir, '.frizz', 'threads', context.sessionId);
|
|
78
|
-
let message;
|
|
79
|
-
try {
|
|
80
|
-
message = scratchpadStopMessage(readFileSync(join(threadDir, 'scratch.md'), 'utf8'));
|
|
81
|
-
} catch {
|
|
82
|
-
return {};
|
|
83
|
-
}
|
|
84
|
-
if (!message) return {};
|
|
85
|
-
|
|
86
|
-
const now = context.now ?? Date.now();
|
|
87
|
-
const statePath = join(threadDir, '.stop-hook-state.json');
|
|
88
|
-
let lastFiredAt = 0;
|
|
89
|
-
try {
|
|
90
|
-
const state = JSON.parse(readFileSync(statePath, 'utf8'));
|
|
91
|
-
if (Number.isFinite(state?.lastFiredAt)) lastFiredAt = state.lastFiredAt;
|
|
92
|
-
} catch {
|
|
93
|
-
// A missing/corrupt state is an unfired registration.
|
|
94
|
-
}
|
|
95
|
-
if (now - lastFiredAt < COOLDOWN_MS) return {};
|
|
96
|
-
|
|
97
|
-
// Persist BEFORE blocking. If the state cannot be recorded, fail open rather than creating a stop
|
|
98
|
-
// loop whose cooldown can never advance.
|
|
99
|
-
const tempPath = `${statePath}.${process.pid}.tmp`;
|
|
100
|
-
try {
|
|
101
|
-
writeFileSync(tempPath, JSON.stringify({ lastFiredAt: now }) + '\n', { mode: 0o600 });
|
|
102
|
-
renameSync(tempPath, statePath);
|
|
103
|
-
} catch {
|
|
104
|
-
try {
|
|
105
|
-
rmSync(tempPath, { force: true });
|
|
106
|
-
} catch {
|
|
107
|
-
// best effort
|
|
108
|
-
}
|
|
109
|
-
return {};
|
|
110
|
-
}
|
|
111
|
-
return { decision: 'block', reason: message };
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
if (process.argv[1]?.endsWith('scratchpad-stop.mjs')) {
|
|
115
|
-
try {
|
|
116
|
-
const input = JSON.parse(readFileSync(0, 'utf8'));
|
|
117
|
-
const argv = process.argv.slice(2);
|
|
118
|
-
const explicitSession = flagValue(argv, '--session');
|
|
119
|
-
const sessionId = explicitSession || currentSessionId(input?.session_id);
|
|
120
|
-
const projectDir = process.env.CLAUDE_PROJECT_DIR || process.cwd();
|
|
121
|
-
process.stdout.write(JSON.stringify(evaluateScratchpadStop(input, { projectDir, sessionId })));
|
|
122
|
-
} catch {
|
|
123
|
-
process.stdout.write('{}');
|
|
124
|
-
}
|
|
125
|
-
}
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: handoff
|
|
3
|
-
description: The full frizz end-of-turn signal reference for a frizz worker (invoke as frizz:handoff) — every `awaiting` hint kind, the `question` fence tags (`danger`, `multi`), `done` body formatting, and worked examples of each. Your system-prompt contract carries the rules you need for the common case; load this when you are emitting an unusual fence, need a worked example of a tagged question card, or are unsure which fence a situation calls for.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# frizz handoff reference
|
|
7
|
-
|
|
8
|
-
Your system prompt states the fence rules. This is the elaboration: the exact shapes, the tags, and
|
|
9
|
-
worked examples. Nothing here overrides the contract.
|
|
10
|
-
|
|
11
|
-
**Before you use any of it: is the turn actually over?** Every shape below is for a turn that has
|
|
12
|
-
genuinely ended. If the human's instruction still has parts left, none of them apply — you do not pick
|
|
13
|
-
a fence, you make the next tool call. Reaching for this reference at a milestone is the most common way
|
|
14
|
-
an effort dies half-finished; a verified increment, a green test run and a long turn are not endings,
|
|
15
|
-
and neither is announcing the next step or recording it in the scratchpad.
|
|
16
|
-
|
|
17
|
-
## Which fence?
|
|
18
|
-
|
|
19
|
-
| Situation | Fence |
|
|
20
|
-
|---|---|
|
|
21
|
-
| Ordinary handoff, turn has no other final state | **bare rest** (no fence) |
|
|
22
|
-
| Effort's real work is complete — code merged, plan/doc written, commissioned report finished | `done` |
|
|
23
|
-
| Waiting on a named third-party human, a wall-clock instant, or a PR's review | `awaiting` |
|
|
24
|
-
| You need the operator's input or approval | `question` |
|
|
25
|
-
| Mid-conversation (still working, or answering and continuing) | none |
|
|
26
|
-
|
|
27
|
-
Automatable waits — CI, releases, deploys, merge progression — are **never** `awaiting`. Dispatch a
|
|
28
|
-
sub-agent to own the wait, or use a `timer:` when the next check belongs at a later wall-clock time.
|
|
29
|
-
|
|
30
|
-
## `done`
|
|
31
|
-
|
|
32
|
-
Body is a bullet list, one `- ` item per completed task, each naming what shipped and where. The card
|
|
33
|
-
renders inline markdown: backtick every path/identifier/command, and make references real links.
|
|
34
|
-
|
|
35
|
-
```done
|
|
36
|
-
- Fixed the cache collision in [`src/resolver.ts`](https://github.com/acme/app/pull/391) — the lookup now keys on the normalized id.
|
|
37
|
-
- Added a regression test for the collision case; `npm test` green.
|
|
38
|
-
- Self-review folded in; `npm run lint` clean.
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
Do not write a narrative paragraph. Do not fence `done` on work that is not landed.
|
|
42
|
-
|
|
43
|
-
## `awaiting` — the three hint kinds
|
|
44
|
-
|
|
45
|
-
Lead the body with one or more `kind: value` lines, then prose naming the exact wake condition.
|
|
46
|
-
|
|
47
|
-
`pr-watch: owner/repo#NUMBER` — frizz polls the PR and resumes you on ANY new activity after the fence:
|
|
48
|
-
a review, an approval, or a comment, from a **human or a bot alike** (review agents that post findings
|
|
49
|
-
as a conversation comment count exactly like a human reviewer). Baselined at the fence and durable
|
|
50
|
-
across a server/worker restart. Your thread **stays in the queue** as a visible "PR is up, watching it"
|
|
51
|
-
handoff — it does not hide in Held, because a PR whose reviews may never arrive must not silently
|
|
52
|
-
vanish. The human can Snooze it; new activity bumps it back.
|
|
53
|
-
|
|
54
|
-
```awaiting
|
|
55
|
-
pr-watch: acme/app#391
|
|
56
|
-
PR is open and CI is green. Watching for review — I'll address comments or merge on approval.
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
**One line watches one PR, and a fence may carry several.** The scheduler evaluates every hint in the
|
|
60
|
-
body, so repeat the line per PR — across any mix of repos — and activity on ANY of them wakes you. A
|
|
61
|
-
set of open PRs is NOT a reason to fall back to a periodic `timer:` sweep, which trades instant wakes
|
|
62
|
-
for a poll that can sit a day behind a review. The body keeps its first **8** hint lines and silently
|
|
63
|
-
drops the rest, so past 8 watch the 8 that matter and cover the tail with a `timer:`.
|
|
64
|
-
|
|
65
|
-
```awaiting
|
|
66
|
-
pr-watch: withastro/astro#17487
|
|
67
|
-
pr-watch: vitejs/vite#23019
|
|
68
|
-
pr-watch: strapi/strapi#26864
|
|
69
|
-
All three adoption PRs are open and green, in their maintainers' hands. Whichever gets a review first
|
|
70
|
-
wakes me and I'll address it.
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
`human: <actor + exact review/approval>` — a third party whose action cannot be supplied in this frizz
|
|
74
|
-
conversation. **Parks you in the dimmed Held band.** A bot, automated reviewer, CI gate, or merge queue
|
|
75
|
-
is NOT a human wait. Pair with `pr-watch:` when a machine-readable PR exists (the `human:` supplies the
|
|
76
|
-
Held park, the `pr-watch:` supplies the cursor), or with `timer:` when none does.
|
|
77
|
-
|
|
78
|
-
```awaiting
|
|
79
|
-
human: dependabot maintainer review on dependabot/dependabot-core#15524
|
|
80
|
-
pr-watch: dependabot/dependabot-core#15524
|
|
81
|
-
The implementation and actionable checks are complete; address requested changes when review lands.
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
`timer: <ISO-8601 instant>` — the durable frizz scheduler resumes you at that instant, across process
|
|
85
|
-
exits and restarts. The prose says exactly what to re-check.
|
|
86
|
-
|
|
87
|
-
```awaiting
|
|
88
|
-
timer: 2026-07-15T17:00:00Z
|
|
89
|
-
Re-check whether the external maintainer review arrived and reclassify any new failure.
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
`pr:` / `ci:` / `session:` remain parser compatibility for existing transcripts only. Never emit them.
|
|
93
|
-
|
|
94
|
-
### Re-entering a wait after a follow-up
|
|
95
|
-
|
|
96
|
-
Every human follow-up clears the previous fence. Never answer that you are "already parked" and never
|
|
97
|
-
rely on the old fence, scratchpad, or thread status: re-check the blocker, then either re-emit a fresh
|
|
98
|
-
`awaiting` with a current hint, or arm the active wait if it turns out to be automatable.
|
|
99
|
-
|
|
100
|
-
## `question` — the tags
|
|
101
|
-
|
|
102
|
-
Plain — an open question:
|
|
103
|
-
|
|
104
|
-
```question
|
|
105
|
-
Should the settings store use SQLite or a JSON file?
|
|
106
|
-
|
|
107
|
-
- A. SQLite — transactional, matches how sessions are already stored (recommended: consistency)
|
|
108
|
-
- B. JSON file — zero deps, human-editable, racy under concurrent writes
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
A GO/NO-GO gate has NO tag of its own — it is a plain `question` with two options, the go and the
|
|
112
|
-
decline. (There used to be an `approval` tag rendering one Approve button that SENT on click; it was
|
|
113
|
-
dropped 2026-07-26 because it couldn't express the decline and it bypassed the staging every other
|
|
114
|
-
block uses. A legacy `approval` token still parses — as a plain question — so old transcripts render,
|
|
115
|
-
but never write one.)
|
|
116
|
-
|
|
117
|
-
```question
|
|
118
|
-
Ready to create CONTRIBUTING.md with the draft above?
|
|
119
|
-
|
|
120
|
-
- A. Approve as-is (recommended)
|
|
121
|
-
- B. Hold — tell me what to change first
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
`danger` — reserve for the genuinely hard-to-undo (force-merge, deletion, history rewrite,
|
|
125
|
-
prod rollback). Renders in red. A routine ship is a plain question:
|
|
126
|
-
|
|
127
|
-
```question danger
|
|
128
|
-
Force-merge PR #391 over the failing flaky check and delete the `legacy-api` branch?
|
|
129
|
-
|
|
130
|
-
- A. Do it — the failure is the known-flaky timeout
|
|
131
|
-
- B. Hold — I'll wait for a green run
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
`multi` — select-several triage. Options render as checkboxes; the answer returns the chosen letters:
|
|
135
|
-
|
|
136
|
-
```question multi
|
|
137
|
-
Which of these findings should I fix in this pass?
|
|
138
|
-
|
|
139
|
-
- A. Null-deref in parse() — crashes on empty input
|
|
140
|
-
- B. Off-by-one in slice() — drops the last row
|
|
141
|
-
- C. Flaky timeout in the retry test — passes on rerun
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
### Rules that apply to every question
|
|
145
|
-
|
|
146
|
-
- Open the message with 2-4 sentences of status before the blocks.
|
|
147
|
-
- One block per independent question — never bundle.
|
|
148
|
-
- Lettered options, one markdown list item each, with a one-line tradeoff.
|
|
149
|
-
- Mark exactly one option `recommended` **on that option's line**, and put it first as `A`. Use
|
|
150
|
-
`(recommended: one-line why)` to carry the rationale into the chip's tooltip. Do not use a separate
|
|
151
|
-
`Recommendation:` line.
|
|
152
|
-
- Answerable COLD, in the human's own vocabulary — see the next section.
|
|
153
|
-
- A question IS the handback: no second fence.
|
|
154
|
-
- Before you write one, re-read the stop criterion. A question about work you were dispatched to do,
|
|
155
|
-
or a fix you already recommend, is not a question.
|
|
156
|
-
|
|
157
|
-
### Write it in the human's own vocabulary
|
|
158
|
-
|
|
159
|
-
The reader has their original prompt and nothing else — not your plan, not your scratchpad, not the
|
|
160
|
-
transcript, not the names you settled on while working. A question that reads perfectly from inside the
|
|
161
|
-
session is routinely unanswerable from outside it. This is the most common defect in real question
|
|
162
|
-
cards, and it is entirely a wording problem: the decision was fine, the phrasing made it unavailable.
|
|
163
|
-
|
|
164
|
-
- **Translate the nomenclature you coined mid-effort.** Anything you named while working is invisible to
|
|
165
|
-
the reader: phase / lane / tier / mode names, step or section numbers, "the C path", "the second
|
|
166
|
-
variant", "the reconciler", "option 3 from earlier", "as in §2 of the plan". They will not go read your
|
|
167
|
-
transcript to decode it, so say what the thing does instead of what you called it.
|
|
168
|
-
- **Minimize code identifiers; default to plain behavior.** File paths, function / type / component
|
|
169
|
-
names, flags, env vars, table and column names usually cost the reader more than they give — lead with
|
|
170
|
-
the behavior. Spend an identifier where it genuinely earns its place: the human already uses it, or the
|
|
171
|
-
decision is literally about that name (they asked you to rename it, or to pick a flag's spelling). One
|
|
172
|
-
well-chosen identifier is fine; a card assembled out of them is the failure mode.
|
|
173
|
-
- **Carry every decision input inside the block.** What happens today, each option's user-visible
|
|
174
|
-
consequence, the cost of guessing wrong, and any number that matters. "As discussed above", a pointer
|
|
175
|
-
to a file, or a reference to an earlier turn all point at something the reader cannot see from the card.
|
|
176
|
-
- **Define a load-bearing new term, or drop it.** If one unfamiliar word genuinely cannot be avoided,
|
|
177
|
-
define it in the same sentence. Otherwise it is decoration, and it costs you the answer.
|
|
178
|
-
|
|
179
|
-
Bad — every noun here was invented during the effort, so the reader has no way into it:
|
|
180
|
-
|
|
181
|
-
```question
|
|
182
|
-
Should the queue lane keep the tier-2 fallback from step 3, or move to the unified resolver?
|
|
183
|
-
|
|
184
|
-
- A. Keep the tier-2 fallback (recommended)
|
|
185
|
-
- B. Move to the unified resolver
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
Good — same decision, stated in terms the human already owns:
|
|
189
|
-
|
|
190
|
-
```question
|
|
191
|
-
When you've read everything in a thread, should it stay in the "needs attention" group until you archive it, or drop out on its own?
|
|
192
|
-
|
|
193
|
-
- A. Drop out once it's read (recommended: keeps the group to threads that still need you)
|
|
194
|
-
- B. Stay until archived — nothing ever disappears without you acting on it
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
(That question line is deliberately unwrapped. Inside a fence a single newline is a HARD break —
|
|
198
|
-
`breaks: true` in the web markdown renderer — so hard-wrapping the sentence at your editor's column
|
|
199
|
-
renders a ragged break mid-question in the card. Keep the question, and each option, on one line.)
|
|
200
|
-
|
|
201
|
-
Test it before you send: read the block with your session forgotten, as if it were the only thing you
|
|
202
|
-
had ever seen about this work. Any word that only means something because of what you just did is a word
|
|
203
|
-
to reword.
|
|
204
|
-
|
|
205
|
-
## Never use the interactive question tool
|
|
206
|
-
|
|
207
|
-
`AskUserQuestion` (or any blocking prompt tool) would hang your session invisibly under the dashboard.
|
|
208
|
-
It is removed from your tool set at spawn; if you somehow reach it, a hook denies it. Use a `question`
|
|
209
|
-
fence.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-BfrZ3jm6.js";import{M as e}from"./mermaid-parser.core-Z4uMcpip.js";export{e as createArchitectureServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{at as e,ot as t}from"./chunk-WYO6CB5R-B3l-mLCs.js";var n=(n,r)=>t.lang.round(e.parse(n)[r]);export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-C4XfhTaE.js";import"./chunk-WYO6CB5R-B3l-mLCs.js";import"./chunk-ICXQ74PX-CwYy-6AP.js";import"./chunk-HOUHSVGY-DPhJWgDw.js";import"./chunk-Q4XR5HBZ-DK7dB3Ti.js";import"./chunk-7BUUIJ7U-Bb538aSH.js";import"./chunk-OGEWGWER-DHiZJwQD.js";import"./chunk-32BRIVSS-CFR9AKjY.js";import"./chunk-XXDRQBXY-DYlTP5J-.js";import"./chunk-VR4S4FIN-D7-CI3Yl.js";import"./chunk-C7G6YPKG-DiveJARw.js";import"./chunk-ZGVPDNZ5-Dobxlxie.js";import"./chunk-52WLFC77-CM9uct7m.js";import"./chunk-FWX5IMBZ-DL42uXiO.js";import{i as t,n,r,t as i}from"./chunk-V7JOEXUC-Dn59m74L.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-C4XfhTaE.js";import"./chunk-WYO6CB5R-B3l-mLCs.js";import"./chunk-ICXQ74PX-CwYy-6AP.js";import"./chunk-HOUHSVGY-DPhJWgDw.js";import"./chunk-Q4XR5HBZ-DK7dB3Ti.js";import"./chunk-7BUUIJ7U-Bb538aSH.js";import"./chunk-OGEWGWER-DHiZJwQD.js";import"./chunk-32BRIVSS-CFR9AKjY.js";import"./chunk-XXDRQBXY-DYlTP5J-.js";import"./chunk-VR4S4FIN-D7-CI3Yl.js";import"./chunk-C7G6YPKG-DiveJARw.js";import"./chunk-ZGVPDNZ5-Dobxlxie.js";import"./chunk-52WLFC77-CM9uct7m.js";import"./chunk-FWX5IMBZ-DL42uXiO.js";import{i as t,n,r,t as i}from"./chunk-V7JOEXUC-Dn59m74L.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-KEIR6QF5-BfrZ3jm6.js";import{O as e}from"./mermaid-parser.core-Z4uMcpip.js";export{e as createEventModelingServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./src-C4XfhTaE.js";import"./chunk-WYO6CB5R-B3l-mLCs.js";import"./chunk-ICXQ74PX-CwYy-6AP.js";import"./chunk-HOUHSVGY-DPhJWgDw.js";import"./chunk-Q4XR5HBZ-DK7dB3Ti.js";import"./chunk-7BUUIJ7U-Bb538aSH.js";import"./chunk-OGEWGWER-DHiZJwQD.js";import"./chunk-32BRIVSS-CFR9AKjY.js";import"./chunk-XXDRQBXY-DYlTP5J-.js";import"./chunk-VR4S4FIN-D7-CI3Yl.js";import"./chunk-C7G6YPKG-DiveJARw.js";import"./chunk-ZGVPDNZ5-Dobxlxie.js";import"./chunk-52WLFC77-CM9uct7m.js";import"./chunk-FWX5IMBZ-DL42uXiO.js";import"./chunk-ZIRB5QZD-C6fEPe3t.js";import{n as e}from"./chunk-PUDLZKDR-B-eyQTsF.js";export{e as diagram};
|