@kody-ade/kody-engine 0.4.330 → 0.4.332

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/dist/bin/kody.js CHANGED
@@ -15,7 +15,7 @@ var init_package = __esm({
15
15
  "package.json"() {
16
16
  package_default = {
17
17
  name: "@kody-ade/kody-engine",
18
- version: "0.4.330",
18
+ version: "0.4.332",
19
19
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
20
20
  license: "MIT",
21
21
  type: "module",
@@ -15340,7 +15340,14 @@ function parseAgentFactoryBundle(raw) {
15340
15340
  content: readJsonString(file.content, `files[${index}].content`)
15341
15341
  };
15342
15342
  });
15343
- return { title, summary, files };
15343
+ return {
15344
+ title,
15345
+ summary,
15346
+ files,
15347
+ model: value.model,
15348
+ models: value.models,
15349
+ modelCreatorContractsUsed: value.modelCreatorContractsUsed
15350
+ };
15344
15351
  }
15345
15352
  function buildAgentFactoryBranchName(issueNumber, title, now = Date.now()) {
15346
15353
  const slug2 = title.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 48).replace(/-+$/g, "");
@@ -18231,6 +18238,255 @@ var init_syncFlow = __esm({
18231
18238
  }
18232
18239
  });
18233
18240
 
18241
+ // src/scripts/validateAgentFactoryBundle.ts
18242
+ function validateModelBundle(bundle, producer) {
18243
+ const failures = [];
18244
+ const expectedKind = CREATOR_KIND[producer];
18245
+ if (producer === FACTORY_PRODUCER) {
18246
+ const contracts = stringArray5(bundle.modelCreatorContractsUsed);
18247
+ for (const contract of CREATOR_CONTRACTS) {
18248
+ if (!contracts.includes(contract)) failures.push(`modelCreatorContractsUsed missing ${contract}`);
18249
+ }
18250
+ if (!Array.isArray(bundle.models) || bundle.models.length === 0) {
18251
+ failures.push("agent-factory bundle must include non-empty models array");
18252
+ return failures;
18253
+ }
18254
+ for (const [index, model] of bundle.models.entries()) {
18255
+ validateOneModel(model, bundle.files, `models[${index}]`, false, failures);
18256
+ }
18257
+ validateFactoryAssembly(bundle.models, failures);
18258
+ return failures;
18259
+ }
18260
+ validateOneModel(bundle.model, bundle.files, "model", true, failures, expectedKind, producer);
18261
+ return failures;
18262
+ }
18263
+ function validateOneModel(rawModel, files, label, strictSingleModel, failures, expectedKind, producer) {
18264
+ if (!rawModel || typeof rawModel !== "object" || Array.isArray(rawModel)) {
18265
+ failures.push(`${label} must be an object`);
18266
+ return;
18267
+ }
18268
+ const model = rawModel;
18269
+ const kind = stringField6(model.kind);
18270
+ if (!isModelKind(kind)) failures.push(`${label}.kind must be agent, capability, goal, agentLoop, or workflow`);
18271
+ if (expectedKind && kind !== expectedKind && producer)
18272
+ failures.push(`${producer} must output model.kind ${expectedKind}`);
18273
+ const slug2 = stringField6(model.slug);
18274
+ if (!isSlug2(slug2)) failures.push(`${label}.slug must be a lowercase slug`);
18275
+ if (isModelKind(kind)) {
18276
+ const docsUsed = stringArray5(model.docsUsed);
18277
+ for (const doc of REQUIRED_DOCS[kind]) {
18278
+ if (!docsUsed.includes(doc)) failures.push(`${label} docsUsed missing ${doc}`);
18279
+ }
18280
+ validateFilesForKind(kind, slug2, files, strictSingleModel, failures);
18281
+ validateModelShape(kind, model, failures);
18282
+ }
18283
+ }
18284
+ function validateFilesForKind(kind, slug2, files, strictSingleModel, failures) {
18285
+ const paths = files.map((file) => normalizeBundlePath(file.path));
18286
+ if (paths.some((filePath) => filePath === "executables" || filePath.startsWith("executables/"))) {
18287
+ failures.push("files must not use obsolete executables storage");
18288
+ }
18289
+ if (kind === "agent") {
18290
+ requirePath(paths, `agents/${slug2}.md`, "agent file", failures);
18291
+ if (strictSingleModel) rejectOtherRoots(paths, ["agents/"], "agent", failures);
18292
+ }
18293
+ if (kind === "capability") {
18294
+ requirePath(paths, `capabilities/${slug2}/profile.json`, "capability profile", failures);
18295
+ requirePath(paths, `capabilities/${slug2}/capability.md`, "capability body", failures);
18296
+ if (strictSingleModel) rejectOtherRoots(paths, [`capabilities/${slug2}/`], "capability", failures);
18297
+ const profile = parseJsonFile(files, `capabilities/${slug2}/profile.json`, failures);
18298
+ if (profile) {
18299
+ const profileName = stringField6(profile.name);
18300
+ if (profileName && profileName !== slug2) failures.push("capability profile name must match model.slug");
18301
+ if (profile.agent !== void 0)
18302
+ failures.push("capability profile must not set agent; agent wiring belongs outside capability creation");
18303
+ if (!["observe", "act", "verify"].includes(stringField6(profile.capabilityKind))) {
18304
+ failures.push("capability profile must declare capabilityKind observe, act, or verify");
18305
+ }
18306
+ }
18307
+ }
18308
+ if (kind === "goal") {
18309
+ requirePath(paths, `goals/templates/${slug2}/state.json`, "goal template state", failures);
18310
+ if (strictSingleModel) rejectOtherRoots(paths, [`goals/templates/${slug2}/`], "goal", failures);
18311
+ }
18312
+ if (kind === "agentLoop") {
18313
+ if (!paths.some((filePath) => filePath.endsWith("/state.json")))
18314
+ failures.push("agentLoop must produce a state.json file");
18315
+ if (strictSingleModel) rejectOtherRoots(paths, ["goals/templates/", "loops/"], "agentLoop", failures);
18316
+ }
18317
+ if (kind === "workflow") {
18318
+ requirePath(paths, `capabilities/${slug2}/profile.json`, "workflow capability profile", failures);
18319
+ const profile = parseJsonFile(files, `capabilities/${slug2}/profile.json`, failures);
18320
+ if (profile && (!profile.workflow || typeof profile.workflow !== "object")) {
18321
+ failures.push("workflow profile must include workflow object");
18322
+ }
18323
+ }
18324
+ }
18325
+ function validateFactoryAssembly(models, failures) {
18326
+ const available = /* @__PURE__ */ new Map();
18327
+ for (const model of models) {
18328
+ if (!model || typeof model !== "object" || Array.isArray(model)) continue;
18329
+ const input = model;
18330
+ const kind = stringField6(input.kind);
18331
+ const slug2 = stringField6(input.slug);
18332
+ if (isModelKind(kind) && isSlug2(slug2)) available.set(`${kind}:${slug2}`, kind);
18333
+ }
18334
+ for (const model of models) {
18335
+ if (!model || typeof model !== "object" || Array.isArray(model)) continue;
18336
+ const input = model;
18337
+ const kind = stringField6(input.kind);
18338
+ if (kind === "goal") {
18339
+ for (const capability of stringArray5(input.capabilities)) {
18340
+ if (!available.has(`capability:${capability}`)) {
18341
+ failures.push(`goal ${stringField6(input.slug)} references missing capability ${capability}`);
18342
+ }
18343
+ }
18344
+ }
18345
+ if (kind === "workflow") {
18346
+ for (const step of arrayObjects(input.steps)) {
18347
+ const capability = stringField6(step.capability);
18348
+ if (capability && !available.has(`capability:${capability}`)) {
18349
+ failures.push(`workflow ${stringField6(input.slug)} references missing capability ${capability}`);
18350
+ }
18351
+ }
18352
+ }
18353
+ if (kind === "agentLoop") {
18354
+ const wakeTarget = input.wakeTarget;
18355
+ if (wakeTarget && typeof wakeTarget === "object" && !Array.isArray(wakeTarget)) {
18356
+ const target = wakeTarget;
18357
+ const type = stringField6(target.type);
18358
+ const slug2 = stringField6(target.slug);
18359
+ const modelKind = type === "loop" ? "agentLoop" : type;
18360
+ if ((modelKind === "goal" || modelKind === "workflow" || modelKind === "capability") && !available.has(`${modelKind}:${slug2}`)) {
18361
+ failures.push(`agentLoop ${stringField6(input.slug)} references missing ${type} ${slug2}`);
18362
+ }
18363
+ }
18364
+ }
18365
+ }
18366
+ }
18367
+ function validateModelShape(kind, model, failures) {
18368
+ if (kind === "agent") {
18369
+ requireStringArrayIncludes(model.owns, "identity", "agent owns", failures);
18370
+ requireStringArrayIncludes(model.doesNotOwn, "tasks", "agent doesNotOwn", failures);
18371
+ }
18372
+ if (kind === "capability") {
18373
+ if (!["observe", "act", "verify"].includes(stringField6(model.capabilityKind))) {
18374
+ failures.push("capability model must declare capabilityKind observe, act, or verify");
18375
+ }
18376
+ if (!stringField6(model.ability)) failures.push("capability model must declare ability");
18377
+ for (const field of ["inputs", "outputs", "allowedActions", "forbiddenActions"]) {
18378
+ if (!Array.isArray(model[field])) failures.push(`capability model ${field} must be an array`);
18379
+ }
18380
+ requireStringArrayIncludes(model.doesNotOwn, "agent identity", "capability doesNotOwn", failures);
18381
+ requireStringArrayIncludes(model.doesNotOwn, "goal progress", "capability doesNotOwn", failures);
18382
+ }
18383
+ if (kind === "goal") {
18384
+ if (!stringField6(model.outcome)) failures.push("goal model must declare outcome");
18385
+ if (!Array.isArray(model.evidence) || model.evidence.length === 0)
18386
+ failures.push("goal model evidence must be non-empty");
18387
+ if (!Array.isArray(model.capabilities) || model.capabilities.length === 0) {
18388
+ failures.push("goal model capabilities must be non-empty");
18389
+ }
18390
+ }
18391
+ if (kind === "agentLoop") {
18392
+ if (!stringField6(model.cadence)) failures.push("agentLoop model must declare cadence");
18393
+ if (!model.wakeTarget || typeof model.wakeTarget !== "object" || Array.isArray(model.wakeTarget)) {
18394
+ failures.push("agentLoop model must declare wakeTarget object");
18395
+ }
18396
+ }
18397
+ if (kind === "workflow") {
18398
+ if (!Array.isArray(model.steps) || model.steps.length === 0) failures.push("workflow model steps must be non-empty");
18399
+ }
18400
+ }
18401
+ function parseJsonFile(files, wantedPath, failures) {
18402
+ const file = files.find((item) => normalizeBundlePath(item.path) === wantedPath);
18403
+ if (!file) return null;
18404
+ try {
18405
+ const parsed = JSON.parse(file.content);
18406
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
18407
+ failures.push(`${wantedPath} must contain a JSON object`);
18408
+ return null;
18409
+ }
18410
+ return parsed;
18411
+ } catch (err) {
18412
+ failures.push(`${wantedPath} must contain valid JSON: ${err instanceof Error ? err.message : String(err)}`);
18413
+ return null;
18414
+ }
18415
+ }
18416
+ function rejectOtherRoots(paths, allowedPrefixes, kind, failures) {
18417
+ for (const filePath of paths) {
18418
+ if (!allowedPrefixes.some((prefix) => filePath.startsWith(prefix))) {
18419
+ failures.push(`${kind} bundle contains out-of-bound file ${filePath}`);
18420
+ }
18421
+ }
18422
+ }
18423
+ function requirePath(paths, wantedPath, label, failures) {
18424
+ if (!paths.includes(wantedPath)) failures.push(`missing ${label}: ${wantedPath}`);
18425
+ }
18426
+ function normalizeBundlePath(filePath) {
18427
+ return filePath.replace(/^\.kody\/?/, "").replace(/^\/+/, "");
18428
+ }
18429
+ function stringField6(value) {
18430
+ return typeof value === "string" ? value.trim() : "";
18431
+ }
18432
+ function stringArray5(value) {
18433
+ if (!Array.isArray(value)) return [];
18434
+ return value.filter((item) => typeof item === "string").map((item) => item.trim()).filter(Boolean);
18435
+ }
18436
+ function arrayObjects(value) {
18437
+ if (!Array.isArray(value)) return [];
18438
+ return value.filter(
18439
+ (item) => Boolean(item) && typeof item === "object" && !Array.isArray(item)
18440
+ );
18441
+ }
18442
+ function requireStringArrayIncludes(value, expected, label, failures) {
18443
+ if (!stringArray5(value).includes(expected)) failures.push(`${label} must include ${expected}`);
18444
+ }
18445
+ function isSlug2(value) {
18446
+ return /^[a-z][a-z0-9-]{0,63}$/.test(value);
18447
+ }
18448
+ function isModelKind(value) {
18449
+ return value === "agent" || value === "capability" || value === "goal" || value === "agentLoop" || value === "workflow";
18450
+ }
18451
+ var CREATOR_CONTRACTS, FACTORY_PRODUCER, REQUIRED_DOCS, CREATOR_KIND, validateAgentFactoryBundle;
18452
+ var init_validateAgentFactoryBundle = __esm({
18453
+ "src/scripts/validateAgentFactoryBundle.ts"() {
18454
+ "use strict";
18455
+ init_openAgentFactoryStatePr();
18456
+ CREATOR_CONTRACTS = [
18457
+ "agent-creator",
18458
+ "goal-creator",
18459
+ "loop-creator",
18460
+ "workflow-creator",
18461
+ "capability-creator"
18462
+ ];
18463
+ FACTORY_PRODUCER = "agent-factory";
18464
+ REQUIRED_DOCS = {
18465
+ agent: ["docs/agents.md"],
18466
+ capability: ["docs/capabilities.md", "docs/capability-kind-map.md", "docs/executables.md"],
18467
+ goal: ["docs/goals.md", "docs/jobs-model.md", "docs/capabilities.md"],
18468
+ agentLoop: ["docs/jobs-model.md", "docs/engine-company.md", "docs/ledgers.md"],
18469
+ workflow: ["docs/jobs-model.md", "docs/capabilities.md"]
18470
+ };
18471
+ CREATOR_KIND = {
18472
+ "agent-creator": "agent",
18473
+ "capability-creator": "capability",
18474
+ "goal-creator": "goal",
18475
+ "loop-creator": "agentLoop",
18476
+ "workflow-creator": "workflow"
18477
+ };
18478
+ validateAgentFactoryBundle = async (ctx, profile) => {
18479
+ if (ctx.data.agentDone !== true) return;
18480
+ const raw = String(ctx.data.prSummary ?? "");
18481
+ const bundle = parseAgentFactoryBundle(raw);
18482
+ const failures = validateModelBundle(bundle, profile.name);
18483
+ if (failures.length > 0) {
18484
+ throw new Error(`validateAgentFactoryBundle: ${failures.join("; ")}`);
18485
+ }
18486
+ };
18487
+ }
18488
+ });
18489
+
18234
18490
  // src/scripts/verify.ts
