@kitman-sh/software-engineering 0.13.2 → 0.13.4
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/bundle.js +6 -4
- package/dist/declarations.json +3 -2
- package/kitman.config.ts +1 -1
- package/package.json +3 -3
- package/src/release.ts +5 -1
- package/src/shepherd.ts +2 -1
package/dist/bundle.js
CHANGED
|
@@ -20279,7 +20279,7 @@ var DeployWork = Struct({
|
|
|
20279
20279
|
runsScript: optionalKey2(Literal2(true))
|
|
20280
20280
|
});
|
|
20281
20281
|
var DeployOutcome = Struct({
|
|
20282
|
-
status: Literals(["deployed", "failed", "rolled_back", "rollback_failed", "none"]),
|
|
20282
|
+
status: Literals(["deployed", "published", "failed", "rolled_back", "rollback_failed", "none"]),
|
|
20283
20283
|
exitCode: optionalKey2(Int),
|
|
20284
20284
|
detail: String5.check(isMaxLength(1200))
|
|
20285
20285
|
});
|
|
@@ -21575,6 +21575,7 @@ var Output2 = Struct({
|
|
|
21575
21575
|
"not_mergeable",
|
|
21576
21576
|
"rejected",
|
|
21577
21577
|
"deployed",
|
|
21578
|
+
"published",
|
|
21578
21579
|
"rolled_back",
|
|
21579
21580
|
"deploy_failed",
|
|
21580
21581
|
"rollback_failed",
|
|
@@ -22003,6 +22004,7 @@ ${drafted.notes}`,
|
|
|
22003
22004
|
const status = ran.status === "failed" ? "deploy_failed" : ran.status;
|
|
22004
22005
|
const outcome = {
|
|
22005
22006
|
deployed: "deployed",
|
|
22007
|
+
published: "published, not deployed",
|
|
22006
22008
|
rolled_back: "rolled back",
|
|
22007
22009
|
deploy_failed: "failed to deploy",
|
|
22008
22010
|
rollback_failed: "failed to deploy, and the rollback failed too"
|
|
@@ -23111,7 +23113,7 @@ Merge now?`,
|
|
|
23111
23113
|
...done("merged", `Merged at ${merged.revision}; its Release gate failed, so the next Release ships it`),
|
|
23112
23114
|
release: { runStatus: released.status, reason: released.reason }
|
|
23113
23115
|
};
|
|
23114
|
-
if (released.leftUndeployed !== true && released.status !== "deployed" && released.status !== "rejected" && released.status !== "gate_failed" && released.status !== "not_due" && released.status !== "nothing_to_release")
|
|
23116
|
+
if (released.leftUndeployed !== true && released.status !== "deployed" && released.status !== "published" && released.status !== "rejected" && released.status !== "gate_failed" && released.status !== "not_due" && released.status !== "nothing_to_release")
|
|
23115
23117
|
yield* ask("release-failed", {
|
|
23116
23118
|
prompt: `Merged at ${merged.revision}, but its Release ended ${released.status}: ${released.reason}`,
|
|
23117
23119
|
options: [{ value: "Taken over", description: "A person looks at the release and production from here." }],
|
|
@@ -25630,7 +25632,7 @@ What next?`,
|
|
|
25630
25632
|
var fallbacks = [{ harness: "pi" }];
|
|
25631
25633
|
var reviewer = {
|
|
25632
25634
|
harness: "pi",
|
|
25633
|
-
model: "openai-codex/gpt-6.
|
|
25635
|
+
model: "openai-codex/gpt-6.2-sol",
|
|
25634
25636
|
fallbacks: [{ harness: "claude", model: "opus", effort: "high" }]
|
|
25635
25637
|
};
|
|
25636
25638
|
var kitman_config_default = defineKit({
|
|
@@ -31459,4 +31461,4 @@ var runKit = (config, identity, packages) => {
|
|
|
31459
31461
|
runMain2(program.pipe(flatMap3((code) => sync2(() => process.exit(code)))));
|
|
31460
31462
|
};
|
|
31461
31463
|
// .kitman-build-entry.ts
|
|
31462
|
-
runKit(kitman_config_default, { name: "@kitman-sh/software-engineering", version: "0.13.
|
|
31464
|
+
runKit(kitman_config_default, { name: "@kitman-sh/software-engineering", version: "0.13.4" }, []);
|
package/dist/declarations.json
CHANGED
|
@@ -2363,6 +2363,7 @@
|
|
|
2363
2363
|
"not_mergeable",
|
|
2364
2364
|
"rejected",
|
|
2365
2365
|
"deployed",
|
|
2366
|
+
"published",
|
|
2366
2367
|
"rolled_back",
|
|
2367
2368
|
"deploy_failed",
|
|
2368
2369
|
"rollback_failed",
|
|
@@ -5415,7 +5416,7 @@
|
|
|
5415
5416
|
"reviewer": {
|
|
5416
5417
|
"instructions": "You are a reviewer. You report; you do not fix.\n\n## Scope\n\n- Review only the change: the diff between the base and the head you are given, and the code around it that the change touches. Read the change and that code before judging it.\n- Judge it against the standards this repository documents and against what the Task or plan asked for, including its Acceptance Criteria. When there is no spec, say so rather than inventing one.\n\n## Skills\n\nYour seat's review skill, when it has one, is listed. If the brief says it is not installed, follow the review prompt, which holds the fallback.\n\n## One pass\n\n- Review exhaustively the first time. Each round a finding waits for costs a fix round.\n- For each rule or check the change adds or alters, trace it through every caller and every input it can get before you report: each kind of actor, each visibility, Team and Project scope, and ids the caller gives.\n- Report every finding of every severity in that one pass, grouped by the rule it breaks. Do not stop at the first serious finding in an area, and hold none back for a later round.\n- For each finding, name the sibling cases of its rule you checked and found fine, so the next round does not explore them again.\n- In a later round, after a fix, review the fix and the code it touches. Raise a new problem outside that only if it is a `blocker`; report anything less there as a `minor`, which does not block landing.\n\n## Findings\n\n- Report only what you can defend with a concrete failure or a named rule. No style opinions this codebase does not hold, and no speculation.\n- Give every finding a file and a line.\n- Severity is exactly one of `blocker` (wrong, unsafe, or breaks a contract), `major` (will bite us) or `minor` (worth fixing, not worth blocking). Only `minor` lets a change ship without another fix.\n- Missing required scope is a `blocker`, however large the work: a spec the change does not meet is not a follow-up.\n- One finding per problem.\n- Finding nothing is a real answer: submit an empty list of findings.\n\n## Rebuttals\n\n- Judge each rebuttal on its merits, not on who wrote it.\n- Raise a rebutted finding again only if you can answer the implementer's reason, and answer it when you do. If you cannot, leave it: a disputed blocker or major finding goes to the human, and raising it again only costs a round.\n\n## Branch\n\n- Do not edit files, commit, push or merge. The Run owns the branch.\n- Never `git stash`, and flag any `git stash` a change adds to a script, a workflow or the docs: the stash stack is shared with every other worktree of the repository. To look at a clean tree, make a throwaway checkout with `git worktree add` and remove it after.\n\n## Code comments\n\nCode should explain itself. For each comment the change adds or alters, check that it is necessary and uses the fewest words possible. Group unnecessary or verbose comments into one `minor` finding with examples; leave untouched comments alone.\n\n## Output\n\nSubmit your Output with the Kitman MCP `submit_output` tool, in the shape the brief's Output schema gives. A test result you report is a claim; Kitman's evidence gate runs the approved verifications itself.",
|
|
5417
5418
|
"harness": "pi",
|
|
5418
|
-
"model": "openai-codex/gpt-6.
|
|
5419
|
+
"model": "openai-codex/gpt-6.2-sol",
|
|
5419
5420
|
"effort": "high",
|
|
5420
5421
|
"fallbacks": [
|
|
5421
5422
|
{
|
|
@@ -5522,7 +5523,7 @@
|
|
|
5522
5523
|
"carried": [
|
|
5523
5524
|
{
|
|
5524
5525
|
"name": "@kitman-sh/software-engineering",
|
|
5525
|
-
"version": "0.13.
|
|
5526
|
+
"version": "0.13.4",
|
|
5526
5527
|
"setup": "2a237548a69b0cd53ec3be7f687cfa8c2128335b3a655d34e185f2abce6a3c37",
|
|
5527
5528
|
"loops": [
|
|
5528
5529
|
"build",
|
package/kitman.config.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitman-sh/software-engineering",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.4",
|
|
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.
|
|
20
|
+
"@kitman-sh/sdk": "0.13.4",
|
|
21
21
|
"effect": "^4.1.2"
|
|
22
22
|
},
|
|
23
23
|
"kitman": {
|
|
24
24
|
"bundle": "dist/bundle.js",
|
|
25
|
-
"digest": "
|
|
25
|
+
"digest": "bf8099ff83c3bee101dfc08f7b8da22954880dbafe7e9e244eb0b88dbd40d7b2",
|
|
26
26
|
"protocolVersion": 5,
|
|
27
27
|
"declarations": "dist/declarations.json",
|
|
28
28
|
"setup": {
|
package/src/release.ts
CHANGED
|
@@ -90,6 +90,8 @@ const Output = Schema.Struct({
|
|
|
90
90
|
'not_mergeable',
|
|
91
91
|
'rejected',
|
|
92
92
|
'deployed',
|
|
93
|
+
/** A release candidate the deploy script published and did not deploy. */
|
|
94
|
+
'published',
|
|
93
95
|
'rolled_back',
|
|
94
96
|
'deploy_failed',
|
|
95
97
|
/** The deploy failed after production changed, and so did the rollback: production may be broken. */
|
|
@@ -336,7 +338,8 @@ const recovery = (previous: string | undefined) =>
|
|
|
336
338
|
* target so two Releases never tag or deploy over each other, taking it over from a Release that failed holding it,
|
|
337
339
|
* and picks the version again under it: a revision an existing tag already contains ends as nothing to release. It
|
|
338
340
|
* then tags and publishes once (its own release of the tag at the same revision counts as done; one at another is
|
|
339
|
-
* never moved) and waits for the deploy. A
|
|
341
|
+
* never moved) and waits for the deploy. A release candidate the repository's deploy script only publishes ends
|
|
342
|
+
* published, not deployed, and is never rolled back for it. A failed or late deploy asks whether
|
|
340
343
|
* to retry (it runs the tag's failed pipeline again and waits), roll back to the previous tag (it runs that
|
|
341
344
|
* tag's pipeline again in full and waits for its deploy), or leave it, which it does by default.
|
|
342
345
|
*
|
|
@@ -721,6 +724,7 @@ export default defineLoop({
|
|
|
721
724
|
|
|
722
725
|
const outcome = {
|
|
723
726
|
deployed: 'deployed',
|
|
727
|
+
published: 'published, not deployed',
|
|
724
728
|
rolled_back: 'rolled back',
|
|
725
729
|
deploy_failed: 'failed to deploy',
|
|
726
730
|
rollback_failed: 'failed to deploy, and the rollback failed too'
|
package/src/shepherd.ts
CHANGED
|
@@ -1619,10 +1619,11 @@ export default defineLoop({
|
|
|
1619
1619
|
release: { runStatus: released.status, reason: released.reason }
|
|
1620
1620
|
}
|
|
1621
1621
|
|
|
1622
|
-
// It merged either way; a Release that did not deploy needs a person, unless it was rejected, found it released or a person left it.
|
|
1622
|
+
// It merged either way; a Release that did not deploy needs a person, unless it only published a candidate, was rejected, found it released or a person left it.
|
|
1623
1623
|
if (
|
|
1624
1624
|
released.leftUndeployed !== true &&
|
|
1625
1625
|
released.status !== 'deployed' &&
|
|
1626
|
+
released.status !== 'published' &&
|
|
1626
1627
|
released.status !== 'rejected' &&
|
|
1627
1628
|
released.status !== 'gate_failed' &&
|
|
1628
1629
|
released.status !== 'not_due' &&
|