@farmslot/protocol 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.
Files changed (70) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/dist/client-cache/index.d.ts +11 -0
  3. package/dist/client-cache/index.d.ts.map +1 -0
  4. package/dist/client-cache/index.js +2 -0
  5. package/dist/client-cache/index.js.map +1 -0
  6. package/dist/contracts/acceptance.d.ts +18 -0
  7. package/dist/contracts/acceptance.d.ts.map +1 -1
  8. package/dist/contracts/acceptance.js +3 -0
  9. package/dist/contracts/acceptance.js.map +1 -1
  10. package/dist/contracts/agents.d.ts +1 -1
  11. package/dist/contracts/agents.d.ts.map +1 -1
  12. package/dist/contracts/runs.d.ts +100 -21
  13. package/dist/contracts/runs.d.ts.map +1 -1
  14. package/dist/contracts/runs.js +15 -0
  15. package/dist/contracts/runs.js.map +1 -1
  16. package/dist/contracts/slots.d.ts +14 -0
  17. package/dist/contracts/slots.d.ts.map +1 -1
  18. package/dist/contracts/worker-terminal.d.ts +2 -0
  19. package/dist/contracts/worker-terminal.d.ts.map +1 -1
  20. package/dist/contracts/worker-terminal.js.map +1 -1
  21. package/dist/index.d.ts +2 -0
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +2 -0
  24. package/dist/index.js.map +1 -1
  25. package/dist/recipe/evidence.d.ts +7 -0
  26. package/dist/recipe/evidence.d.ts.map +1 -1
  27. package/dist/recipe/evidence.js.map +1 -1
  28. package/dist/recipe/index.d.ts +1 -0
  29. package/dist/recipe/index.d.ts.map +1 -1
  30. package/dist/recipe/index.js +1 -0
  31. package/dist/recipe/index.js.map +1 -1
  32. package/dist/recipe/pipeline-visual-judgments.d.ts +179 -5
  33. package/dist/recipe/pipeline-visual-judgments.d.ts.map +1 -1
  34. package/dist/recipe/pipeline-visual-judgments.js +64 -4
  35. package/dist/recipe/pipeline-visual-judgments.js.map +1 -1
  36. package/dist/recipe/repair.d.ts +93 -0
  37. package/dist/recipe/repair.d.ts.map +1 -0
  38. package/dist/recipe/repair.js +213 -0
  39. package/dist/recipe/repair.js.map +1 -0
  40. package/dist/runs/decision-resolution.d.ts.map +1 -1
  41. package/dist/runs/decision-resolution.js +4 -0
  42. package/dist/runs/decision-resolution.js.map +1 -1
  43. package/dist/runs/evidence-summary.d.ts +24 -2
  44. package/dist/runs/evidence-summary.d.ts.map +1 -1
  45. package/dist/runs/evidence-summary.js +143 -53
  46. package/dist/runs/evidence-summary.js.map +1 -1
  47. package/dist/runs/run-list-view.d.ts +25 -0
  48. package/dist/runs/run-list-view.d.ts.map +1 -0
  49. package/dist/runs/run-list-view.js +54 -0
  50. package/dist/runs/run-list-view.js.map +1 -0
  51. package/dist/sources/changes.d.ts +37 -0
  52. package/dist/sources/changes.d.ts.map +1 -0
  53. package/dist/sources/changes.js +79 -0
  54. package/dist/sources/changes.js.map +1 -0
  55. package/dist/sources/controller.d.ts +20 -0
  56. package/dist/sources/controller.d.ts.map +1 -1
  57. package/dist/sources/controller.js +63 -1
  58. package/dist/sources/controller.js.map +1 -1
  59. package/dist/sources/status-view.d.ts +6 -1
  60. package/dist/sources/status-view.d.ts.map +1 -1
  61. package/dist/sources/status-view.js +17 -8
  62. package/dist/sources/status-view.js.map +1 -1
  63. package/dist/transport/events.d.ts +16 -0
  64. package/dist/transport/events.d.ts.map +1 -1
  65. package/dist/transport/events.js.map +1 -1
  66. package/dist/version.d.ts +1 -1
  67. package/dist/version.js +1 -1
  68. package/package.json +6 -1
  69. package/scripts/acceptance.d.mts +8 -0
  70. package/scripts/acceptance.mjs +31 -1
