@cat-factory/contracts 0.308.0 → 0.309.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 (48) hide show
  1. package/dist/agent-presentation.d.ts +16 -2
  2. package/dist/agent-presentation.d.ts.map +1 -1
  3. package/dist/agent-presentation.js +7 -0
  4. package/dist/agent-presentation.js.map +1 -1
  5. package/dist/companion-state.d.ts +90 -0
  6. package/dist/companion-state.d.ts.map +1 -0
  7. package/dist/companion-state.js +84 -0
  8. package/dist/companion-state.js.map +1 -0
  9. package/dist/entities.d.ts +1 -1
  10. package/dist/execution.d.ts +4 -82
  11. package/dist/execution.d.ts.map +1 -1
  12. package/dist/execution.js +4 -50
  13. package/dist/execution.js.map +1 -1
  14. package/dist/index.d.ts +1 -0
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +1 -0
  17. package/dist/index.js.map +1 -1
  18. package/dist/pipeline-purpose-vocabulary.d.ts +8 -3
  19. package/dist/pipeline-purpose-vocabulary.d.ts.map +1 -1
  20. package/dist/pipeline-purpose-vocabulary.js +14 -2
  21. package/dist/pipeline-purpose-vocabulary.js.map +1 -1
  22. package/dist/pipeline-purpose.d.ts +20 -12
  23. package/dist/pipeline-purpose.d.ts.map +1 -1
  24. package/dist/pipeline-purpose.js +79 -23
  25. package/dist/pipeline-purpose.js.map +1 -1
  26. package/dist/requests.d.ts +2 -2
  27. package/dist/routes/agent-runs.d.ts +2 -0
  28. package/dist/routes/agent-runs.d.ts.map +1 -1
  29. package/dist/routes/bug-hunt.d.ts +2 -0
  30. package/dist/routes/bug-hunt.d.ts.map +1 -1
  31. package/dist/routes/execution.d.ts +9 -0
  32. package/dist/routes/execution.d.ts.map +1 -1
  33. package/dist/routes/human-review.d.ts +1 -0
  34. package/dist/routes/human-review.d.ts.map +1 -1
  35. package/dist/routes/human-test.d.ts +5 -0
  36. package/dist/routes/human-test.d.ts.map +1 -1
  37. package/dist/routes/pipelines.d.ts +8 -8
  38. package/dist/routes/visual-confirm.d.ts +3 -0
  39. package/dist/routes/visual-confirm.d.ts.map +1 -1
  40. package/dist/routes/workspaces.d.ts +6 -4
  41. package/dist/routes/workspaces.d.ts.map +1 -1
  42. package/dist/snapshot.d.ts +3 -2
  43. package/dist/snapshot.d.ts.map +1 -1
  44. package/dist/visual-pipeline.d.ts +24 -1
  45. package/dist/visual-pipeline.d.ts.map +1 -1
  46. package/dist/visual-pipeline.js +44 -3
  47. package/dist/visual-pipeline.js.map +1 -1
  48. package/package.json +1 -1
