zelio-cli 0.1.0-beta.5 → 0.1.0-beta.7
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/dist/cli.js +5 -1
- package/dist/cli.js.map +1 -1
- package/dist/db/db.js +74 -4
- package/dist/db/db.js.map +1 -1
- package/dist/orchestrator/area-notes.js +87 -0
- package/dist/orchestrator/area-notes.js.map +1 -0
- package/dist/orchestrator/codex-session.js +10 -9
- package/dist/orchestrator/codex-session.js.map +1 -1
- package/dist/orchestrator/contract.js +4 -3
- package/dist/orchestrator/contract.js.map +1 -1
- package/dist/orchestrator/new-task-prompt.js +4 -4
- package/dist/orchestrator/prompt.js +4 -4
- package/dist/orchestrator/research.js +27 -12
- package/dist/orchestrator/research.js.map +1 -1
- package/dist/orchestrator/retrieval.js +333 -0
- package/dist/orchestrator/retrieval.js.map +1 -0
- package/dist/orchestrator/runtime.js +12 -10
- package/dist/orchestrator/runtime.js.map +1 -1
- package/dist/repo/code-map.js +152 -0
- package/dist/repo/code-map.js.map +1 -0
- package/dist/run/codex-planner-config.js +26 -0
- package/dist/run/codex-planner-config.js.map +1 -0
- package/dist/run/codex-runtime.js +9 -0
- package/dist/run/codex-runtime.js.map +1 -1
- package/dist/run/harnesses.js +5 -0
- package/dist/run/harnesses.js.map +1 -1
- package/dist/run/manager.js +27 -7
- package/dist/run/manager.js.map +1 -1
- package/dist/run/prompt.js +3 -3
- package/dist/run/prompt.js.map +1 -1
- package/dist/run/settings.js +4 -3
- package/dist/run/settings.js.map +1 -1
- package/dist/server/app.js +328 -51
- package/dist/server/app.js.map +1 -1
- package/dist/server/provider-auth.js +206 -0
- package/dist/server/provider-auth.js.map +1 -0
- package/dist/server/terminal.js +2 -2
- package/dist/server/terminal.js.map +1 -1
- package/dist/setup/onboarding.js +7 -12
- package/dist/setup/onboarding.js.map +1 -1
- package/dist/web/assets/index-C65GAaps.js +255 -0
- package/dist/web/assets/index-cF8zhiLs.css +1 -0
- package/dist/web/index.html +2 -2
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
- package/dist/web/assets/index-Bua_eeem.js +0 -255
- package/dist/web/assets/index-Iz1ACqw-.css +0 -1
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { createHash } from "node:crypto";
|
|
2
|
+
import { posix } from "node:path";
|
|
3
|
+
import { isTestFile } from "../repo/code-map.js";
|
|
4
|
+
/** A folder with fewer source files than this is not an area worth a note. */
|
|
5
|
+
const MIN_AREA_FILES = 3;
|
|
6
|
+
/** The most folders a board keeps notes for; the biggest ones first. */
|
|
7
|
+
export const MAX_AREAS = 24;
|
|
8
|
+
/** A changed folder's note is rewritten at most this often. */
|
|
9
|
+
export const AREA_NOTE_MIN_AGE_MS = 12 * 60 * 60_000;
|
|
10
|
+
/** How many notes one draft is shown. */
|
|
11
|
+
export const MAX_NOTES_PER_DRAFT = 3;
|
|
12
|
+
/** The source folders worth a note, keyed by what their files are right now. */
|
|
13
|
+
export function areasOf(map) {
|
|
14
|
+
const byFolder = new Map();
|
|
15
|
+
for (const path of map.imports.keys()) {
|
|
16
|
+
if (isTestFile(path))
|
|
17
|
+
continue;
|
|
18
|
+
const folder = posix.dirname(path);
|
|
19
|
+
const list = byFolder.get(folder);
|
|
20
|
+
if (list)
|
|
21
|
+
list.push(path);
|
|
22
|
+
else
|
|
23
|
+
byFolder.set(folder, [path]);
|
|
24
|
+
}
|
|
25
|
+
return [...byFolder.entries()]
|
|
26
|
+
.filter(([, paths]) => paths.length >= MIN_AREA_FILES)
|
|
27
|
+
.map(([path, paths]) => ({
|
|
28
|
+
path,
|
|
29
|
+
files: paths.length,
|
|
30
|
+
hash: createHash("sha1")
|
|
31
|
+
.update(paths
|
|
32
|
+
.toSorted()
|
|
33
|
+
.map((file) => `${file}:${map.blobs.get(file) ?? ""}`)
|
|
34
|
+
.join("\n"))
|
|
35
|
+
.digest("hex"),
|
|
36
|
+
}))
|
|
37
|
+
.toSorted((a, b) => b.files - a.files || a.path.localeCompare(b.path))
|
|
38
|
+
.slice(0, MAX_AREAS);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The next folder to write a note for: one with no note first, then one whose
|
|
42
|
+
* files changed since its note, once that note is old enough to be worth the
|
|
43
|
+
* model run. Null when every note is current enough.
|
|
44
|
+
*/
|
|
45
|
+
export function staleArea(areas, notes, now = Date.now()) {
|
|
46
|
+
const byPath = new Map(notes.map((note) => [note.path, note]));
|
|
47
|
+
const missing = areas.find((area) => !byPath.has(area.path));
|
|
48
|
+
if (missing)
|
|
49
|
+
return missing;
|
|
50
|
+
return (areas.find((area) => {
|
|
51
|
+
const note = byPath.get(area.path);
|
|
52
|
+
return (note !== undefined &&
|
|
53
|
+
note.hash !== area.hash &&
|
|
54
|
+
now - Date.parse(note.written_at) >= AREA_NOTE_MIN_AGE_MS);
|
|
55
|
+
}) ?? null);
|
|
56
|
+
}
|
|
57
|
+
/** The one question a note's scout answers. */
|
|
58
|
+
export function areaQuestion(area) {
|
|
59
|
+
return {
|
|
60
|
+
paths: [area.path],
|
|
61
|
+
question: `Describe the folder ${area.path} for a planner who has not read it: what it is responsible for, its entry points, the stores, routes or commands it owns, and the test files that cover it. At most 120 words, each claim with path:line.`,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* The notes for the folders a search placed the change in, as findings the
|
|
66
|
+
* draft reads beside the search. Each says when it was written, because it is
|
|
67
|
+
* orientation from an earlier commit, not evidence from this one.
|
|
68
|
+
*/
|
|
69
|
+
export function noteFindings(where, notes) {
|
|
70
|
+
if (!where || notes.length === 0)
|
|
71
|
+
return [];
|
|
72
|
+
const folders = [
|
|
73
|
+
...new Set([...where.answer.matchAll(/^- (\S+)/gm)].map((match) => posix.dirname(match[1] ?? ""))),
|
|
74
|
+
];
|
|
75
|
+
const byPath = new Map(notes.map((note) => [note.path, note]));
|
|
76
|
+
return folders
|
|
77
|
+
.map((folder) => byPath.get(folder))
|
|
78
|
+
.filter((note) => note !== undefined)
|
|
79
|
+
.slice(0, MAX_NOTES_PER_DRAFT)
|
|
80
|
+
.map((note) => ({
|
|
81
|
+
question: `What ${note.path} is for (a note written in the background${note.head ? ` at ${note.head.slice(0, 7)}` : ""}; it may be out of date — cite the files, not the note)`,
|
|
82
|
+
answer: note.note,
|
|
83
|
+
error: null,
|
|
84
|
+
durationMs: 0,
|
|
85
|
+
}));
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=area-notes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"area-notes.js","sourceRoot":"","sources":["../../src/orchestrator/area-notes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,UAAU,EAAgB,MAAM,qBAAqB,CAAC;AA6B/D,8EAA8E;AAC9E,MAAM,cAAc,GAAG,CAAC,CAAC;AACzB,wEAAwE;AACxE,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,CAAC;AAC5B,+DAA+D;AAC/D,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;AACrD,yCAAyC;AACzC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAErC,gFAAgF;AAChF,MAAM,UAAU,OAAO,CAAC,GAAY;IAClC,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAoB,CAAC;IAC7C,KAAK,MAAM,IAAI,IAAI,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;QACtC,IAAI,UAAU,CAAC,IAAI,CAAC;YAAE,SAAS;QAC/B,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACnC,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,IAAI;YAAE,IAAI,CAAC,IAAI,CAA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AI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IAC/D,OAAO,OAAO;SACX,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;SACnC,MAAM,CAAC,CAAC,IAAI,EAAoB,EAAE,CAAC,IAAI,KAAK,SAAS,CAAC;SACtD,KAAK,CAAC,CAAC,EAAE,mBAAmB,CAAC;SAC7B,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACd,QAAQ,EAAE,QAAQ,IAAI,CAAC,IAAI,4CACzB,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAC/C,yDAAyD;QACzD,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,KAAK,EAAE,IAAI;QACX,UAAU,EAAE,CAAC;KACd,CAAC,CAAC,CAAC;AACR,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { basename } from "node:path";
|
|
2
2
|
import { CodexClient } from "../run/codex-client.js";
|
|
3
|
+
import { codexPlannerConfig } from "../run/codex-planner-config.js";
|
|
3
4
|
import { createClaudePlanner } from "./claude-session.js";
|
|
4
5
|
import { PiPlannerSession } from "./pi-session.js";
|
|
5
6
|
const KILL_GRACE_MS = 2_000;
|
|
6
7
|
const CODEX_NOTE = "On Codex you have a read-only shell and a native web_search. Use web_search for " +
|
|
7
8
|
"discovery and a read-only shell curl for a public page. There is no explore tool. " +
|
|
8
9
|
"Zelio's role and read-only rules win over unrelated global guidance.";
|
|
10
|
+
const CODEX_NO_TOOLS_NOTE = "This turn has no shell, web search, MCP servers, apps, plugins, image viewer, or multi-agent tools. Answer without tools.";
|
|
9
11
|
const clip = (value, max) => {
|
|
10
12
|
const text = value.replace(/\s+/g, " ").trim();
|
|
11
13
|
return text.length > max ? text.slice(0, max - 1) + "…" : text;
|
|
@@ -122,18 +124,17 @@ export class CodexPlannerSession {
|
|
|
122
124
|
async run(options) {
|
|
123
125
|
try {
|
|
124
126
|
await this.client.initialize();
|
|
127
|
+
const config = await codexPlannerConfig(this.client, options.cwd, {
|
|
128
|
+
noTools: options.noTools,
|
|
129
|
+
});
|
|
125
130
|
const thread = (await this.client.request("thread/start", {
|
|
126
131
|
ephemeral: true,
|
|
127
132
|
cwd: options.cwd,
|
|
128
|
-
baseInstructions: options.systemPrompt + "\n\n" + CODEX_NOTE,
|
|
133
|
+
baseInstructions: options.systemPrompt + "\n\n" + (options.noTools ? CODEX_NO_TOOLS_NOTE : CODEX_NOTE),
|
|
129
134
|
model: options.model?.trim() || undefined,
|
|
130
135
|
sandbox: "read-only",
|
|
131
136
|
approvalPolicy: "never",
|
|
132
|
-
config
|
|
133
|
-
web_search: "live",
|
|
134
|
-
project_doc_max_bytes: 0,
|
|
135
|
-
skills: { include_instructions: false, bundled: { enabled: false } },
|
|
136
|
-
},
|
|
137
|
+
config,
|
|
137
138
|
}));
|
|
138
139
|
this.threadId = thread.thread?.id ?? null;
|
|
139
140
|
if (!this.threadId)
|
|
@@ -186,7 +187,7 @@ export class CodexPlannerSession {
|
|
|
186
187
|
this.client.kill();
|
|
187
188
|
}
|
|
188
189
|
}
|
|
189
|
-
async startTurn(text, includeImages) {
|
|
190
|
+
async startTurn(text, includeImages, thinking = this.options.thinking) {
|
|
190
191
|
if (!this.threadId)
|
|
191
192
|
throw new Error("Codex planner has no thread");
|
|
192
193
|
const input = [{ type: "text", text }];
|
|
@@ -200,7 +201,7 @@ export class CodexPlannerSession {
|
|
|
200
201
|
threadId: this.threadId,
|
|
201
202
|
input,
|
|
202
203
|
model: this.options.model?.trim() || undefined,
|
|
203
|
-
effort: effort(
|
|
204
|
+
effort: effort(thinking),
|
|
204
205
|
sandboxPolicy: { type: "readOnly", networkAccess: true },
|
|
205
206
|
}));
|
|
206
207
|
this.turnId = started.turn?.id ?? null;
|
|
@@ -280,7 +281,7 @@ export class CodexPlannerSession {
|
|
|
280
281
|
prompt(text) {
|
|
281
282
|
if (!this.threadId || this.finished)
|
|
282
283
|
return;
|
|
283
|
-
void this.startTurn(text, false).catch((error) => {
|
|
284
|
+
void this.startTurn(text, false, "low").catch((error) => {
|
|
284
285
|
this.finish({
|
|
285
286
|
type: "exit",
|
|
286
287
|
code: null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-session.js","sourceRoot":"","sources":["../../src/orchestrator/codex-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,OAAO,EAAE,WAAW,EAA0B,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAInD,MAAM,aAAa,GAAG,KAAK,CAAC;AAE5B,MAAM,UAAU,GACd,kFAAkF;IAClF,oFAAoF;IACpF,sEAAsE,CAAC;AAezE,MAAM,IAAI,GAAG,CAAC,KAAa,EAAE,GAAW,EAAU,EAAE;IAClD,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;IAC/C,OAAO,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;AACjE,CAAC,CAAC;AAEF,SAAS,MAAM,CAAC,KAAiC;IAC/C,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAC;IAC7B,IAAI,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,KAAK;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,QAAQ,CAAC,I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C,CAAC;IACvE,CAAC;IAED,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;CACF;AAED,MAAM,UAAU,kBAAkB,CAAC,OAAe,EAAE,KAAc;IAChE,OAAO,CAAC,OAAO,EAAE,EAAE,CACjB,IAAI,mBAAmB,CAAC;QACtB,GAAG,OAAO;QACV,OAAO;QACP,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,KAAK;KAC9B,CAAC,CAAC;AACP,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,OAAe,EAAE,KAAc;IAC3D,IAAI,QAAQ,CAAC,OAAO,CAAC,KAAK,OAAO;QAAE,OAAO,kBAAkB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC7E,IAAI,QAAQ,CAAC,OAAO,CAAC,KAAK,QAAQ;QAAE,OAAO,mBAAmB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC/E,OAAO,CAAC,OAAO,EAAE,EAAE,CACjB,IAAI,gBAAgB,CAAC;QACnB,GAAG,OAAO;QACV,OAAO;QACP,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,KAAK;KAC9B,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -57,8 +57,8 @@ export const TICKET_RULES = `## What a ticket must contain
|
|
|
57
57
|
- **the repository's own rules win** — if the repo documents how to work (\`AGENTS.md\`, \`CLAUDE.md\`), read it before writing acceptance. Its commands, tests and commit style are the person's standing preference, and a card that contradicts them is wrong.
|
|
58
58
|
- **likely_files** — paths or directories you expect to be touched, from actually reading the repo. Navigation hints, not a permission boundary; necessary supporting files remain authorized.
|
|
59
59
|
- **verify** — the commands the board runs to decide the card is done, each as \`{ "label", "command" }\`, at most six. Every acceptance criterion needs at least one command that would fail before the change and pass after it, usually an explicit-path test file the developer adds or extends. Tests are authorized supporting work of the card, never a card of their own. Use repo scripts or explicit test paths, never the full test suite. A command outside the configured workflow must already exist in \`package.json\`, a workspace script, CI, or repo docs; never invent one. A verify command judges the tree, it never changes it: no formatter or fixer (\`pnpm fmt\`, \`lint:fix\`, \`--fix\`, \`--write\`), and none of the In Progress workflow's checks, which the board already runs after every turn.
|
|
60
|
-
- **process stays out of the card
|
|
61
|
-
- **context** — the facts the run would otherwise have to rediscover, one per line, as \`path:line — what is true there
|
|
60
|
+
- **Board-owned process stays out of the card.** Commit, push, review, and delegation behavior belongs to the board. If a person's instruction conflicts with that lifecycle (for example, "do not push" when the board publishes verified tickets automatically), say so plainly in \`reply\` before they confirm; never promise that the board will honor the instruction. Do not copy such process instructions into acceptance or \`out_of_scope\`. Preserve executable constraints on implementation when the card can enforce them: put them in the goal or acceptance if they change an observable outcome, otherwise in \`context\` (for example, a required tool or a prohibition on adding a dependency). Repository-reading and reporting preferences are not ticket behavior.
|
|
61
|
+
- **context** — the facts and executable implementation constraints the run would otherwise have to rediscover, one per line, as \`path:line — what is true there\`, \`reuse — the helper and where it lives\`, or a concise constraint from the person. Not a summary of the card; the mechanism or constraint. If the ticket names a file, the run should not have to guess why. Repo facts must come from what you read; user constraints may be copied from their request.
|
|
62
62
|
- **rationale** — one line: why this ticket exists, in the user's terms.
|
|
63
63
|
- **assumed** — every choice you made yourself, as "field: what you assumed". Not "acceptance" — the actual assumption, e.g. "acceptance: assumed matching is case-insensitive". If you assumed nothing that changes behaviour, leave it empty. An assumption that changes how the work is built belongs in the goal or acceptance fields too: the developer run does not receive that field, so a mechanism kept only there is a mechanism the agent has to guess.
|
|
64
64
|
|
|
@@ -107,10 +107,11 @@ export const PLANNING_METHOD = `## Read before you write
|
|
|
107
107
|
|
|
108
108
|
- **Find the nearest existing thing.** The file that already does part of this job, the test that will judge it, and the surface or command that enters it. Read all three before you draft a card.
|
|
109
109
|
- **Trace the path end to end.** Which component calls what, what stores it, what reads it back. If you cannot name the writer and the reader, acceptance is guesswork.
|
|
110
|
+
- **Follow changed values to their effect.** Start at the user action or source that sets the value, then trace only the affected path through storage or transport, each consumer on that path, and the runtime behavior it controls. Use code search and supplied findings to locate the path; open the source at each handoff to confirm where the value can be dropped or transformed and what must stay true. Do not inspect unrelated consumers. A picker or saved value alone does not prove the requested behavior; acceptance must reach the consumer and observe the intended outcome.
|
|
110
111
|
- **Read the callers before reusing a shape.** A helper that looks right may belong to another surface; copy the pattern only after seeing what else depends on it.
|
|
111
112
|
- **Check the conventions where the change lands.** Naming, error handling, test style. A card that ignores them makes work for the reviewer.
|
|
112
113
|
- **Prefer evidence over coverage.** Three files read beat ten files listed. What you did not read is an assumption, not a fact.
|
|
113
|
-
- **Name the proof path.** Before you write acceptance, name the surface the change enters and the path a person takes through it: the screen and the click, the endpoint and the request, the command and its output. A criterion that cannot be reached from that path is a wish, not a check.
|
|
114
|
+
- **Name the proof path.** Before you write acceptance, name the surface the change enters and the path a person takes through it: the screen and the click, the endpoint and the request, the command and its output. For a changed value or setting, carry that same affected path through the consumer to the behavior it controls; proving only that it appears or is stored is insufficient. A criterion that cannot be reached from that path is a wish, not a check.
|
|
114
115
|
- **Send the scout when one question needs several files.** The \`explore\` tool returns cited findings from a read-only pass and keeps your own turn for synthesis. Ask it where a path starts, what stores a value, and which test would judge the change; do not ask it to write the card.
|
|
115
116
|
- **Open what the scout cites.** A citation you did not open is an assumption, not evidence. Read the two or three files that decide the mechanism before you write the card.
|
|
116
117
|
- **Agree on a verification standard.** Acceptance must say what observable evidence establishes the required behavior, not demand an unspecified absolute proof of correctness or security. Name required proofs, their properties and assumptions when relevant. Distinguish implementation verification from explicitly later independent review, audit, or deployment gates, and name the later gate's owner. A developer cannot move a required proof into later assurance or substitute passing tests for it. Ready for Review means ready for human scrutiny, never permission to merge or deploy.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src/orchestrator/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC;AAEjC;;;;GAIG;AACH,MAAM,CAAC,MAAM,gB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AAG,GAAG,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAAC,UAAkB;IACjD,OAAO,UAAU;SACd,KAAK,CAAC,sBAAsB,CAAC;SAC7B,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;SAC7C,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACvC,CAAC;AAED,6EAA6E;AAC7E,MAAM,UAAU,cAAc,CAC5B,KAAuD;IAEvD,OAAO,KAAK;SACT,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;SACjF,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,eAAe,CAAC,CAAC;AAC5D,CAAC;AAED,iFAAiF;AACjF,MAAM,CAAC,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mJA+CuH,CAAC;AAEpJ;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;guBAYisB,CAAC;AAEjuB,kEAAkE;AAClE,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mKAgEoI,CAAC"}
|
|
@@ -21,8 +21,8 @@ You are read-only. You never change files, never run builds, never implement. If
|
|
|
21
21
|
|
|
22
22
|
## This turn
|
|
23
23
|
|
|
24
|
-
- **The description and answers are the brief.** Use
|
|
25
|
-
- **One card is the normal answer.**
|
|
24
|
+
- **The description and answers are the brief.** Use findings in \`<research>\` as a starting point, but verify the consequential path yourself when a value or setting changes: selection, storage or transport, consumer, and runtime effect. Read only the source needed to confirm that path or to fill a missing fact, see what surrounds a quoted line, or replace a failed finding. If no findings exist, read the repo before drafting.
|
|
25
|
+
- **One card is the normal answer.** Split only along genuinely independent behavior boundaries: each card must have acceptance that can pass with its siblings reverted, and cards that run in parallel must not touch the same files. Sequential steps that make one behavior work stay together. Keep each card to four acceptance checks maximum; if a fifth check is needed, split into independent tickets or ask the person to choose a smaller outcome when no independent split exists. One or two cards is normal; five is an absolute ceiling, never a target.
|
|
26
26
|
- **Ask at most three questions**, and only where reading the repo cannot answer. Each option carries its cost. If both answers lead to the same card, the question is a tax — delete it.
|
|
27
27
|
- **The board is not a suggestion box.** \`<board>\` lists work that already exists. A card that repeats a ticket there is worse than no card; if the description overlaps one, say so in \`reply\` and write the card as the change on top of it.
|
|
28
28
|
- **\`reply\` is one or two sentences** about the choice you made and the sharpest thing you are unsure of. Do not tell the person where to find the card: it is in front of them.
|
|
@@ -31,7 +31,7 @@ You are read-only. You never change files, never run builds, never implement. If
|
|
|
31
31
|
|
|
32
32
|
The person is about to let an agent run this without further reading. So the acceptance criteria are the thing you must not invent: derive each one from their words or from something you read, and put every guess in \`assumed\` where they will see it before confirming. A card with an honest flag is a card they can trust; a card with confident prose is one they have to re-read the repo to check.
|
|
33
33
|
|
|
34
|
-
When findings are supplied,
|
|
34
|
+
When findings are supplied, use them for the entry point, relevant tests and reuse pattern. They do not replace targeted reading needed to trace a changed value or setting from its source through the affected consumers to its runtime effect. Open the source at each handoff on that path, including in a linked repo when relevant; a cited line is read only for that line, not its surrounding behavior. Read no unrelated files. Otherwise open only what is needed to investigate a failed finding, fill a missing fact, or see the code around a quoted line.
|
|
35
35
|
|
|
36
36
|
${PLANNING_METHOD}
|
|
37
37
|
|
|
@@ -43,7 +43,7 @@ ${OUTPUT_CONTRACT}`;
|
|
|
43
43
|
* small change, questions only the person can answer, or the reading the
|
|
44
44
|
* draft will need. It is short on purpose; the draft pass is the expensive one.
|
|
45
45
|
*/
|
|
46
|
-
export const NEW_TASK_INTAKE_PROMPT = `You are the first pass of Zelio's new-task dialog. From the person's description and the repository index only, ask at most three questions that only the person can answer and whose answers change what gets built. Otherwise ask nothing. Do not read files, write cards, or list research:
|
|
46
|
+
export const NEW_TASK_INTAKE_PROMPT = `You are the first pass of Zelio's new-task dialog. From the person's description and the repository index only, ask at most three questions that only the person can answer and whose answers change what gets built. Otherwise ask nothing. Do not read files, write cards, or list research: the repository is already being read and a later pass writes the cards.
|
|
47
47
|
|
|
48
48
|
Return a JSON block with reply, questions and cards. Cards must be [].
|
|
49
49
|
|
|
@@ -42,16 +42,16 @@ A question is a decision with a price on each answer. That is the whole shape of
|
|
|
42
42
|
|
|
43
43
|
## Splitting
|
|
44
44
|
|
|
45
|
-
Default to one card. Split only
|
|
45
|
+
Default to one card. Split only along genuinely independent behavior boundaries; do not fragment one coherent outcome into file-edit chores. Each card must be verifiable with its siblings reverted. Parallel cards must be workable at the same time without touching the same files or making each other wrong.
|
|
46
46
|
|
|
47
47
|
If a goal is split, preserve the complete user outcome across the cards and state dependencies plus who owns cross-card integration and final end-to-end verification. Individual green cards do not prove the full user flow.
|
|
48
48
|
|
|
49
49
|
So, before writing a second card, check all four:
|
|
50
50
|
|
|
51
|
-
1. **File overlap.**
|
|
52
|
-
2. **Order dependence.**
|
|
51
|
+
1. **File overlap.** Parallel cards whose \`likely_files\` intersect cannot run together. If the overlapping work is one behavior, keep it in one card; otherwise state the actual dependency and integration owner.
|
|
52
|
+
2. **Order dependence.** Sequential implementation steps for one behavior stay in one ticket. A real dependency between independently useful outcomes may be separate cards only when each card's acceptance can pass on its own; state the dependency and integration owner.
|
|
53
53
|
3. **Verifiable alone.** If a card's acceptance criteria cannot pass with its siblings reverted, it is a slice, not a ticket.
|
|
54
|
-
4. **Check count.** Keep acceptance at four checks maximum.
|
|
54
|
+
4. **Check count.** Keep acceptance at four checks maximum. If a fifth check is needed, split only along independent behavior boundaries with stand-alone acceptance; when no such split exists, ask the person to choose a smaller outcome. Never evade the four-check limit by grouping several observations into one sentence.
|
|
55
55
|
|
|
56
56
|
One or two cards is the normal answer, even for a change that touches five files. Five is the ceiling for genuinely independent work, never a target. Never pad a plan — a board of artificial slices spends the person's attention, which is the scarcest thing here.
|
|
57
57
|
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import { SCOUT_MAX_ANSWER_CHARS, SCOUT_PROMPT } from "./explore.js";
|
|
1
|
+
import { SCOUT_MAX_ANSWER_CHARS, SCOUT_PROMPT, SCOUT_TOOL_BUDGET } from "./explore.js";
|
|
2
2
|
export const MAX_RESEARCH = 3;
|
|
3
3
|
export const RESEARCH_TIMEOUT_MS = 90_000;
|
|
4
4
|
export const RESEARCH_TOOLS = ["read", "grep", "find", "ls"];
|
|
5
|
+
/**
|
|
6
|
+
* The nudge sent once a scout crosses `SCOUT_TOOL_BUDGET` tool calls — the same
|
|
7
|
+
* ceiling `scoutRepo` steers at in explore.ts. Without this, a scout that keeps
|
|
8
|
+
* reading past the point of a useful answer runs silently to
|
|
9
|
+
* `RESEARCH_TIMEOUT_MS` and comes back clipped and marked as timed out, instead
|
|
10
|
+
* of answering from what it already has.
|
|
11
|
+
*/
|
|
12
|
+
export const SCOUT_STEER_MESSAGE = "You have read enough to answer. Write your cited answer now and stop.";
|
|
5
13
|
const MAX_QUESTION_CHARS = 20_000;
|
|
6
14
|
const MAX_PATHS = 6;
|
|
7
|
-
/** Deterministic, independent readings of the person's original request. */
|
|
8
|
-
export function taskResearchQuestions(description) {
|
|
9
|
-
return [
|
|
10
|
-
`Where does this change belong? Identify relevant entry points, stores and routes. Trace every path that sets or reads the behavior the task describes — UI, API routes, CLI commands, stored rows and config files — and say which one wins when they disagree.`,
|
|
11
|
-
`Which existing tests cover the relevant behavior and entry points?`,
|
|
12
|
-
`How does the closest existing feature implement similar behavior?`,
|
|
13
|
-
].map((question) => ({
|
|
14
|
-
question: `${question}\n\nTask: ${description.slice(0, MAX_QUESTION_CHARS - 200)}`,
|
|
15
|
-
paths: [],
|
|
16
|
-
}));
|
|
17
|
-
}
|
|
18
15
|
/** Keeps only well-formed questions, in order, and caps them at MAX_RESEARCH. */
|
|
19
16
|
export function normaliseResearch(value) {
|
|
20
17
|
if (!Array.isArray(value))
|
|
@@ -78,6 +75,15 @@ function stopRun(run) {
|
|
|
78
75
|
// A run that is already gone has nothing left to stop.
|
|
79
76
|
}
|
|
80
77
|
}
|
|
78
|
+
/** Fire-and-forget: a steer that fails must not fail the scout reading it. */
|
|
79
|
+
function nudge(run, message) {
|
|
80
|
+
try {
|
|
81
|
+
void run.sendMessage?.(message)?.catch(() => { });
|
|
82
|
+
}
|
|
83
|
+
catch {
|
|
84
|
+
// The adapter rejected the nudge; the scout still has until its timeout.
|
|
85
|
+
}
|
|
86
|
+
}
|
|
81
87
|
/** One question, one scout. Never rejects. */
|
|
82
88
|
async function scout(question, options) {
|
|
83
89
|
const started = Date.now();
|
|
@@ -105,11 +111,20 @@ async function scout(question, options) {
|
|
|
105
111
|
return finding("", messageOf(error));
|
|
106
112
|
}
|
|
107
113
|
let text = "";
|
|
114
|
+
let toolCalls = 0;
|
|
115
|
+
let steered = false;
|
|
108
116
|
const reading = (async () => {
|
|
109
117
|
try {
|
|
110
118
|
for await (const event of run.events) {
|
|
111
119
|
if (event.type === "text")
|
|
112
120
|
text += event.text;
|
|
121
|
+
if (event.type === "tool_start") {
|
|
122
|
+
toolCalls += 1;
|
|
123
|
+
if (!steered && toolCalls >= SCOUT_TOOL_BUDGET) {
|
|
124
|
+
steered = true;
|
|
125
|
+
nudge(run, SCOUT_STEER_MESSAGE);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
113
128
|
if (event.type === "exit")
|
|
114
129
|
break;
|
|
115
130
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"research.js","sourceRoot":"","sources":["../../src/orchestrator/research.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"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