@jesdi/skills 0.0.88 → 0.0.90

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.
@@ -1,6 +1,7 @@
1
1
  """Structure and behavior-preservation tests for the merge_risk refactor (ticket 17).
2
2
 
3
- Golden outputs were recorded from merge_risk.py before the refactor (commit 74ccb2c).
3
+ Golden outputs were recorded from merge_risk.py before the refactor (commit 74ccb2c), then
4
+ re-recorded when the block's `verdict` became `risk` and the gate began to score risk.
4
5
  """
5
6
  import ast
6
7
  import os
@@ -13,10 +14,10 @@ SCRIPT = HERE / "merge_risk.py"
13
14
  BRANCHES = (ast.If, ast.For, ast.While, ast.ExceptHandler, ast.IfExp,
14
15
  ast.comprehension)
15
16
 
16
- CASES = {'valid': 'door: two-way\nblast_radius: isolated\ntouches: [docs, tests]\nrollback: revert\nverdict: auto\nreasons:\n - "Only prose"\n', 'inline': 'door: two-way\nblast_radius: isolated\ntouches: [docs, tests]\nrollback: revert\nverdict: auto\nreasons: [a, "b, c"]\n', 'bad': 'door: sideways\ntouches: [docs, styles, ]\nrollback: revert\nrollback: x\nfoo: 1\nreasons: nope\n junk\n', 'emptyreasons': 'door: two-way\nblast_radius: isolated\ntouches: [docs, tests]\nrollback: revert\nverdict: auto\nreasons:\n', 'badreasons': 'door: two-way\nblast_radius: isolated\ntouches: [docs, tests]\nrollback: revert\nverdict: auto\nreasons:\n - a: b\n - ""\n - [x]\n - \'q\'x\'\n'}
17
- GOLDEN = {'valid:parse': [0, '{"door": "two-way", "blast_radius": "isolated", "rollback": "revert", "verdict": "auto", "touches": ["docs", "tests"], "reasons": ["Only prose"], "errors": []}\n'], 'valid:validate': [0, ''], 'inline:parse': [0, '{"door": "two-way", "blast_radius": "isolated", "rollback": "revert", "verdict": "auto", "touches": ["docs", "tests"], "reasons": ["a", "b, c"], "errors": []}\n'], 'inline:validate': [0, ''], 'bad:parse': [0, '{"door": "sideways", "blast_radius": null, "rollback": "revert", "verdict": null, "touches": ["docs", "styles", ""], "reasons": [], "errors": ["touches has an empty element", "duplicate key: rollback", "unknown key: foo", "reasons must be a `- item` list or an inline list", "unsupported line: junk", "missing key: blast_radius", "missing key: verdict", "door: \'sideways\' is not one of one-way | two-way", "unknown category: styles", "reasons must have at least one item"]}\n'], 'bad:validate': [1, "touches has an empty element\nduplicate key: rollback\nunknown key: foo\nreasons must be a `- item` list or an inline list\nunsupported line: junk\nmissing key: blast_radius\nmissing key: verdict\ndoor: 'sideways' is not one of one-way | two-way\nunknown category: styles\nreasons must have at least one item\n"], 'emptyreasons:parse': [0, '{"door": "two-way", "blast_radius": "isolated", "rollback": "revert", "verdict": "auto", "touches": ["docs", "tests"], "reasons": [], "errors": ["reasons must have at least one item"]}\n'], 'emptyreasons:validate': [1, 'reasons must have at least one item\n'], 'badreasons:parse': [0, '{"door": "two-way", "blast_radius": "isolated", "rollback": "revert", "verdict": "auto", "touches": ["docs", "tests"], "reasons": [], "errors": ["unsupported reason form: a: b", "empty reason", "unsupported reason form: [x]", "malformed quoted reason: \'q\'x\'", "reasons must have at least one item"]}\n'], 'badreasons:validate': [1, "unsupported reason form: a: b\nempty reason\nunsupported reason form: [x]\nmalformed quoted reason: 'q'x'\nreasons must have at least one item\n"]}
17
+ CASES = {'valid': 'door: two-way\nblast_radius: isolated\ntouches: [docs, tests]\nrollback: revert\nrisk: 1\nreasons:\n - "Only prose"\n', 'inline': 'door: two-way\nblast_radius: isolated\ntouches: [docs, tests]\nrollback: revert\nrisk: 1\nreasons: [a, "b, c"]\n', 'bad': 'door: sideways\ntouches: [docs, styles, ]\nrollback: revert\nrollback: x\nfoo: 1\nreasons: nope\n junk\n', 'emptyreasons': 'door: two-way\nblast_radius: isolated\ntouches: [docs, tests]\nrollback: revert\nrisk: 1\nreasons:\n', 'badreasons': 'door: two-way\nblast_radius: isolated\ntouches: [docs, tests]\nrollback: revert\nrisk: 1\nreasons:\n - a: b\n - ""\n - [x]\n - \'q\'x\'\n'}
18
+ GOLDEN = {'valid:parse': [0, '{"door": "two-way", "blast_radius": "isolated", "rollback": "revert", "risk": 1, "touches": ["docs", "tests"], "reasons": ["Only prose"], "errors": []}\n'], 'valid:validate': [0, ''], 'inline:parse': [0, '{"door": "two-way", "blast_radius": "isolated", "rollback": "revert", "risk": 1, "touches": ["docs", "tests"], "reasons": ["a", "b, c"], "errors": []}\n'], 'inline:validate': [0, ''], 'bad:parse': [0, '{"door": "sideways", "blast_radius": null, "rollback": "revert", "risk": null, "touches": ["docs", "styles", ""], "reasons": [], "errors": ["touches has an empty element", "duplicate key: rollback", "unknown key: foo", "reasons must be a `- item` list or an inline list", "unsupported line: junk", "missing key: blast_radius", "missing key: risk", "door: \'sideways\' is not one of one-way | two-way", "unknown category: styles", "reasons must have at least one item"]}\n'], 'bad:validate': [1, "touches has an empty element\nduplicate key: rollback\nunknown key: foo\nreasons must be a `- item` list or an inline list\nunsupported line: junk\nmissing key: blast_radius\nmissing key: risk\ndoor: 'sideways' is not one of one-way | two-way\nunknown category: styles\nreasons must have at least one item\n"], 'emptyreasons:parse': [0, '{"door": "two-way", "blast_radius": "isolated", "rollback": "revert", "risk": 1, "touches": ["docs", "tests"], "reasons": [], "errors": ["reasons must have at least one item"]}\n'], 'emptyreasons:validate': [1, 'reasons must have at least one item\n'], 'badreasons:parse': [0, '{"door": "two-way", "blast_radius": "isolated", "rollback": "revert", "risk": 1, "touches": ["docs", "tests"], "reasons": [], "errors": ["unsupported reason form: a: b", "empty reason", "unsupported reason form: [x]", "malformed quoted reason: \'q\'x\'", "reasons must have at least one item"]}\n'], 'badreasons:validate': [1, "unsupported reason form: a: b\nempty reason\nunsupported reason form: [x]\nmalformed quoted reason: 'q'x'\nreasons must have at least one item\n"]}
18
19
 
