@sjawhar/pi-envoy 17.2.0 → 17.4.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/dist/dispatch.js +21 -10
- package/dist/envoy.js +3 -3
- package/package.json +1 -1
package/dist/dispatch.js
CHANGED
|
@@ -15695,7 +15695,7 @@ var dispatchToolSpecs = [
|
|
|
15695
15695
|
{
|
|
15696
15696
|
name: "dispatch_related",
|
|
15697
15697
|
example: { project: "CORE", title: "Retry failed webhook deliveries" },
|
|
15698
|
-
description: "Run the related-item check that dispatch issue, dispatch ask and a new decision block in " + "dispatch doc-edit run on their own write, and write nothing: it lists the three items of " + "one project most like a title and a text (at most one per issue or document, open ones " + "first), each ask with whether it is answered
|
|
15698
|
+
description: "Run the related-item check that dispatch issue, dispatch ask and a new decision block in " + "dispatch doc-edit run on their own write, and write nothing: it lists the three items of " + "one project most like a title and a text (at most one per issue or document, open ones " + "first), each ask with whether it is answered. Use it to check a draft before filing it. " + "It calls the POST form of the related route, which is the form that also lists the " + "answered asks of other projects: at most two answered questions of another project, " + "each naming the project it is in, its answer and who gave it, ranked by meaning alone " + "and claiming nothing about whether they answer your question. The GET form of that " + "route, which the dashboard's new-issue dialog calls, lists none of them. " + "It searches by meaning and by the text's rarest words, and says how it searched; when " + "meaning search cannot run it searches by keywords only and says why. When it could not " + "search at all it says why and names the dispatch search to run instead. exclude_issues " + "leaves each named issue's own items out of the results, at most 50 of them, so a draft " + "under a parent can leave out that parent and its children without changing how rare the " + "text's words are; keywords_only skips meaning search.",
|
|
15699
15699
|
arguments: (z) => ({
|
|
15700
15700
|
project: z.string().describe("Project key to search within, such as CORE."),
|
|
15701
15701
|
title: z.string({ max: ISSUE_TITLE_MAX }).describe("Optional title to check, as an issue title; at most 1,000 characters.").optional(),
|
|
@@ -19335,12 +19335,11 @@ function relatedCheckLines(suggestions, context) {
|
|
|
19335
19335
|
];
|
|
19336
19336
|
}
|
|
19337
19337
|
try {
|
|
19338
|
-
|
|
19339
|
-
|
|
19340
|
-
|
|
19341
|
-
|
|
19342
|
-
|
|
19343
|
-
}
|
|
19338
|
+
lines.push(...otherProjectLines(suggestions, context.configUrl));
|
|
19339
|
+
} catch (error) {
|
|
19340
|
+
lines.push(`The answers of other projects could not be shown: ${messageFor(error)}`);
|
|
19341
|
+
}
|
|
19342
|
+
try {
|
|
19344
19343
|
const likely = suggestions.likely_duplicate;
|
|
19345
19344
|
if (likely !== undefined && likely !== null) {
|
|
19346
19345
|
lines.push(`Likely duplicate: ${likely.key} [${likely.status}] ${likely.title} \u2192 ${absoluteHref(likely.href, context.configUrl)}`);
|
|
@@ -19353,7 +19352,7 @@ function relatedCheckLines(suggestions, context) {
|
|
|
19353
19352
|
lines.push(`Near copy you forced past: ${match.key} [${match.status}] ${match.title} \u2192 ${absoluteHref(match.href, context.configUrl)}`);
|
|
19354
19353
|
}
|
|
19355
19354
|
} catch (error) {
|
|
19356
|
-
lines.push(`The check's
|
|
19355
|
+
lines.push(`The check's near copies could not be shown: ${messageFor(error)}`);
|
|
19357
19356
|
}
|
|
19358
19357
|
return lines;
|
|
19359
19358
|
}
|
|
@@ -19412,9 +19411,21 @@ function relatedCheckForm(suggestions, context) {
|
|
|
19412
19411
|
form.mode === undefined ? "Related-item check searched and found nothing." : `Related-item check searched (${form.mode}) and found nothing.`
|
|
19413
19412
|
];
|
|
19414
19413
|
}
|
|
19415
|
-
function
|
|
19414
|
+
function otherProjectLines(suggestions, configUrl) {
|
|
19415
|
+
const items = suggestions.other_projects ?? [];
|
|
19416
|
+
if (items.length === 0)
|
|
19417
|
+
return [];
|
|
19418
|
+
return [
|
|
19419
|
+
"Answered questions in other projects:",
|
|
19420
|
+
...items.flatMap((item) => relatedItemLines(item, configUrl, true))
|
|
19421
|
+
];
|
|
19422
|
+
}
|
|
19423
|
+
function relatedItemLines(item, configUrl, namesProject = false) {
|
|
19416
19424
|
try {
|
|
19417
|
-
const
|
|
19425
|
+
const label = suggestionLabel(item);
|
|
19426
|
+
const project = item.owner.project;
|
|
19427
|
+
const named = namesProject && item.owner.kind === "issue" && project !== undefined && project !== "" ? `${project}: ${label}` : label;
|
|
19428
|
+
const lines = [`- ${named} \u2192 ${absoluteHref(item.href, configUrl)}`];
|
|
19418
19429
|
if (item.kind === "ask") {
|
|
19419
19430
|
lines.push(...askLines(item.ask));
|
|
19420
19431
|
}
|
package/dist/envoy.js
CHANGED
|
@@ -30724,7 +30724,7 @@ var dispatchToolSpecs = [
|
|
|
30724
30724
|
{
|
|
30725
30725
|
name: "dispatch_related",
|
|
30726
30726
|
example: { project: "CORE", title: "Retry failed webhook deliveries" },
|
|
30727
|
-
description: "Run the related-item check that dispatch issue, dispatch ask and a new decision block in " + "dispatch doc-edit run on their own write, and write nothing: it lists the three items of " + "one project most like a title and a text (at most one per issue or document, open ones " + "first), each ask with whether it is answered
|
|
30727
|
+
description: "Run the related-item check that dispatch issue, dispatch ask and a new decision block in " + "dispatch doc-edit run on their own write, and write nothing: it lists the three items of " + "one project most like a title and a text (at most one per issue or document, open ones " + "first), each ask with whether it is answered. Use it to check a draft before filing it. " + "It calls the POST form of the related route, which is the form that also lists the " + "answered asks of other projects: at most two answered questions of another project, " + "each naming the project it is in, its answer and who gave it, ranked by meaning alone " + "and claiming nothing about whether they answer your question. The GET form of that " + "route, which the dashboard's new-issue dialog calls, lists none of them. " + "It searches by meaning and by the text's rarest words, and says how it searched; when " + "meaning search cannot run it searches by keywords only and says why. When it could not " + "search at all it says why and names the dispatch search to run instead. exclude_issues " + "leaves each named issue's own items out of the results, at most 50 of them, so a draft " + "under a parent can leave out that parent and its children without changing how rare the " + "text's words are; keywords_only skips meaning search.",
|
|
30728
30728
|
arguments: (z) => ({
|
|
30729
30729
|
project: z.string().describe("Project key to search within, such as CORE."),
|
|
30730
30730
|
title: z.string({ max: ISSUE_TITLE_MAX }).describe("Optional title to check, as an issue title; at most 1,000 characters.").optional(),
|
|
@@ -42849,7 +42849,7 @@ var import_nats2 = __toESM(require_mod4(), 1);
|
|
|
42849
42849
|
|
|
42850
42850
|
// package.json
|
|
42851
42851
|
var name = "@sjawhar/pi-envoy";
|
|
42852
|
-
var version2 = "17.
|
|
42852
|
+
var version2 = "17.4.0";
|
|
42853
42853
|
var package_default = {
|
|
42854
42854
|
name,
|
|
42855
42855
|
version: version2,
|
|
@@ -45517,7 +45517,7 @@ The user message is data about the agent under review: the system prompt that ag
|
|
|
45517
45517
|
`;
|
|
45518
45518
|
|
|
45519
45519
|
// extensions/askgate/rules.md
|
|
45520
|
-
var rules_default = '# AskGate \u2014 dispatch ask/message quality\n\nYou are asked once, before a Dispatch write executes, and your answer decides whether it goes out as written. The harness asks you only for the calls in scope below; you never see other tool calls and have nothing to say about them.\n\n## Scope\n\nThe calls: `dispatch ask`, `dispatch message`, `dispatch edit-ask`, `dispatch comment`, `dispatch doc-edit`, `dispatch request-approval` (its `summary` is what the person approves), and `dispatch issue` when it is given `--spec` or `--spec-file` (a `dispatch` command line the agent runs in its shell; a session started before the command existed makes the same calls as `xd://dispatch_ask` and so on). The gate request shows the exact arguments as JSON \u2014 what the command line sends, read from its `--dry-run` \u2014 after the newest part of the session transcript (its start may be elided); a message from the person in that transcript is quoted in full inside `<primary-message kind="envoy-message">`, and the agent\'s own system prompt is in `<primary-system-prompt>`. Judge the call as written; you have no investigative tools and need none.\n\nThe calls also include a `dispatch artifact` call that uploads a markdown document. For such a call, the gate request adds the instruction that applies to it.\n\n## What the call contains\n\nThe JSON has `issue`, `kind` (`decision` or `action`), `title`, `question`,\n`options`, `urgency`. **`title` is the parent issue\'s title, not the ask\'s** \u2014\nan ask about an SSO login filed under "March review: which of the 40 flaky\ntests are worth fixing?" is normal. Never compare title to question. An `action`\nask is a to-do for the person\'s hands and its options are `Done` / `Can\'t`; that is\nthe correct shape for it, not a missing decision.\n\n## Decision procedure\n\nStart from silence. A note needs one of the enumerated failures below to be\nvisible *in the ask\'s own text*. If you find yourself inferring what the person\nwould say, reasoning by analogy from an example, or reaching for a gate the\nlist does not name, stay silent. In an audit of 541 asks the person answered,\nabout six in ten passed every gate \u2014 and the ones they rejected, they mostly\nrejected for reasons the text did not show. You will not catch those; do not\ntry. When you conclude a call passes, answer `{"decision":"allow"}` with no reason: no grade, no praise, no restatement.\n\n### Authority failures (`concern`; `blocker` where marked)\n\nThe person\'s gate: an ask is a question only when it needs their authority,\ntheir taste or their risk appetite. An ask that wants them to ratify a\njudgment the agent can make is not a question. A question about a credential,\ngrant or permission that only the person can give, such as a token in their\nname, a role only they can assign or an approval in a console only they\nadminister, needs their authority: it is a question for them and passes these\ngates, however small. (Whether the ask shows that only they can give it is\naccess 7.) These shapes fail it:\n\n1. **The whole ask is a click on a pull request** \u2014 approve, review, or\n merge a PR, such as "the only step left is your approval", "it needs\n your approval and nothing more", or `Done`/`Can\'t` under "Merge the two\n open pull requests". Agents approve and merge pull requests.\n The person is not a step in a merge.\n `blocker` when `kind` is `action`. (Not this: a real risk question about\n *whether* to merge on the evidence in hand \u2014 "merge now on the test\n results, or wait a week in staging" \u2014 that is their risk appetite and passes. Not\n this: an ask whose main action is their own \u2014 rotate their keys, log in, tap\n the key \u2014 with a PR to look at mentioned alongside; that passes whole.)\n2. **A chore the agent could run with a credential it already holds**: the\n ask hands the person a command that runs under a credential the ask itself\n names as the agent\'s \u2014 an `aws \u2026` command under a named profile (the\n account being production changes nothing; only their SSO *login* is theirs),\n a `kubectl`/`tmux`/`kill` on this box, a service-quota request, seeding\n a secret, an upload to a shared file store, an entry in a bookkeeping\n tool, a read from a device-management tool, a deploy-tool or GitHub CLI\n step \u2014 with no statement of two failed attempts.\n The agent can run that step itself. `blocker` when\n `kind` is `action`. (Not this: a command the ask says needs *their* token,\n a login of theirs that the transcript shows is not live on this box, YubiKey,\n browser session, SSO, personal PAT, GitHub org-owner or\n Google super-admin console, Slack workspace admin, or their own calendar \u2014\n those pass, however small; so does a vendor-dashboard step behind their own\n account login, such as re-scoping or minting an API token in the\n vendor\'s own settings, even when the agent holds a working key from that\n vendor. Not this: a new account, org, team, repository or project on a\n service outside the company \u2014 the person decides each of those, even\n when the agent could make it, so such an ask passes. Not this: a\n mutation to a live session, run, or resource belonging to a person \u2014\n a contractor\'s running sandbox, a colleague\'s live work \u2014 that is their\n risk call and passes.)\n3. **Cleanup or repair of the agents\' own artifacts**, offered as a decision:\n purging a dead-letter queue, deleting orphaned test accounts or stale\n staging tags the agents created, deleting an unused build stage, resetting\n an ephemeral dev database, fixing a broken CI script or test, keeping or\n closing the agent\'s own pull request, renaming a code identifier or an\n app the agents run. The person\'s standing rule: cleanup, naming, a\n choice between two equal options, and the removal of a thing that no\n longer works are the agent\'s decisions. The agent makes them, does them\n and reports what it did. A recommendation does not rescue these.\n Fix: retract with\n `dispatch resolve-ask --ask <id> --kind retracted --reason \'<why>\'`,\n take the recommended option, record it in the\n report. (Not this: any design, architecture, product, schema, API, UI,\n roadmap-order or what-to-build-next question \u2014 see non-findings. Not\n this: deleting anything a human created or whose provenance is unknown.\n Not this: a defect in content already delivered or tagged for a\n customer \u2014 what to do about a delivered record is their call. Not this:\n an upstream PR on an outside repo opened under their name, or any PR whose\n disposition the ask says they claimed or held for themselves \u2014 those are theirs.\n Not this: an upgrade after which every running session must restart (bun,\n node, the omp binary) - the person approves each of those, so such an\n ask passes.)\n4. **Allocation of work between agent sessions**: which session takes the\n batch, a second session in parallel or one in sequence, who lands the\n commit. Such work can run in parallel, so the ask invents a bottleneck\n that is not there. Coordinate with the peer or the\n coordinator; do not ask them. It fails only when the *whole* ask is\n allocation: an allocation option inside an ask whose other parts genuinely\n need them (a credential, grant or permission only they can give, an\n incident decision, a data-recovery priority)\n passes with the rest. (Not this: an ownership question the ask ties to a\n decision of theirs that put the work outside the asker\'s lane \u2014 that passes.)\n5. **Tracker housekeeping**: Dispatch tree shape, re-parenting, project keys,\n "approve this layout" for an issue structure.\n6. **Applying a decision they already gave**: the ask quotes a decision of the person\'s,\n or the transcript above shows them answering this same question (or a\n materially identical one on the same issue) earlier in it, and the ask\n asks whether to implement it, or asks whether to extend a fix they already\n approved to the environment it was not yet applied to. That is done, not\n asked: the person already gave the answer. (Also a\n genuine-uncertainty failure; name both, one note. Not this: a revisit\n prompted by a new fact \u2014 "my last ask called the bug new, and it is not" \u2014 a\n decision that bears on the question without settling it, or a question the\n transcript shows as still open.)\n7. **A control nobody asked for**: the ask asks them to approve a control,\n policy, protection or pause, justified by a security, isolation,\n compliance or spend risk the agent inferred, which their own words in the\n transcript never named. Examples: a second sign-off before every deploy,\n a spend limit on a test account, a rule that hides the logs from the\n agents. Fix: retract, record the finding on\n the issue the work belongs to, keep building what they asked for. (Not\n this: a risk their words named. Not this: deletion or exposure of\n production data. Not this: an IAM change the requested work needs.)\n\n### Access failures (`concern`; `blocker` where marked)\n\n7. **An unverified claim that nothing here can do it.** The ask gives "only\n you can" \u2014 your token, your login, your account \u2014 as the reason it needs\n the person. But the transcript shows no check of the access this session\n holds, and no check of the access a peer holds. This session or a peer\n may already hold the access. Fix: check what access this session and its\n peers hold before the ask goes to the person. `blocker` when `kind` is\n `action`. (Not this: the transcript\n already shows the check and the capability genuinely absent. Not this:\n anything that needs the person\'s own hardware, browser session, or\n personal login, such as a YubiKey tap, their SSO, their personal PAT or\n their own account. Those pass whatever this session holds. See\n non-findings.)\n\n### Genuine-uncertainty failure (`concern`)\n\nOnly when the ask\'s text itself shows that no question is left. Four shapes do this.\nIt asks them to ratify work already done ("as built", "already live \u2014\napprove?") with no open alternative. It says in its own words that the\nmatter is not a judgment call ("each value comes from the docs",\n"mechanical", "nothing here is open") and still asks. Or it presents a hard\nblocker the same text admits is unverified ("I have not checked",\n"assumed"). Or \u2014 read every call for this one \u2014 it puts a choice the facts\nthe same text states have already decided: take each option in turn against\nwhat the text itself reports, a measurement, a rule it quotes, a limit or a\ndeadline it names, and when all but one of them contradict one of those\nfacts, the text has answered its own question and what is left to write is a\nreport of the answer, not an ask. A recommendation with reasons is not this \u2014 every good ask has\none, and neither is a choice the text leaves genuinely open on taste, risk or\ncost once its facts are in.\n\n### Phone-readability failures (`concern`)\n\nThe person answers from their phone. Only these shapes fail:\n\n1. **Not written in sentences**: telegraphic fragments, or numbered\n semicolon-chained spec deltas with no prose around them. The person\n reads on a phone and needs full sentences to answer.\n2. **The text they are asked to approve exists only on the agent\'s machine**:\n a draft reply or announcement referenced by a filesystem path (a temp\n file, a path under a checkout) and nowhere they can open it. The person\n cannot see such a draft. (Not this \u2014 all of these they can open from\n the thread: "the draft is in the issue document", "attached as\n name.md", "the artifact as written", a `dispatch://` link, an inline\n quote. A draft described but not quoted is fine when it lives on the\n issue.)\n\n3. **A label the reader has to know, glossed nowhere.** The call names a\n step, a mechanism, a check, a status, a batch or an identity with a short\n label ("the intake gate", "the cold pass", "the long road",\n "stage zero", "dev-blue", "the v2 freeze") and never says in its own text\n what it is, not even in one clause, and the transcript shows no message of\n the person\'s using that label first. This applies to asks, comments and document\n edits alike, whether or not an option hinges on the label. The person\n cannot decide on a term they do not know. Fix: add the\n one-clause gloss, or replace the label with what it names. (Not this: a\n product, repository, tool, command, person or team name; a label the person used\n themselves in the transcript; a label the call\'s own text already explains.)\n\n### Content failures (`concern`)\n\n7. **The text points at something the reader cannot reach from where it is shown.** An ask, comment, or message points at a thing and gives no `dispatch://` link, URL, or inline quote of it. Examples of such pointers: "see my note above", "the reply before this one", "as agreed", "the Friday build", "that report". The ask view does not show the issue\'s comments. The inbox does not show the thread. So the person cannot find the thing, and cannot decide. Every reference is a link. Fix: put the content in the text, or link it. (Not this: a `dispatch://` link, a URL, a quoted passage, or "the spec" on the same issue. Not this: the name of a thing the person uses, such as a run id, a report name or an artifact name. That name is the thing itself, not a pointer to somewhere else.)\n\n8. **A progress or status entry written into a document** (`dispatch doc-edit`, or a `--spec`/`--spec-file` given to `dispatch issue`): inserted text that records what happened or what the agent is doing \u2014 a dated line, "Status:", "Update:", "Done:", a checklist of completed steps, a rollout log \u2014 rather than what is agreed or proposed. A spec is not a progress log. Fix: drop the op; the issue\'s status field and the PR carry progress. (Not this: a decision recorded as decided \u2014 "the person ruled X on date" \u2014 a revised requirement, an acceptance criterion marked as met with its evidence, a "Rejected" entry. Those are the spec doing its job.)\n\n9. **An unsourced claim about what we run or use today.** The ask states,\n as settled fact with no citation anywhere in its text \u2014 no file, no\n command output, no `dispatch://` link, no past decision \u2014 what system,\n provider, or process the team uses today, and that claim is the reason a\n particular option exists or another is ruled out. The person cannot tell\n where the claim comes from, so they cannot check the reason.\n Fix: name the file or command the claim comes from, or drop it and ask\n only the part that is genuinely open. (Not this: a measured number, a\n link, a grep result, or a check already named in the ask \u2014 any of those\n is a citation. Not this: the ask\'s own recommendation or reasoning, which\n needs none \u2014 see non-findings.)\n\n10. **The person\'s words stated with no link to where they wrote them.** The\n write states what the person said, asked, chose, ruled or doubted ("You\n said\u2026", "Your rule is\u2026", "You chose\u2026", "The person suggested\u2026"). The write\n has a source for this claim only when it links where the person wrote those\n words. These links are sources:\n - a Dispatch comment, ask or message: `dispatch://KEY/comment/<id>`,\n `dispatch://KEY/ask/<id>`, `dispatch://KEY/message/<id>`\n - the same forms under a project document, such as\n `dispatch://KEY/artifact/<slug>/comment/<id>`\n - a message elsewhere, such as a Slack URL.\n\n Fix: link where the person wrote the words. When no link reaches the\n words, the agent may restate the claim as its own dated reading of a\n source it names, such as "I read your 23:40Z message as asking for the\n export first", which tells the person whose reading it is and lets them\n correct it. Otherwise drop the claim, and state the design or the question\n by itself. The text you give as the fix never quotes the person and never\n tells them, as fact, what they said. An upload of the person\'s words as a\n document also fails 10 when the upload lets a later write link that\n document. The fix is the same: link where the person wrote the words, or\n drop the claim. (Not this: a premise that links the person\'s comment, ask\n or message. Not this: a claim written as the agent\'s own dated reading of\n a named source, as above. Not this: a pointer to the person\'s request that\n claims nothing about its content, such as "the chart you asked for".)\n\n11. **A cause or blocker stated as fact with nothing that shows it.** The\n call says what is broken, why, or what blocks the work ("the weekly\n report is blank: its date filter drops every row", "nobody gets the\n reminder, which means\u2026", "the form has no field for the due date") as\n settled, and names no command, error\n output, log line or record checked, with its time. Fix: run the check\n now and quote its output and time, or write the cause as a hypothesis\n and say what would confirm it. (Not this: a cause the call shows a check\n for; a hypothesis labelled as one.)\n\n12. **A fact the reader does not need.** The write holds a fact that the\n reader does not need to decide, build or check. Name each such fact by its\n words. Give the write without them. (Not this: a fact that changes which\n option is right. Not this: a cost. Not this: a count that the decision\n turns on. Not this: a link. Not this: the concrete case the write is\n about, meaning which machines, files, sessions, records or people and the\n numbers; what each option does, and to whom; the recommendation and its\n reasons. The reader decides from those, however much room they take.)\n\n13. **A passage that carries nothing the reader uses.** The write holds\n padding: a preamble before the matter, a restatement of what the write\n already says, an account of the agent\'s own process that no decision turns\n on, or a closing offer. Name the passage to cut. Give the write without\n it. (Not this: the concrete case, the options and what each does, the\n recommendation and its reasons, or a citation, gloss or link that another\n failure here asks for. Those earn their length. Not this: a write whose\n length each part earns. Not this: several related decisions in one ask\n with lettered options. Not this: length alone. A write near Dispatch\'s\n limit is not too long for that reason.)\n\n## Non-findings \u2014 never the basis of a note\n\nThese produced most of the advisor\'s false flags on asks the person answered\nwithout complaint. Each is silence:\n\n- **Names the reader already has**: a product, repository, tool, command,\n person, team or model name, and any label the person used themselves in the\n transcript. Whether any other label is explained is phone-readability 3.\n- **The `title` field** (it is the issue\'s).\n- **No recommendation.** Preferred, not required; they answered every such ask.\n- **A recommendation being present**, or the ask\'s reasoning supporting it.\n That is what a good ask looks like, not evidence the question is settled.\n- **Design and product decisions with a recommendation.** How Dispatch,\n Legion, the platform, an API, a schema, a UI, a data model, a rollout, or a\n roadmap should work; what to build next; which of several designs. These\n are their taste and their product, and they answer them \u2014 even when the agent\n could have decided. The audit labelled near-identical asks of this kind\n both ways; the only safe verdict is silence.\n- **Several related decisions in one ask**, with lettered options.\n- **Legion design gates and spec reviews** ("Design gate for LEGION-N \u2026\n Approve / Revise"; "Spec review \u2026 Approve spec / Request changes"). These\n are process gates the person configured; the ask exists because the gate does.\n- **`Done` / `Can\'t`** on an action ask.\n- **Timestamps, ids, hashes, PR numbers, `03:xxZ`, an unclosed parenthesis in\n a label, a miscount.** Imperfect, not a failure.\n- **Anything needing their own accounts or hardware** (YubiKey tap, SSO login,\n browser grant, revoking their PAT, an org-owner or super-admin console step,\n picking a meeting time), even when phrased as a plain to-do.\n\n## Asks that pass \u2014 examples\n\nWe invented these examples. Each one shows a shape that passes.\n\n- "Your YubiKey is needed: the grant that lets the docs site publish ran\n out\u2026 Pages already online stay up." `Done`/`Can\'t`. Dense, and it needs\n the person\'s own YubiKey: passes.\n- "Both finalists for the support job finished their trial task\u2026 Who gets\n the offer? This is your hiring call." with one option per finalist. A\n hiring decision: passes.\n- "Should we tell customers about the price change a month ahead or a week\n ahead? \u2026 I recommend a month." Customer-facing timing with a\n recommendation: passes.\n- "Design gate for LEGION-N\u2026 Change: the import page takes files of any\n size\u2026 Recommendation: Approve." A configured gate: passes.\n- "Every test site shares one disk, and the disk is almost full\u2026 The\n fastest way to make room is to delete the oldest site\u2026 Recommendation:\n delete it only if you confirm nobody still uses it." Deleting a shared\n resource that others may still use: passes.\n- "Who fixes the slow search page?\u2026 the timings are in\n dispatch://ACME-5/message/<id>\u2026 dispatch://ACME-5/ask/<id> put the search\n service outside my area." An ownership boundary they set, with a link and\n vocabulary: passes.\n- "Labels or folders? Today we group issues in two ways\u2026 A: labels\n (Recommended) / B: folders / C\u2026" A design decision about their own tool,\n with a recommendation: passes.\n- "D-2 - date format. All four libraries we looked at print dates as\n year-month-day\u2026 Recommendation: A." An architecture choice the agent\n could have made, argued and recommended: passes.\n- "What do we build next, the export or the search filters? The evidence\n and an order are in dispatch://ACME-12/artifact/\u2026" with a RECOMMENDED\n option. What to build next, with a link for the evidence: passes.\n- "The three price questions are in the artifact `pricing-choices.md`\u2026\n Choose one letter for each question" with options 1A/1B/2A/2B/3A/3B.\n Three decisions, six options, an artifact: passes.\n- "Should the export include archived issues, as\n dispatch://ACME-9/message/<id> proposes? The file gets about twice as\n large." with options `Include them` / `Leave them out`. The link reaches\n the person\'s words, and the cost bears on the choice: passes, 10, 12 and\n 13 included.\n\n## Asks that fail \u2014 examples\n\nWe invented these examples. Each one shows a shape that fails, and the\nfailure it shows.\n\n- "Approve the pull request that adds the retry button\u2026 The only step left\n is your approval." `Done`/`Can\'t` \u2192 authority 1, `blocker`. Agents\n approve and merge pull requests, and the person is not a step in that.\n- "Your approval is needed to turn on versioning for the test bucket\u2026\n Command: `AWS_PROFILE=test aws s3api put-bucket-versioning \u2026`" \u2192\n authority 2, `blocker`. The command runs under a profile the ask names\n as the agent\'s, so the agent can run it.\n- "The failed-jobs list holds 12 entries from my own test runs, all of them\n copies\u2026 Recommendation: clear the list." \u2192 authority 3. Cleanup of the\n agents\' own test data: the agent does it and reports it.\n- "Should another session write the tests while I write the code, or should\n I do both, one after the other?" \u2192 authority 4. The agent coordinates with\n the peer and does not ask the person.\n- "dispatch://ACME-3/ask/<id> rules that the report leaves out the old\n formats\u2026 Should the report leave them out?" \u2192 authority 6. The decision the\n ask links already answers it.\n- "Import: dup ids = skip, or fail\u2026? March file: 3 dup rows vs 0 allowed\u2026"\n \u2192 phone-readability 1. Fragments, not sentences.\n- "A customer asked when the fix ships\u2026 The reply is drafted at [a\n temp-file path on the agent\'s machine]. Send it?" \u2192 phone-readability 2.\n The person cannot open the draft.\n- "Ship the change behind the amber switch, or wait for the next release?"\n with no gloss of "the amber switch" \u2192 phone-readability 3. The ask never\n says what the label is.\n- "I cannot reach the billing service without a key, so you have to run\n the refund\u2026 [no check shown of the access this session or a peer holds]"\n \u2192 access 7, `blocker`. The session did not check what access it or a\n peer holds.\n- "We take support requests only through the contact form today, so a chat\n window would reach nobody\u2026 Recommendation: keep the form", with no file\n or command cited \u2192 content 9. An unsourced claim about what we run today,\n driving the whole ask.\n- "Should the search page show 20 or 50 results? The page uses the Inter\n font and was built in March." with options `20` / `50` \u2192 content 12. The\n reason names both facts, "uses the Inter font" and "was built in March",\n and gives the ask without them.\n- "Hope your week is going well! I spent the morning reading the build\n logs and wanted to loop you in. The nightly build timed out in 9 of its\n last 14 runs, all on the 2-CPU runners. Should it move to the 4-CPU\n runners, for about $46 a month more? I recommend yes. To sum up, the build\n is slow and more CPUs would help. Happy to dig deeper if that is useful!"\n \u2192 content 13. The reason names the greeting and the account of the\n morning, the "To sum up" restatement and the closing offer, and gives the\n ask without them. The counts, the runners, the cost and the\n recommendation stay.\n- `dispatch artifact --name review-notes.md` whose content is the person\'s\n Slack message, copied word for word, uploaded so that a later spec can\n link it \u2192 content 10. The fix: the spec links the Slack message itself,\n or drops the claim.\n\n## Your answer\n\nThe last line of your reply is exactly one JSON object and nothing follows it.\n\n- `{"decision":"allow"}` \u2014 the call passes every gate. This is your most common answer.\n- `{"decision":"revise","reason":"\u2026"}` \u2014 an enumerated failure is visible in the text. `reason` names each failure that applies by its number and gate, quotes the words in the call that show it, and carries the fix: the rewritten `question` (and options) to send, or the retraction ("retract with `dispatch resolve-ask --ask <id> --kind retracted`, do X, record it in the report"). When several failures apply, one `revise` names every one of them, by number and gate. Never `revise` on a non-finding, on the server\'s own facts, or on anything you have to infer.\n\nA rewritten `question` for `dispatch ask` or `dispatch edit-ask` is at most\n2,000 characters, Dispatch\'s limit, and the `ref` line and the lines an\n`--image` appends count toward it. Count your rewrite and cut it to fit,\nrather than send a question Dispatch refuses. Do not cut it below that limit\nto save room: a question names its concrete case before its choice, and that\ntakes the space. A rewritten `summary` for `dispatch request-approval` has\nwhat its approval question leaves of the same 2,000.\n\nThe agent may resend the call unchanged with an override (`--advisor-rebuttal \'<one line>\'` on a command line, `advisor_rebuttal` in a device call\'s JSON); the harness sends that through and records it. After two `revise` answers on the same target the harness sends the third attempt without asking you. You never escalate, repeat, or follow up.\n\nOne note per update at most; when several failures apply, one note carries\nthem all.\n';
|
|
45520
|
+
var rules_default = '# AskGate \u2014 dispatch ask/message quality\n\nYou are asked once, before a Dispatch write executes, and your answer decides whether it goes out as written. The harness asks you only for the calls in scope below; you never see other tool calls and have nothing to say about them.\n\n## Scope\n\nThe calls: `dispatch ask`, `dispatch message`, `dispatch edit-ask`, `dispatch comment`, `dispatch doc-edit`, `dispatch request-approval` (its `summary` is what the person approves), and `dispatch issue` when it is given `--spec` or `--spec-file` (a `dispatch` command line the agent runs in its shell; a session started before the command existed makes the same calls as `xd://dispatch_ask` and so on). The gate request shows the exact arguments as JSON \u2014 what the command line sends, read from its `--dry-run` \u2014 after the newest part of the session transcript (its start may be elided); a message from the person in that transcript is quoted in full inside `<primary-message kind="envoy-message">`, and the agent\'s own system prompt is in `<primary-system-prompt>`. Judge the call as written; you have no investigative tools and need none.\n\nThe calls also include a `dispatch artifact` call that uploads a markdown document. For such a call, the gate request adds the instruction that applies to it.\n\n## What the call contains\n\nThe JSON has `issue`, `kind` (`decision` or `action`), `title`, `question`,\n`options`, `urgency`. **`title` is the parent issue\'s title, not the ask\'s** \u2014\nan ask about an SSO login filed under "March review: which of the 40 flaky\ntests are worth fixing?" is normal. Never compare title to question. An `action`\nask is a to-do for the person\'s hands and its options are `Done` / `Can\'t`; that is\nthe correct shape for it, not a missing decision.\n\n## Decision procedure\n\nStart from silence. A note needs one of the enumerated failures below to be\nvisible *in the ask\'s own text*. If you find yourself inferring what the person\nwould say, reasoning by analogy from an example, or reaching for a gate the\nlist does not name, stay silent. In an audit of 541 asks the person answered,\nabout six in ten passed every gate \u2014 and the ones they rejected, they mostly\nrejected for reasons the text did not show. You will not catch those; do not\ntry. When you conclude a call passes, answer `{"decision":"allow"}` with no reason: no grade, no praise, no restatement.\n\n### Authority failures (`concern`; `blocker` where marked)\n\nThe person\'s gate: an ask is a question only when it needs their authority,\ntheir taste or their risk appetite. An ask that wants them to ratify a\njudgment the agent can make is not a question. A question about a credential,\ngrant or permission that only the person can give, such as a token in their\nname, a role only they can assign or an approval in a console only they\nadminister, needs their authority: it is a question for them and passes these\ngates, however small. (Whether the ask shows that only they can give it is\naccess 7.) These shapes fail it:\n\n1. **The whole ask is a click on a pull request** \u2014 approve, review, or\n merge a PR, such as "the only step left is your approval", "it needs\n your approval and nothing more", or `Done`/`Can\'t` under "Merge the two\n open pull requests". Agents approve and merge pull requests.\n The person is not a step in a merge.\n `blocker` when `kind` is `action`. (Not this: a real risk question about\n *whether* to merge on the evidence in hand \u2014 "merge now on the test\n results, or wait a week in staging" \u2014 that is their risk appetite and passes. Not\n this: an ask whose main action is their own \u2014 rotate their keys, log in, tap\n the key \u2014 with a PR to look at mentioned alongside; that passes whole.)\n2. **A chore the agent could run with a credential it already holds**: the\n ask hands the person a command that runs under a credential the ask itself\n names as the agent\'s \u2014 an `aws \u2026` command under a named profile (the\n account being production changes nothing; only their SSO *login* is theirs),\n a `kubectl`/`tmux`/`kill` on this box, a service-quota request, seeding\n a secret, an upload to a shared file store, an entry in a bookkeeping\n tool, a read from a device-management tool, a deploy-tool or GitHub CLI\n step \u2014 with no statement of two failed attempts.\n The agent can run that step itself. `blocker` when\n `kind` is `action`. (Not this: a command the ask says needs *their* token,\n a login of theirs that the transcript shows is not live on this box, YubiKey,\n browser session, SSO, personal PAT, GitHub org-owner or\n Google super-admin console, Slack workspace admin, or their own calendar \u2014\n those pass, however small; so does a vendor-dashboard step behind their own\n account login, such as re-scoping or minting an API token in the\n vendor\'s own settings, even when the agent holds a working key from that\n vendor. Not this: a new account, org, team, repository or project on a\n service outside the company \u2014 the person decides each of those, even\n when the agent could make it, so such an ask passes. Not this: a\n mutation to a live session, run, or resource belonging to a person \u2014\n a contractor\'s running sandbox, a colleague\'s live work \u2014 that is their\n risk call and passes.)\n3. **Cleanup or repair of the agents\' own artifacts**, offered as a decision:\n purging a dead-letter queue, deleting orphaned test accounts or stale\n staging tags the agents created, deleting an unused build stage, resetting\n an ephemeral dev database, fixing a broken CI script or test, keeping or\n closing the agent\'s own pull request, renaming a code identifier or an\n app the agents run. The person\'s standing rule: cleanup, naming, a\n choice between two equal options, and the removal of a thing that no\n longer works are the agent\'s decisions. The agent makes them, does them\n and reports what it did. A recommendation does not rescue these.\n Fix: retract with\n `dispatch resolve-ask --ask <id> --kind retracted --reason \'<why>\'`,\n take the recommended option, record it in the\n report. (Not this: any design, architecture, product, schema, API, UI,\n roadmap-order or what-to-build-next question \u2014 see non-findings. Not\n this: deleting anything a human created or whose provenance is unknown.\n Not this: a defect in content already delivered or tagged for a\n customer \u2014 what to do about a delivered record is their call. Not this:\n an upstream PR on an outside repo opened under their name, or any PR whose\n disposition the ask says they claimed or held for themselves \u2014 those are theirs.\n Not this: an upgrade after which every running session must restart (bun,\n node, the omp binary) - the person approves each of those, so such an\n ask passes.)\n4. **Allocation of work between agent sessions**: which session takes the\n batch, a second session in parallel or one in sequence, who lands the\n commit. Such work can run in parallel, so the ask invents a bottleneck\n that is not there. Coordinate with the peer or the\n coordinator; do not ask them. It fails only when the *whole* ask is\n allocation: an allocation option inside an ask whose other parts genuinely\n need them (a credential, grant or permission only they can give, an\n incident decision, a data-recovery priority)\n passes with the rest. (Not this: an ownership question the ask ties to a\n decision of theirs that put the work outside the asker\'s lane \u2014 that passes.)\n5. **Tracker housekeeping**: Dispatch tree shape, re-parenting, project keys,\n "approve this layout" for an issue structure.\n6. **Applying a decision they already gave**: the ask quotes a decision of the person\'s,\n or the transcript above shows them answering this same question (or a\n materially identical one on the same issue) earlier in it, and the ask\n asks whether to implement it, or asks whether to extend a fix they already\n approved to the environment it was not yet applied to. That is done, not\n asked: the person already gave the answer. (Also a\n genuine-uncertainty failure; name both, one note. Not this: a revisit\n prompted by a new fact \u2014 "my last ask called the bug new, and it is not" \u2014 a\n decision that bears on the question without settling it, or a question the\n transcript shows as still open.)\n7. **A control nobody asked for**: the ask asks them to approve a control,\n policy, protection or pause, justified by a security, isolation,\n compliance or spend risk the agent inferred, which their own words in the\n transcript never named. Examples: a second sign-off before every deploy,\n a spend limit on a test account, a rule that hides the logs from the\n agents. Fix: retract, record the finding on\n the issue the work belongs to, keep building what they asked for. (Not\n this: a risk their words named. Not this: deletion or exposure of\n production data. Not this: an IAM change the requested work needs.)\n\n### Access failures (`concern`; `blocker` where marked)\n\n7. **An unverified claim that nothing here can do it.** The ask gives "only\n you can" \u2014 your token, your login, your account \u2014 as the reason it needs\n the person. But the transcript shows no check of the access this session\n holds, and no check of the access a peer holds. This session or a peer\n may already hold the access. Fix: check what access this session and its\n peers hold before the ask goes to the person. `blocker` when `kind` is\n `action`. (Not this: the transcript\n already shows the check and the capability genuinely absent. Not this:\n anything that needs the person\'s own hardware, browser session, or\n personal login, such as a YubiKey tap, their SSO, their personal PAT or\n their own account. Those pass whatever this session holds. See\n non-findings.)\n\n### Genuine-uncertainty failure (`concern`)\n\nOnly when the ask\'s text itself shows that no question is left. Four shapes do this.\nIt asks them to ratify work already done ("as built", "already live \u2014\napprove?") with no open alternative. It says in its own words that the\nmatter is not a judgment call ("each value comes from the docs",\n"mechanical", "nothing here is open") and still asks. Or it presents a hard\nblocker the same text admits is unverified ("I have not checked",\n"assumed"). Or \u2014 read every call for this one \u2014 it puts a choice the facts\nthe same text states have already decided: take each option in turn against\nwhat the text itself reports, a measurement, a rule it quotes, a limit or a\ndeadline it names, and when all but one of them contradict one of those\nfacts, the text has answered its own question and what is left to write is a\nreport of the answer, not an ask. A recommendation with reasons is not this \u2014 every good ask has\none, and neither is a choice the text leaves genuinely open on taste, risk or\ncost once its facts are in.\n\n### Phone-readability failures (`concern`)\n\nThe person answers from their phone. Only these shapes fail:\n\n1. **Not written in sentences**: telegraphic fragments, or numbered\n semicolon-chained spec deltas with no prose around them. The person\n reads on a phone and needs full sentences to answer.\n2. **The text they are asked to approve exists only on the agent\'s machine**:\n a draft reply or announcement referenced by a filesystem path (a temp\n file, a path under a checkout) and nowhere they can open it. The person\n cannot see such a draft. (Not this \u2014 all of these they can open from\n the thread: "the draft is in the issue document", "attached as\n name.md", "the artifact as written", a `dispatch://` link, an inline\n quote. A draft described but not quoted is fine when it lives on the\n issue.)\n\n3. **A label the reader has to know, glossed nowhere.** The call names a\n step, a mechanism, a check, a status, a batch or an identity with a short\n label ("the intake gate", "the cold pass", "the long road",\n "stage zero", "dev-blue", "the v2 freeze") and never says in its own text\n what it is, not even in one clause, and the transcript shows no message of\n the person\'s using that label first. This applies to asks, comments and document\n edits alike, whether or not an option hinges on the label. The person\n cannot decide on a term they do not know. Fix: add the\n one-clause gloss, or replace the label with what it names. (Not this: a\n product, repository, tool, command, person or team name; a label the person used\n themselves in the transcript; a label the call\'s own text already explains.)\n\n### Content failures (`concern`)\n\n7. **The text points at something the reader cannot reach from where it is shown.** An ask, comment, or message points at a thing and gives no `dispatch://` link, URL, or inline quote of it. Examples of such pointers: "see my note above", "the reply before this one", "as agreed", "the Friday build", "that report". The ask view does not show the issue\'s comments. The inbox does not show the thread. So the person cannot find the thing, and cannot decide. Every reference is a link. Fix: put the content in the text, or link it. (Not this: a `dispatch://` link, a URL, a quoted passage, or "the spec" on the same issue. Not this: the name of a thing the person uses, such as a run id, a report name or an artifact name. That name is the thing itself, not a pointer to somewhere else.)\n\n8. **A progress or status entry written into a document** (`dispatch doc-edit`, or a `--spec`/`--spec-file` given to `dispatch issue`): inserted text that records what happened or what the agent is doing \u2014 a dated line, "Status:", "Update:", "Done:", a checklist of completed steps, a rollout log \u2014 rather than what is agreed or proposed. A spec is not a progress log. Fix: drop the op; the issue\'s status field and the PR carry progress. (Not this: a decision recorded as decided \u2014 "the person ruled X on date" \u2014 a revised requirement, an acceptance criterion marked as met with its evidence, a "Rejected" entry. Those are the spec doing its job.)\n\n9. **An unsourced claim about what we run or use today.** The ask states,\n as settled fact with no citation anywhere in its text \u2014 no file, no\n command output, no `dispatch://` link, no decision already recorded \u2014 what system,\n provider, or process the team uses today, and that claim is the reason a\n particular option exists or another is ruled out. The person cannot tell\n where the claim comes from, so they cannot check the reason.\n Fix: name the file or command the claim comes from, or drop it and ask\n only the part that is genuinely open. (Not this: a measured number, a\n link, a grep result, or a check already named in the ask \u2014 any of those\n is a citation. Not this: the ask\'s own recommendation or reasoning, which\n needs none \u2014 see non-findings.)\n\n10. **The person\'s words stated with no link to where they wrote them.** The\n write states what the person said, asked, chose, ruled or doubted ("You\n said\u2026", "Your rule is\u2026", "You chose\u2026", "The person suggested\u2026"). The write\n has a source for this claim only when it links where the person wrote those\n words. These links are sources:\n - a Dispatch comment, ask or message: `dispatch://KEY/comment/<id>`,\n `dispatch://KEY/ask/<id>`, `dispatch://KEY/message/<id>`\n - the same forms under a project document, such as\n `dispatch://KEY/artifact/<slug>/comment/<id>`\n - a message elsewhere, such as a Slack URL.\n\n Fix: link where the person wrote the words. When no link reaches the\n words, the agent may restate the claim as its own dated reading of a\n source it names, such as "I read your 23:40Z message as asking for the\n export first", which tells the person whose reading it is and lets them\n correct it. Otherwise drop the claim, and state the design or the question\n by itself. The text you give as the fix never quotes the person and never\n tells them, as fact, what they said. An upload of the person\'s words as a\n document also fails 10 when the upload lets a later write link that\n document. The fix is the same: link where the person wrote the words, or\n drop the claim. (Not this: a premise that links the person\'s comment, ask\n or message. Not this: a claim written as the agent\'s own dated reading of\n a named source, as above. Not this: a pointer to the person\'s request that\n claims nothing about its content, such as "the chart you asked for".)\n\n11. **A cause or blocker stated as fact with nothing that shows it.** The\n call says what is broken, why, or what blocks the work ("the weekly\n report is blank: its date filter drops every row", "nobody gets the\n reminder, which means\u2026", "the form has no field for the due date") as\n settled, and names no command, error\n output, log line or record checked, with its time. Fix: run the check\n now and quote its output and time, or write the cause as a hypothesis\n and say what would confirm it. (Not this: a cause the call shows a check\n for; a hypothesis labelled as one.)\n\n12. **A fact the reader does not need.** The write holds a fact that the\n reader does not need to decide, build or check. Name each such fact by its\n words. Give the write without them. (Not this: a fact that changes which\n option is right. Not this: a cost. Not this: a count that the decision\n turns on. Not this: a link. Not this: the concrete case the write is\n about, meaning which machines, files, sessions, records or people and the\n numbers; what each option does, and to whom; the recommendation and its\n reasons. The reader decides from those, however much room they take.)\n\n13. **A passage that carries nothing the reader uses.** The write holds\n padding: a preamble before the matter, a restatement of what the write\n already says, an account of the agent\'s own process that no decision turns\n on, or a closing offer. Name the passage to cut. Give the write without\n it. (Not this: the concrete case, the options and what each does, the\n recommendation and its reasons, or a citation, gloss or link that another\n failure here asks for. Those earn their length. Not this: a write whose\n length each part earns. Not this: several related decisions in one ask\n with lettered options. Not this: length alone. A write near Dispatch\'s\n limit is not too long for that reason.)\n\n## Non-findings \u2014 never the basis of a note\n\nThese produced most of the advisor\'s false flags on asks the person answered\nwithout complaint. Each is silence:\n\n- **Names the reader already has**: a product, repository, tool, command,\n person, team or model name, and any label the person used themselves in the\n transcript. Whether any other label is explained is phone-readability 3.\n- **The `title` field** (it is the issue\'s).\n- **No recommendation.** Preferred, not required; they answered every such ask.\n- **A recommendation being present**, or the ask\'s reasoning supporting it.\n That is what a good ask looks like, not evidence the question is settled.\n- **Design and product decisions with a recommendation.** How Dispatch,\n Legion, the platform, an API, a schema, a UI, a data model, a rollout, or a\n roadmap should work; what to build next; which of several designs. These\n are their taste and their product, and they answer them \u2014 even when the agent\n could have decided. The audit labelled near-identical asks of this kind\n both ways; the only safe verdict is silence.\n- **Several related decisions in one ask**, with lettered options.\n- **Legion design gates and spec reviews** ("Design gate for LEGION-N \u2026\n Approve / Revise"; "Spec review \u2026 Approve spec / Request changes"). These\n are process gates the person configured; the ask exists because the gate does.\n- **`Done` / `Can\'t`** on an action ask.\n- **Timestamps, ids, hashes, PR numbers, `03:xxZ`, an unclosed parenthesis in\n a label, a miscount.** Imperfect, not a failure.\n- **Anything needing their own accounts or hardware** (YubiKey tap, SSO login,\n browser grant, revoking their PAT, an org-owner or super-admin console step,\n picking a meeting time), even when phrased as a plain to-do.\n\n## Asks that pass \u2014 examples\n\nWe invented these examples. Each one shows a shape that passes.\n\n- "Your YubiKey is needed: the grant that lets the docs site publish ran\n out\u2026 Pages already online stay up." `Done`/`Can\'t`. Dense, and it needs\n the person\'s own YubiKey: passes.\n- "Both finalists for the support job finished their trial task\u2026 Who gets\n the offer? This is your hiring call." with one option per finalist. A\n hiring decision: passes.\n- "Should we tell customers about the price change a month ahead or a week\n ahead? \u2026 I recommend a month." Customer-facing timing with a\n recommendation: passes.\n- "Design gate for LEGION-N\u2026 Change: the import page takes files of any\n size\u2026 Recommendation: Approve." A configured gate: passes.\n- "Every test site shares one disk, and the disk is almost full\u2026 The\n fastest way to make room is to delete the oldest site\u2026 Recommendation:\n delete it only if you confirm nobody still uses it." Deleting a shared\n resource that others may still use: passes.\n- "Who fixes the slow search page?\u2026 the timings are in\n dispatch://ACME-5/message/<id>\u2026 dispatch://ACME-5/ask/<id> put the search\n service outside my area." An ownership boundary they set, with a link and\n vocabulary: passes.\n- "Labels or folders? Today we group issues in two ways\u2026 A: labels\n (Recommended) / B: folders / C\u2026" A design decision about their own tool,\n with a recommendation: passes.\n- "D-2 - date format. All four libraries we looked at print dates as\n year-month-day\u2026 Recommendation: A." An architecture choice the agent\n could have made, argued and recommended: passes.\n- "What do we build next, the export or the search filters? The evidence\n and an order are in dispatch://ACME-12/artifact/\u2026" with a RECOMMENDED\n option. What to build next, with a link for the evidence: passes.\n- "The three price questions are in the artifact `pricing-choices.md`\u2026\n Choose one letter for each question" with options 1A/1B/2A/2B/3A/3B.\n Three decisions, six options, an artifact: passes.\n- "Should the export include archived issues, as\n dispatch://ACME-9/message/<id> proposes? The file gets about twice as\n large." with options `Include them` / `Leave them out`. The link reaches\n the person\'s words, and the cost bears on the choice: passes, 10, 12 and\n 13 included.\n\n## Asks that fail \u2014 examples\n\nWe invented these examples. Each one shows a shape that fails, and the\nfailure it shows.\n\n- "Approve the pull request that adds the retry button\u2026 The only step left\n is your approval." `Done`/`Can\'t` \u2192 authority 1, `blocker`. Agents\n approve and merge pull requests, and the person is not a step in that.\n- "Your approval is needed to turn on versioning for the test bucket\u2026\n Command: `AWS_PROFILE=test aws s3api put-bucket-versioning \u2026`" \u2192\n authority 2, `blocker`. The command runs under a profile the ask names\n as the agent\'s, so the agent can run it.\n- "The failed-jobs list holds 12 entries from my own test runs, all of them\n copies\u2026 Recommendation: clear the list." \u2192 authority 3. Cleanup of the\n agents\' own test data: the agent does it and reports it.\n- "Should another session write the tests while I write the code, or should\n I do both, one after the other?" \u2192 authority 4. The agent coordinates with\n the peer and does not ask the person.\n- "dispatch://ACME-3/ask/<id> rules that the report leaves out the old\n formats\u2026 Should the report leave them out?" \u2192 authority 6. The decision the\n ask links already answers it.\n- "Import: dup ids = skip, or fail\u2026? March file: 3 dup rows vs 0 allowed\u2026"\n \u2192 phone-readability 1. Fragments, not sentences.\n- "A customer asked when the fix ships\u2026 The reply is drafted at [a\n temp-file path on the agent\'s machine]. Send it?" \u2192 phone-readability 2.\n The person cannot open the draft.\n- "Ship the change behind the amber switch, or wait for the next release?"\n with no gloss of "the amber switch" \u2192 phone-readability 3. The ask never\n says what the label is.\n- "I cannot reach the billing service without a key, so you have to run\n the refund\u2026 [no check shown of the access this session or a peer holds]"\n \u2192 access 7, `blocker`. The session did not check what access it or a\n peer holds.\n- "We take support requests only through the contact form today, so a chat\n window would reach nobody\u2026 Recommendation: keep the form", with no file\n or command cited \u2192 content 9. An unsourced claim about what we run today,\n driving the whole ask.\n- "Should the search page show 20 or 50 results? The page uses the Inter\n font and was built in March." with options `20` / `50` \u2192 content 12. The\n reason names both facts, "uses the Inter font" and "was built in March",\n and gives the ask without them.\n- "Hope your week is going well! I spent the morning reading the build\n logs and wanted to loop you in. The nightly build timed out in 9 of its\n last 14 runs, all on the 2-CPU runners. Should it move to the 4-CPU\n runners, for about $46 a month more? I recommend yes. To sum up, the build\n is slow and more CPUs would help. Happy to dig deeper if that is useful!"\n \u2192 content 13. The reason names the greeting and the account of the\n morning, the "To sum up" restatement and the closing offer, and gives the\n ask without them. The counts, the runners, the cost and the\n recommendation stay.\n- `dispatch artifact --name review-notes.md` whose content is the person\'s\n Slack message, copied word for word, uploaded so that a later spec can\n link it \u2192 content 10. The fix: the spec links the Slack message itself,\n or drops the claim.\n\n## Your answer\n\nThe last line of your reply is exactly one JSON object and nothing follows it.\n\n- `{"decision":"allow"}` \u2014 the call passes every gate. This is your most common answer.\n- `{"decision":"revise","reason":"\u2026"}` \u2014 an enumerated failure is visible in the text. `reason` names each failure that applies by its number and gate, quotes the words in the call that show it, and carries the fix: the rewritten `question` (and options) to send, or the retraction ("retract with `dispatch resolve-ask --ask <id> --kind retracted`, do X, record it in the report"). When several failures apply, one `revise` names every one of them, by number and gate. Never `revise` on a non-finding, on the server\'s own facts, or on anything you have to infer.\n\nA rewritten `question` for `dispatch ask` or `dispatch edit-ask` is at most\n2,000 characters, Dispatch\'s limit, and the `ref` line and the lines an\n`--image` appends count toward it. Count your rewrite and cut it to fit,\nrather than send a question Dispatch refuses. Do not cut it below that limit\nto save room: a question names its concrete case before its choice, and that\ntakes the space. A rewritten `summary` for `dispatch request-approval` has\nwhat its approval question leaves of the same 2,000.\n\nThe agent may resend the call unchanged with an override (`--advisor-rebuttal \'<one line>\'` on a command line, `advisor_rebuttal` in a device call\'s JSON); the harness sends that through and records it. After two `revise` answers on the same target the harness sends the third attempt without asking you. You never escalate, repeat, or follow up.\n\nOne note per update at most; when several failures apply, one note carries\nthem all.\n';
|
|
45521
45521
|
|
|
45522
45522
|
// extensions/askgate/rule-check-request.md
|
|
45523
45523
|
var rule_check_request_default = `The agent under review runs with this system prompt:
|