@@ -67,6 +67,13 @@ export declare const agentPresentationSchema: v.ObjectSchema<{
67
67
  * builder will SAVE (`purposeAllowsAgentCategory`), so a kind that opts out of a purpose
68
68
  * stays editable in a stored pipeline that already uses it.
69
69
  *
70
+ * `build` and `bugfix` are read as ONE purpose here, one way (`classifierSuits`): naming
71
+ * `build` also offers the kind to every bugfix palette, because the two are the same work and
72
+ * differ only in the task type their pipelines are offered to. So there is deliberately no way
73
+ * to declare "general builds but not defect work": that is not a distinction about the kind's
74
+ * work, which is all this list may express. Naming `bugfix` alone is a claim about the
75
+ * defect-report context specifically and does NOT buy the kind into `build`.
76
+ *
70
77
  * An EMPTY list is refused rather than accepted, because the reader treats "declared nothing"
71
78
  * and "declared an empty list" as the same thing (the category alone decides, so the kind is
72
79
  * offered at every purpose that section admits) and that is the exact inverse of what an author
@@ -76,7 +83,7 @@ export declare const agentPresentationSchema: v.ObjectSchema<{
76
83
  * deliberately reads as no declaration: that one is a retired vocabulary member outliving the
77
84
  * bundle reading it, not a statement someone typed.
78
85
  */
79
- readonly purposes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["build", "document", "review", "research", "planning"], undefined>, undefined>, v.MinLengthAction<("build" | "document" | "planning" | "research" | "review")[], 1, undefined>]>, undefined>;
86
+ readonly purposes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["build", "bugfix", "document", "review", "research", "planning"], undefined>, undefined>, v.MinLengthAction<("bugfix" | "build" | "document" | "planning" | "research" | "review")[], 1, undefined>]>, undefined>;
80
87
  /**
81
88
  * How specialist this kind is ({@link AGENT_TIERS}). The palette and the model-preset
82
89
  * override list show the selected tier and everything below it, so a kind declared
@@ -141,6 +148,13 @@ export declare const customAgentKindSchema: v.ObjectSchema<{
141
148
  * builder will SAVE (`purposeAllowsAgentCategory`), so a kind that opts out of a purpose
142
149
  * stays editable in a stored pipeline that already uses it.
143
150
  *
151
+ * `build` and `bugfix` are read as ONE purpose here, one way (`classifierSuits`): naming
152
+ * `build` also offers the kind to every bugfix palette, because the two are the same work and
153
+ * differ only in the task type their pipelines are offered to. So there is deliberately no way
154
+ * to declare "general builds but not defect work": that is not a distinction about the kind's
155
+ * work, which is all this list may express. Naming `bugfix` alone is a claim about the
156
+ * defect-report context specifically and does NOT buy the kind into `build`.
157
+ *
144
158
  * An EMPTY list is refused rather than accepted, because the reader treats "declared nothing"
145
159
  * and "declared an empty list" as the same thing (the category alone decides, so the kind is
146
160
  * offered at every purpose that section admits) and that is the exact inverse of what an author
@@ -150,7 +164,7 @@ export declare const customAgentKindSchema: v.ObjectSchema<{
150
164
  * deliberately reads as no declaration: that one is a retired vocabulary member outliving the
151
165
  * bundle reading it, not a statement someone typed.
152
166
  */
