@cat-factory/agents 0.107.1 → 0.108.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.
@@ -8,12 +8,15 @@ export declare const CODER_FORK_DECISION_CONFIG_ID = "coder.forkDecision";
8
8
  * The bugfix reproduction-proof tri-state (auto / always / off), read by the engine's
9
9
  * `resolveReproductionTriState`.
10
10
  *
11
- * Deliberately NOT yet contributed as a task-facing descriptor: the verification phase itself is
12
- * Phase B of `docs/initiatives/bugfix-reproduction-proof.md` and the PR-report section is Phase
13
- * C, so a control rendered today would promise behaviour that does not exist and `always`
14
- * would be indistinguishable from `auto` until the tracker-issue gating (D2) lands. The id and
15
- * the accepted wire values ship now so the descriptor is a pure addition later; a value set by
16
- * hand or by a deployment is already honoured.
11
+ * Contributed as a task-facing descriptor only now that the whole feature is user-visible: the
12
+ * verification phase runs in the harness (Phase B) and its verdict is published on the pull
13
+ * request and in the step panel (Phases C/D). Offering the control earlier would have promised
14
+ * behaviour that did not exist.
15
+ *
16
+ * `always` still resolves identically to `auto` the divergence arrives with the tracker-issue
17
+ * gating (the initiative's D2), which is why the two options say what each MEANS rather than
18
+ * pretending to differ today: `auto` is the honest default, and `always` is the value a caller
19
+ * pins so the behaviour does not change under it when that gating lands.
17
20
  */
18
21
  export declare const CODER_REPRODUCTION_PROOF_CONFIG_ID = "coder.reproductionProof";
19
22
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"configs.d.ts","sourceRoot":"","sources":["../../../src/agents/kinds/configs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAOtD,6EAA6E;AAC7E,eAAO,MAAM,+BAA+B,yBAAyB,CAAA;AAErE,gFAAgF;AAChF,eAAO,MAAM,6BAA6B,uBAAuB,CAAA;AAEjE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kCAAkC,4BAA4B,CAAA;AAoC3E;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,iBAAiB,GAC1B,qBAAqB,EAAE,CAIzB;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,EAC1B,QAAQ,EAAE,iBAAiB,GAC1B,qBAAqB,EAAE,CAQzB"}
1
+ {"version":3,"file":"configs.d.ts","sourceRoot":"","sources":["../../../src/agents/kinds/configs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAOtD,6EAA6E;AAC7E,eAAO,MAAM,+BAA+B,yBAAyB,CAAA;AAErE,gFAAgF;AAChF,eAAO,MAAM,6BAA6B,uBAAuB,CAAA;AAEjE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kCAAkC,4BAA4B,CAAA;AAkD3E;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,iBAAiB,GAC1B,qBAAqB,EAAE,CAIzB;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,EAC1B,QAAQ,EAAE,iBAAiB,GAC1B,qBAAqB,EAAE,CAQzB"}
@@ -10,12 +10,15 @@ export const CODER_FORK_DECISION_CONFIG_ID = 'coder.forkDecision';
10
10
  * The bugfix reproduction-proof tri-state (auto / always / off), read by the engine's
11
11
  * `resolveReproductionTriState`.
12
12
  *
13
- * Deliberately NOT yet contributed as a task-facing descriptor: the verification phase itself is
14
- * Phase B of `docs/initiatives/bugfix-reproduction-proof.md` and the PR-report section is Phase
15
- * C, so a control rendered today would promise behaviour that does not exist and `always`
16
- * would be indistinguishable from `auto` until the tracker-issue gating (D2) lands. The id and
17
- * the accepted wire values ship now so the descriptor is a pure addition later; a value set by
18
- * hand or by a deployment is already honoured.
13
+ * Contributed as a task-facing descriptor only now that the whole feature is user-visible: the
14
+ * verification phase runs in the harness (Phase B) and its verdict is published on the pull
15
+ * request and in the step panel (Phases C/D). Offering the control earlier would have promised
16
+ * behaviour that did not exist.
17
+ *
18
+ * `always` still resolves identically to `auto` the divergence arrives with the tracker-issue
19
+ * gating (the initiative's D2), which is why the two options say what each MEANS rather than
20
+ * pretending to differ today: `auto` is the honest default, and `always` is the value a caller
21
+ * pins so the behaviour does not change under it when that gating lands.
19
22
  */
20
23
  export const CODER_REPRODUCTION_PROOF_CONFIG_ID = 'coder.reproductionProof';
21
24
  const BUILTIN_CONFIG_CONTRIBUTIONS = {
@@ -33,6 +36,19 @@ const BUILTIN_CONFIG_CONTRIBUTIONS = {
33
36
  ],
34
37
  default: 'auto',
35
38
  },
39
+ {
40
+ id: CODER_REPRODUCTION_PROOF_CONFIG_ID,
41
+ agentKind: 'coder',
42
+ label: 'Reproduction proof',
43
+ description: 'Run the reproduction test the run declared against BOTH the pre-fix tree and the finished one, and publish the two results on the pull request: only failing-then-passing proves the fix. `auto` runs it whenever the pipeline produced a reproduction declaration; `always` pins that behaviour for this task; `off` never runs it. A failed proof never fails the run, it is reported as unproven.',
44
+ type: 'select',
45
+ options: [
46
+ { value: 'auto', label: 'Auto (whenever the run declared a reproduction)' },
47
+ { value: 'always', label: 'Always, when a reproduction is declared' },
48
+ { value: 'off', label: 'Off' },
49
+ ],
50
+ default: 'auto',
51
+ },
36
52
  ],
37
53
  playwright: [
38
54
  {
@@ -1 +1 @@
1
- {"version":3,"file":"configs.js","sourceRoot":"","sources":["../../../src/agents/kinds/configs.ts"],"names":[],"mappings":"AAGA,6EAA6E;AAC7E,gFAAgF;AAChF,kFAAkF;AAClF,yFAAyF;AAEzF,6EAA6E;AAC7E,MAAM,CAAC,MAAM,+BAA+B,GAAG,sBAAsB,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MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,KAAK,MAAM,UAAU,IAAI,sBAAsB,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC;YAChE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC;gBAAE,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,EAAE,UAAU,CAAC,CAAA;QACnE,CAAC;IACH,CAAC;IACD,OAAO,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,CAAA;AAC3B,CAAC"}
@@ -48,7 +48,7 @@ export const reproTestOutcome = defineStructuredOutput(v.object({
48
48
  * the harness runs against the pre-fix tree and the final tree to PROVE the reproduction —
49
49
  * the `outcome` field above has always been the model's own claim, and this is the field that
50
50
  * makes it checkable. Empty ⇒ no proof can be attempted (the engine records `absent`).
51
- * See `docs/initiatives/bugfix-reproduction-proof.md`.
51
+ * See `backend/docs/adr/0033-bugfix-reproduction-proof.md`.
52
52
  */
53
53
  command: v.fallback(v.optional(v.string()), undefined),
54
54
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cat-factory/agents",
3
- "version": "0.107.1",
3
+ "version": "0.108.0",
4
4
  "description": "Agent catalog, routing, prompts and fragment library for the Agent Architecture Board.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,14 +32,14 @@
32
32
  "handlebars": "^4.7.9",
33
33
  "p-map": "^7.0.6",
34
34
  "valibot": "^1.4.2",
35
- "@cat-factory/contracts": "0.223.0",
36
- "@cat-factory/kernel": "0.225.0",
37
- "@cat-factory/prompt-fragments": "0.15.48"
35
+ "@cat-factory/contracts": "0.224.0",
36
+ "@cat-factory/kernel": "0.226.0",
37
+ "@cat-factory/prompt-fragments": "0.15.49"
38
38
  },
39
39
  "devDependencies": {
40
40
  "typescript": "7.0.2",
41
41
  "vitest": "^4.1.10",
42
- "@cat-factory/caching": "0.14.1"
42
+ "@cat-factory/caching": "0.14.2"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "tsc -b tsconfig.build.json",