@ai-dossier/sched 0.52.0 → 0.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -7
- package/dist/anchor-close.d.ts +5 -4
- package/dist/anchor-close.d.ts.map +1 -1
- package/dist/anchor-close.js +43 -17
- package/dist/anchor-close.js.map +1 -1
- package/dist/attach-pr.d.ts +52 -0
- package/dist/attach-pr.d.ts.map +1 -0
- package/dist/attach-pr.js +168 -0
- package/dist/attach-pr.js.map +1 -0
- package/dist/batch-dispatch.d.ts +8 -0
- package/dist/batch-dispatch.d.ts.map +1 -1
- package/dist/batch-dispatch.js +41 -16
- package/dist/batch-dispatch.js.map +1 -1
- package/dist/groundtruth.d.ts +73 -12
- package/dist/groundtruth.d.ts.map +1 -1
- package/dist/groundtruth.js +147 -41
- package/dist/groundtruth.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +17 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +7 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,6 +37,7 @@ ai-dossier sched stop --batch b1 # terminate every batch agent (incl. parallel
|
|
|
37
37
|
ai-dossier sched abandon --issue 42 --reason "operator abort"
|
|
38
38
|
ai-dossier sched abandon --batch b1 # dissolve; every unshipped member — parked and validated ones included — requeues as full-cycle
|
|
39
39
|
ai-dossier sched requeue --issue 42 # a PARKED batch member (evicted / handed-back) → full-cycle from its member branch, on the batch profile (#810)
|
|
40
|
+
ai-dossier sched attach-pr --batch b1 4270 # record a blocked batch's own MERGED PR by hand (resolves pr-detect-ambiguous, #824)
|
|
40
41
|
ai-dossier sched stats --issues 4..9 # per-issue tokens/cost from ~/.dossier/runs.jsonl (#524)
|
|
41
42
|
ai-dossier sched stats --batch b1 --project owner-repo # batch member/tail/report/fix costs from raw dispatch logs (#564)
|
|
42
43
|
```
|
|
@@ -1133,8 +1134,9 @@ import {
|
|
|
1133
1134
|
createSpawnDeps, // real detached-spawn process I/O
|
|
1134
1135
|
createExecGroundTruth, // runstate/gh/git ground truth via subprocesses (injectable exec);
|
|
1135
1136
|
// since #468 also gh pr view PR state + setup info from comments;
|
|
1136
|
-
// since #789 also mergedPrForBranch
|
|
1137
|
-
// verified `repo`
|
|
1137
|
+
// since #789 also mergedPrForBranch, and since #824
|
|
1138
|
+
// batchPrCandidate, when constructed with a verified `repo`
|
|
1139
|
+
// (resolveProjectRepo) — which also pins prState with -R
|
|
1138
1140
|
resolveDispatch, // config → resolved command/prompt/report-prompt/tier-models/timers/
|
|
1139
1141
|
// per-tier spawn specs (tiers — #527)
|
|
1140
1142
|
buildTierCommand, // resolved dispatch + tier + issue → argv, using that tier's OWN
|
|
@@ -1168,6 +1170,16 @@ import {
|
|
|
1168
1170
|
type MergedPrLookup, // { kind: 'found', pr, mergedAt } | { kind: 'none' } |
|
|
1169
1171
|
// { kind: 'ambiguous', matches } — GroundTruth.mergedPrForBranch's
|
|
1170
1172
|
// own return type (#789)
|
|
1173
|
+
checkBatchPrCandidate, // the #789 candidate checks (fork/head/base/merged/created-after)
|
|
1174
|
+
// → { ok: true, pr, mergedAt } | { ok: false, check } — shared by
|
|
1175
|
+
// parseMergedPrListJson and attachBatchPr (#824)
|
|
1176
|
+
type BatchPrCheck, // which check failed: fork|head|base|unmerged|created-before-batch|number
|
|
1177
|
+
parsePrCandidateJson, // gh pr view --json → the PR object (GroundTruth.batchPrCandidate, #824)
|
|
1178
|
+
attachBatchPr, // sched attach-pr: verify an operator-named PR, record batch.pr,
|
|
1179
|
+
// clear the pr-detect-ambiguous streak, journal pr-attached (#824)
|
|
1180
|
+
type AttachPrDeps, // { store, journal, groundTruth (repo-verified), repo? }
|
|
1181
|
+
type AttachPrResult, // { outcome: 'attached', pr, mergedAt, clearedAmbiguousTicks } |
|
|
1182
|
+
// { outcome: 'already-attached', pr }
|
|
1171
1183
|
parseSetupInfo, // gh issue view --json comments → teardown inputs
|
|
1172
1184
|
runTeardown, // #468 script teardown for a merged unit (pool return / worktree remove)
|
|
1173
1185
|
isSafeWorktree, // worktree-path containment check (CWE-22)
|
|
@@ -1507,7 +1519,13 @@ predicate in `anchor-close.ts`) over `blocked`/`done` batches touched within the
|
|
|
1507
1519
|
issue's author can close their own issue. One more path counts for a hand close: a
|
|
1508
1520
|
PR of the project's repository, MERGED into the base, that GitHub lists as closing
|
|
1509
1521
|
the issue (`closedByPullRequestsReferences` — `Closes #N` parsed but not acted on,
|
|
1510
|
-
the imboard#4116 shape); that still needs a merge, i.e. write access.
|
|
1522
|
+
the imboard#4116 shape); that still needs a merge, i.e. write access. That reference must
|
|
1523
|
+
also have merged AFTER the member's last reopen (#799): one merged before it did not finish
|
|
1524
|
+
the issue — that is why it was reopened — so it reads `member-closed-by-hand-ref-pr-<n>-predates-reopen`
|
|
1525
|
+
(or `…-merge-time-unreadable`), and a reopen timeline that cannot be read reads
|
|
1526
|
+
`member-closed-by-hand-reopen-unreadable` — needs-operator either way, never closable. A member
|
|
1527
|
+
never reopened is unaffected. Remedy: a new PR or commit that closes the member, or close the
|
|
1528
|
+
anchor by hand. A member issue that no longer resolves
|
|
1511
1529
|
(deleted/transferred) reads `member-missing` — needs-operator, not an outage.
|
|
1512
1530
|
- **Never over a failure trail.** Any evicted member, any member in a failure status
|
|
1513
1531
|
(`ISSUE_UNIVERSAL_FAILURE_EDGES` + `evicted`/`handed-back`/`requeued`), any member requeued out of
|
|
@@ -1541,7 +1559,8 @@ predicate in `anchor-close.ts`) over `blocked`/`done` batches touched within the
|
|
|
1541
1559
|
batch that same tick is the ambiguity journaled (`pr-detect-ambiguous`, deduped like
|
|
1542
1560
|
`pr-watch-failed`: once per `blocked` stretch, re-announced every
|
|
1543
1561
|
`JOURNAL_DEDUP_REANNOUNCE_TICKS`; a batch that leaves `blocked` any way — this
|
|
1544
|
-
reconcile's own success, `sched resume --batch`, `sched abandon` —
|
|
1562
|
+
reconcile's own success, `sched resume --batch`, `sched abandon` — or `sched
|
|
1563
|
+
attach-pr` recording the batch's PR clears the marker,
|
|
1545
1564
|
so a later re-block never inherits a stale streak). A batch that still reconciles via
|
|
1546
1565
|
`commits-in-base`/`members-closed` does so without a PR and finishes inline, same as
|
|
1547
1566
|
before #789. On a match, `batch.pr` is recorded as part of the SAME `blocked →
|
|
@@ -1551,9 +1570,34 @@ predicate in `anchor-close.ts`) over `blocked`/`done` batches touched within the
|
|
|
1551
1570
|
per-issue-only despite the section's origin) dispatches the report agent exactly as if the
|
|
1552
1571
|
fleet had opened the PR itself, and `sched status`'s existing `pr` column shows it.
|
|
1553
1572
|
Recording `batch.pr` never closes the anchor by itself — that stays #768's own
|
|
1554
|
-
evidence-gated `reconcileAnchorClosure`, unchanged. An ambiguous match
|
|
1555
|
-
|
|
1556
|
-
|
|
1573
|
+
evidence-gated `reconcileAnchorClosure`, unchanged. An ambiguous match still lets the
|
|
1574
|
+
batch reconcile via its other evidence; otherwise the operator resolves it with
|
|
1575
|
+
`sched attach-pr` (below), or falls to `sched abandon --batch`.
|
|
1576
|
+
- **`sched attach-pr --batch <id> <pr>` (#824).** The operator's explicit, auditable
|
|
1577
|
+
answer to `pr-detect-ambiguous` — and the scripted form of the `batch-integrate`
|
|
1578
|
+
dossier's manual-recovery step that hand-records a batch PR (Step 6b of that registry
|
|
1579
|
+
dossier; `<pr>` also accepts `#4270`). Positive evidence only: the project repository is verified first
|
|
1580
|
+
(`resolveProjectRepo`; unverifiable → refused before any PR is read), the PR is read
|
|
1581
|
+
with `gh pr view <pr> -R <owner/name>` (`GroundTruth.batchPrCandidate`, repo-gated like
|
|
1582
|
+
`mergedPrForBranch`), and it must pass the SAME candidate checks #789's automatic path
|
|
1583
|
+
applies (`checkBatchPrCandidate`: not a fork, head = `batch.branch`, base =
|
|
1584
|
+
`batch.base_branch`, a real merge timestamp, created at or after the batch) plus an
|
|
1585
|
+
explicit `state == MERGED` and a positively-read `isCrossRepository == false`. Any
|
|
1586
|
+
mismatch, a failed or unusable gh read, a batch that is not `blocked` (or has no
|
|
1587
|
+
branch), or a batch whose `batch.pr` is already a DIFFERENT PR refuses with a message
|
|
1588
|
+
naming why — nothing written, nothing journaled; the same PR already recorded is a
|
|
1589
|
+
no-op. There is no `--force`: every check reads a field `gh pr view` always returns.
|
|
1590
|
+
On success `batch.pr` is recorded and the `pr_detect_ambiguous_*` streak cleared in
|
|
1591
|
+
one locked write (`updated_at` is touched, which re-arms the 7-day reconcile window),
|
|
1592
|
+
journaled as its own `pr-attached` event — never `stale-failure-reconciled` /
|
|
1593
|
+
`pr_detected`, so `events.jsonl` always tells operator from automatic apart. Nothing
|
|
1594
|
+
else happens in the command: the next tick's stale-blocked reconcile settles the batch
|
|
1595
|
+
on its ordinary `pr-merged` evidence (report + teardown follow; that read, `prState`,
|
|
1596
|
+
is `-R`-pinned too whenever the engine's repo is verified), and the anchor closes only
|
|
1597
|
+
through `reconcileAnchorClosure`, which never reads `batch.pr`. A batch with a surviving
|
|
1598
|
+
member that was never dispatched is refused too — the reconcile would never settle it
|
|
1599
|
+
on PR evidence. `--json` emits `{batch, repo, outcome: "attached", pr, mergedAt,
|
|
1600
|
+
clearedAmbiguousTicks}` or `{batch, repo, outcome: "already-attached", pr}`.
|
|
1557
1601
|
|
|
1558
1602
|
Everything else is surfaced, never closed: `sched status --anchors` (opt-in; `status`
|
|
1559
1603
|
makes no GitHub call without it) lists each still-open anchor of a batch no longer in
|
package/dist/anchor-close.d.ts
CHANGED
|
@@ -83,10 +83,11 @@ export type OpenAnchorVerdict = Exclude<AnchorVerdict, {
|
|
|
83
83
|
* The verified shipping evidence for a member closed as completed, or the
|
|
84
84
|
* reason it is not evidence. Only code that landed in `baseBranch` counts:
|
|
85
85
|
* a PR of `repo` (the pinned project repository) MERGED into it — as the
|
|
86
|
-
* close event's closer, or, for a hand close, as a closing reference
|
|
87
|
-
* commit reachable from it. A hand
|
|
88
|
-
*
|
|
89
|
-
* refusals — anyone who can close the issue could
|
|
86
|
+
* close event's closer, or, for a hand close, as a closing reference
|
|
87
|
+
* ({@link closingReferenceEvidence}) — or a commit reachable from it. A hand
|
|
88
|
+
* close with no qualifying reference, an unmerged or other-base PR, and an
|
|
89
|
+
* unverifiable commit are all refusals — anyone who can close the issue could
|
|
90
|
+
* otherwise mint "shipped".
|
|
90
91
|
*/
|
|
91
92
|
export declare function shippingEvidence(truth: IssueCloseTruth, baseBranch: string, repo: string | undefined, commitInBase: CommitInBase | undefined): {
|
|
92
93
|
shipped: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anchor-close.d.ts","sourceRoot":"","sources":["../src/anchor-close.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"anchor-close.d.ts","sourceRoot":"","sources":["../src/anchor-close.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,KAAK,EAAa,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAOxC,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEhF,qFAAqF;AACrF,MAAM,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,eAAe,GAAG,SAAS,CAAC;AAE9E;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;AAgBxE;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,WAAW,CAAC,WAAW,CAAgC,CAAC;AAkBlG;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,WAAW,CAAC,WAAW,C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AAE,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,EACjC,IAAI,EAAE,gBAAgB,GACrB,MAAM,GAAG,IAAI,CAOf"}
|
package/dist/anchor-close.js
CHANGED
|
@@ -122,26 +122,16 @@ function anchorLedgerBlockers(state, batch) {
|
|
|
122
122
|
* The verified shipping evidence for a member closed as completed, or the
|
|
123
123
|
* reason it is not evidence. Only code that landed in `baseBranch` counts:
|
|
124
124
|
* a PR of `repo` (the pinned project repository) MERGED into it — as the
|
|
125
|
-
* close event's closer, or, for a hand close, as a closing reference
|
|
126
|
-
* commit reachable from it. A hand
|
|
127
|
-
*
|
|
128
|
-
* refusals — anyone who can close the issue could
|
|
125
|
+
* close event's closer, or, for a hand close, as a closing reference
|
|
126
|
+
* ({@link closingReferenceEvidence}) — or a commit reachable from it. A hand
|
|
127
|
+
* close with no qualifying reference, an unmerged or other-base PR, and an
|
|
128
|
+
* unverifiable commit are all refusals — anyone who can close the issue could
|
|
129
|
+
* otherwise mint "shipped".
|
|
129
130
|
*/
|
|
130
131
|
function shippingEvidence(truth, baseBranch, repo, commitInBase) {
|
|
131
132
|
const closer = truth.closer;
|
|
132
|
-
if (closer === null)
|
|
133
|
-
|
|
134
|
-
// the base, names it as closed (`Closes #N` — GitHub parsed it, then did
|
|
135
|
-
// not act: the imboard#4116 shape). A merge needs write access, so an
|
|
136
|
-
// author's self-close alone still never counts.
|
|
137
|
-
const ref = truth.closingPrs.find((pr) => pr.merged &&
|
|
138
|
-
pr.baseRefName === baseBranch &&
|
|
139
|
-
repo !== undefined &&
|
|
140
|
-
pr.repo?.toLowerCase() === repo.toLowerCase());
|
|
141
|
-
return ref !== undefined
|
|
142
|
-
? { shipped: `PR #${ref.number} (closing reference; issue closed by hand)` }
|
|
143
|
-
: { refused: 'closed-by-hand' };
|
|
144
|
-
}
|
|
133
|
+
if (closer === null)
|
|
134
|
+
return closingReferenceEvidence(truth, baseBranch, repo);
|
|
145
135
|
if (closer.kind === 'pr') {
|
|
146
136
|
// A PR in ANOTHER repository can close this issue (`Fixes owner/repo#N`)
|
|
147
137
|
// and merge into a same-named base — that is not code in this project.
|
|
@@ -160,6 +150,42 @@ function shippingEvidence(truth, baseBranch, repo, commitInBase) {
|
|
|
160
150
|
}
|
|
161
151
|
return { shipped: `commit ${closer.oid.slice(0, 12)}` };
|
|
162
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
* A hand close (no closer on the close event) is still shipped when a PR of
|
|
155
|
+
* the pinned repo, MERGED into the base, names the issue as closed
|
|
156
|
+
* (`Closes #N` — GitHub parsed it, then did not act: the imboard#4116 shape).
|
|
157
|
+
* A merge needs write access, so an author's self-close alone never counts.
|
|
158
|
+
*
|
|
159
|
+
* #799: the reference must also have merged AFTER the member's last reopen.
|
|
160
|
+
* One merged before it did not finish the issue — that is why it was
|
|
161
|
+
* reopened — so it cannot vouch for the later hand close. An unreadable
|
|
162
|
+
* reopen time, or an unreadable merge time after a reopen, is not evidence
|
|
163
|
+
* either way: fail closed, naming the rejected PRs so the operator can see
|
|
164
|
+
* which reference was stale. The remedy is a new PR or commit that closes
|
|
165
|
+
* the member, or an operator closing the anchor by hand.
|
|
166
|
+
*/
|
|
167
|
+
function closingReferenceEvidence(truth, baseBranch, repo) {
|
|
168
|
+
const refs = truth.closingPrs.filter((pr) => pr.merged &&
|
|
169
|
+
pr.baseRefName === baseBranch &&
|
|
170
|
+
repo !== undefined &&
|
|
171
|
+
pr.repo?.toLowerCase() === repo.toLowerCase());
|
|
172
|
+
if (refs.length === 0)
|
|
173
|
+
return { refused: 'closed-by-hand' };
|
|
174
|
+
const reopenedAt = truth.lastReopenedAt;
|
|
175
|
+
if (reopenedAt === undefined)
|
|
176
|
+
return { refused: 'closed-by-hand-reopen-unreadable' };
|
|
177
|
+
const ref = reopenedAt === null
|
|
178
|
+
? refs[0]
|
|
179
|
+
: refs.find((pr) => pr.mergedAt !== null && Date.parse(pr.mergedAt) > Date.parse(reopenedAt));
|
|
180
|
+
if (ref !== undefined) {
|
|
181
|
+
return { shipped: `PR #${ref.number} (closing reference; issue closed by hand)` };
|
|
182
|
+
}
|
|
183
|
+
const prs = (list) => list.map((pr) => pr.number).join('+');
|
|
184
|
+
const untimed = refs.filter((pr) => pr.mergedAt === null);
|
|
185
|
+
return untimed.length > 0
|
|
186
|
+
? { refused: `closed-by-hand-ref-pr-${prs(untimed)}-merge-time-unreadable` }
|
|
187
|
+
: { refused: `closed-by-hand-ref-pr-${prs(refs)}-predates-reopen` };
|
|
188
|
+
}
|
|
163
189
|
/**
|
|
164
190
|
* The GitHub-only half of the member predicate: every member CLOSED as
|
|
165
191
|
* `COMPLETED` by shipped code ({@link shippingEvidence}), none handed back.
|
package/dist/anchor-close.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anchor-close.js","sourceRoot":"","sources":["../src/anchor-close.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;;AAgEH,8CAQC;AAGD,8CAIC;AAOD,oDAsBC;AAuCD,4CAuCC;AAmGD,sDAsCC;AAwBD,wCAiBC;AAGD,8CAEC;AAGD,4DAWC;AA4BD,kCA4CC;AAqBD,oCAuBC;AAgED,sDAcC;AA0CD,oDAiEC;AAoBD,oDAeC;AAiDD,gDAmCC;AAcD,oDAUC;AAzzBD,+CAA4C;AAE5C,qCAAgF;AAEhF,mCAKiB;AAajB;;;;;;GAMG;AACH,MAAM,uBAAuB,GAA6B,IAAI,GAAG,CAAc;IAC7E,GAAG,qCAA6B;IAChC,6EAA6E;IAC7E,GAAG,8BAAsB;IACzB,UAAU;CACX,CAAC,CAAC;AAEH;;;GAGG;AACU,QAAA,2BAA2B,GAA6B,IAAI,GAAG,CAAC,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;AAElG,6FAA6F;AAC7F,MAAM,qBAAqB,GAA6B,IAAI,GAAG,CAAC;IAC9D,YAAY;IACZ,WAAW;IACX,SAAS;CACV,CAAC,CAAC;AAEH;;;GAGG;AAC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;;GASG;AACH,SAAgB,oBAAoB,CAClC,KAAiC,EACjC,IAAsB;IAEtB,IAAI,KAAK,CAAC,MAAM,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IACvC,4EAA4E;IAC5E,uEAAuE;IACvE,yEAAyE;IACzE,kEAAkE;IAClE,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;AACvF,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `sched attach-pr --batch <id> <pr>` (#824): the operator's explicit, auditable
|
|
3
|
+
* way to record `batch.pr` when #789's automatic detection refused to guess
|
|
4
|
+
* (`pr-detect-ambiguous` — two or more merged PRs share the batch branch), and
|
|
5
|
+
* the scripted form of the `batch-integrate` dossier's manual-recovery step
|
|
6
|
+
* that hand-records a batch PR (the registry dossier's Step 6b).
|
|
7
|
+
*
|
|
8
|
+
* Trust boundary: the operator's word is not evidence. The named PR must pass
|
|
9
|
+
* the SAME candidate checks #789's automatic path applies
|
|
10
|
+
* (`checkBatchPrCandidate`) plus an explicit `state === 'MERGED'` and a
|
|
11
|
+
* positively-read same-repo flag, read through a ground truth pinned with `-R`
|
|
12
|
+
* to the verified project repository — absent that pin, nothing is read and
|
|
13
|
+
* nothing is recorded. There is no `--force`: every check reads a field
|
|
14
|
+
* `gh pr view` always returns, so an unreadable one refuses rather than
|
|
15
|
+
* inviting an override.
|
|
16
|
+
*
|
|
17
|
+
* Recording is ALL this does: `batch.pr` is set (and any
|
|
18
|
+
* `pr_detect_ambiguous_*` streak cleared) under the store lock, with no status
|
|
19
|
+
* transition and no GitHub write. The next engine tick's
|
|
20
|
+
* `reconcileStaleBlockedBatches` then settles the batch on its ordinary
|
|
21
|
+
* `pr-merged` evidence, and the anchor closes (or not) only through #768's own
|
|
22
|
+
* evidence-gated `reconcileAnchorClosure` — which never reads `batch.pr`.
|
|
23
|
+
*/
|
|
24
|
+
import type { GroundTruth } from './groundtruth';
|
|
25
|
+
import type { Journal } from './journal';
|
|
26
|
+
import type { SchedStore } from './persist';
|
|
27
|
+
export interface AttachPrDeps {
|
|
28
|
+
store: SchedStore;
|
|
29
|
+
journal: Journal;
|
|
30
|
+
/** Must come from `createExecGroundTruth` with a verified `repo` — else `batchPrCandidate` is absent and the attach refuses. */
|
|
31
|
+
groundTruth: GroundTruth;
|
|
32
|
+
/** The verified `owner/name` the ground truth is pinned to — named in refusals and the journal line. */
|
|
33
|
+
repo?: string;
|
|
34
|
+
}
|
|
35
|
+
export type AttachPrResult = {
|
|
36
|
+
outcome: 'attached';
|
|
37
|
+
pr: number;
|
|
38
|
+
mergedAt: string;
|
|
39
|
+
/** Ticks of the `pr-detect-ambiguous` streak this attach cleared (0 when none was open). */
|
|
40
|
+
clearedAmbiguousTicks: number;
|
|
41
|
+
} | {
|
|
42
|
+
outcome: 'already-attached';
|
|
43
|
+
pr: number;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Record an operator-named PR as `batch.pr` after verifying it (see the module
|
|
47
|
+
* comment). Throws `SchedNotFoundError` — nothing written, nothing journaled —
|
|
48
|
+
* on every refusal; returns `already-attached` (also nothing written) when the
|
|
49
|
+
* same PR is already recorded.
|
|
50
|
+
*/
|
|
51
|
+
export declare function attachBatchPr(deps: AttachPrDeps, batchId: string, pr: number, now?: Date): AttachPrResult;
|
|
52
|
+
//# sourceMappingURL=attach-pr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attach-pr.d.ts","sourceRoot":"","sources":["../src/attach-pr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,KAAK,EAAgB,WAAW,EAAE,MAAM,eAAe,CAAC;AAE/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAI5C,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,gIAAgI;IAChI,WAAW,EAAE,WAAW,CAAC;IACzB,wGAAwG;IACxG,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,cAAc,GACtB;IACE,OAAO,EAAE,UAAU,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,4FAA4F;IAC5F,qBAAqB,EAAE,MAAM,CAAC;CAC/B,GACD;IAAE,OAAO,EAAE,kBAAkB,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AA6HhD;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,MAAM,EACf,EAAE,EAAE,MAAM,EACV,GAAG,GAAE,IAAiB,GACrB,cAAc,CAqEhB"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* `sched attach-pr --batch <id> <pr>` (#824): the operator's explicit, auditable
|
|
4
|
+
* way to record `batch.pr` when #789's automatic detection refused to guess
|
|
5
|
+
* (`pr-detect-ambiguous` — two or more merged PRs share the batch branch), and
|
|
6
|
+
* the scripted form of the `batch-integrate` dossier's manual-recovery step
|
|
7
|
+
* that hand-records a batch PR (the registry dossier's Step 6b).
|
|
8
|
+
*
|
|
9
|
+
* Trust boundary: the operator's word is not evidence. The named PR must pass
|
|
10
|
+
* the SAME candidate checks #789's automatic path applies
|
|
11
|
+
* (`checkBatchPrCandidate`) plus an explicit `state === 'MERGED'` and a
|
|
12
|
+
* positively-read same-repo flag, read through a ground truth pinned with `-R`
|
|
13
|
+
* to the verified project repository — absent that pin, nothing is read and
|
|
14
|
+
* nothing is recorded. There is no `--force`: every check reads a field
|
|
15
|
+
* `gh pr view` always returns, so an unreadable one refuses rather than
|
|
16
|
+
* inviting an override.
|
|
17
|
+
*
|
|
18
|
+
* Recording is ALL this does: `batch.pr` is set (and any
|
|
19
|
+
* `pr_detect_ambiguous_*` streak cleared) under the store lock, with no status
|
|
20
|
+
* transition and no GitHub write. The next engine tick's
|
|
21
|
+
* `reconcileStaleBlockedBatches` then settles the batch on its ordinary
|
|
22
|
+
* `pr-merged` evidence, and the anchor closes (or not) only through #768's own
|
|
23
|
+
* evidence-gated `reconcileAnchorClosure` — which never reads `batch.pr`.
|
|
24
|
+
*/
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.attachBatchPr = attachBatchPr;
|
|
27
|
+
const batch_dispatch_1 = require("./batch-dispatch");
|
|
28
|
+
const groundtruth_1 = require("./groundtruth");
|
|
29
|
+
const journal_1 = require("./journal");
|
|
30
|
+
const state_1 = require("./state");
|
|
31
|
+
const types_1 = require("./types");
|
|
32
|
+
/**
|
|
33
|
+
* Why each shared candidate check refuses, in operator words. `number` and
|
|
34
|
+
* `fork` are pre-empted by `verifyCandidate`'s own stricter checks and exist
|
|
35
|
+
* for the record's exhaustiveness (`fork` is also used directly there).
|
|
36
|
+
*/
|
|
37
|
+
const CHECK_REFUSALS = {
|
|
38
|
+
fork: () => 'it is from a fork (isCrossRepository=true), not the project repository',
|
|
39
|
+
head: (pr, batch) => `its head is ${JSON.stringify(pr.headRefName)}, not the batch branch ${JSON.stringify(batch.branch)}`,
|
|
40
|
+
base: (pr, batch) => `its base is ${JSON.stringify(pr.baseRefName)}, not the batch base ${JSON.stringify(batch.base_branch)}`,
|
|
41
|
+
unmerged: () => 'it has no merge timestamp — not merged',
|
|
42
|
+
'created-before-batch': (pr, batch) => `it was created ${JSON.stringify(pr.createdAt)}, before the batch itself (${batch.created_at}) — a PR from an earlier use of the branch`,
|
|
43
|
+
number: () => 'gh returned no usable PR number',
|
|
44
|
+
};
|
|
45
|
+
/** The one refusal shape every PR-level refusal uses. */
|
|
46
|
+
function refusal(batchId, pr, why) {
|
|
47
|
+
return new types_1.SchedNotFoundError(`Refusing to attach PR #${pr} to batch ${batchId}: ${why}`);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The ledger-only preconditions, re-run under the lock on fresh state.
|
|
51
|
+
* Throws `SchedNotFoundError` naming why on every refusal.
|
|
52
|
+
*/
|
|
53
|
+
function precheck(state, batchId, pr) {
|
|
54
|
+
const batch = (0, state_1.findBatch)(state, batchId);
|
|
55
|
+
if (!batch)
|
|
56
|
+
throw new types_1.SchedNotFoundError(`Batch not found: ${batchId}`);
|
|
57
|
+
if (batch.pr === pr)
|
|
58
|
+
return { noop: true };
|
|
59
|
+
if (batch.pr !== null) {
|
|
60
|
+
throw new types_1.SchedNotFoundError(`Batch ${batchId} already has PR #${batch.pr} recorded — refusing to replace it with #${pr}`);
|
|
61
|
+
}
|
|
62
|
+
if (batch.status !== 'blocked') {
|
|
63
|
+
throw new types_1.SchedNotFoundError(`Batch ${batchId} is ${batch.status} — attach-pr only applies to a blocked batch (the state whose merge evidence reconcileStaleBlockedBatches settles from a recorded PR)`);
|
|
64
|
+
}
|
|
65
|
+
const { branch } = batch;
|
|
66
|
+
if (branch === null) {
|
|
67
|
+
throw new types_1.SchedNotFoundError(`Batch ${batchId} has no branch recorded — nothing to check PR #${pr}'s head against`);
|
|
68
|
+
}
|
|
69
|
+
// The reconcile never settles a batch with a surviving member that was never
|
|
70
|
+
// dispatched (it would call an issue `done` that shipped nothing), so a PR
|
|
71
|
+
// recorded here would sit unused forever — refuse instead of reporting a
|
|
72
|
+
// reconcile that will not happen.
|
|
73
|
+
const undispatched = (0, batch_dispatch_1.undispatchedSurvivingMembers)(state, batch);
|
|
74
|
+
if (undispatched.length > 0) {
|
|
75
|
+
throw new types_1.SchedNotFoundError(`Batch ${batchId} has member(s) ${undispatched.map((m) => `#${m}`).join(', ')} that were never dispatched — the stale-blocked reconcile will not settle it on PR evidence (it would mark unshipped work done); \`sched abandon --batch ${batchId}\` requeues them instead`);
|
|
76
|
+
}
|
|
77
|
+
return { noop: false, batch: { ...batch, branch } };
|
|
78
|
+
}
|
|
79
|
+
/** Refuse unless `candidate` is provably the batch's own merged PR `pr`; returns its merge time. */
|
|
80
|
+
function verifyCandidate(candidate, batch, pr) {
|
|
81
|
+
if (candidate.number !== pr) {
|
|
82
|
+
throw refusal(batch.id, pr, `gh answered for PR ${JSON.stringify(candidate.number)}, not #${pr}`);
|
|
83
|
+
}
|
|
84
|
+
if (candidate.state !== 'MERGED') {
|
|
85
|
+
throw refusal(batch.id, pr, `it is ${JSON.stringify(candidate.state)}, not MERGED`);
|
|
86
|
+
}
|
|
87
|
+
// Positive evidence only: `checkBatchPrCandidate` treats a MISSING flag as
|
|
88
|
+
// "not a fork" (its #789 list convention); an operator-named PR must be
|
|
89
|
+
// read as same-repo explicitly.
|
|
90
|
+
if (candidate.isCrossRepository !== false) {
|
|
91
|
+
throw refusal(batch.id, pr, candidate.isCrossRepository === true
|
|
92
|
+
? CHECK_REFUSALS.fork(candidate, batch)
|
|
93
|
+
: 'gh did not report whether it is from the project repository or a fork (isCrossRepository unreadable)');
|
|
94
|
+
}
|
|
95
|
+
const verdict = (0, groundtruth_1.checkBatchPrCandidate)(candidate, batch.branch, batch.base_branch, Date.parse(batch.created_at));
|
|
96
|
+
if (!verdict.ok)
|
|
97
|
+
throw refusal(batch.id, pr, CHECK_REFUSALS[verdict.check](candidate, batch));
|
|
98
|
+
return verdict.mergedAt;
|
|
99
|
+
}
|
|
100
|
+
/** The `pr-attached` journal line's `detail`. */
|
|
101
|
+
function attachedDetail(prRef, mergedAt, batch, clearedAmbiguousTicks) {
|
|
102
|
+
return (`operator attached ${prRef} (MERGED ${mergedAt}, head=${batch.branch}, base=${batch.base_branch}, same repository) — recorded batch.pr` +
|
|
103
|
+
(clearedAmbiguousTicks > 0
|
|
104
|
+
? `; cleared the pr-detect-ambiguous streak (${clearedAmbiguousTicks} tick(s))`
|
|
105
|
+
: '') +
|
|
106
|
+
'; the next engine tick reconciles the batch on pr-merged evidence — the anchor is left to #768');
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Record an operator-named PR as `batch.pr` after verifying it (see the module
|
|
110
|
+
* comment). Throws `SchedNotFoundError` — nothing written, nothing journaled —
|
|
111
|
+
* on every refusal; returns `already-attached` (also nothing written) when the
|
|
112
|
+
* same PR is already recorded.
|
|
113
|
+
*/
|
|
114
|
+
function attachBatchPr(deps, batchId, pr, now = new Date()) {
|
|
115
|
+
if (!Number.isInteger(pr) || pr <= 0) {
|
|
116
|
+
throw new types_1.SchedNotFoundError(`PR must be a positive integer, got ${pr}`);
|
|
117
|
+
}
|
|
118
|
+
const first = precheck(deps.store.load(), batchId, pr);
|
|
119
|
+
if (first.noop)
|
|
120
|
+
return { outcome: 'already-attached', pr };
|
|
121
|
+
const repo = deps.repo ?? 'the project repository';
|
|
122
|
+
const read = deps.groundTruth.batchPrCandidate;
|
|
123
|
+
if (read === undefined) {
|
|
124
|
+
throw refusal(batchId, pr, "the project's GitHub repository is not verified, so the PR cannot be read with a pinned -R — run from the project's own checkout (or check --project)");
|
|
125
|
+
}
|
|
126
|
+
const candidate = read(pr);
|
|
127
|
+
if (candidate === undefined) {
|
|
128
|
+
throw refusal(batchId, pr, `could not read it from ${repo} (\`gh pr view ${pr} -R ${repo}\` failed or returned an unusable payload — see the stderr line above) — nothing recorded`);
|
|
129
|
+
}
|
|
130
|
+
verifyCandidate(candidate, first.batch, pr);
|
|
131
|
+
// The GitHub read ran outside the lock: re-run the ledger checks AND the
|
|
132
|
+
// candidate checks against the fresh batch, so a batch that left `blocked`,
|
|
133
|
+
// had a PR recorded, or changed its branch/base meanwhile is refused rather
|
|
134
|
+
// than written over.
|
|
135
|
+
const applied = deps.store.withLock((s) => {
|
|
136
|
+
const fresh = precheck(s, batchId, pr);
|
|
137
|
+
if (fresh.noop)
|
|
138
|
+
return { state: s, result: null };
|
|
139
|
+
const mergedAt = verifyCandidate(candidate, fresh.batch, pr);
|
|
140
|
+
// `updated_at` IS touched (unlike the dedup writes): an operator attach is
|
|
141
|
+
// real activity, and it re-arms the stale-blocked reconcile window
|
|
142
|
+
// (measured from `updated_at`), so the PR is acted on even when the batch
|
|
143
|
+
// had been blocked longer than that window.
|
|
144
|
+
return {
|
|
145
|
+
state: (0, state_1.patchBatch)(s, batchId, { pr, ...state_1.CLEARED_PR_DETECT_AMBIGUOUS_FIELDS }, now),
|
|
146
|
+
result: {
|
|
147
|
+
batch: fresh.batch,
|
|
148
|
+
mergedAt,
|
|
149
|
+
clearedAmbiguousTicks: fresh.batch.pr_detect_ambiguous_ticks,
|
|
150
|
+
},
|
|
151
|
+
};
|
|
152
|
+
});
|
|
153
|
+
if (applied === null)
|
|
154
|
+
return { outcome: 'already-attached', pr };
|
|
155
|
+
deps.journal.append((0, journal_1.unitEvent)('pr-attached', `batch:${batchId}`, {
|
|
156
|
+
pr,
|
|
157
|
+
mergedAt: applied.mergedAt,
|
|
158
|
+
branch: applied.batch.branch,
|
|
159
|
+
detail: attachedDetail(deps.repo !== undefined ? `${deps.repo}#${pr}` : `PR #${pr}`, applied.mergedAt, applied.batch, applied.clearedAmbiguousTicks),
|
|
160
|
+
}), now);
|
|
161
|
+
return {
|
|
162
|
+
outcome: 'attached',
|
|
163
|
+
pr,
|
|
164
|
+
mergedAt: applied.mergedAt,
|
|
165
|
+
clearedAmbiguousTicks: applied.clearedAmbiguousTicks,
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
//# sourceMappingURL=attach-pr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attach-pr.js","sourceRoot":"","sources":["../src/attach-pr.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;AA+JH,sCA0EC;AAvOD,qDAAgE;AAEhE,+CAAsD;AAEtD,uCAAsC;AAEtC,mCAAoF;AACpF,mCAA+E;AAwB/E;;;;GAIG;AACH,MAAM,cAA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,CAAC;AACJ,CAAC"}
|
package/dist/batch-dispatch.d.ts
CHANGED
|
@@ -250,6 +250,14 @@ export declare function resumeBlockedGate(deps: BatchDispatchDeps, config: Sched
|
|
|
250
250
|
* ~375k tokens, stopped only by hand).
|
|
251
251
|
*/
|
|
252
252
|
export declare const MAX_BATCH_AGENT_RESPAWNS = 2;
|
|
253
|
+
/**
|
|
254
|
+
* The surviving members `everySurvivingMemberDispatched` finds NOT yet
|
|
255
|
+
* dispatched — the members that keep a blocked batch out of
|
|
256
|
+
* `reconcileStaleBlockedBatches` (#686). Exported for `sched attach-pr`
|
|
257
|
+
* (#824), which refuses to record a PR the reconcile would then never act on,
|
|
258
|
+
* and names these members in the refusal.
|
|
259
|
+
*/
|
|
260
|
+
export declare function undispatchedSurvivingMembers(state: SchedState, batch: BatchEntry): number[];
|
|
253
261
|
/**
|
|
254
262
|
* #686: reconcile a `blocked` batch whose work demonstrably shipped anyway.
|
|
255
263
|
* `reconcilePrWatch` above only watches `awaiting-merge` batches, and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch-dispatch.d.ts","sourceRoot":"","sources":["../src/batch-dispatch.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AAUH,OAAO,EAIL,KAAK,YAAY,EAGjB,KAAK,gBAAgB,EAGtB,MAAM,gBAAgB,CAAC;AAUxB,OAAO,EAaL,KAAK,gBAAgB,EAGrB,KAAK,SAAS,EAEf,MAAM,YAAY,CAAC;AAEpB,OAAO,EAGL,KAAK,WAAW,EAcjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,OAAO,EAAa,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,EACL,KAAK,iBAAiB,EA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