153
- readonly purposes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["build", "document", "review", "research", "planning"], undefined>, undefined>, v.MinLengthAction<("build" | "document" | "planning" | "research" | "review")[], 1, undefined>]>, undefined>;
167
+ readonly purposes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["build", "bugfix", "document", "review", "research", "planning"], undefined>, undefined>, v.MinLengthAction<("bugfix" | "build" | "document" | "planning" | "research" | "review")[], 1, undefined>]>, undefined>;
154
168
  /**
155
169
  * How specialist this kind is ({@link AGENT_TIERS}). The palette and the model-preset
156
170
  * override list show the selected tier and everything below it, so a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E5C,2CAA2C;;IAE3C,uCAAuC;;IAEvC;;;;;OAKG;;IAEH,gGAAgG;;IAEhG;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;;IAEH;;;;;OAKG;;IAEH;;;;;;;;OAQG;;IAEH;;;;;;;;;;;;;OAaG;;aAEH,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E;6DAC6D;AAC7D,eAAO,MAAM,qBAAqB;;;QA/EhC,4CAA4C;;QAE5C,2CAA2C;;QAE3C,uCAAuC;;QAEvC;;;;;WAKG;;QAEH,gGAAgG;;QAEhG;;;;;;;;;;;;;;;;;;;;;;;;;WAyBG;;QAEH;;;;;WAKG;;QAEH;;;;;;;;WAQG;;QAEH;;;;;;;;;;;;;WAaG;;;IAUH,oEAAoE;;IAEpE;;;;;;;;;;;;;;OAcG;;IAEH;;;;;;;;;;;;;;OAcG;;aAEH,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB;;;;;aAKjC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAA"}
@@ -97,6 +97,13 @@ export const agentPresentationSchema = v.object({
97
97
  * builder will SAVE (`purposeAllowsAgentCategory`), so a kind that opts out of a purpose
98
98
  * stays editable in a stored pipeline that already uses it.
99
99
  *
100
+ * `build` and `bugfix` are read as ONE purpose here, one way (`classifierSuits`): naming
101
+ * `build` also offers the kind to every bugfix palette, because the two are the same work and
102
+ * differ only in the task type their pipelines are offered to. So there is deliberately no way
103
+ * to declare "general builds but not defect work": that is not a distinction about the kind's
104
+ * work, which is all this list may express. Naming `bugfix` alone is a claim about the
105
+ * defect-report context specifically and does NOT buy the kind into `build`.
106
+ *
100
107
  * An EMPTY list is refused rather than accepted, because the reader treats "declared nothing"
101
108
  * and "declared an empty list" as the same thing (the category alone decides, so the kind is
102
109
  * offered at every purpose that section admits) and that is the exact inverse of what an author
@@ -1 +1 @@
1
- {"version":3,"file":"agent-presentation.js","sourceRoot":"","sources":["../src/agent-presentation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAA;AACxE,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,8EAA8E;AAC9E,gFAAgF;AAChF,qFAAqF;AACrF,uFAAuF;AACvF,sFAAsF;AACtF,mFAAmF;AACnF,8EAA8E;AAE9E,0FAA0F;AAC1F,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,QAAQ,CAAC;IAC5C,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,MAAM;IACN,MAAM;IACN,OAAO;CACR,CAAC,CAAA;AAGF,MAAM,kBAAkB,GAAwB,IAAI,GAAG,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAA;AAEpF;;;;;;;;;;GAUG;AACH,MAAM,UAAU,eAAe,CAAC,KAAa;IAC3C,OAAO,kBAAkB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;AACtC,CAAC;AAED,8EAA8E;AAC9E,mFAAmF;AACnF,2EAA2E;AAC3E,mFAAmF;AACnF,sEAAsE;AACtE,EAAE;AACF,oFAAoF;AACpF,mFAAmF;AACnF,6DAA6D;AAC7D,8EAA8E;AAE9E;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,cAAc,EAAE,UAAU,CAAU,CAAA;AACzE,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAA;AAGtD;;;;;;GAMG;AACH,MAA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QG;IACH,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAClF;;;;;;;;;;;;;OAaG;IACH,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;CAClC,CAAC,CAAA;AAGF;6DAC6D;AAC7D,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,eAAe;IACrB,YAAY,EAAE,uBAAuB;IACrC,oEAAoE;IACpE,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB;;;;;;;;;;;;;;OAcG;IACH,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IACrC;;;;;;;;;;;;;;OAcG;IACH,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;CACvD,CAAC,CAAA;AAGF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,QAAQ,EAAE,eAAe;IACzB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACpC,CAAC,CAAA"}
@@ -0,0 +1,90 @@
1
+ import * as v from 'valibot';
2
+ /**
3
+ * Live state of a companion step that reviews a preceding producer step. Set when
4
+ * this step's `agentKind` is a companion kind. `threshold` is the quality bar the
5
+ * companion's latest rating (the last `verdicts` entry) must reach; `attempts`
6
+ * counts only the AUTOMATIC reworks performed, and once it reaches `maxAttempts` the
7
+ * step parks on the iteration-cap gate (`exceeded`) for a human rather than failing.
8
+ * A human "request changes" on the companion's gate also re-runs the producer but does
9
+ * NOT consume `attempts` (only the automatic loop is budgeted). Absent for non-companion steps.
10
+ */
11
+ export declare const companionStateSchema: v.ObjectSchema<{
12
+ /** The quality bar (0..1) the latest verdict's rating must reach; seeded from the pipeline. */
13
+ readonly threshold: v.NumberSchema<undefined>;
14
+ /** The automatic rework budget: once `attempts` reaches this the gate parks for a human (`exceeded`). */
15
+ readonly maxAttempts: v.NumberSchema<undefined>;
16
+ /**
17
+ * How many AUTOMATIC reworks the companion has driven so far (the producer is
18
+ * looped back once per failed verdict). Human "request changes" cycles are not
19
+ * counted. Defaults to 0; once it reaches `maxAttempts` the step parks on the
20
+ * iteration-cap gate (`exceeded`) — an "extra round" raises `maxAttempts` by one.
21
+ */
22
+ readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
23
+ /**
24
+ * One standardized {@link companionVerdictSchema} per grading cycle, in order —
25
+ * the full sequence of correction iterations (the producer is re-run after each
26
+ * rejected verdict), including any human-driven ones. Empty before the first
27
+ * grade; the last entry is the latest.
28
+ */
29
+ readonly verdicts: v.ArraySchema<v.ObjectSchema<{
30
+ readonly rating: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
31
+ readonly threshold: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
32
+ readonly passed: v.BooleanSchema<undefined>;
33
+ readonly feedback: v.StringSchema<undefined>;
34
+ readonly comments: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
35
+ readonly quotedSource: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
36
+ readonly srcStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
37
+ readonly srcEnd: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
38
+ readonly anchorId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
39
+ readonly body: v.StringSchema<undefined>;
40
+ }, undefined>, undefined>, undefined>;
41
+ }, undefined>, undefined>;
42
+ /**
43
+ * Set true when the automatic rework budget (`maxAttempts`) was spent with the
44
+ * rating still below the bar: instead of failing the run, the step parks on its
45
+ * approval gate for a human to resolve via the shared iteration-cap surface
46
+ * (one more round / proceed anyway / stop & reset). Cleared once the human grants
47
+ * an extra round (the loop resumes). Absent until/unless the cap is hit.
48
+ */
49
+ readonly exceeded: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
50
+ /**
51
+ * Set true when the run's risk policy ANSWERED that cap instead of parking on it
52
+ * (`autonomy: 'unattended'`), taking the "proceed anyway" choice a person would have been
53
+ * offered. Mutually exclusive with `exceeded` in practice: one records a cap waiting on a
54
+ * human, the other a cap already settled without one.
55
+ *
56
+ * It exists so the two are never confused by a reader. The last `verdicts` entry says the
57
+ * producer was below the bar either way, and without this flag a run that advanced anyway
58
+ * is indistinguishable from one whose companion quietly stopped grading. Rendered on the
59
+ * step and read by whoever reviews the resulting pull request.
60
+ */
61
+ readonly capSettledByPolicy: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
62
+ /**
63
+ * Set true when the loop was stopped EARLY, before `maxAttempts`, because it had stopped
64
+ * making progress: the producer returned work byte-identical to the revision it was asked
65
+ * to change, and the companion's rating did not move.
66
+ *
67
+ * Only ever set for a producer whose DELIVERABLE is its reply (an `inline` or
68
+ * `container-explore` kind). A `container-coding` producer's work is the commit it pushed and
69
+ * its reply is a summary it may reasonably not write at all, so its loop is bounded by
70
+ * `maxAttempts` alone and this stays absent there — absent meaning "not detectable", never
71
+ * "known to be converging".
72
+ *
73
+ * A budget is a bound on how long a converging loop may take, not evidence that one is
74
+ * converging. A run that re-graded an unchanged document to the same 0.76 four times over
75
+ * spent its whole budget and ~17k completion tokens per round restating a verdict it had
76
+ * already given, and the two "must fix" items it opened in round 1 were still open at the
77
+ * end. Nothing in the state machine noticed, because `attempts < maxAttempts` was true
78
+ * every time.
79
+ *
80
+ * Recorded rather than merely acted on, and kept DISTINCT from {@link exceeded}, which
81
+ * says the budget genuinely ran out: only this one says the remaining rounds were
82
+ * abandoned as worthless, and only it tells whoever reviews the pull request that the
83
+ * producer stopped responding rather than that the reviewer stayed unsatisfied. The
84
+ * step then takes the same exit the cap does, so an attended run parks for a person and
85
+ * an unattended one settles by policy, both on the record.
86
+ */
87
+ readonly stalled: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
88
+ }, undefined>;
89
+ export type CompanionState = v.InferOutput<typeof companionStateSchema>;
90
+ //# sourceMappingURL=companion-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"companion-state.d.ts","sourceRoot":"","sources":["../src/companion-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB;IAC/B,+FAA+F;;IAE/F,yGAAyG;;IAEzG;;;;;OAKG;;IAEH;;;;;OAKG;;;;;;;;;;;;;;IAEH;;;;;;OAMG;;IAEH;;;;;;;;;;OAUG;;IAEH;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;;aAEH,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
@@ -0,0 +1,84 @@
1
+ import * as v from 'valibot';
2
+ import { companionVerdictSchema } from './step-decisions.js';
3
+ // The live state of a COMPANION rework loop: the bar, the budget, the graded history, and the
4
+ // flags recording how a loop that never cleared the bar ended.
5
+ //
6
+ // Extracted from `execution.ts` (a file-size ratchet split) along the seam the loop's own
7
+ // controller already follows: `CompanionController` reads and writes exactly this object, and
8
+ // nothing else in a step's state takes part in that decision.
9
+ /**
10
+ * Live state of a companion step that reviews a preceding producer step. Set when
11
+ * this step's `agentKind` is a companion kind. `threshold` is the quality bar the
12
+ * companion's latest rating (the last `verdicts` entry) must reach; `attempts`
13
+ * counts only the AUTOMATIC reworks performed, and once it reaches `maxAttempts` the
14
+ * step parks on the iteration-cap gate (`exceeded`) for a human rather than failing.
15
+ * A human "request changes" on the companion's gate also re-runs the producer but does
16
+ * NOT consume `attempts` (only the automatic loop is budgeted). Absent for non-companion steps.
17
+ */
18
+ export const companionStateSchema = v.object({
19
+ /** The quality bar (0..1) the latest verdict's rating must reach; seeded from the pipeline. */
20
+ threshold: v.number(),
21
+ /** The automatic rework budget: once `attempts` reaches this the gate parks for a human (`exceeded`). */
22
+ maxAttempts: v.number(),
23
+ /**
24
+ * How many AUTOMATIC reworks the companion has driven so far (the producer is
25
+ * looped back once per failed verdict). Human "request changes" cycles are not
26
+ * counted. Defaults to 0; once it reaches `maxAttempts` the step parks on the
27
+ * iteration-cap gate (`exceeded`) — an "extra round" raises `maxAttempts` by one.
28
+ */
29
+ attempts: v.optional(v.number(), 0),
30
+ /**
31
+ * One standardized {@link companionVerdictSchema} per grading cycle, in order —
32
+ * the full sequence of correction iterations (the producer is re-run after each
33
+ * rejected verdict), including any human-driven ones. Empty before the first
34
+ * grade; the last entry is the latest.
35
+ */
36
+ verdicts: v.array(companionVerdictSchema),
37
+ /**
38
+ * Set true when the automatic rework budget (`maxAttempts`) was spent with the
39
+ * rating still below the bar: instead of failing the run, the step parks on its
40
+ * approval gate for a human to resolve via the shared iteration-cap surface
41
+ * (one more round / proceed anyway / stop & reset). Cleared once the human grants
42
+ * an extra round (the loop resumes). Absent until/unless the cap is hit.
43
+ */
44
+ exceeded: v.optional(v.boolean()),
45
+ /**
46
+ * Set true when the run's risk policy ANSWERED that cap instead of parking on it
47
+ * (`autonomy: 'unattended'`), taking the "proceed anyway" choice a person would have been
48
+ * offered. Mutually exclusive with `exceeded` in practice: one records a cap waiting on a
49
+ * human, the other a cap already settled without one.
50
+ *
51
+ * It exists so the two are never confused by a reader. The last `verdicts` entry says the
52
+ * producer was below the bar either way, and without this flag a run that advanced anyway
53
+ * is indistinguishable from one whose companion quietly stopped grading. Rendered on the
54
+ * step and read by whoever reviews the resulting pull request.
55
+ */
56
+ capSettledByPolicy: v.optional(v.boolean()),
57
+ /**
58
+ * Set true when the loop was stopped EARLY, before `maxAttempts`, because it had stopped
59
+ * making progress: the producer returned work byte-identical to the revision it was asked
60
+ * to change, and the companion's rating did not move.
61
+ *
62
+ * Only ever set for a producer whose DELIVERABLE is its reply (an `inline` or
63
+ * `container-explore` kind). A `container-coding` producer's work is the commit it pushed and
64
+ * its reply is a summary it may reasonably not write at all, so its loop is bounded by
65
+ * `maxAttempts` alone and this stays absent there — absent meaning "not detectable", never
66
+ * "known to be converging".
67
+ *
68
+ * A budget is a bound on how long a converging loop may take, not evidence that one is
69
+ * converging. A run that re-graded an unchanged document to the same 0.76 four times over
70
+ * spent its whole budget and ~17k completion tokens per round restating a verdict it had
71
+ * already given, and the two "must fix" items it opened in round 1 were still open at the
72
+ * end. Nothing in the state machine noticed, because `attempts < maxAttempts` was true
73
+ * every time.
74
+ *
75
+ * Recorded rather than merely acted on, and kept DISTINCT from {@link exceeded}, which
76
+ * says the budget genuinely ran out: only this one says the remaining rounds were
77
+ * abandoned as worthless, and only it tells whoever reviews the pull request that the
78
+ * producer stopped responding rather than that the reviewer stayed unsatisfied. The
79
+ * step then takes the same exit the cap does, so an attended run parks for a person and
80
+ * an unattended one settles by policy, both on the record.
81
+ */
82
+ stalled: v.optional(v.boolean()),
83
+ });
84
+ //# sourceMappingURL=companion-state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"companion-state.js","sourceRoot":"","sources":["../src/companion-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAE5D,8FAA8F;AAC9F,+DAA+D;AAC/D,EAAE;AACF,0FAA0F;AAC1F,8FAA8F;AAC9F,8DAA8D;AAE9D;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,+FAA+F;IAC/F,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,yGAAyG;IACzG,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACnC;;;;;OAKG;IACH,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC;IACzC;;;;;;OAMG;IACH,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IACjC;;;;;;;;;;OAUG;IACH,kBAAkB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAC3C;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;CACjC,CAAC,CAAA"}
@@ -1594,7 +1594,7 @@ export declare const pipelineSchema: v.ObjectSchema<{
1594
1594
  * member it reads. Narrow with `isPipelinePurpose` (or `classifierFor`, which states what an
1595
1595
  * unnameable classifier means) before indexing anything by it.
1596
1596
  */
1597
- readonly purpose: v.PicklistSchema<readonly ["build", "document", "review", "research", "planning"], undefined>;
1597
+ readonly purpose: v.PicklistSchema<readonly ["build", "bugfix", "document", "review", "research", "planning"], undefined>;
1598
1598
  /**
1599
1599
  * When true the pipeline is INTERNAL: the platform starts it by id for a flow of its own, and no
1600
1600
  * user-facing surface offers it. It is filtered out of the workspace snapshot, the pipeline list,
@@ -1278,33 +1278,11 @@ export declare const pipelineStepSchema: v.ObjectSchema<{
1278
1278
  readonly at: v.NumberSchema<undefined>;
1279
1279
  }, undefined>, undefined>, undefined>;
1280
1280
  }, undefined>, undefined>, undefined>;
1281
- /**
1282
- * Live state of a companion step that reviews a preceding producer step. Set when
1283
- * this step's `agentKind` is a companion kind. `threshold` is the quality bar the
1284
- * companion's latest rating (the last `verdicts` entry) must reach; `attempts`
1285
- * counts only the AUTOMATIC reworks performed, and once it reaches `maxAttempts` the
1286
- * step parks on the iteration-cap gate (`exceeded`) for a human rather than failing.
1287
- * A human "request changes" on the companion's gate also re-runs the producer but does
1288
- * NOT consume `attempts` (only the automatic loop is budgeted). Absent for non-companion steps.
1289
- */
1281
+ /** @see companionStateSchema. Absent for non-companion steps. */
1290
1282
  readonly companion: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
1291
- /** The quality bar (0..1) the latest verdict's rating must reach; seeded from the pipeline. */
1292
1283
  readonly threshold: v.NumberSchema<undefined>;
1293
- /** The automatic rework budget: once `attempts` reaches this the gate parks for a human (`exceeded`). */
1294
1284
  readonly maxAttempts: v.NumberSchema<undefined>;
1295
- /**
1296
- * How many AUTOMATIC reworks the companion has driven so far (the producer is
1297
- * looped back once per failed verdict). Human "request changes" cycles are not
1298
- * counted. Defaults to 0; once it reaches `maxAttempts` the step parks on the
1299
- * iteration-cap gate (`exceeded`) — an "extra round" raises `maxAttempts` by one.
1300
- */
1301
1285
  readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
1302
- /**
1303
- * One standardized {@link companionVerdictSchema} per grading cycle, in order —
1304
- * the full sequence of correction iterations (the producer is re-run after each
1305
- * rejected verdict), including any human-driven ones. Empty before the first
1306
- * grade; the last entry is the latest.
1307
- */
1308
1286
  readonly verdicts: v.ArraySchema<v.ObjectSchema<{
1309
1287
  readonly rating: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
1310
1288
  readonly threshold: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
@@ -1318,26 +1296,9 @@ export declare const pipelineStepSchema: v.ObjectSchema<{
1318
1296
  readonly body: v.StringSchema<undefined>;
1319
1297
  }, undefined>, undefined>, undefined>;
1320
1298
  }, undefined>, undefined>;
1321
- /**
1322
- * Set true when the automatic rework budget (`maxAttempts`) was spent with the
1323
- * rating still below the bar: instead of failing the run, the step parks on its
1324
- * approval gate for a human to resolve via the shared iteration-cap surface
1325
- * (one more round / proceed anyway / stop & reset). Cleared once the human grants
1326
- * an extra round (the loop resumes). Absent until/unless the cap is hit.
1327
- */
1328
1299
  readonly exceeded: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1329
- /**
1330
- * Set true when the run's risk policy ANSWERED that cap instead of parking on it
1331
- * (`autonomy: 'unattended'`), taking the "proceed anyway" choice a person would have been
1332
- * offered. Mutually exclusive with `exceeded` in practice: one records a cap waiting on a
1333
- * human, the other a cap already settled without one.
1334
- *
1335
- * It exists so the two are never confused by a reader. The last `verdicts` entry says the
1336
- * producer was below the bar either way, and without this flag a run that advanced anyway
1337
- * is indistinguishable from one whose companion quietly stopped grading. Rendered on the
1338
- * step and read by whoever reviews the resulting pull request.
1339
- */
1340
1300
  readonly capSettledByPolicy: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1301
+ readonly stalled: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1341
1302
  }, undefined>, undefined>, undefined>;
