@cleocode/contracts 2026.6.15 → 2026.6.17

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.
@@ -9216,6 +9216,24 @@ export const OPERATIONS: OperationDef[] = [
9216
9216
  ] satisfies ParamDef[],
9217
9217
  },
9218
9218
 
9219
+ // ── selfimprove query: probe (T11988 — seeded-code-regression scenario) ────────
9220
+ // Pure read-only op that returns `{ probe: 'ok', version: probeVersion() }`.
9221
+ // The `probe-helper.ts` intentionally ships with `probeVersion()` returning `2`
9222
+ // (should be `1`) so the seeded-code-regression scenario replay diverges from its
9223
+ // golden (`version: 1`) and gives the fix-gen LLM stage a real, patchable bug.
9224
+ {
9225
+ gateway: 'query',
9226
+ domain: 'selfimprove',
9227
+ operation: 'probe',
9228
+ description:
9229
+ 'selfimprove.probe (query) — returns { probe: "ok", version: 1 } (health/version probe). Used by the seeded-code-regression scenario to validate the fix-gen pipeline (T11988).',
9230
+ tier: 2,
9231
+ idempotent: true,
9232
+ sessionRequired: false,
9233
+ requiredParams: [],
9234
+ params: [] satisfies ParamDef[],
9235
+ },
9236
+
9219
9237
  // ── selfimprove mutate: run (T11889 / T11889-D — the self-dogfooding loop) ──
9220
9238
  // Boots ONE sandbox → replays the named canned scenario → diffs result
9221
9239
  // envelopes vs the golden → on a regression emits ONE leased `selfimprove_dhq`
@@ -9863,4 +9881,31 @@ export const OPERATIONS: OperationDef[] = [
9863
9881
  },
9864
9882
  ] satisfies ParamDef[],
9865
9883
  },
9884
+ // T11995 — Janitor MVP: orphan process reaper + stale scope/lock/debris sweep
9885
+ {
9886
+ gateway: 'mutate',
9887
+ domain: 'admin',
9888
+ operation: 'janitor.run',
9889
+ description:
9890
+ 'admin.janitor.run (mutate) — run the janitor sweep: reap orphan processes, stop dead cleo-owned scopes, reclaim stale locks, prune tmp debris',
9891
+ tier: 1,
9892
+ idempotent: true,
9893
+ sessionRequired: false,
9894
+ requiredParams: [],
9895
+ params: [
9896
+ {
9897
+ name: 'dryRun',
9898
+ type: 'boolean',
9899
+ required: false,
9900
+ description: 'Report planned actions without mutating anything.',
9901
+ },
9902
+ {
9903
+ name: 'gracePeriodMs',
9904
+ type: 'number',
9905
+ required: false,
9906
+ description:
9907
+ 'Minimum age (ms) of an unregistered process before reap eligibility (default: 600000).',
9908
+ },
9909
+ ] satisfies ParamDef[],
9910
+ },
9866
9911
  ];