18235
18491
  var verify;
18236
18492
  var init_verify2 = __esm({
@@ -19004,6 +19260,7 @@ var init_scripts = __esm({
19004
19260
  init_stageMergeConflicts();
19005
19261
  init_startFlow();
19006
19262
  init_syncFlow();
19263
+ init_validateAgentFactoryBundle();
19007
19264
  init_verify2();
19008
19265
  init_verifyReproFails();
19009
19266
  init_verifyWithRetry();
@@ -19068,6 +19325,7 @@ var init_scripts = __esm({
19068
19325
  parseIssueStateFromAgentResult,
19069
19326
  parseJobStateFromAgentResult,
19070
19327
  parseReproOutput,
19328
+ validateAgentFactoryBundle,
19071
19329
  writeIssueStateComment,
19072
19330
  writeJobStateFile,
19073
19331
  appendCompanyActivity,
@@ -0,0 +1,13 @@
1
+ # Agent Creator
2
+
3
+ ## Purpose
4
+
5
+ Create one Kody Agent model from a focused request.
6
+
7
+ ## Contract
8
+
9
+ The input is a request for one agent identity. The creator must use `docs/agents.md`, return one review-ready agent file, and keep tasks, schedules, tools, outputs, workflows, goals, and loops out of the agent.
10
+
11
+ ## Boundary
12
+
13
+ This capability creates the who. It does not create what, when, or how.
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "agent-creator",
3
+ "action": "agent-creator",
4
+ "implementation": "agent-creator",
5
+ "capabilityKind": "act",
6
+ "describe": "Create one Kody agent identity model from a focused request."
7
+ }
@@ -0,0 +1,13 @@
1
+ # Capability Creator
2
+
3
+ ## Purpose
4
+
5
+ Create one complete Kody Capability model from a focused ability contract.
6
+
7
+ ## Contract
8
+
9
+ The input is the ability to provide, its kind, interface, and constraints. The creator must use `docs/capabilities.md`, `docs/capability-kind-map.md`, and `docs/executables.md`; create one `observe`, `act`, or `verify` capability; and return review-ready files under `capabilities/<slug>/`.
10
+
11
+ ## Boundary
12
+
13
+ This capability creates the reusable how. It does not decide who runs it, which workflow calls it, which goal consumes it, or which loop wakes it.
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "capability-creator",
3
+ "action": "capability-creator",
4
+ "implementation": "capability-creator",
5
+ "capabilityKind": "act",
6
+ "describe": "Create one complete single-responsibility Kody capability from an ability contract."
7
+ }
@@ -0,0 +1,13 @@
1
+ # Goal Creator
2
+
3
+ ## Purpose
4
+
5
+ Create one Kody Goal model from a focused outcome request.
6
+
7
+ ## Contract
8
+
9
+ The input is one desired durable outcome. The creator must use `docs/goals.md`, `docs/jobs-model.md`, and `docs/capabilities.md`; define evidence, allowed capabilities, route, facts, and blockers; and keep implementation and cadence details out of the goal.
10
+
11
+ ## Boundary
12
+
13
+ This capability creates the what. It does not create who, when, or implementation how.
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "goal-creator",
3
+ "action": "goal-creator",
4
+ "implementation": "goal-creator",
5
+ "capabilityKind": "act",
6
+ "describe": "Create one Kody goal outcome model from a focused request."
7
+ }
@@ -0,0 +1,13 @@
1
+ # Loop Creator
2
+
3
+ ## Purpose
4
+
5
+ Create one Kody AgentLoop model from a focused wakeup request.
6
+
7
+ ## Contract
8
+
9
+ The input is one cadence and wakeup need. The creator must use `docs/jobs-model.md`, `docs/engine-company.md`, and `docs/ledgers.md`; define cadence, target, and operational ledger needs; and keep business completion out of the loop.
10
+
11
+ ## Boundary
12
+
13
+ This capability creates the when. It does not create who, what, or implementation how.
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "loop-creator",
3
+ "action": "loop-creator",
4
+ "implementation": "loop-creator",
5
+ "capabilityKind": "act",
6
+ "describe": "Create one Kody agent loop wakeup model from a focused request."
7
+ }
@@ -0,0 +1,13 @@
1
+ # Workflow Creator
2
+
3
+ ## Purpose
4
+
5
+ Create one Kody Workflow model from a focused ordered-run request.
6
+
7
+ ## Contract
8
+
9
+ The input is one need for ordered capability steps in a single run. The creator must use `docs/jobs-model.md` and `docs/capabilities.md`; define step order and reasons; and keep long-term progress, cadence, completion, and implementation internals out of the workflow.
10
+
11
+ ## Boundary
12
+
13
+ This capability creates composed how for one run. It does not create who, durable what, or when.
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "workflow-creator",
3
+ "action": "workflow-creator",
4
+ "implementation": "workflow-creator",
5
+ "capabilityKind": "act",
6
+ "describe": "Create one Kody workflow ordered-run model from a focused request."
7
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "agent-creator",
3
+ "action": "agent-creator",
4
+ "describe": "Create one Kody agent identity model from a focused request.",
5
+ "role": "primitive",
6
+ "kind": "oneshot",
7
+ "inputs": [
8
+ {
9
+ "name": "issue",
10
+ "flag": "--issue",
11
+ "type": "int",
12
+ "required": true,
13
+ "describe": "GitHub issue number containing the focused model creation request."
14
+ }
15
+ ],
16
+ "claudeCode": {
17
+ "model": "inherit",
18
+ "permissionMode": "default",
19
+ "maxTurns": null,
20
+ "maxTurnTimeoutSec": 1200,
21
+ "systemPromptAppend": null,
22
+ "cacheable": true,
23
+ "enableVerifyTool": false,
24
+ "tools": [
25
+ "Read",
26
+ "Grep",
27
+ "Glob"
28
+ ],
29
+ "hooks": [],
30
+ "skills": [],
31
+ "commands": [],
32
+ "subagents": [],
33
+ "plugins": [],
34
+ "mcpServers": []
35
+ },
36
+ "cliTools": [],
37
+ "scripts": {
38
+ "preflight": [
39
+ {
40
+ "script": "loadIssueContext"
41
+ },
42
+ {
43
+ "script": "composePrompt"
44
+ }
45
+ ],
46
+ "postflight": [
47
+ {
48
+ "script": "parseAgentResult"
49
+ },
50
+ {
51
+ "script": "validateAgentFactoryBundle"
52
+ },
53
+ {
54
+ "script": "openAgentFactoryStatePr"
55
+ }
56
+ ]
57
+ },
58
+ "output": {
59
+ "actionTypes": [
60
+ "AGENT_CREATOR_COMPLETED",
61
+ "AGENT_CREATOR_FAILED",
62
+ "AGENT_NOT_RUN"
63
+ ]
64
+ }
65
+ }
@@ -0,0 +1,86 @@
1
+ You are Kody's agent-creator. Create exactly one Agent model.
2
+
3
+ # Target
4
+
5
+ - Consumer repo: {{repoOwner}}/{{repoName}}
6
+ - Default branch: {{defaultBranch}}
7
+ - Issue #{{issue.number}}: {{issue.title}}
8
+
9
+ # Authoritative model docs
10
+
11
+ Read and follow these docs before producing the model:
12
+
13
+ - `docs/agents.md`
14
+
15
+ These docs are contract references. If the consumer repo does not contain them or `Read` fails, continue from the model boundary below and still list the referenced doc paths in `model.docsUsed`.
16
+
17
+ # Operator Request
18
+
19
+ {{issue.body}}
20
+
21
+ # Recent comments (most recent first, truncated)
22
+
23
+ {{issue.commentsFormatted}}
24
+
25
+ # Model Boundary
26
+
27
+ An Agent is the agency's **who**.
28
+
29
+ Own:
30
+
31
+ - identity
32
+ - judgment style
33
+ - priorities
34
+ - hard behavioral boundaries
35
+
36
+ Do not own:
37
+
38
+ - tasks
39
+ - schedules
40
+ - tools
41
+ - capability inputs or outputs
42
+ - workflow steps
43
+ - goal evidence
44
+ - loop cadence
45
+
46
+ # Task
47
+
48
+ Create the smallest review-ready Agent model that satisfies the request.
49
+
50
+ Do not call Bash, Write, Edit, mkdir, cat, tee, printf, python, node, git, gh, or any external command. Your only mutation channel is `PR_SUMMARY.files`; the deterministic postflight opens the state-repo review PR from that JSON.
51
+
52
+ Use current storage names in file paths. Put the generated agent at:
53
+
54
+ `agents/<slug>.md`
55
+
56
+ Do not create capability, workflow, goal, loop, or implementation files.
57
+
58
+ # Final Output Contract
59
+
60
+ If the request is too ambiguous to produce one review-ready Agent model, output one line:
61
+
62
+ FAILED: <specific missing decision>
63
+
64
+ Otherwise output exactly:
65
+
66
+ DONE
67
+ PR_SUMMARY:
68
+ {
69
+ "title": "short title",
70
+ "summary": "human explanation and assumptions",
71
+ "model": {
72
+ "kind": "agent",
73
+ "slug": "agent-slug",
74
+ "docsUsed": ["docs/agents.md"],
75
+ "owns": ["identity", "judgment", "boundaries"],
76
+ "doesNotOwn": ["tasks", "schedules", "tools", "outputs"]
77
+ },
78
+ "files": [
79
+ {
80
+ "path": "agents/example.md",
81
+ "content": "# Example\n\n..."
82
+ }
83
+ ]
84
+ }
85
+
86
+ The `PR_SUMMARY` value must be valid JSON. Do not wrap it in a markdown code fence.
@@ -44,12 +44,15 @@
44
44
  }