1342
1303
  /**
1343
1304
  * The REVIEW-GATE sibling of `companion.capSettledByPolicy`: set on a `requirements-review` /
@@ -3136,33 +3097,11 @@ export declare const executionInstanceSchema: v.ObjectSchema<{
3136
3097
  readonly at: v.NumberSchema<undefined>;
3137
3098
  }, undefined>, undefined>, undefined>;
3138
3099
  }, undefined>, undefined>, undefined>;
3139
- /**
3140
- * Live state of a companion step that reviews a preceding producer step. Set when
3141
- * this step's `agentKind` is a companion kind. `threshold` is the quality bar the
3142
- * companion's latest rating (the last `verdicts` entry) must reach; `attempts`
3143
- * counts only the AUTOMATIC reworks performed, and once it reaches `maxAttempts` the
3144
- * step parks on the iteration-cap gate (`exceeded`) for a human rather than failing.
3145
- * A human "request changes" on the companion's gate also re-runs the producer but does
3146
- * NOT consume `attempts` (only the automatic loop is budgeted). Absent for non-companion steps.
3147
- */
3100
+ /** @see companionStateSchema. Absent for non-companion steps. */
3148
3101
  readonly companion: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
3149
- /** The quality bar (0..1) the latest verdict's rating must reach; seeded from the pipeline. */
3150
3102
  readonly threshold: v.NumberSchema<undefined>;
