@kitman-sh/software-engineering 0.13.6 → 0.13.7

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/agents/planner.md CHANGED
@@ -10,10 +10,10 @@ You are a planner. You turn what someone asked for into a spec and tickets an im
10
10
 
11
11
  ## Tickets
12
12
 
13
- - Write vertical slices: each ticket lands on its own as one ChangeRequest and is verifiable on its own. Keep to the fewest tickets that do that.
13
+ - Before you write tickets, load `skills({ name: 'scope-tasks' })` from the Kitman MCP and scope each ticket as it says.
14
+ - Write vertical slices: each ticket lands on its own as one ChangeRequest and is verifiable on its own.
14
15
  - Give every ticket Acceptance Criteria that a reviewer can check against the change.
15
16
  - Give the plan an explicit out-of-scope list, so what was left out is a decision and not an omission.
16
- - Name each ticket's blockers by the tickets whose code it needs.
17
17
  - Check the documentation when an API detail affects the plan.
18
18
 
19
19
  ## Boundaries
package/dist/bundle.js CHANGED
@@ -19364,6 +19364,8 @@ var PlanTicket = Struct({
19364
19364
  title: String5,
19365
19365
  body: String5,
19366
19366
  acceptanceCriteria: ArraySchema(String5),
19367
+ promise: optional2(String5),
19368
+ outOfScope: optional2(ArraySchema(String5)),
19367
19369
  repoBindingId: optional2(String5),
19368
19370
  blockedBy: ArraySchema(String5),
19369
19371
  outcome: optional2(LoopOutcome)
@@ -24313,10 +24315,13 @@ var planText = (plan) => [
24313
24315
  ].join(`
24314
24316
 
24315
24317
  `);
24318
+ var outOfScopeText = ({ outOfScope = [] }) => outOfScope.length === 0 ? [] : ["Out of scope:", ...outOfScope.map((item) => `- ${item}`)];
24316
24319
  var ticketText = (ticket) => [
24317
24320
  `### ${ticket.key}: ${ticket.title}`,
24318
24321
  ticket.body,
24322
+ ...ticket.promise === undefined ? [] : [`Promise: ${ticket.promise}`],
24319
24323
  ...ticket.acceptanceCriteria.map((criterion) => `- [ ] ${criterion}`),
24324
+ ...outOfScopeText(ticket),
24320
24325
  ...ticket.blockedBy.length === 0 ? [] : [`Blocked by: ${ticket.blockedBy.join(", ")}`]
24321
24326
  ].join(`
24322
24327
 
@@ -24379,10 +24384,12 @@ var storePlan = (plan, suffix, revision, answered) => gen2(function* () {
24379
24384
  text: plan.tickets.map(ticketText).join(`
24380
24385
 
24381
24386
  `),
24382
- data: plan.tickets.map(({ repoBindingId, outcome, ...ticket }) => ({
24387
+ data: plan.tickets.map(({ repoBindingId, outcome, promise, outOfScope, ...ticket }) => ({
24383
24388
  ...ticket,
24384
24389
  acceptanceCriteria: [...ticket.acceptanceCriteria],
24385
24390
  blockedBy: [...ticket.blockedBy],
24391
+ ...promise === undefined ? undefined : { promise },
24392
+ ...outOfScope === undefined ? undefined : { outOfScope: [...outOfScope] },
24386
24393
  ...repoBindingId === undefined ? undefined : { repoBindingId },
24387
24394
  ...outcome === undefined ? undefined : { outcome }
24388
24395
  }))
@@ -24420,7 +24427,9 @@ var changelog = (before, after, words) => {
24420
24427
  var buildWords = (ticket) => [
24421
24428
  ticket.title,
24422
24429
  ticket.body,
24423
- ...ticket.acceptanceCriteria.length === 0 ? [] : ["Acceptance criteria:", ...ticket.acceptanceCriteria.map((criterion) => `- ${criterion}`)]
24430
+ ...ticket.promise === undefined ? [] : [`Promise: ${ticket.promise}`],
24431
+ ...ticket.acceptanceCriteria.length === 0 ? [] : ["Acceptance criteria:", ...ticket.acceptanceCriteria.map((criterion) => `- ${criterion}`)],
24432
+ ...outOfScopeText(ticket)
24424
24433
  ].join(`
24425
24434
 
24426
24435
  `);
@@ -25677,7 +25686,7 @@ var fallbacks = [{ harness: "pi" }];
25677
25686
  var reviewer = {
25678
25687
  harness: "pi",
25679
25688
  model: "openai-codex/gpt-6.2-sol",
25680
- fallbacks: [{ harness: "claude", model: "opus", effort: "high" }]
25689
+ fallbacks: [{ harness: "claude", model: "opus", effort: "medium" }]
25681
25690
  };
25682
25691
  var kitman_config_default = defineKit({
25683
25692
  loops: [
@@ -25711,6 +25720,8 @@ var kitman_config_default = defineKit({
25711
25720
  skills: ["code-review-and-quality", "security-and-hardening"]
25712
25721
  },
25713
25722
  planner: {
25723
+ harness: "claude",
25724
+ model: "claude-fable-5-2",
25714
25725
  effort: "high",
25715
25726
  fallbacks,
25716
25727
  skills: ["grilling", "domain-modeling"],
@@ -28686,6 +28697,8 @@ class RunnerCapabilityRpcs extends make31(make30("PutQuestion", {
28686
28697
  title: String5,
28687
28698
  body: String5,
28688
28699
  acceptanceCriteria: ArraySchema(String5),
28700
+ promise: optionalKey2(String5),
28701
+ outOfScope: optionalKey2(ArraySchema(String5)),
28689
28702
  blockedBy: ArraySchema(String5),
28690
28703
  outcome: optionalKey2(Literals(["feature", "bug", "refactor", "investigation", "docs", "migration", "performance"])),
28691
28704
  repoBindingId: optionalKey2(String5)
@@ -29228,6 +29241,8 @@ var rpcProgramPorts = (rpc, work) => {
29228
29241
  title: ticket.title,
29229
29242
  body: ticket.body,
29230
29243
  acceptanceCriteria: ticket.acceptanceCriteria,
29244
+ ...ticket.promise === undefined ? undefined : { promise: ticket.promise },
29245
+ ...ticket.outOfScope === undefined ? undefined : { outOfScope: ticket.outOfScope },
29231
29246
  blockedBy: ticket.blockedBy,
29232
29247
  ...ticket.outcome === undefined ? undefined : { outcome: ticket.outcome },
29233
29248
  ...ticket.repoBindingId === undefined ? undefined : { repoBindingId: ticket.repoBindingId }
@@ -31505,4 +31520,4 @@ var runKit = (config, identity, packages) => {
31505
31520
  runMain2(program.pipe(flatMap3((code) => sync2(() => process.exit(code)))));
31506
31521
  };
31507
31522
  // .kitman-build-entry.ts
31508
- runKit(kitman_config_default, { name: "@kitman-sh/software-engineering", version: "0.13.6" }, []);
31523
+ runKit(kitman_config_default, { name: "@kitman-sh/software-engineering", version: "0.13.7" }, []);
@@ -1172,6 +1172,29 @@
1172
1172
  "type": "string"
1173
1173
  }
1174
1174
  },
1175
+ "promise": {
1176
+ "anyOf": [
1177
+ {
1178
+ "type": "string"
1179
+ },
1180
+ {
1181
+ "type": "null"
1182
+ }
1183
+ ]
1184
+ },
1185
+ "outOfScope": {
1186
+ "anyOf": [
1187
+ {
1188
+ "type": "array",
1189
+ "items": {
1190
+ "type": "string"
1191
+ }
1192
+ },
1193
+ {
1194
+ "type": "null"
1195
+ }
1196
+ ]
1197
+ },
1175
1198
  "repoBindingId": {
1176
1199
  "anyOf": [
1177
1200
  {
@@ -2717,6 +2740,29 @@
2717
2740
  "type": "string"
2718
2741
  }
2719
2742
  },
2743
+ "promise": {
2744
+ "anyOf": [
2745
+ {
2746
+ "type": "string"
2747
+ },
2748
+ {
2749
+ "type": "null"
2750
+ }
2751
+ ]
2752
+ },
2753
+ "outOfScope": {
2754
+ "anyOf": [
2755
+ {
2756
+ "type": "array",
2757
+ "items": {
2758
+ "type": "string"
2759
+ }
2760
+ },
2761
+ {
2762
+ "type": "null"
2763
+ }
2764
+ ]
2765
+ },
2720
2766
  "repoBindingId": {
2721
2767
  "anyOf": [
2722
2768
  {
@@ -5485,7 +5531,7 @@
5485
5531
  {
5486
5532
  "harness": "claude",
5487
5533
  "model": "opus",
5488
- "effort": "high"
5534
+ "effort": "medium"
5489
5535
  }
5490
5536
  ]
5491
5537
  },
@@ -5503,7 +5549,9 @@
5503
5549
  ]
5504
5550
  },
5505
5551
  "planner": {
5506
- "instructions": "You are a planner. You turn what someone asked for into a spec and tickets an implementer can build without asking again.\n\n## Questions\n\n- When your Step runs grill-with-docs, interview the person with the Kitman MCP `ask` tool, never in your reply: walk the decisions one at a time, and ask only when the answer changes what gets built. A clear goal needs no interview and no approval of a summary.\n- Ask one question at a time, and give options when the choices are clear, each with its trade-off in a short `description`.\n- Recommend an answer with `recommended` and say why in `recommendationReason`. Keep the prompt to the context and the decision. Only a question that purely asks for information you cannot guess, such as a secret's name, sets `informationOnly` instead, saying why.\n- Respect decisions already made; do not ask for them again.\n- Push back when an approach has a concrete downside: name it, propose an alternative, then accept the decision.\n\n## Tickets\n\n- Write vertical slices: each ticket lands on its own as one ChangeRequest and is verifiable on its own. Keep to the fewest tickets that do that.\n- Give every ticket Acceptance Criteria that a reviewer can check against the change.\n- Give the plan an explicit out-of-scope list, so what was left out is a decision and not an omission.\n- Name each ticket's blockers by the tickets whose code it needs.\n- Check the documentation when an API detail affects the plan.\n\n## Boundaries\n\n- Write no code; write only ADR and glossary changes. Your Output is the plan, and Kitman stores it.\n- Never `git stash`: the stash stack is shared with every other worktree of the repository.\n- An implementer that asks you a question gets one answer. Never give an answer and a wider version of it elsewhere: a requirement it was not told about is one it will not build.\n\n## Output\n\nSubmit your Output with the Kitman MCP `submit_output` tool, in the shape the brief's Output schema gives.",
5552
+ "instructions": "You are a planner. You turn what someone asked for into a spec and tickets an implementer can build without asking again.\n\n## Questions\n\n- When your Step runs grill-with-docs, interview the person with the Kitman MCP `ask` tool, never in your reply: walk the decisions one at a time, and ask only when the answer changes what gets built. A clear goal needs no interview and no approval of a summary.\n- Ask one question at a time, and give options when the choices are clear, each with its trade-off in a short `description`.\n- Recommend an answer with `recommended` and say why in `recommendationReason`. Keep the prompt to the context and the decision. Only a question that purely asks for information you cannot guess, such as a secret's name, sets `informationOnly` instead, saying why.\n- Respect decisions already made; do not ask for them again.\n- Push back when an approach has a concrete downside: name it, propose an alternative, then accept the decision.\n\n## Tickets\n\n- Before you write tickets, load `skills({ name: 'scope-tasks' })` from the Kitman MCP and scope each ticket as it says.\n- Write vertical slices: each ticket lands on its own as one ChangeRequest and is verifiable on its own.\n- Give every ticket Acceptance Criteria that a reviewer can check against the change.\n- Give the plan an explicit out-of-scope list, so what was left out is a decision and not an omission.\n- Check the documentation when an API detail affects the plan.\n\n## Boundaries\n\n- Write no code; write only ADR and glossary changes. Your Output is the plan, and Kitman stores it.\n- Never `git stash`: the stash stack is shared with every other worktree of the repository.\n- An implementer that asks you a question gets one answer. Never give an answer and a wider version of it elsewhere: a requirement it was not told about is one it will not build.\n\n## Output\n\nSubmit your Output with the Kitman MCP `submit_output` tool, in the shape the brief's Output schema gives.",
5553
+ "harness": "claude",
5554
+ "model": "claude-fable-5-2",
5507
5555
  "effort": "high",
5508
5556
  "fallbacks": [
5509
5557
  {
@@ -5586,7 +5634,7 @@
5586
5634
  "carried": [
5587
5635
  {
5588
5636
  "name": "@kitman-sh/software-engineering",
5589
- "version": "0.13.6",
5637
+ "version": "0.13.7",
5590
5638
  "setup": "2a237548a69b0cd53ec3be7f687cfa8c2128335b3a655d34e185f2abce6a3c37",
5591
5639
  "loops": [
5592
5640
  "build",
package/kitman.config.ts CHANGED
@@ -26,12 +26,12 @@ const fallbacks = [{ harness: 'pi' }]
26
26
  /**
27
27
  * Reviews run on Pi, off the Claude subscription, with another model family checking Opus's work; pi's `--model` is a
28
28
  * fuzzy pattern with no alias for the latest Sol, so it is pinned and bumped here. When Codex is out of quota, Opus at
29
- * high effort reviews instead.
29
+ * medium effort reviews instead.
30
30
  */
31
31
  const reviewer = {
32
32
  harness: 'pi',
33
33
  model: 'openai-codex/gpt-6.2-sol',
34
- fallbacks: [{ harness: 'claude', model: 'opus', effort: 'high' as const }]
34
+ fallbacks: [{ harness: 'claude', model: 'opus', effort: 'medium' as const }]
35
35
  }
36
36
 
37
37
  /** Kitman's Kit for building software: its Loops, the Agents they run, and the skills those use. */
@@ -69,6 +69,8 @@ export default defineKit({
69
69
  skills: ['code-review-and-quality', 'security-and-hardening']
70
70
  },
71
71
  planner: {
72
+ harness: 'claude',
73
+ model: 'claude-fable-5-2',
72
74
  effort: 'high',
73
75
  fallbacks,
74
76
  skills: ['grilling', 'domain-modeling'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitman-sh/software-engineering",
3
- "version": "0.13.6",
3
+ "version": "0.13.7",
4
4
  "description": "Everything for building software: Loops, their Agents, the skills they use and the Ponytail plugin.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -17,12 +17,12 @@
17
17
  "tsconfig.json"
18
18
  ],
19
19
  "dependencies": {
20
- "@kitman-sh/sdk": "0.13.6",
20
+ "@kitman-sh/sdk": "0.13.7",
21
21
  "effect": "^4.1.2"
22
22
  },
23
23
  "kitman": {
24
24
  "bundle": "dist/bundle.js",
25
- "digest": "c8106e7dc49453ceeb6d0376da3266d2d2a82b3d21b1e1611c587a0f2160ce1e",
25
+ "digest": "4fb614facf6d2f22392e1be3142c31eee106ccf165a3c0fbfe9f71d41cd08766",
26
26
  "protocolVersion": 5,
27
27
  "declarations": "dist/declarations.json",
28
28
  "setup": {
package/src/plan.ts CHANGED
@@ -150,11 +150,16 @@ const planText = (plan: Plan) =>
150
150
  ...plan.tickets.map(ticketText)
151
151
  ].join('\n\n')
152
152
 
153
+ const outOfScopeText = ({ outOfScope = [] }: PlanTicket) =>
154
+ outOfScope.length === 0 ? [] : ['Out of scope:', ...outOfScope.map(item => `- ${item}`)]
155
+
153
156
  const ticketText = (ticket: PlanTicket) =>
154
157
  [
155
158
  `### ${ticket.key}: ${ticket.title}`,
156
159
  ticket.body,
160
+ ...(ticket.promise === undefined ? [] : [`Promise: ${ticket.promise}`]),
157
161
  ...ticket.acceptanceCriteria.map(criterion => `- [ ] ${criterion}`),
162
+ ...outOfScopeText(ticket),
158
163
  ...(ticket.blockedBy.length === 0 ? [] : [`Blocked by: ${ticket.blockedBy.join(', ')}`])
159
164
  ].join('\n\n')
160
165
 
@@ -255,10 +260,12 @@ const storePlan = (plan: Plan, suffix: string, revision: number, answered?: Answ
255
260
  kind: 'plan_tickets',
256
261
  title: `Tickets for ${plan.title}`,
257
262
  text: plan.tickets.map(ticketText).join('\n\n'),
258
- data: plan.tickets.map(({ repoBindingId, outcome, ...ticket }) => ({
263
+ data: plan.tickets.map(({ repoBindingId, outcome, promise, outOfScope, ...ticket }) => ({
259
264
  ...ticket,
260
265
  acceptanceCriteria: [...ticket.acceptanceCriteria],
261
266
  blockedBy: [...ticket.blockedBy],
267
+ ...(promise === undefined ? undefined : { promise }),
268
+ ...(outOfScope === undefined ? undefined : { outOfScope: [...outOfScope] }),
262
269
  ...(repoBindingId === undefined ? undefined : { repoBindingId }),
263
270
  ...(outcome === undefined ? undefined : { outcome })
264
271
  }))
@@ -306,9 +313,11 @@ const buildWords = (ticket: PlanTicket) =>
306
313
  [
307
314
  ticket.title,
308
315
  ticket.body,
316
+ ...(ticket.promise === undefined ? [] : [`Promise: ${ticket.promise}`]),
309
317
  ...(ticket.acceptanceCriteria.length === 0
310
318
  ? []
311
- : ['Acceptance criteria:', ...ticket.acceptanceCriteria.map(criterion => `- ${criterion}`)])
319
+ : ['Acceptance criteria:', ...ticket.acceptanceCriteria.map(criterion => `- ${criterion}`)]),
320
+ ...outOfScopeText(ticket)
312
321
  ].join('\n\n')
313
322
 
314
323
  const settled = (ticket: PlanTicket, result: Omit<TicketResult, 'key' | 'title'>): TicketResult => ({