19
- GATE_GOLDEN = '{"verdict": "human", "reasons": ["diff touches logic, not in touches", "agentMerge is off"], "categories": ["docs", "logic"], "countedLines": 1}\n'
20
+ GATE_GOLDEN = '{"verdict": "human", "reasons": ["policy: no .merge-risk.json on the base", "diff touches logic, not in touches", "risk 4 > max auto risk 3"], "risk": 4, "maxAutoRisk": 3, "categories": ["docs", "logic"], "countedLines": 1}\n'
20
21
 
21
22
 
22
23
  def complexity(fn):
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "generatedAt": "2026-11-06T01:48:56.950Z",
3
+ "generatedAt": "2026-11-06T13:15:37.191Z",
4
4
  "skills": [
5
5
  {
6
6
  "name": "agents-wayfinder",
@@ -10,8 +10,8 @@
10
10
  },
11
11
  {
12
12
  "name": "babysit-pr",
13
- "version": "0.1.3",
14
- "hash": "sha256-cfc51ea1a1ed378c87e4b682bbbf9ecd01a8a5ce1bf4ed89380bb43346ad466f",
13
+ "version": "0.1.5",
14
+ "hash": "sha256-71a14f734fcc2c21c7e068a4a0bf42afc23d7898d0d21ff962205832619b0ab2",
15
15
  "description": "Babysit an open pull request until it is merged or handed to a human. Started by the PostToolUse hook after `gh pr create`, or by hand with `/babysit-pr <pr-url>`."
16
16
  },
17
17
  {
@@ -58,14 +58,14 @@
58
58
  },
59
59
  {
60
60
  "name": "implement-spec",
61
- "version": "0.1.52",
62
- "hash": "sha256-b31df9477b2d36aaf396d4f36c7ee15af10286eb726ed27d214b1858f98a780d",
61
+ "version": "0.1.53",
62
+ "hash": "sha256-912494281639705621cd4290b046ddbc1942ed178c12174a95644dc08f621a0f",
63
63
  "description": "Implement a specification in code."
64
64
  },
65
65
  {
66
66
  "name": "pr-risk",
67
- "version": "0.1.0",
68
- "hash": "sha256-54b54a42738571c346a040326cde2d314d0239dca3ce42323d2b8434dbe9d5f9",
67
+ "version": "0.1.1",
68
+ "hash": "sha256-f67cc22d6c5c14f41a0670f0b9faef17827727c27f36f315c8d1acba5a67a738",
69
69
  "description": "Merge-risk block of a PR body. Use when a PR body needs its ```merge-risk v1 block parsed or validated, with every error named."
70
70
  },
71
71
  {
@@ -106,8 +106,8 @@
106
106
  },
107
107
  {
108
108
  "name": "test-weigh-in",
109
- "version": "0.1.3",
110
- "hash": "sha256-aecabdc7fd3d511440930bdc3274960106fe37959227ae3be7428dd634f8d4eb",
109
+ "version": "0.1.4",
110
+ "hash": "sha256-6e1d9f9c80e518edc7616cbc6770f0cfac174820559b36b1ac3479c92898fbf8",
111
111
  "description": "Measure a Python/pytest suite and score it on five pillars (Protection against regressions, Resistance to refactoring, Fast feedback, Maintainability, Economy), writing a JSON snapshot and a static HTML dashboard. Read-only. Use when the user asks to weigh, measure or score their test suite."
112
112
  },
113
113
  {