3151
- /** The automatic rework budget: once `attempts` reaches this the gate parks for a human (`exceeded`). */
3152
3103
  readonly maxAttempts: v.NumberSchema<undefined>;
3153
- /**
3154
- * How many AUTOMATIC reworks the companion has driven so far (the producer is
3155
- * looped back once per failed verdict). Human "request changes" cycles are not
3156
- * counted. Defaults to 0; once it reaches `maxAttempts` the step parks on the
3157
- * iteration-cap gate (`exceeded`) — an "extra round" raises `maxAttempts` by one.
3158
- */
3159
3104
  readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
3160
- /**
3161
- * One standardized {@link companionVerdictSchema} per grading cycle, in order —
3162
- * the full sequence of correction iterations (the producer is re-run after each
3163
- * rejected verdict), including any human-driven ones. Empty before the first
3164
- * grade; the last entry is the latest.
3165
- */
3166
3105
  readonly verdicts: v.ArraySchema<v.ObjectSchema<{
3167
3106
  readonly rating: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
3168
3107
  readonly threshold: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
@@ -3176,26 +3115,9 @@ export declare const executionInstanceSchema: v.ObjectSchema<{
3176
3115
  readonly body: v.StringSchema<undefined>;
3177
3116
  }, undefined>, undefined>, undefined>;
3178
3117
  }, undefined>, undefined>;