package/CHANGELOG.md CHANGED
@@ -4,10 +4,24 @@ All notable changes to `@farmslot/protocol` are tracked here.
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ - Active-development baseline; add user-facing changes here before release or package publication.
8
+
9
+ ## 0.54.0 - 2026-10-17
10
+
11
+ - Add the shared run-list view model: `isActiveListRun` (nonterminal, or failed while it still holds resources after a refused completion prerequisite), `selectRunList`, `slotMachineMap`, `mergeRunsById` and `ACTIVE_RUN_LIST_LIMIT`. `isCompletionPrerequisiteFailure` moves here from the gateway.
12
+ - Add the Send back repair contract: `RecipeRepairScope`, the engine claim-source selection, the `pipeline-visual-judgments-v2` applicability result, the run-store repair record and a receipt/repair `FeedbackCandidate` variant; the shared decision request sends Send back with no selection data.
13
+ - Live source status: `ResourceChangedPayload` (proposed ADR-071 shape), `ResourceKey`/`ResourceRevision` from the new `client-cache` entry, `sourceResourceChanges` and `SourceChangeFeed`, and controller rereads when the gateway's source revision advances. Source views report `hidden` and a one-line `line`; `readOnlyReason` is removed.
14
+ - Add `RunTaskExecution` and optional `RunEngineState.taskExecution`, the start of the dispatch that began the current task identity.
15
+ - `extractRunArtifactManifest` keeps a gate's recorded metadata for files the run output captured again, skips host paths and prose in step outputs, and shares `isRunArtifactImagePath` with clients.
16
+ - Add `extractRunArtifactManifest`, the one run artifact extractor for Command Center and Companion; it includes captured run output and keeps source metadata.
17
+ - Expose optional dev deployment worker CLI verification health on node and fleet metrics.
18
+ - Expose optional provider probe status, load, retry and retained mismatch diagnostics.
7
19
  - Project skipped code review as a nonblocking publication disclosure.
8
20
  - Expose optional Viewed-file diagnostics on review publication receipts and slot posting gates.
9
21
 
10
- - Active-development baseline; add user-facing changes here before release or package publication.
22
+ ## 0.53.0 - 2026-10-16
23
+
24
+ - Add inherited acceptance references and shared criterion binding, with per-flow fresh-proof requirements.
11
25
 
12
26
  ## 0.52.0 - 2026-10-16
13
27
 
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Resource identities for gateway change notifications (proposed ADR-071).
3
+ * Sources is the pilot slice (ADR-069 Amendment 1): only its key family is defined.
4
+ */
5
+ export type ResourceKey = {
6
+ family: 'sources';
7
+ scope: 'farm';
8
+ };
9
+ /** Nonnegative safe integer that only increases per key within one gateway epoch. */
10
+ export type ResourceRevision = number;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client-cache/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/D,qFAAqF;AACrF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client-cache/index.ts"],"names":[],"mappings":""}
@@ -2,6 +2,20 @@ import * as contract from '../../scripts/acceptance.mjs';
2
2
  import type { EvidenceMomentRef, RecipeClaimKind } from '../recipe/evidence.js';
3
3
  /** Task-relative path of the selected engine-ledger projection. */
4
4
  export declare const ACCEPTANCE_STATUS_ARTIFACT: string;
5
+ export declare const INHERITED_ACCEPTANCE_INPUT: string;
6
+ export interface InheritedAcceptanceProvenance {
7
+ source: 'parent-run';
8
+ parentRunId: string;
9
+ headSha: string;
10
+ ledgerHash: string;
11
+ }
12
+ /** Provisional task transport; the gateway independently revalidates its parent. */
13
+ export interface TaskInheritedAcceptanceReference extends InheritedAcceptanceProvenance {
14
+ schemaVersion: 1;
15
+ childRunId: string;
16
+ project: string;
17
+ criteria: AcceptanceCriterionRef[];
18
+ }
5
19
  export declare const ACCEPTANCE_VERDICTS: readonly ["proven", "weak", "missing", "untestable", "failed", "awaiting-review"];
