@tablation/crew 0.140.0 → 0.141.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/cli.js
CHANGED
|
@@ -8805,6 +8805,7 @@ function validateContract(c) {
|
|
|
8805
8805
|
return problems;
|
|
8806
8806
|
}
|
|
8807
8807
|
var EVENT_LOG_MISSING = "the Issues table has no event log \u2014 crew writes its audit trail there (CREW-1574). In the app, open the Issues table's Data & lifecycle tab and turn on Event log, then rerun.";
|
|
8808
|
+
var EVENT_LOG_STATUS_UNTRACKED = (column) => `the Issues table's event log does not track the "${column}" column, so who accepted a ticket cannot be known and a seat parks questions on the filer or operator instead. In the app, open the Issues table's Data & lifecycle tab and add "${column}" to the tracked fields.`;
|
|
8808
8809
|
var PERISCOPE_COLUMNS = [
|
|
8809
8810
|
"issue_id",
|
|
8810
8811
|
"ship_id",
|
|
@@ -9635,6 +9636,68 @@ var Tracker = class {
|
|
|
9635
9636
|
}
|
|
9636
9637
|
return rows.filter((e) => e.event_type === type).sort((a, b) => Date.parse(b.occurred_at ?? b.created_at ?? "") - Date.parse(a.occurred_at ?? a.created_at ?? ""));
|
|
9637
9638
|
}
|
|
9639
|
+
/**
|
|
9640
|
+
* Every status change in the log, newest first (CREW-3144): who moved which
|
|
9641
|
+
* ticket to which status. One table-wide read per poll rather than one per
|
|
9642
|
+
* ticket; a change older than the window reads as unknown. Degrades like
|
|
9643
|
+
* `events()`: a missing log, a 5xx or a non-JSON reply is an empty list.
|
|
9644
|
+
*/
|
|
9645
|
+
async statusChanges(limit = 1e3) {
|
|
9646
|
+
const filters = encodeURIComponent(JSON.stringify([
|
|
9647
|
+
{ columnName: "event_type", operator: "EQ", value: "field_changed" },
|
|
9648
|
+
{ columnName: "field", operator: "EQ", value: this.contract.columns.status }
|
|
9649
|
+
]));
|
|
9650
|
+
let rows;
|
|
9651
|
+
try {
|
|
9652
|
+
const res = await this.eventsFetch("GET", `/events?limit=${limit}&filters=${filters}`);
|
|
9653
|
+
if (res.status === 404) return [];
|
|
9654
|
+
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
9655
|
+
rows = await res.json();
|
|
9656
|
+
if (!Array.isArray(rows)) throw new Error("not a list");
|
|
9657
|
+
} catch (err3) {
|
|
9658
|
+
this.onReadFailure?.(`reading status changes failed: ${err3 instanceof Error ? err3.message : String(err3)}`);
|
|
9659
|
+
return [];
|
|
9660
|
+
}
|
|
9661
|
+
const str = (v) => typeof v === "string" && v ? v : null;
|
|
9662
|
+
const out = [];
|
|
9663
|
+
for (const r of rows) {
|
|
9664
|
+
if (r.event_type !== "field_changed" || r.field !== this.contract.columns.status) continue;
|
|
9665
|
+
const meta = r.metadata && typeof r.metadata === "object" ? r.metadata : {};
|
|
9666
|
+
const to = str(meta.to) ?? str(r.to_value);
|
|
9667
|
+
const at = str(r.occurred_at) ?? str(r.created_at);
|
|
9668
|
+
const record = str(r.record_id);
|
|
9669
|
+
if (!to || !at || !record) continue;
|
|
9670
|
+
out.push({
|
|
9671
|
+
record_id: record,
|
|
9672
|
+
to,
|
|
9673
|
+
occurred_at: at,
|
|
9674
|
+
actor_kind: str(r.actor_kind),
|
|
9675
|
+
actor_id: str(r.actor_id),
|
|
9676
|
+
actor_name: str(r.actor_name),
|
|
9677
|
+
actor_record_id: str(r.actor_record_id)
|
|
9678
|
+
});
|
|
9679
|
+
}
|
|
9680
|
+
return out.sort((a, b) => Date.parse(b.occurred_at) - Date.parse(a.occurred_at));
|
|
9681
|
+
}
|
|
9682
|
+
/**
|
|
9683
|
+
* Whether the event log tracks the status column (CREW-3144). Without it the
|
|
9684
|
+
* acceptor of a ticket is unknowable. `null` when the answer cannot be read
|
|
9685
|
+
* (no log, the table unreachable, a table that does not say): not a finding.
|
|
9686
|
+
*/
|
|
9687
|
+
async eventLogTracksStatus() {
|
|
9688
|
+
try {
|
|
9689
|
+
const res = await fetch(`${this.route.baseUrl}/api/data-models/${this.models.issues}`, {
|
|
9690
|
+
headers: { Authorization: `Bearer ${resolveApiKey(this.route)}`, "User-Agent": this.userAgent }
|
|
9691
|
+
});
|
|
9692
|
+
if (!res.ok) return null;
|
|
9693
|
+
const model = await res.json();
|
|
9694
|
+
if (model.eventLogEnabled !== true) return null;
|
|
9695
|
+
const tracked2 = model.eventLogConfig?.trackedFields;
|
|
9696
|
+
return Array.isArray(tracked2) ? tracked2.includes(this.contract.columns.status) : null;
|
|
9697
|
+
} catch {
|
|
9698
|
+
return null;
|
|
9699
|
+
}
|
|
9700
|
+
}
|
|
9638
9701
|
/** The newest event of `type` on a ticket, or undefined — e.g. the `pushed` tip QA verifies against. */
|
|
9639
9702
|
async latestEvent(ticketId, type) {
|
|
9640
9703
|
return (await this.events(type)).find((e) => e.record_id === ticketId);
|
|
@@ -15641,6 +15704,9 @@ function isHold(roster, id) {
|
|
|
15641
15704
|
function holdIds(roster) {
|
|
15642
15705
|
return [...roster.values()].filter((m) => m.kind === "hold").map((m) => m.id);
|
|
15643
15706
|
}
|
|
15707
|
+
function operatorOf(roster) {
|
|
15708
|
+
return [...roster.values()].find((m) => m.kind === "hold" && m.role.toLowerCase() === "operator");
|
|
15709
|
+
}
|
|
15644
15710
|
function seats(roster) {
|
|
15645
15711
|
return [...roster.values()].filter((m) => m.kind === "seat");
|
|
15646
15712
|
}
|
|
@@ -15695,11 +15761,18 @@ function rosterMarkdown(roster, meId) {
|
|
|
15695
15761
|
for (const m of holds(roster).sort(byRole)) {
|
|
15696
15762
|
lines2.push(`| ${m.role ? m.role.toLowerCase() : "\u2014"} | ${crewLabel(m)} | \`${m.id}\` |`);
|
|
15697
15763
|
}
|
|
15764
|
+
const operator = operatorOf(roster);
|
|
15698
15765
|
lines2.push(
|
|
15699
15766
|
"",
|
|
15700
|
-
|
|
15701
|
-
|
|
15702
|
-
|
|
15767
|
+
...operator ? [
|
|
15768
|
+
`The **operator** (${operator.name}) is this ship's owner: the machine, the dev stack and the`,
|
|
15769
|
+
"credentials the steps below refer to are theirs, and, like any hold, they can authorize a",
|
|
15770
|
+
"workspace change. They do not decide a ticket for you: a ticket's decisions belong to whoever",
|
|
15771
|
+
"accepted it (the digest's `accepted by` and `park to` columns say who)."
|
|
15772
|
+
] : [
|
|
15773
|
+
"This ship has no operator hold. A ticket's decisions belong to whoever accepted it (the digest's",
|
|
15774
|
+
"`accepted by` and `park to` columns say who); only a hold can authorize a workspace change."
|
|
15775
|
+
],
|
|
15703
15776
|
"",
|
|
15704
15777
|
"When the queue digest names a comment's author, that name comes from the",
|
|
15705
15778
|
"server-stamped identity on the comment row joined to this roster (a hold's",
|
|
@@ -15708,7 +15781,7 @@ function rosterMarkdown(roster, meId) {
|
|
|
15708
15781
|
'is theirs; one it marks "(no identity)" is from nobody this roster knows.',
|
|
15709
15782
|
'A comment attributed to a named person marked "(person)" is from a real',
|
|
15710
15783
|
"workspace member linked to a Crew row on another ship \u2014 their answer to a",
|
|
15711
|
-
"question counts the same, though only a hold
|
|
15784
|
+
"question counts the same, though only a hold can authorize",
|
|
15712
15785
|
"a workspace change.",
|
|
15713
15786
|
""
|
|
15714
15787
|
);
|
|
@@ -17830,6 +17903,38 @@ function filedBy(t, i) {
|
|
|
17830
17903
|
}
|
|
17831
17904
|
return t.reporter_name ? `${t.reporter_name} (unverified)` : "\u2014";
|
|
17832
17905
|
}
|
|
17906
|
+
var labelOf = (m, i) => m.id === i.me ? "you" : crewLabel(m) ?? m.name;
|
|
17907
|
+
function acceptor(t, i) {
|
|
17908
|
+
const approved = i.approvedStatus ?? "accepted";
|
|
17909
|
+
const change = (i.statusChanges ?? []).find((c) => c.record_id === t.id && c.to === approved && c.actor_kind === "user");
|
|
17910
|
+
if (!change) return void 0;
|
|
17911
|
+
const member = (change.actor_record_id ? i.roster.get(change.actor_record_id) : void 0) ?? memberByIdentity(i.roster, change.actor_id);
|
|
17912
|
+
if (member) return { member };
|
|
17913
|
+
return change.actor_name ? { name: change.actor_name } : void 0;
|
|
17914
|
+
}
|
|
17915
|
+
function acceptedBy(t, i) {
|
|
17916
|
+
const a = acceptor(t, i);
|
|
17917
|
+
if (!a) return "\u2014";
|
|
17918
|
+
return a.member ? labelOf(a.member, i) : `${a.name} (unverified)`;
|
|
17919
|
+
}
|
|
17920
|
+
function parkTarget(t, i) {
|
|
17921
|
+
const person = (m) => m && (m.kind === "hold" || m.kind === "person") ? m : void 0;
|
|
17922
|
+
const a = acceptor(t, i);
|
|
17923
|
+
const unverified = a && !a.member ? a.name : void 0;
|
|
17924
|
+
const byAcceptor = person(a?.member);
|
|
17925
|
+
if (byAcceptor) return { step: "acceptor", member: byAcceptor };
|
|
17926
|
+
const filer = person((t.filed_by_id ? i.roster.get(t.filed_by_id) : void 0) ?? memberByIdentity(i.roster, t.created_by_id));
|
|
17927
|
+
if (filer) return { step: "filer", member: filer, ...unverified ? { unverified } : {} };
|
|
17928
|
+
const op = operatorOf(i.roster);
|
|
17929
|
+
if (op) return { step: "operator", member: op, ...unverified ? { unverified } : {} };
|
|
17930
|
+
return { step: "none", ...unverified ? { unverified } : {} };
|
|
17931
|
+
}
|
|
17932
|
+
function parkTo(t, i) {
|
|
17933
|
+
const p = parkTarget(t, i);
|
|
17934
|
+
const note = p.unverified ? `; ${p.unverified} accepted it (unverified, no Crew row)` : "";
|
|
17935
|
+
if (!p.member) return `nobody by name \u2014 leave unassigned, no personal address${note}`;
|
|
17936
|
+
return `${p.member.name} \`${p.member.id}\` (${p.step})${note}`;
|
|
17937
|
+
}
|
|
17833
17938
|
function lastComment(i, ticketId) {
|
|
17834
17939
|
const forTicket = i.comments.filter((c) => c.ticket_id === ticketId).sort((a, b) => a.created_at < b.created_at ? -1 : a.created_at > b.created_at ? 1 : 0);
|
|
17835
17940
|
const last = forTicket[forTicket.length - 1];
|
|
@@ -17900,14 +18005,14 @@ ${sorted(ts).map(row).join("\n")}
|
|
|
17900
18005
|
`;
|
|
17901
18006
|
}
|
|
17902
18007
|
function buildingDigest(i) {
|
|
17903
|
-
const header = "| ticket | repo | branch | worktree | mode | status | assignee | filed by | sev | pri | eff | updated | last comment | runner direction | new since last poll |\n
|
|
18008
|
+
const header = "| ticket | repo | branch | worktree | mode | status | assignee | filed by | accepted by | park to | sev | pri | eff | updated | last comment | runner direction | new since last poll |\n|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|";
|
|
17904
18009
|
const row = (t) => {
|
|
17905
18010
|
const n = newFromOthers(i, t.id);
|
|
17906
18011
|
const branch = i.branchFor ? i.branchFor(t) : "";
|
|
17907
18012
|
const worktree = i.worktreeFor ? i.worktreeFor(t) : "";
|
|
17908
18013
|
const dir = i.dirFor ? i.dirFor(t) : null;
|
|
17909
18014
|
const repo = i.dirFor ? dir ?? "**NO CHECKOUT**" : "";
|
|
17910
|
-
return `| ${displayKey2(t)} | ${repo} | ${branch} | ${worktree} | ${modeCell(t, i)} | ${t.status} | ${who(t, i)} | ${filedBy(t, i)} | ${t.severity ?? "\u2014"} | ${t.priority ?? "\u2014"} | ${effCell(t)} | ${t.updated_at.slice(0, 16)}Z | ${lastComment(i, t.id)} | ${directionCell(i, t.id)} | ${n > 0 ? `**${n} new**` : "\u2014"} |`;
|
|
18015
|
+
return `| ${displayKey2(t)} | ${repo} | ${branch} | ${worktree} | ${modeCell(t, i)} | ${t.status} | ${who(t, i)} | ${filedBy(t, i)} | ${acceptedBy(t, i)} | ${parkTo(t, i)} | ${t.severity ?? "\u2014"} | ${t.priority ?? "\u2014"} | ${effCell(t)} | ${t.updated_at.slice(0, 16)}Z | ${lastComment(i, t.id)} | ${directionCell(i, t.id)} | ${n > 0 ? `**${n} new**` : "\u2014"} |`;
|
|
17911
18016
|
};
|
|
17912
18017
|
const blockedRow = (t) => `| ${displayKey2(t)} | ${t.status} | ${who(t, i)} | p${effectivePriority(t)} | ${blockers(t, i)} |`;
|
|
17913
18018
|
const blockedTable = (ts) => ts.length === 0 ? "\n_None._\n" : `
|
|
@@ -17951,6 +18056,7 @@ ${p.finalText.split("\n").map((l) => `> ${l}`).join("\n")}
|
|
|
17951
18056
|
"## Current queue \u2014 built for you by the poll\n",
|
|
17952
18057
|
"\nAlready filtered to your lane, and already ordered by the Step 2 rule.\nTicket bodies are deliberately omitted: fetch the full record of only the\nticket you actually pick up. **Do not re-fetch the whole tracker.** This\ndigest comes from the same API call the poll just made, moments ago.\n",
|
|
17953
18058
|
'\n"new since last poll" counts comments from someone other than you since\nthe poll watermark \u2014 the same signal that woke this run.\n',
|
|
18059
|
+
'\n"accepted by" is the person who last moved the ticket into accepted, read from the event log (a lane, workflow or the system promoting it does not count); an identity with no Crew row shows the logged name marked unverified. "park to" is where YOU send a question on that ticket: the Crew row to write to `assignee_id` and address by name, or "nobody by name" to leave it unassigned at `needs_info` with no personal address.\n',
|
|
17954
18060
|
'\n"runner direction" is the newest instruction the crew itself posted to the\nevent log (not Comments) that no push has answered yet: `conflict_handed_back`\n(merge the base into the branch and resolve), `requeued`, `bounced`,\n`conflict_escalated`, `interrupted` (an earlier run on this seat was cut short; its\nuncommitted worktree is yours, resume it), `build_failed` (the release gate found the branch builds alone but\nnot merged with the current base: merge the base in, fix, push, hand back to QA; the output is quoted). It is\ndirection, same as a comment from a hold: act on it. `gate_red` is status only: the ticket is merged and the\ngate is red, so there is nothing to build on the branch.\n',
|
|
17955
18061
|
"\n**`repo` is the checkout a ticket's work happens in** \u2014 an area spans\nseveral repositories, so cut the worktree beside THAT directory, not beside\nwhichever one you started in. A ticket marked **NO CHECKOUT** is not yours:\nthis ship has no clone of its repository, and another ship may serve it.\n\n**Use the `branch` and `worktree` columns verbatim.** They are that\nrepository's own naming convention, rendered for THIS ticket \u2014 cut the\nworktree at `<repo>/../<worktree>`, on branch `<branch>`. Do not derive\neither yourself, and prefer these over the Environment section's own worked\nexample if the two ever disagree \u2014 that example is illustrative only,\nrendered before any ticket is picked.\n",
|
|
17956
18062
|
...i.workModes && [...i.workModes.modes.values()].some((m) => m !== "automatic") ? ["\n**Manual / hybrid projects.** Some projects on this board are not fully automatic. In a `manual` project no lane touches any ticket, and a ticket with no project is treated the same way, so none appear below. In a `hybrid` project a ticket appears below only when it is assigned to an agent. An `accepted` ticket that is absent for either reason is not yours to claim \u2014 do not go looking for it.\n"] : [],
|
|
@@ -18326,6 +18432,7 @@ async function decideCycle(o) {
|
|
|
18326
18432
|
tracker.events("stalled")
|
|
18327
18433
|
]);
|
|
18328
18434
|
const directionEvents = (await Promise.all([...DIRECTION_EVENT_TYPES, ...STATUS_EVENT_TYPES, "pushed"].map((t) => tracker.events(t)))).flat();
|
|
18435
|
+
const statusChanges = await tracker.statusChanges();
|
|
18329
18436
|
emit.emit(`${tickets.length} open ticket(s), ${comments.length} comment(s)`, {
|
|
18330
18437
|
data: { tickets: tickets.length, comments: comments.length }
|
|
18331
18438
|
});
|
|
@@ -18490,6 +18597,7 @@ async function decideCycle(o) {
|
|
|
18490
18597
|
actionable,
|
|
18491
18598
|
watermark,
|
|
18492
18599
|
directionEvents,
|
|
18600
|
+
statusChanges,
|
|
18493
18601
|
selectionInput,
|
|
18494
18602
|
attention: attentionCurrent,
|
|
18495
18603
|
unroutable
|
|
@@ -18585,6 +18693,8 @@ function writeDigest(o, d, role, stateDir, runId, own) {
|
|
|
18585
18693
|
myShipId: d.ships.find((s) => (s.name ?? "").trim() === o.ship.name.trim())?.id ?? null,
|
|
18586
18694
|
watermark: d.watermark,
|
|
18587
18695
|
events: d.directionEvents,
|
|
18696
|
+
statusChanges: d.statusChanges,
|
|
18697
|
+
approvedStatus: d.selectionInput.contract?.statuses.approved,
|
|
18588
18698
|
previousRun: (t) => {
|
|
18589
18699
|
const r = pendingHandoffFor(stateDir, t.id);
|
|
18590
18700
|
return r?.finalText ? { finalText: r.finalText.slice(0, 2e3), at: r.createdAt } : null;
|
|
@@ -24235,6 +24345,14 @@ async function discover(o) {
|
|
|
24235
24345
|
if (out.models.issues) {
|
|
24236
24346
|
try {
|
|
24237
24347
|
await get(o, `/data-models/${out.models.issues}/events?limit=1`);
|
|
24348
|
+
try {
|
|
24349
|
+
const model = await get(o, `/data-models/${out.models.issues}`);
|
|
24350
|
+
const tracked2 = model.eventLogConfig?.trackedFields;
|
|
24351
|
+
if (Array.isArray(tracked2) && !tracked2.includes(DEFAULT_CONTRACT.columns.status)) {
|
|
24352
|
+
problems.push(EVENT_LOG_STATUS_UNTRACKED(DEFAULT_CONTRACT.columns.status));
|
|
24353
|
+
}
|
|
24354
|
+
} catch {
|
|
24355
|
+
}
|
|
24238
24356
|
} catch (e) {
|
|
24239
24357
|
if (e instanceof ConnectHttpError && e.status === 404) problems.push(EVENT_LOG_MISSING);
|
|
24240
24358
|
}
|
|
@@ -28881,6 +28999,7 @@ if (command === "passenger-sync-daemon") {
|
|
|
28881
28999
|
} catch (e) {
|
|
28882
29000
|
problems.push(`tracker unreachable: ${e instanceof Error ? e.message : String(e)}`);
|
|
28883
29001
|
}
|
|
29002
|
+
if (await tracker.eventLogTracksStatus() === false) problems.push(EVENT_LOG_STATUS_UNTRACKED(tracker.contract.columns.status));
|
|
28884
29003
|
return { problems, readiness };
|
|
28885
29004
|
}
|
|
28886
29005
|
async function doctorShipKind(route3, ship) {
|
package/package.json
CHANGED
|
@@ -260,7 +260,7 @@ ticket to the next lane by assigning that lane's seat on this ship (ids under
|
|
|
260
260
|
`automatic` project, clear `assignee_id`. If there is no seat for the target
|
|
261
261
|
role, assign any Crew row with that role's Agent; if there is none, clear it
|
|
262
262
|
and say so in the hand-off comment. Parks (`needs_info`, `needs_planning` →
|
|
263
|
-
the
|
|
263
|
+
the person in the digest's `park to` cell) are the same in every mode.
|
|
264
264
|
|
|
265
265
|
**Gates you never cross:**
|
|
266
266
|
|
|
@@ -287,7 +287,7 @@ the operator) are the same in every mode.
|
|
|
287
287
|
**Check `report_type` first.** The steps below are for a ticket that ends in
|
|
288
288
|
shipped code (`bug`, `feature` or anything else this workspace's field
|
|
289
289
|
offers). A `question` or `investigation` ticket asks for an answer, not a
|
|
290
|
-
fix: it never reaches `fixed` or QA and ends with the
|
|
290
|
+
fix: it never reaches `fixed` or QA and ends with the `park to` person at
|
|
291
291
|
`needs_info` with `needs_planning` set — a Question gets no worktree and no
|
|
292
292
|
code; an Investigation may prototype as evidence, committed but never handed
|
|
293
293
|
off. Fetch the `Question and Investigation Tickets` skill for the procedure
|
|
@@ -513,14 +513,28 @@ run. That is a report for the operator, not an accusation.
|
|
|
513
513
|
## Stopping: say it in data, not prose
|
|
514
514
|
|
|
515
515
|
A stop that lives only in a comment is invisible to every view that filters
|
|
516
|
-
on data. There are two kinds, each written where the
|
|
516
|
+
on data. There are two kinds, each written where the person who owns the
|
|
517
|
+
ticket looks:
|
|
517
518
|
|
|
518
519
|
1. **The ticket needs a person** (a question, a decision, an ambiguous spec,
|
|
519
520
|
a branch only a human can reconcile): set `status` to `needs_info` **and**
|
|
520
|
-
`assignee_id` to the
|
|
521
|
-
when it is a decision rather than a fact. These
|
|
522
|
-
whenever a comment of yours addresses
|
|
523
|
-
comment alone is not a stop.
|
|
521
|
+
`assignee_id` to the Crew row in the ticket's `park to` digest cell, and
|
|
522
|
+
`needs_planning` to true when it is a decision rather than a fact. These
|
|
523
|
+
fields are mandatory whenever a comment of yours addresses a named
|
|
524
|
+
person — a comment alone is not a stop.
|
|
525
|
+
|
|
526
|
+
The decision belongs to whoever made the call on the ticket, so the digest
|
|
527
|
+
resolves `park to` in this order and the first that resolves wins: (1) the
|
|
528
|
+
**acceptor**, the person who last moved the ticket into `accepted` (the
|
|
529
|
+
`accepted by` column; a lane, workflow or the system promoting it does not
|
|
530
|
+
count); (2) the **filer**, only when a hold or a linked person, never a
|
|
531
|
+
seat or a typed name; (3) the **ship operator**, when the ship has one;
|
|
532
|
+
(4) **nobody by name**: leave `assignee_id` empty at `needs_info` and write
|
|
533
|
+
the question without a personal address, so any hold can pick it up. Address
|
|
534
|
+
the named person by name in the comment. When `accepted by` shows a name
|
|
535
|
+
marked unverified, that person has no Crew row: you may name them in prose,
|
|
536
|
+
but assign whoever `park to` gives. If the cell is missing from the digest,
|
|
537
|
+
fall back to the filer, then the operator.
|
|
524
538
|
2. **This ship cannot proceed** (the base diverged from the remote, a tool or
|
|
525
539
|
hook is missing, no disk, authentication failed) but the ticket is fine:
|
|
526
540
|
leave it exactly as it is, `in_progress` and assigned to you, so no other
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Question and Investigation Tickets
|
|
3
|
-
description: The procedure for a ticket whose report_type is question or investigation — tickets that ask for an answer, not a fix, and end with the
|
|
3
|
+
description: The procedure for a ticket whose report_type is question or investigation — tickets that ask for an answer, not a fix, and end with the ticket's decision-maker at needs_info rather than at fixed. Fetch when the ticket you picked up has either report_type.
|
|
4
4
|
---
|
|
5
5
|
# Question and Investigation tickets
|
|
6
6
|
|
|
7
7
|
These two `report_type` values ask for an answer, not a fix. Neither ever
|
|
8
|
-
reaches `fixed` or QA; both end with the
|
|
9
|
-
|
|
8
|
+
reaches `fixed` or QA; both end with the person in the digest's `park to` cell at
|
|
9
|
+
`needs_info` (the acceptor, else the filer, else the operator; see the shared
|
|
10
|
+
policy's "Stopping"), for a decision only they can make. Where this conflicts with the build steps in the
|
|
10
11
|
shared policy, this wins.
|
|
11
12
|
|
|
12
13
|
## `question` — discussion or research
|
|
@@ -23,7 +24,8 @@ No worktree and no code changes; only an answer.
|
|
|
23
24
|
3. Post the answer as its own comment, citing the files, lines or tickets it
|
|
24
25
|
rests on, the way a closing comment cites what changed.
|
|
25
26
|
4. Set `status` to `needs_info`, `needs_planning` to true, and `assignee_id`
|
|
26
|
-
to the
|
|
27
|
+
to the Crew row in the ticket's `park to` cell (none: leave it unassigned,
|
|
28
|
+
no personal address). This is the designed ending
|
|
27
29
|
for every Question — "answered, awaiting a person to decide what's next" —
|
|
28
30
|
not a fallback for one that went wrong.
|
|
29
31
|
|
|
@@ -46,9 +48,9 @@ concept.
|
|
|
46
48
|
`Filing a Ticket` skill) rather than folding the implementation into this
|
|
47
49
|
ticket.
|
|
48
50
|
4. Set `status` to `needs_info`, `needs_planning` to true, and `assignee_id`
|
|
49
|
-
to the
|
|
50
|
-
branch in place — they are the evidence. They stay until the
|
|
51
|
-
|
|
51
|
+
to the `park to` Crew row, as for a Question. Leave the worktree and
|
|
52
|
+
branch in place — they are the evidence. They stay until the ticket is
|
|
53
|
+
closed; the ordinary worktree sweep cleans up from there.
|
|
52
54
|
|
|
53
55
|
## Both
|
|
54
56
|
|