3179
- /**
3180
- * Set true when the automatic rework budget (`maxAttempts`) was spent with the
3181
- * rating still below the bar: instead of failing the run, the step parks on its
3182
- * approval gate for a human to resolve via the shared iteration-cap surface
3183
- * (one more round / proceed anyway / stop & reset). Cleared once the human grants
3184
- * an extra round (the loop resumes). Absent until/unless the cap is hit.
3185
- */
3186
3118
  readonly exceeded: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3187
- /**
3188
- * Set true when the run's risk policy ANSWERED that cap instead of parking on it
3189
- * (`autonomy: 'unattended'`), taking the "proceed anyway" choice a person would have been
3190
- * offered. Mutually exclusive with `exceeded` in practice: one records a cap waiting on a
3191
- * human, the other a cap already settled without one.
3192
- *
3193
- * It exists so the two are never confused by a reader. The last `verdicts` entry says the
3194
- * producer was below the bar either way, and without this flag a run that advanced anyway
3195
- * is indistinguishable from one whose companion quietly stopped grading. Rendered on the
3196
- * step and read by whoever reviews the resulting pull request.
3197
- */
3198
3119
  readonly capSettledByPolicy: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3120
+ readonly stalled: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3199
3121
  }, undefined>, undefined>, undefined>;