45
45
  ],
46
46
  "postflight": [
47
- {
48
- "script": "parseAgentResult"
49
- },
50
- {
51
- "script": "openAgentFactoryStatePr"
52
- }
47
+ {
48
+ "script": "parseAgentResult"
49
+ },
50
+ {
51
+ "script": "validateAgentFactoryBundle"
52
+ },
53
+ {
54
+ "script": "openAgentFactoryStatePr"
55
+ }
53
56
  ]
54
57
  },
55
58
  "output": {
@@ -20,6 +20,26 @@ You are Kody's agent factory. Convert the operator request into review-ready Kod
20
20
 
21
21
  Design the smallest Kody model structure that satisfies the request. You may create or assemble simple capability implementation profiles, capabilities, loops, goals, and agents.
22
22
 
23
+ Treat each generated model as if it were produced by its model-specific creator. Do not let the factory invent mixed-responsibility files.
24
+
25
+ The docs named in the creator contracts are contract references. If the consumer repo does not contain them or `Read` fails, continue from the table below and still list the referenced doc paths in each model's `docsUsed`.
26
+
27
+ ## Model creator contracts
28
+
29
+ Use these contracts when deciding whether a file belongs in the bundle:
30
+
31
+ | Model | Creator contract | Authoritative docs | Owns | Must not own |
32
+ | --- | --- | --- | --- | --- |
33
+ | Agent | `agent-creator` | `docs/agents.md` | identity, judgment, boundaries | tasks, schedules, tools, outputs, workflows, goals, loops |
34
+ | Goal | `goal-creator` | `docs/goals.md`, `docs/jobs-model.md`, `docs/capabilities.md` | outcome, evidence, allowed capabilities, route, facts, blockers | capability implementation, agent identity, loop cadence |
35
+ | Loop | `loop-creator` | `docs/jobs-model.md`, `docs/engine-company.md`, `docs/ledgers.md` | cadence, wakeup policy, target, operational cursor/dedup | business completion, goal evidence, workflow order, implementation |
36
+ | Workflow | `workflow-creator` | `docs/jobs-model.md`, `docs/capabilities.md` | ordered capability steps for one run | long-term progress, schedule, goal completion, agent identity, implementation internals |
37
+ | Capability | `capability-creator` | `docs/capabilities.md`, `docs/capability-kind-map.md`, `docs/executables.md` | one reusable `observe`, `act`, or `verify` ability, interface, constraints, implementation | requester identity, caller workflow, parent goal progress, loop cadence, agent identity |
38
+
39
+ If one generated model needs information from another, reference the other model by slug. Do not copy that model's responsibility into the file.
40
+
41
+ Capability files must be shaped by ability, kind, interface, and constraints. Do not include fields or prose that make the capability depend on who asked for it, which workflow calls it, which goal consumes it, which loop wakes it, or which agent may run it.
42
+
23
43
  Use the current Kody vocabulary:
24
44
 
25
45
  - intent: why the agency should care
@@ -58,6 +78,27 @@ PR_SUMMARY:
58
78
  {
59
79
  "title": "short title",
60
80
  "summary": "human explanation and assumptions",
81
+ "modelCreatorContractsUsed": [
82
+ "agent-creator",
83
+ "goal-creator",
84
+ "loop-creator",
85
+ "workflow-creator",
86
+ "capability-creator"
87
+ ],
88
+ "models": [
89
+ {
90
+ "kind": "capability",
91
+ "slug": "example",
92
+ "capabilityKind": "act",
93
+ "ability": "one reusable ability",
94
+ "docsUsed": ["docs/capabilities.md", "docs/capability-kind-map.md", "docs/executables.md"],
95
+ "inputs": [],
96
+ "outputs": [],
97
+ "allowedActions": [],
98
+ "forbiddenActions": [],
99
+ "doesNotOwn": ["agent identity", "goal progress", "loop cadence", "workflow order"]
100
+ }
101
+ ],
61
102
  "files": [
62
103
  {
63
104
  "path": "capabilities/example/profile.json",
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "capability-creator",
3
+ "action": "capability-creator",
4
+ "describe": "Create one complete single-responsibility Kody capability from an ability contract.",
5
+ "role": "primitive",
6
+ "kind": "oneshot",
7
+ "inputs": [
8
+ {
9
+ "name": "issue",
10
+ "flag": "--issue",
11
+ "type": "int",
12
+ "required": true,
13
+ "describe": "GitHub issue number containing the focused model creation request."
14
+ }
15
+ ],
16
+ "claudeCode": {
17
+ "model": "inherit",
18
+ "permissionMode": "default",
19
+ "maxTurns": null,
20
+ "maxTurnTimeoutSec": 1200,
21
+ "systemPromptAppend": null,
22
+ "cacheable": true,
23
+ "enableVerifyTool": false,
24
+ "tools": [
25
+ "Read",
26
+ "Grep",
27
+ "Glob"
28
+ ],
29
+ "hooks": [],
30
+ "skills": [],
31
+ "commands": [],
32
+ "subagents": [],
33
+ "plugins": [],
34
+ "mcpServers": []
35
+ },
36
+ "cliTools": [],
37
+ "scripts": {
38
+ "preflight": [
39
+ {
40
+ "script": "loadIssueContext"
41
+ },
42
+ {
43
+ "script": "composePrompt"
44
+ }
45
+ ],
46
+ "postflight": [
47
+ {
48
+ "script": "parseAgentResult"
49
+ },
50
+ {
51
+ "script": "validateAgentFactoryBundle"
52
+ },
53
+ {
54
+ "script": "openAgentFactoryStatePr"
55
+ }
56
+ ]
57
+ },
58
+ "output": {
59
+ "actionTypes": [
60
+ "CAPABILITY_CREATOR_COMPLETED",
61
+ "CAPABILITY_CREATOR_FAILED",
62
+ "AGENT_NOT_RUN"
63
+ ]
64
+ }
65
+ }
@@ -0,0 +1,105 @@
1
+ You are Kody's capability-creator. Create exactly one complete Capability model.
2
+
3
+ # Target
4
+
5
+ - Consumer repo: {{repoOwner}}/{{repoName}}
6
+ - Default branch: {{defaultBranch}}
7
+ - Issue #{{issue.number}}: {{issue.title}}
8
+
9
+ # Authoritative model docs
10
+
11
+ Read and follow these docs before producing the model:
12
+
13
+ - `docs/capabilities.md`
14
+ - `docs/capability-kind-map.md`
15
+ - `docs/executables.md`
16
+
17
+ These docs are contract references. If the consumer repo does not contain them or `Read` fails, continue from the model boundary below and still list the referenced doc paths in `model.docsUsed`.
18
+
19
+ # Operator Request
20
+
21
+ {{issue.body}}
22
+
23
+ # Recent comments (most recent first, truncated)
24
+
25
+ {{issue.commentsFormatted}}
26
+
27
+ # Model Boundary
28
+
29
+ A Capability is the agency's reusable **how**.
30
+
31
+ The capability is defined by the ability contract only:
32
+
33
+ - ability
34
+ - exactly one `capabilityKind`: `observe`, `act`, or `verify`
35
+ - input interface
36
+ - output/result interface
37
+ - allowed actions
38
+ - forbidden actions
39
+ - implementation profile and prompt/scripts when needed
40
+
41
+ Do not shape the capability around:
42
+
43
+ - who requested it
44
+ - which workflow will call it
45
+ - which goal may consume its evidence
46
+ - which loop may wake it
47
+ - which agent may run it
48
+
49
+ Those are wiring decisions outside this model.
50
+
51
+ # Task
52
+
53
+ Create the smallest review-ready Capability model that satisfies the requested ability.
54
+
55
+ Do not call Bash, Write, Edit, mkdir, cat, tee, printf, python, node, git, gh, or any external command. Your only mutation channel is `PR_SUMMARY.files`; the deterministic postflight opens the state-repo review PR from that JSON.
56
+
57
+ Use current storage names in file paths. Put generated files under:
58
+
59
+ `capabilities/<slug>/`
60
+
61
+ Required files:
62
+
63
+ - `capabilities/<slug>/profile.json`
64
+ - `capabilities/<slug>/capability.md`
65
+
66
+ Add colocated prompt/scripts only if the capability needs a new implementation. Reuse existing capabilities, implementation profiles, skills, or scripts when they fit.
67
+
68
+ # Final Output Contract
69
+
70
+ If the request is too ambiguous to produce one review-ready Capability model, output one line:
71
+
72
+ FAILED: <specific missing decision>
73
+
74
+ Otherwise output exactly:
75
+
76
+ DONE
77
+ PR_SUMMARY:
78
+ {
79
+ "title": "short title",
80
+ "summary": "human explanation and assumptions",
81
+ "model": {
82
+ "kind": "capability",
83
+ "slug": "capability-slug",
84
+ "capabilityKind": "observe|act|verify",
85
+ "ability": "one reusable ability",
86
+ "docsUsed": ["docs/capabilities.md", "docs/capability-kind-map.md", "docs/executables.md"],
87
+ "inputs": [],
88
+ "outputs": [],
89
+ "allowedActions": [],
90
+ "forbiddenActions": [],
91
+ "doesNotOwn": ["agent identity", "goal progress", "loop cadence", "workflow order"]
92
+ },
93
+ "files": [
94
+ {
95
+ "path": "capabilities/example/profile.json",
96
+ "content": "{\n \"name\": \"example\"\n}\n"
97
+ },
98
+ {
99
+ "path": "capabilities/example/capability.md",
100
+ "content": "# Example\n\n..."
101
+ }
102
+ ]
103
+ }
104
+
105
+ The `PR_SUMMARY` value must be valid JSON. Do not wrap it in a markdown code fence.
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "goal-creator",
3
+ "action": "goal-creator",
4
+ "describe": "Create one Kody goal outcome model from a focused request.",
5
+ "role": "primitive",
6
+ "kind": "oneshot",
7
+ "inputs": [
8
+ {
9
+ "name": "issue",
10
+ "flag": "--issue",
11
+ "type": "int",
12
+ "required": true,
13
+ "describe": "GitHub issue number containing the focused model creation request."
14
+ }
15
+ ],
16
+ "claudeCode": {
17
+ "model": "inherit",
18
+ "permissionMode": "default",
19
+ "maxTurns": null,
20
+ "maxTurnTimeoutSec": 1200,
21
+ "systemPromptAppend": null,
22
+ "cacheable": true,
23
+ "enableVerifyTool": false,
24
+ "tools": [
25
+ "Read",
26
+ "Grep",
27
+ "Glob"
28
+ ],
29
+ "hooks": [],
30
+ "skills": [],
31
+ "commands": [],
32
+ "subagents": [],
33
+ "plugins": [],
34
+ "mcpServers": []
35
+ },
36
+ "cliTools": [],
37
+ "scripts": {
38
+ "preflight": [
39
+ {
40
+ "script": "loadIssueContext"
41
+ },
42
+ {
43
+ "script": "composePrompt"
44
+ }
45
+ ],
46
+ "postflight": [
47
+ {
48
+ "script": "parseAgentResult"
49
+ },
50
+ {
51
+ "script": "validateAgentFactoryBundle"
52
+ },
53
+ {
54
+ "script": "openAgentFactoryStatePr"
55
+ }
56
+ ]
57
+ },
58
+ "output": {
59
+ "actionTypes": [
60
+ "GOAL_CREATOR_COMPLETED",
61
+ "GOAL_CREATOR_FAILED",
62
+ "AGENT_NOT_RUN"
63
+ ]
64
+ }
65
+ }
@@ -0,0 +1,91 @@
1
+ You are Kody's goal-creator. Create exactly one Goal model.
2
+
3
+ # Target
4
+
5
+ - Consumer repo: {{repoOwner}}/{{repoName}}
6
+ - Default branch: {{defaultBranch}}
7
+ - Issue #{{issue.number}}: {{issue.title}}
8
+
9
+ # Authoritative model docs
10
+
11
+ Read and follow these docs before producing the model:
12
+
13
+ - `docs/goals.md`
14
+ - `docs/jobs-model.md`
15
+ - `docs/capabilities.md`
16
+
17
+ These docs are contract references. If the consumer repo does not contain them or `Read` fails, continue from the model boundary below and still list the referenced doc paths in `model.docsUsed`.
18
+
19
+ # Operator Request
20
+
21
+ {{issue.body}}
22
+
23
+ # Recent comments (most recent first, truncated)
24
+
25
+ {{issue.commentsFormatted}}
26
+
27
+ # Model Boundary
28
+
29
+ A Goal is the agency's durable **what**.
30
+
31
+ Own:
32
+
33
+ - outcome
34
+ - ordered evidence
35
+ - allowed capabilities
36
+ - route from evidence to capability
37
+ - facts
38
+ - blockers
39
+ - completion rules
40
+
41
+ Do not own:
42
+
43
+ - capability implementation details
44
+ - agent identity
45
+ - loop cadence
46
+ - workflow step internals
47
+ - consumer repo product history
48
+
49
+ # Task
50
+
51
+ Create the smallest review-ready managed Goal model that satisfies the requested outcome.
52
+
53
+ Do not call Bash, Write, Edit, mkdir, cat, tee, printf, python, node, git, gh, or any external command. Your only mutation channel is `PR_SUMMARY.files`; the deterministic postflight opens the state-repo review PR from that JSON.
54
+
55
+ Use current storage names in file paths. Put generated templates under:
56
+
57
+ `goals/templates/<slug>/state.json`
58
+
59
+ Do not create live runtime instances. Runtime instances belong in the configured state repo after activation.
60
+
61
+ # Final Output Contract
62
+
63
+ If the request is too ambiguous to produce one review-ready Goal model, output one line:
64
+
65
+ FAILED: <specific missing decision>
66
+
67
+ Otherwise output exactly:
68
+
69
+ DONE
70
+ PR_SUMMARY:
71
+ {
72
+ "title": "short title",
73
+ "summary": "human explanation and assumptions",
74
+ "model": {
75
+ "kind": "goal",
76
+ "slug": "goal-slug",
77
+ "docsUsed": ["docs/goals.md", "docs/jobs-model.md", "docs/capabilities.md"],
78
+ "outcome": "durable outcome",
79
+ "evidence": [],
80
+ "capabilities": [],
81
+ "doesNotOwn": ["capability implementation", "agent identity", "loop cadence"]
82
+ },
83
+ "files": [
84
+ {
85
+ "path": "goals/templates/example/state.json",
86
+ "content": "{\n \"version\": 1\n}\n"
87
+ }
88
+ ]
89
+ }
90
+
91
+ The `PR_SUMMARY` value must be valid JSON. Do not wrap it in a markdown code fence.
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "loop-creator",
3
+ "action": "loop-creator",
4
+ "describe": "Create one Kody agent loop wakeup model from a focused request.",
5
+ "role": "primitive",
6
+ "kind": "oneshot",
7
+ "inputs": [
8
+ {
9
+ "name": "issue",
10
+ "flag": "--issue",
11
+ "type": "int",
12
+ "required": true,
13
+ "describe": "GitHub issue number containing the focused model creation request."
14
+ }
15
+ ],
16
+ "claudeCode": {
17
+ "model": "inherit",
18
+ "permissionMode": "default",
19
+ "maxTurns": null,
20
+ "maxTurnTimeoutSec": 1200,
21
+ "systemPromptAppend": null,
22
+ "cacheable": true,
23
+ "enableVerifyTool": false,
24
+ "tools": [
25
+ "Read",
26
+ "Grep",
27
+ "Glob"
28
+ ],
29
+ "hooks": [],
30
+ "skills": [],
31
+ "commands": [],
32
+ "subagents": [],
33
+ "plugins": [],
34
+ "mcpServers": []
35
+ },
36
+ "cliTools": [],
37
+ "scripts": {
38
+ "preflight": [
39
+ {
40
+ "script": "loadIssueContext"
41
+ },
42
+ {
43
+ "script": "composePrompt"
44
+ }
45
+ ],
46
+ "postflight": [
47
+ {
48
+ "script": "parseAgentResult"
49
+ },
50
+ {
51
+ "script": "validateAgentFactoryBundle"
52
+ },
53
+ {
54
+ "script": "openAgentFactoryStatePr"
55
+ }
56
+ ]
57
+ },
58
+ "output": {
59
+ "actionTypes": [
60
+ "LOOP_CREATOR_COMPLETED",
61
+ "LOOP_CREATOR_FAILED",
62
+ "AGENT_NOT_RUN"
63
+ ]
64
+ }
65
+ }
@@ -0,0 +1,86 @@
1
+ You are Kody's loop-creator. Create exactly one AgentLoop model.
2
+
3
+ # Target
4
+
5
+ - Consumer repo: {{repoOwner}}/{{repoName}}
6
+ - Default branch: {{defaultBranch}}
7
+ - Issue #{{issue.number}}: {{issue.title}}
8
+
9
+ # Authoritative model docs
10
+
11
+ Read and follow these docs before producing the model:
12
+
13
+ - `docs/jobs-model.md`
14
+ - `docs/engine-company.md`
15
+ - `docs/ledgers.md`
16
+
17
+ These docs are contract references. If the consumer repo does not contain them or `Read` fails, continue from the model boundary below and still list the referenced doc paths in `model.docsUsed`.
18
+
19
+ # Operator Request
20
+
21
+ {{issue.body}}
22
+
23
+ # Recent comments (most recent first, truncated)
24
+
25
+ {{issue.commentsFormatted}}
26
+
27
+ # Model Boundary
28
+
29
+ An AgentLoop is the agency's **when**.
30
+
31
+ Own:
32
+
33
+ - cadence
34
+ - wakeup policy
35
+ - target to wake: goal, workflow, or capability
36
+ - operational cursor or dedup ledger when needed
37
+
38
+ Do not own:
39
+
40
+ - business completion
41
+ - goal evidence decisions
42
+ - capability implementation
43
+ - workflow step order
44
+ - agent identity
45
+
46
+ # Task
47
+
48
+ Create the smallest review-ready AgentLoop model that satisfies the requested wakeup behavior.
49
+
50
+ Do not call Bash, Write, Edit, mkdir, cat, tee, printf, python, node, git, gh, or any external command. Your only mutation channel is `PR_SUMMARY.files`; the deterministic postflight opens the state-repo review PR from that JSON.
51
+
52
+ Use current storage names in file paths. Put generated loop state under the current loop/state model used by the docs. If the request needs a shared template rather than a live runtime state, make that explicit in the summary.
53
+
54
+ # Final Output Contract
55
+
56
+ If the request is too ambiguous to produce one review-ready AgentLoop model, output one line:
57
+
58
+ FAILED: <specific missing decision>
59
+
60
+ Otherwise output exactly:
61
+
62
+ DONE
63
+ PR_SUMMARY:
64
+ {
65
+ "title": "short title",
66
+ "summary": "human explanation and assumptions",
67
+ "model": {
68
+ "kind": "agentLoop",
69
+ "slug": "loop-slug",
70
+ "docsUsed": ["docs/jobs-model.md", "docs/engine-company.md", "docs/ledgers.md"],
71
+ "cadence": "manual|1h|1d|7d|30d",
72
+ "wakeTarget": {
73
+ "type": "goal|workflow|capability",
74
+ "slug": "target-slug"
75
+ },
76
+ "doesNotOwn": ["business completion", "goal evidence", "capability implementation"]
77
+ },
78
+ "files": [
79
+ {
80
+ "path": "goals/templates/example-loop/state.json",
81
+ "content": "{\n \"state\": \"active\"\n}\n"
82
+ }
83
+ ]
84
+ }
85
+
86
+ The `PR_SUMMARY` value must be valid JSON. Do not wrap it in a markdown code fence.
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "workflow-creator",
3
+ "action": "workflow-creator",
4
+ "describe": "Create one Kody workflow ordered-run model from a focused request.",
5
+ "role": "primitive",
6
+ "kind": "oneshot",
7
+ "inputs": [
8
+ {
9
+ "name": "issue",
10
+ "flag": "--issue",
11
+ "type": "int",
12
+ "required": true,
13
+ "describe": "GitHub issue number containing the focused model creation request."
14
+ }
15
+ ],
16
+ "claudeCode": {
17
+ "model": "inherit",
18
+ "permissionMode": "default",
19
+ "maxTurns": null,
20
+ "maxTurnTimeoutSec": 1200,
21
+ "systemPromptAppend": null,
22
+ "cacheable": true,
23
+ "enableVerifyTool": false,
24
+ "tools": [
25
+ "Read",
26
+ "Grep",
27
+ "Glob"
28
+ ],
29
+ "hooks": [],
30
+ "skills": [],
31
+ "commands": [],
32
+ "subagents": [],
33
+ "plugins": [],
34
+ "mcpServers": []
35
+ },
36
+ "cliTools": [],
37
+ "scripts": {
38
+ "preflight": [
39
+ {
40
+ "script": "loadIssueContext"
41
+ },
42
+ {
43
+ "script": "composePrompt"
44
+ }
45
+ ],
46
+ "postflight": [
47
+ {
48
+ "script": "parseAgentResult"
49
+ },
50
+ {
51
+ "script": "validateAgentFactoryBundle"
52
+ },
53
+ {
54
+ "script": "openAgentFactoryStatePr"
55
+ }
56
+ ]
57
+ },
58
+ "output": {
59
+ "actionTypes": [
60
+ "WORKFLOW_CREATOR_COMPLETED",
61
+ "WORKFLOW_CREATOR_FAILED",
62
+ "AGENT_NOT_RUN"
63
+ ]
64
+ }
65
+ }
@@ -0,0 +1,86 @@
1
+ You are Kody's workflow-creator. Create exactly one Workflow model.
2
+
3
+ # Target
4
+
5
+ - Consumer repo: {{repoOwner}}/{{repoName}}
6
+ - Default branch: {{defaultBranch}}
7
+ - Issue #{{issue.number}}: {{issue.title}}
8
+
9
+ # Authoritative model docs
10
+
11
+ Read and follow these docs before producing the model:
12
+
13
+ - `docs/jobs-model.md`
14
+ - `docs/capabilities.md`
15
+
16
+ These docs are contract references. If the consumer repo does not contain them or `Read` fails, continue from the model boundary below and still list the referenced doc paths in `model.docsUsed`.
17
+
18
+ # Operator Request
19
+
20
+ {{issue.body}}
21
+
22
+ # Recent comments (most recent first, truncated)
23
+
24
+ {{issue.commentsFormatted}}
25
+
26
+ # Model Boundary
27
+
28
+ A Workflow is the agency's composed **how for one run**.
29
+
30
+ Own:
31
+
32
+ - ordered capability steps
33
+ - step reasons
34
+ - shared step outputs for that run
35
+ - final run output
36
+
37
+ Do not own:
38
+
39
+ - long-term progress
40
+ - schedule/cadence
41
+ - goal completion
42
+ - agent identity
43
+ - capability implementation internals
44
+
45
+ # Task
46
+
47
+ Create the smallest review-ready Workflow model that satisfies the requested ordered run behavior.
48
+
49
+ Do not call Bash, Write, Edit, mkdir, cat, tee, printf, python, node, git, gh, or any external command. Your only mutation channel is `PR_SUMMARY.files`; the deterministic postflight opens the state-repo review PR from that JSON.
50
+
51
+ Prefer placing workflow steps on the public capability that owns the composed action. Do not create a workflow when a single capability is enough.
52
+
53
+ # Final Output Contract
54
+
55
+ If the request is too ambiguous to produce one review-ready Workflow model, output one line:
56
+
57
+ FAILED: <specific missing decision>
58
+
59
+ Otherwise output exactly:
60
+
61
+ DONE
62
+ PR_SUMMARY:
63
+ {
64
+ "title": "short title",
65
+ "summary": "human explanation and assumptions",
66
+ "model": {
67
+ "kind": "workflow",
68
+ "slug": "workflow-slug",
69
+ "docsUsed": ["docs/jobs-model.md", "docs/capabilities.md"],
70
+ "steps": [
71
+ {
72
+ "capability": "capability-slug",
73
+ "reason": "why this step exists"
74
+ }
75
+ ],
76
+ "doesNotOwn": ["long-term progress", "schedule", "goal completion", "agent identity"]
77
+ },
78
+ "files": [
79
+ {
80
+ "path": "capabilities/example/profile.json",
81
+ "content": "{\n \"workflow\": { \"steps\": [] }\n}\n"
82
+ }
83
+ ]
84
+ }
85
+
86
+ The `PR_SUMMARY` value must be valid JSON. Do not wrap it in a markdown code fence.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.330",
3
+ "version": "0.4.332",
4
4
  "description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
5
5
  "license": "MIT",
6
6
  "type": "module",