@windyroad/risk-scorer 0.17.3 → 0.17.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.
@@ -310,5 +310,5 @@
310
310
  }
311
311
  },
312
312
  "name": "wr-risk-scorer",
313
- "version": "0.17.3"
313
+ "version": "0.17.4"
314
314
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wr-risk-scorer",
3
- "version": "0.17.3",
3
+ "version": "0.17.4",
4
4
  "description": "Pipeline risk scoring, commit/push gates, and secret leak detection",
5
5
  "author": {
6
6
  "name": "Windy Road Technology",
package/agents/policy.md CHANGED
@@ -40,4 +40,4 @@ End your report with `RISK_VERDICT: PASS` or `RISK_VERDICT: FAIL` on its own lin
40
40
  | 4 Significant | 4 | 8 | 12 | 16 | 20 |
41
41
  | 5 Severe | 5 | 10 | 15 | 20 | 25 |
42
42
 
43
- Label Bands: 1-2 Very Low, 3-4 Low, 5-9 Medium, 10-16 High, 17-25 Very High.
43
+ Label Bands: 1-2 Very Low, 3-5 Low, 6-9 Medium, 10-16 High, 17-25 Very High.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windyroad/risk-scorer",
3
- "version": "0.17.3",
3
+ "version": "0.17.4",
4
4
  "description": "Pipeline risk scoring, commit/push gates, and secret leak detection",
5
5
  "scripts": {
6
6
  "prepack": "node scripts/sync-codex-skills.mjs --pack",
@@ -23,14 +23,30 @@ const restoreMode = process.argv.includes("--restore-pack");
23
23
 
24
24
  const preamble = `<!-- Generated from packages/risk-scorer/skills/*/SKILL.md by packages/risk-scorer/scripts/sync-codex-skills.mjs during npm pack. Do not edit packaged output directly. -->
25
25
 
26
- > Codex runtime note: use \`request_user_input\` where this skill needs structured user input. If a step refers to Claude-style agent dispatch or \`subagent_type\`, invoke the matching installed Codex agent when available; in \`codex exec\` or any runtime without custom-agent dispatch, perform the same review inline from the plugin's sibling \`agents/*.md\` instructions and preserve the structured verdict blocks.
26
+ > Codex runtime note: use \`request_user_input\` only in Plan Mode where this skill needs structured user input. Outside Plan Mode, ask one concise direct question only when no safe assumption exists. If a step refers to Claude-style agent dispatch or \`subagent_type\`, use a native Codex subagent workflow: spawn the matching installed Codex custom agent when available, otherwise spawn the built-in \`default\` subagent and instruct it to read the plugin's sibling \`agents/*.md\` instructions in full before returning the same structured verdict block.
27
27
 
28
28
  `;
29
29
 
30
+ const updatePolicyCodexAgentStep = `Run the Codex policy reviewer with this prompt:
31
+
32
+ > Review this draft risk policy for ISO 31000 compliance. Validate it.
33
+ >
34
+ > [paste the full draft policy content here]
35
+
36
+ Use a native Codex subagent workflow. Prefer the installed plugin agent named \`wr-risk-scorer:policy\` when available. In this source repo, the generated project-local alias \`wr-risk-scorer-policy\` may also be available for dogfooding. If neither custom agent is available in the current Codex session, spawn the built-in \`default\` subagent and instruct it to read \`agents/policy.md\` from this plugin in full before performing the review.`;
37
+
30
38
  function transform(text) {
31
39
  return preamble + text
32
40
  .replaceAll("AskUserQuestion", "request_user_input")
33
- .replaceAll("`.claude/agents/risk-scorer-pipeline.md`", "`agents/pipeline.md`");
41
+ .replaceAll("`.claude/agents/risk-scorer-pipeline.md`", "`agents/pipeline.md`")
42
+ .replace(
43
+ `Run the risk-scorer agent (subagent_type: "risk-scorer") with this prompt:
44
+
45
+ > Review this draft risk policy for ISO 31000 compliance. Validate it.
46
+ >
47
+ > [paste the full draft policy content here]`,
48
+ updatePolicyCodexAgentStep,
49
+ );
34
50
  }
35
51
 
36
52
  function generatedFiles(sourceRoot, targetRoot) {
@@ -1,6 +1,6 @@
1
1
  <!-- Generated from packages/risk-scorer/skills/*/SKILL.md by packages/risk-scorer/scripts/sync-codex-skills.mjs during npm pack. Do not edit packaged output directly. -->
2
2
 
3
- > Codex runtime note: use `request_user_input` where this skill needs structured user input. If a step refers to Claude-style agent dispatch or `subagent_type`, invoke the matching installed Codex agent when available; in `codex exec` or any runtime without custom-agent dispatch, perform the same review inline from the plugin's sibling `agents/*.md` instructions and preserve the structured verdict blocks.
3
+ > Codex runtime note: use `request_user_input` only in Plan Mode where this skill needs structured user input. Outside Plan Mode, ask one concise direct question only when no safe assumption exists. If a step refers to Claude-style agent dispatch or `subagent_type`, use a native Codex subagent workflow: spawn the matching installed Codex custom agent when available, otherwise spawn the built-in `default` subagent and instruct it to read the plugin's sibling `agents/*.md` instructions in full before returning the same structured verdict block.
4
4
 
5
5
  ---
6
6
  name: wr-risk-scorer:assess-external-comms
@@ -1,6 +1,6 @@
1
1
  <!-- Generated from packages/risk-scorer/skills/*/SKILL.md by packages/risk-scorer/scripts/sync-codex-skills.mjs during npm pack. Do not edit packaged output directly. -->
2
2
 
3
- > Codex runtime note: use `request_user_input` where this skill needs structured user input. If a step refers to Claude-style agent dispatch or `subagent_type`, invoke the matching installed Codex agent when available; in `codex exec` or any runtime without custom-agent dispatch, perform the same review inline from the plugin's sibling `agents/*.md` instructions and preserve the structured verdict blocks.
3
+ > Codex runtime note: use `request_user_input` only in Plan Mode where this skill needs structured user input. Outside Plan Mode, ask one concise direct question only when no safe assumption exists. If a step refers to Claude-style agent dispatch or `subagent_type`, use a native Codex subagent workflow: spawn the matching installed Codex custom agent when available, otherwise spawn the built-in `default` subagent and instruct it to read the plugin's sibling `agents/*.md` instructions in full before returning the same structured verdict block.
4
4
 
5
5
  ---
6
6
  name: wr-risk-scorer:assess-inbound-report
@@ -1,6 +1,6 @@
1
1
  <!-- Generated from packages/risk-scorer/skills/*/SKILL.md by packages/risk-scorer/scripts/sync-codex-skills.mjs during npm pack. Do not edit packaged output directly. -->
2
2
 
3
- > Codex runtime note: use `request_user_input` where this skill needs structured user input. If a step refers to Claude-style agent dispatch or `subagent_type`, invoke the matching installed Codex agent when available; in `codex exec` or any runtime without custom-agent dispatch, perform the same review inline from the plugin's sibling `agents/*.md` instructions and preserve the structured verdict blocks.
3
+ > Codex runtime note: use `request_user_input` only in Plan Mode where this skill needs structured user input. Outside Plan Mode, ask one concise direct question only when no safe assumption exists. If a step refers to Claude-style agent dispatch or `subagent_type`, use a native Codex subagent workflow: spawn the matching installed Codex custom agent when available, otherwise spawn the built-in `default` subagent and instruct it to read the plugin's sibling `agents/*.md` instructions in full before returning the same structured verdict block.
4
4
 
5
5
  ---
6
6
  name: wr-risk-scorer:assess-release
@@ -1,6 +1,6 @@
1
1
  <!-- Generated from packages/risk-scorer/skills/*/SKILL.md by packages/risk-scorer/scripts/sync-codex-skills.mjs during npm pack. Do not edit packaged output directly. -->
2
2
 
3
- > Codex runtime note: use `request_user_input` where this skill needs structured user input. If a step refers to Claude-style agent dispatch or `subagent_type`, invoke the matching installed Codex agent when available; in `codex exec` or any runtime without custom-agent dispatch, perform the same review inline from the plugin's sibling `agents/*.md` instructions and preserve the structured verdict blocks.
3
+ > Codex runtime note: use `request_user_input` only in Plan Mode where this skill needs structured user input. Outside Plan Mode, ask one concise direct question only when no safe assumption exists. If a step refers to Claude-style agent dispatch or `subagent_type`, use a native Codex subagent workflow: spawn the matching installed Codex custom agent when available, otherwise spawn the built-in `default` subagent and instruct it to read the plugin's sibling `agents/*.md` instructions in full before returning the same structured verdict block.
4
4
 
5
5
  ---
6
6
  name: wr-risk-scorer:assess-wip
@@ -1,6 +1,6 @@
1
1
  <!-- Generated from packages/risk-scorer/skills/*/SKILL.md by packages/risk-scorer/scripts/sync-codex-skills.mjs during npm pack. Do not edit packaged output directly. -->
2
2
 
3
- > Codex runtime note: use `request_user_input` where this skill needs structured user input. If a step refers to Claude-style agent dispatch or `subagent_type`, invoke the matching installed Codex agent when available; in `codex exec` or any runtime without custom-agent dispatch, perform the same review inline from the plugin's sibling `agents/*.md` instructions and preserve the structured verdict blocks.
3
+ > Codex runtime note: use `request_user_input` only in Plan Mode where this skill needs structured user input. Outside Plan Mode, ask one concise direct question only when no safe assumption exists. If a step refers to Claude-style agent dispatch or `subagent_type`, use a native Codex subagent workflow: spawn the matching installed Codex custom agent when available, otherwise spawn the built-in `default` subagent and instruct it to read the plugin's sibling `agents/*.md` instructions in full before returning the same structured verdict block.
4
4
 
5
5
  ---
6
6
  name: wr-risk-scorer:bootstrap-catalog
@@ -1,6 +1,6 @@
1
1
  <!-- Generated from packages/risk-scorer/skills/*/SKILL.md by packages/risk-scorer/scripts/sync-codex-skills.mjs during npm pack. Do not edit packaged output directly. -->
2
2
 
3
- > Codex runtime note: use `request_user_input` where this skill needs structured user input. If a step refers to Claude-style agent dispatch or `subagent_type`, invoke the matching installed Codex agent when available; in `codex exec` or any runtime without custom-agent dispatch, perform the same review inline from the plugin's sibling `agents/*.md` instructions and preserve the structured verdict blocks.
3
+ > Codex runtime note: use `request_user_input` only in Plan Mode where this skill needs structured user input. Outside Plan Mode, ask one concise direct question only when no safe assumption exists. If a step refers to Claude-style agent dispatch or `subagent_type`, use a native Codex subagent workflow: spawn the matching installed Codex custom agent when available, otherwise spawn the built-in `default` subagent and instruct it to read the plugin's sibling `agents/*.md` instructions in full before returning the same structured verdict block.
4
4
 
5
5
  ---
6
6
  name: wr-risk-scorer:create-risk
@@ -1,6 +1,6 @@
1
1
  <!-- Generated from packages/risk-scorer/skills/*/SKILL.md by packages/risk-scorer/scripts/sync-codex-skills.mjs during npm pack. Do not edit packaged output directly. -->
2
2
 
3
- > Codex runtime note: use `request_user_input` where this skill needs structured user input. If a step refers to Claude-style agent dispatch or `subagent_type`, invoke the matching installed Codex agent when available; in `codex exec` or any runtime without custom-agent dispatch, perform the same review inline from the plugin's sibling `agents/*.md` instructions and preserve the structured verdict blocks.
3
+ > Codex runtime note: use `request_user_input` only in Plan Mode where this skill needs structured user input. Outside Plan Mode, ask one concise direct question only when no safe assumption exists. If a step refers to Claude-style agent dispatch or `subagent_type`, use a native Codex subagent workflow: spawn the matching installed Codex custom agent when available, otherwise spawn the built-in `default` subagent and instruct it to read the plugin's sibling `agents/*.md` instructions in full before returning the same structured verdict block.
4
4
 
5
5
  ---
6
6
  name: wr-risk-scorer:external-comms
@@ -1,6 +1,6 @@
1
1
  <!-- Generated from packages/risk-scorer/skills/*/SKILL.md by packages/risk-scorer/scripts/sync-codex-skills.mjs during npm pack. Do not edit packaged output directly. -->
2
2
 
3
- > Codex runtime note: use `request_user_input` where this skill needs structured user input. If a step refers to Claude-style agent dispatch or `subagent_type`, invoke the matching installed Codex agent when available; in `codex exec` or any runtime without custom-agent dispatch, perform the same review inline from the plugin's sibling `agents/*.md` instructions and preserve the structured verdict blocks.
3
+ > Codex runtime note: use `request_user_input` only in Plan Mode where this skill needs structured user input. Outside Plan Mode, ask one concise direct question only when no safe assumption exists. If a step refers to Claude-style agent dispatch or `subagent_type`, use a native Codex subagent workflow: spawn the matching installed Codex custom agent when available, otherwise spawn the built-in `default` subagent and instruct it to read the plugin's sibling `agents/*.md` instructions in full before returning the same structured verdict block.
4
4
 
5
5
  ---
6
6
  name: wr-risk-scorer:pipeline
@@ -1,6 +1,6 @@
1
1
  <!-- Generated from packages/risk-scorer/skills/*/SKILL.md by packages/risk-scorer/scripts/sync-codex-skills.mjs during npm pack. Do not edit packaged output directly. -->
2
2
 
3
- > Codex runtime note: use `request_user_input` where this skill needs structured user input. If a step refers to Claude-style agent dispatch or `subagent_type`, invoke the matching installed Codex agent when available; in `codex exec` or any runtime without custom-agent dispatch, perform the same review inline from the plugin's sibling `agents/*.md` instructions and preserve the structured verdict blocks.
3
+ > Codex runtime note: use `request_user_input` only in Plan Mode where this skill needs structured user input. Outside Plan Mode, ask one concise direct question only when no safe assumption exists. If a step refers to Claude-style agent dispatch or `subagent_type`, use a native Codex subagent workflow: spawn the matching installed Codex custom agent when available, otherwise spawn the built-in `default` subagent and instruct it to read the plugin's sibling `agents/*.md` instructions in full before returning the same structured verdict block.
4
4
 
5
5
  ---
6
6
  name: wr-risk-scorer:update-policy
@@ -162,12 +162,14 @@ If the user picked an appetite threshold below 5 in step 6, fire a second `reque
162
162
 
163
163
  Before writing the policy file, invoke the risk-scorer agent to validate the draft. This is the gate -- the enforce hook will only allow writes to RISK-POLICY.md after the scorer returns PASS.
164
164
 
165
- Run the risk-scorer agent (subagent_type: "risk-scorer") with this prompt:
165
+ Run the Codex policy reviewer with this prompt:
166
166
 
167
167
  > Review this draft risk policy for ISO 31000 compliance. Validate it.
168
168
  >
169
169
  > [paste the full draft policy content here]
170
170
 
171
+ Use a native Codex subagent workflow. Prefer the installed plugin agent named `wr-risk-scorer:policy` when available. In this source repo, the generated project-local alias `wr-risk-scorer-policy` may also be available for dogfooding. If neither custom agent is available in the current Codex session, spawn the built-in `default` subagent and instruct it to read `agents/policy.md` from this plugin in full before performing the review.
172
+
171
173
  The risk-scorer will check:
172
174
  - Impact levels describe business consequences (not file categories)
173
175
  - Impact labels match the risk matrix (Negligible, Minor, Moderate, Significant, Severe)
@@ -1,6 +1,6 @@
1
1
  <!-- Generated from packages/risk-scorer/skills/*/SKILL.md by packages/risk-scorer/scripts/sync-codex-skills.mjs during npm pack. Do not edit packaged output directly. -->
2
2
 
3
- > Codex runtime note: use `request_user_input` where this skill needs structured user input. If a step refers to Claude-style agent dispatch or `subagent_type`, invoke the matching installed Codex agent when available; in `codex exec` or any runtime without custom-agent dispatch, perform the same review inline from the plugin's sibling `agents/*.md` instructions and preserve the structured verdict blocks.
3
+ > Codex runtime note: use `request_user_input` only in Plan Mode where this skill needs structured user input. Outside Plan Mode, ask one concise direct question only when no safe assumption exists. If a step refers to Claude-style agent dispatch or `subagent_type`, use a native Codex subagent workflow: spawn the matching installed Codex custom agent when available, otherwise spawn the built-in `default` subagent and instruct it to read the plugin's sibling `agents/*.md` instructions in full before returning the same structured verdict block.
4
4
 
5
5
  ---
6
6
  name: wr-risk-scorer:wip