3200
3122
  /**
3201
3123
  * The REVIEW-GATE sibling of `companion.capSettledByPolicy`: set on a `requirements-review` /
@@ -1 +1 @@
1
- {"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../src/execution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA0D5B,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB;IAChC,gEAAgE;;;aAGhE,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB;;;;;QAjB7B,gEAAgE;;;;aAsBhE,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEnE;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,8EAA8D,CAAA;AAC7F,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEnE;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;IAE7B,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EH;;;;;;OAMG;;IAEH;;;;;;;;;;;;;;;;;OAiBG;;IAEH;;;;;;;;;;;;;OAaG;;IAEH;;;;OAIG;;IAEH;;;;;;;;;;OAUG;;IAEH;;;;;;;;;;OAUG;;IAEH;;;;;;;;;OASG;;IAEH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;;;;;;;;;OAYG;;;;;;;;;;;;;;;;aAEH,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
package/dist/execution.js CHANGED
@@ -27,7 +27,8 @@ import { environmentStatusSchema, infraEngineSchema, provisionTypeSchema, servic
27
27
  import { resolvedFrontendBindingSchema } from './frontend.js';
28
28
  import { agentKindSchema, agentStateSchema } from './primitives.js';
29
29
  import { stepOptionsSchema } from './entities.js';
30
- import { companionVerdictSchema, decisionSchema, stepApprovalSchema, stepReviewCommentSchema, } from './step-decisions.js';
30
+ import { companionStateSchema } from './companion-state.js';
31
+ import { decisionSchema, stepApprovalSchema, stepReviewCommentSchema } from './step-decisions.js';
31
32
  import { workspaceRoleSchema } from './workspace-members.js';
32
33
  // ---------------------------------------------------------------------------
33
34
  // Run / execution runtime state: the shapes that describe an in-flight run and
@@ -623,55 +624,8 @@ export const pipelineStepSchema = v.object({
623
624
  * otherwise.
624
625
  */