6
20
  export type AcceptanceVerdict = (typeof ACCEPTANCE_VERDICTS)[number];
7
21
  export declare const ACCEPTANCE_PROOF_MODES: readonly ["state", "visual", "mixed"];
@@ -14,6 +28,8 @@ export declare const ACCEPTANCE_CRITERION_ID_PATTERN: RegExp;
14
28
  * @param index 0-based position in `inputs/handoff.json` `task.acceptanceCriteria`.
15
29
  */
16
30
  export declare const acceptanceCriterionId: typeof contract.acceptanceCriterionId;
31
+ export declare const acceptanceCriteriaMatch: typeof contract.acceptanceCriteriaMatch;
32
+ export declare const registeredAcceptanceCriteria: typeof contract.registeredAcceptanceCriteria;
17
33
  export interface AcceptanceCriterionStatus {
18
34
  /** `AC-<N>`, N the 1-based position in the handoff criteria array. */
19
35
  id: string;
@@ -36,6 +52,8 @@ export interface AcceptanceCriterionStatus {
36
52
  parentId?: string;
37
53
  assertionIndices?: number[];
38
54
  moments?: EvidenceMomentRef[];
55
+ /** Repair selection only: the original execution whose proof this row keeps. */
56
+ retainedFrom?: string;
39
57
  }
40
58
  export interface AcceptanceStatusLedger {
41
59
  schemaVersion: 1 | 2;
@@ -1 +1 @@
1
- {"version":3,"file":"acceptance.d.ts","sourceRoot":"","sources":["../../src/contracts/acceptance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAMhF,mEAAmE;AACnE,eAAO,MAAM,0BAA0B,EAAE,MAA4C,CAAC;AAEtF,eAAO,MAAM,mBAAmB,mFAA+B,CAAC;AAChE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,eAAO,MAAM,sBAAsB,uCAAkC,CAAC;AACtE,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,oFAAoF;AACpF,eAAO,MAAM,+BAA+B,QAA2C,CAAC;AAExF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,uCAAiC,CAAC;AAEpE,MAAM,WAAW,yBAAyB;IACxC,sEAAsE;IACtE,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,iBAAiB,CAAC;IAC3B,wEAAwE;IACxE,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,SAAS,CAAC,EAAE,KAAK,CAAC;QAAE,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ceptance.mjs';
4
4
  // into the task namespace. Schema 1 survives only as retained display input.
5
5
  /** Task-relative path of the selected engine-ledger projection. */
6
6
  export const ACCEPTANCE_STATUS_ARTIFACT = contract.ACCEPTANCE_STATUS_ARTIFACT;
7
+ export const INHERITED_ACCEPTANCE_INPUT = contract.INHERITED_ACCEPTANCE_INPUT;
7
8
  export const ACCEPTANCE_VERDICTS = contract.ACCEPTANCE_VERDICTS;
8
9
  export const ACCEPTANCE_PROOF_MODES = contract.ACCEPTANCE_PROOF_MODES;
9
10
  /** Ids are positional, so a criterion keeps its id for the life of the task dir. */
@@ -14,6 +15,8 @@ export const ACCEPTANCE_CRITERION_ID_PATTERN = contract.ACCEPTANCE_CRITERION_ID_
14
15
  * @param index 0-based position in `inputs/handoff.json` `task.acceptanceCriteria`.
15
16
  */
16
17
  export const acceptanceCriterionId = contract.acceptanceCriterionId;
18
+ export const acceptanceCriteriaMatch = contract.acceptanceCriteriaMatch;
19
+ export const registeredAcceptanceCriteria = contract.registeredAcceptanceCriteria;
17
20
  /**
18
21
  * Every registered criterion in id order, each with its recorded verdict or null.
19
22
  * `criteria` is the authority for how many criteria the run has; `ledger` only ever
@@ -1 +1 @@
1
- {"version":3,"file":"acceptance.js","sourceRoot":"","sources":["../../src/contracts/acceptance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AAGzD,4EAA4E;AAC5E,+EAA+E;AAC/E,6EAA6E;AAE7E,mEAAmE;AACnE,MAAM,CAAC,MAAM,0BAA0B,GAAW,QAAQ,CAAC,0BAA0B,CAAC;AAEtF,MAAM,CAAC,MAAM,mBAAmB,GAAG,QAAQ,CAAC,mBAAmB,CAAC;AAGhE,MAAM,CAAC,MAAM,sBAAsB,GAAG,QAAQ,CAAC,sBAAsB,CAAC;AAGtE,oFAAoF;AACpF,MAAM,CAAC,MAAM,+BAA+B,GAAG,QAAQ,CAAC,+BAA+B,CAAC;AAExF;;;;GAIG;AACH,MAAM,CAAC,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GAAG,QAAQ,CAAC,8BAA8B,CAAC;AACtF,MAAM,CAAC,MAAM,yBAAyB,GAIpC,QAAQ,CAAC,yBAA6D,CAAC;AACzE,MAAM,CAAC,MAAM,wBAAwB,GAGvB,QAAQ,CAAC,wBAAwB,CAAC"}
@@ -102,7 +102,7 @@ export interface AgentContext {
102
102
  reviewLoopNumber?: number | null;
103
103
  /** Gateway validation completed for the structured reviewer result and archived artifacts. */
104
104
  reviewResultValidatedAt?: string;
105
- pipelineVisualReviewInput?: import('../recipe/pipeline-visual-judgments.js').PipelineVisualReviewInput;
105
+ pipelineVisualReviewInput?: import('../recipe/pipeline-visual-judgments.js').PipelineReviewInput;
106
106
  pipelineVisualReviewResult?: import('../recipe/pipeline-visual-judgments.js').PipelineVisualReviewResult;
107
107
  runner?: string | null;
108
108
  model?: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/contracts/agents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;AAEvD,2EAA2E;AAC3E,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEhD,MAAM,WAAW,0BAA0B;IACzC,iFAAiF;IACjF,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,wEAAwE;IACxE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4EAA4E;IAC5E,OAAO,EAAE,MAAM,CAAC;IAChB,yFAAyF;IACzF,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,wCAAwC,EAAE,kBAAkB,CAAC;IACnF,kEAAkE;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qFAAqF;IACrF,YAAY,CAAC,EAAE,MAAM,CAAC;IAC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,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC;AAEjE,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAEvE,MAAM,MAAM,oBAAoB,GAC5B;IACE,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,sBAAsB,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GACD;IACE,IAAI,EAAE,SAAS,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEN,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,UAAU,CAAC,EAAE,WAAW,CAAC;CAC1B;AAED,wEAAwE;AACxE,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,SAAS,GAAG,kBAAkB,CAMrF"}
@@ -1,3 +1,6 @@
1
+ import type { PipelineVisualReviewerBinding } from '../recipe/claim-reviews.js';
2
+ import type { PipelineRepairApplicability } from '../recipe/pipeline-visual-judgments.js';
3
+ import type { RecipeRepairScope } from '../recipe/repair.js';
1
4
  import type { ArtifactRef, ReviewIssue } from '../recipes/step-io.js';
2
5
  import type { WorkerOperatorWait, WorkerSignalChecklistEvent, WorkerSignalChecklistTiming, WorkerSignalStatus } from '../transport/signal.js';
3
6
  import type { AcceptanceStatusLedger } from './acceptance.js';
@@ -40,6 +43,14 @@ export declare function canActivateRunOnSlot(status: RunStatus): boolean;
40
43
  * Shared by the gateway archive guard and the UI so both agree on eligibility.
41
44
  */
42
45
  export declare function isSettledBlockedRun(run: Pick<Run, 'status' | 'steps' | 'decisions'>): boolean;
46
+ /** A failed deterministic gate keeps its resources until an operator settles or replays it. */
47
+ export declare function isCompletionPrerequisiteFailure(run: Pick<Run, 'status'> & Partial<Pick<Run, 'steps'>>): boolean;
48
+ /**
49
+ * A run every active run list shows: nonterminal, or failed while it still holds
50
+ * its resources. The gateway's `run.list` `active` filter, Command Center and
51
+ * Companion all use this rule.
52
+ */
53
+ export declare function isActiveListRun(run: Pick<Run, 'status'> & Partial<Pick<Run, 'steps'>>): boolean;
43
54
  export type RunStepStatus = 'pending' | 'running' | 'done' | 'failed' | 'skipped';
44
55
  export interface RunStep {
45
56
  name: string;
@@ -342,6 +353,40 @@ export interface ReviewAttempt {
342
353
  startedAt?: string;
343
354
  completedAt?: string;
344
355
  }
356
+ /** Explicit current-head applicability of one retained criterion, from a qualified reviewer. */
357
+ export interface VisualRepairApplicability extends PipelineRepairApplicability {
358
+ headSha: string;
359
+ reviewContextId: string;
360
+ binding: PipelineVisualReviewerBinding;
361
+ recordedAt: string;
362
+ }
363
+ /** Gateway-owned Send back to agent repair (ADR-062 Amendment 10). */
364
+ export interface VisualRepairRecord {
365
+ repairId: string;
366
+ /** The frozen gateway scope; the run store keeps it authoritative over any task file. */
367
+ scope: RecipeRepairScope;
368
+ scopeDigest: string;
369
+ decisionId: string;
370
+ packageHash: string;
371
+ /** Retained review loop whose existing `retryCount` holds this repair's single charge. */
372
+ reviewId: string;
373
+ /** `reserved`: charged, delivery not yet confirmed; `delivered`: the fix turn was accepted. */
374
+ status: 'reserved' | 'delivered' | 'completed';
375
+ /** The named loop's `retryCount` after this repair's reservation. */
376
+ reservedRetryCount: number;
377
+ reservedAt: string;
378
+ deliveredAt?: string;
379
+ completedAt?: string;
380
+ /** Latest recoverable delivery problem, if any. */
381
+ reason?: string;
382
+ rejected: Array<{
383
+ claimId: string;
384
+ receiptId: string;
385
+ reason: string;
386
+ reviewer?: string;
387
+ }>;
388
+ applicability?: VisualRepairApplicability[];
389
+ }
345
390
  export interface ReviewStatus {
346
391
  id: string;
347
392
  source?: 'dispatch' | 'human-gate' | 'pipeline';
@@ -887,41 +932,23 @@ export interface FeedbackConsumption {
887
932
  decisionId?: string;
888
933
  commit?: string;
889
934
  }
890
- /**
891
- * One deduplicated unit of PR feedback captured for the learning loop.
892
- * Identity is the provider comment/review id, so repeated scans and repair
893
- * pushes reuse the same candidate; an edited comment changes `revision` only.
894
- */
895
- export interface FeedbackCandidate {
935
+ interface FeedbackCandidateBase {
896
936
  /** sha256 of `sourceKey` — stable across revisions and scans. */
897
937
  id: string;
898
- /** `<host>/<owner>/<repo>#<number>:<kind>:<providerId>` */
899
938
  sourceKey: string;
900
- provider: 'github';
901
- repository: string;
902
- prNumber: number;
903
- kind: 'review-comment' | 'review';
904
939
  /** Provider signal revision when observed by the PR monitor, else the body hash. */
905
940
  revision: string;
906
941
  /** sha256 of the collapsed comment body when the body is known. */
907
942
  bodyRevision?: string;
908
- authorLogin?: string;
909
943
  authorKind: FeedbackAuthorKind;
910
- sourceKind?: string;
911
- reviewState?: string;
912
944
  path?: string;
913
945
  excerpt?: string;
914
- url?: string;
915
- /** Commit the reviewer was looking at, when the provider reports it. */
916
- reviewedCommit?: string;
917
- /** PR head at the time the candidate was last observed. */
918
- observedHead?: string;
919
946
  resolution: {
920
947
  state: 'open' | 'resolved' | 'fixed' | 'unknown';
921
948
  triage?: string;
922
949
  fixedInCommit?: string;
923
950
  };
924
- /** Runs whose triage or PR monitor carried this feedback. */
951
+ /** Runs whose triage, PR monitor or repair carried this feedback. */
925
952
  runIds: string[];
926
953
  familyId?: string;
927
954
  /** Family runs that produced code changes (dev/fix-bug roots, follow-up pushes). */
@@ -930,11 +957,50 @@ export interface FeedbackCandidate {
930
957
  kind: FeedbackAttributionKind;
931
958
  note: string;
932
959
  };
933
- sources: Array<'comments-triage' | 'pr-monitor'>;
934
960
  consumedBy?: FeedbackConsumption[];
935
961
  /** Set when a consumption was recorded against an earlier revision of this candidate. */
936
962
  revisedSinceConsumed?: boolean;
937
963
  }
964
+ /**
965
+ * One deduplicated unit of PR feedback captured for the learning loop.
966
+ * Identity is the provider comment/review id, so repeated scans and repair
967
+ * pushes reuse the same candidate; an edited comment changes `revision` only.
968
+ */
969
+ export interface GitHubFeedbackCandidate extends FeedbackCandidateBase {
970
+ /** `<host>/<owner>/<repo>#<number>:<kind>:<providerId>` */
971
+ sourceKey: string;
972
+ provider: 'github';
973
+ repository: string;
974
+ prNumber: number;
975
+ kind: 'review-comment' | 'review';
976
+ authorLogin?: string;
977
+ sourceKind?: string;
978
+ reviewState?: string;
979
+ url?: string;
980
+ /** Commit the reviewer was looking at, when the provider reports it. */
981
+ reviewedCommit?: string;
982
+ /** PR head at the time the candidate was last observed. */
983
+ observedHead?: string;
984
+ sources: Array<'comments-triage' | 'pr-monitor'>;
985
+ }
986
+ /**
987
+ * A rejected visual criterion returned to the retained worker (ADR-062 Amendment 10).
988
+ * Bound to its gateway receipt and repair, so it exists before any PR.
989
+ */
990
+ export interface RepairFeedbackCandidate extends FeedbackCandidateBase {
991
+ /** `farmslot/run/<runId>/repair/<repairId>:visual-repair:<receiptId>` */
992
+ sourceKey: string;
993
+ provider: 'farmslot';
994
+ kind: 'visual-repair';
995
+ runId: string;
996
+ repairId: string;
997
+ receiptId: string;
998
+ claimId: string;
999
+ /** Display name of the reviewer who raised the Issue. */
1000
+ reviewer?: string;
1001
+ sources: Array<'visual-repair'>;
1002
+ }
1003
+ export type FeedbackCandidate = GitHubFeedbackCandidate | RepairFeedbackCandidate;
938
1004
  export interface FeedbackCandidateSummary {
939
1005
  total: number;
940
1006
  human: number;
@@ -2254,6 +2320,15 @@ export interface RunSlotCapabilityRequirements {
2254
2320
  sourceSlotId: string;
2255
2321
  capabilityIds: string[];
2256
2322
  }
2323
+ /**
2324
+ * Start of the dispatch that began the current task identity. A dispatch replay that
2325
+ * resumes the same task keeps it; a new task or a fresh dispatch replaces it. QA
2326
+ * evidence must not predate it.
2327
+ */
2328
+ export interface RunTaskExecution {
2329
+ taskFile: string;
2330
+ startedAt: string;
2331
+ }
2257
2332
  export interface RunEngineState {
2258
2333
  slotCapabilityRequirements?: RunSlotCapabilityRequirements;
2259
2334
  /**
@@ -2310,6 +2385,8 @@ export interface RunEngineState {
2310
2385
  */
2311
2386
  warmHandoffSucceeded?: boolean;
2312
2387
  };
2388
+ /** Start of the current task identity's execution; see {@link RunTaskExecution}. */
2389
+ taskExecution?: RunTaskExecution;
2313
2390
  /** Monotonic replay generation counter; startRun bails if the run has been superseded. */
2314
2391
  generation?: number;
2315
2392
  /** Operator `run.forceComplete` on a failed run. Replay must not treat this as ordinary done. */
@@ -2343,6 +2420,8 @@ export interface RunEngineState {
2343
2420
  reviewLaunchRejection?: PublicationReviewLaunchRejection;
2344
2421
  supersededPackageIds?: string[];
2345
2422
  feedbackArtifactPath?: string;
2423
+ /** Send back to agent repairs, oldest first; the last non-completed one is active. */
2424
+ visualRepairs?: VisualRepairRecord[];
2346
2425
  /** Bounded restart watcher state for an in-flight publication reviewer. */
2347
2426
  reviewRecovery?: {
2348
2427
  status: 'watching' | 'recovered' | 'operator-required';