625
626
  approval: v.optional(v.nullable(stepApprovalSchema)),
626
- /**
627
- * Live state of a companion step that reviews a preceding producer step. Set when
628
- * this step's `agentKind` is a companion kind. `threshold` is the quality bar the
629
- * companion's latest rating (the last `verdicts` entry) must reach; `attempts`
630
- * counts only the AUTOMATIC reworks performed, and once it reaches `maxAttempts` the
631
- * step parks on the iteration-cap gate (`exceeded`) for a human rather than failing.
632
- * A human "request changes" on the companion's gate also re-runs the producer but does
633
- * NOT consume `attempts` (only the automatic loop is budgeted). Absent for non-companion steps.
634
- */
635
- companion: v.optional(v.nullable(v.object({
636
- /** The quality bar (0..1) the latest verdict's rating must reach; seeded from the pipeline. */
637
- threshold: v.number(),
638
- /** The automatic rework budget: once `attempts` reaches this the gate parks for a human (`exceeded`). */
639
- maxAttempts: v.number(),
640
- /**
641
- * How many AUTOMATIC reworks the companion has driven so far (the producer is
642
- * looped back once per failed verdict). Human "request changes" cycles are not
643
- * counted. Defaults to 0; once it reaches `maxAttempts` the step parks on the
644
- * iteration-cap gate (`exceeded`) — an "extra round" raises `maxAttempts` by one.
645
- */
646
- attempts: v.optional(v.number(), 0),
647
- /**
648
- * One standardized {@link companionVerdictSchema} per grading cycle, in order —
649
- * the full sequence of correction iterations (the producer is re-run after each
650
- * rejected verdict), including any human-driven ones. Empty before the first
651
- * grade; the last entry is the latest.
652
- */
653
- verdicts: v.array(companionVerdictSchema),
654
- /**
655
- * Set true when the automatic rework budget (`maxAttempts`) was spent with the
656
- * rating still below the bar: instead of failing the run, the step parks on its
657
- * approval gate for a human to resolve via the shared iteration-cap surface
658
- * (one more round / proceed anyway / stop & reset). Cleared once the human grants
659
- * an extra round (the loop resumes). Absent until/unless the cap is hit.
660
- */
661
- exceeded: v.optional(v.boolean()),
662
- /**
663
- * Set true when the run's risk policy ANSWERED that cap instead of parking on it
664
- * (`autonomy: 'unattended'`), taking the "proceed anyway" choice a person would have been
665
- * offered. Mutually exclusive with `exceeded` in practice: one records a cap waiting on a
666
- * human, the other a cap already settled without one.
667
- *
668
- * It exists so the two are never confused by a reader. The last `verdicts` entry says the
669
- * producer was below the bar either way, and without this flag a run that advanced anyway
670
- * is indistinguishable from one whose companion quietly stopped grading. Rendered on the
671
- * step and read by whoever reviews the resulting pull request.
672
- */
673
- capSettledByPolicy: v.optional(v.boolean()),
674
- }))),
627
+ /** @see companionStateSchema. Absent for non-companion steps. */
628
+ companion: v.optional(v.nullable(companionStateSchema)),
675
629
  /**
676
630
  * The REVIEW-GATE sibling of `companion.capSettledByPolicy`: set on a `requirements-review` /
677
631
  * clarity step whose iterative review spent its whole reviewer-pass budget and whose risk