@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.
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/agents/policy.md +1 -1
- package/package.json +1 -1
- package/scripts/sync-codex-skills.mjs +18 -2
- package/skills/assess-external-comms/SKILL.md +1 -1
- package/skills/assess-inbound-report/SKILL.md +1 -1
- package/skills/assess-release/SKILL.md +1 -1
- package/skills/assess-wip/SKILL.md +1 -1
- package/skills/bootstrap-catalog/SKILL.md +1 -1
- package/skills/create-risk/SKILL.md +1 -1
- package/skills/external-comms/SKILL.md +1 -1
- package/skills/pipeline/SKILL.md +1 -1
- package/skills/update-policy/SKILL.md +4 -2
- package/skills/wip/SKILL.md +1 -1
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-
|
|
43
|
+
Label Bands: 1-2 Very Low, 3-5 Low, 6-9 Medium, 10-16 High, 17-25 Very High.
|
package/package.json
CHANGED
|
@@ -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\`,
|
|
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`,
|
|
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`,
|
|
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`,
|
|
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`,
|
|
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`,
|
|
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`,
|
|
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`,
|
|
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
|
package/skills/pipeline/SKILL.md
CHANGED
|
@@ -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`,
|
|
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`,
|
|
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
|
|
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)
|
package/skills/wip/SKILL.md
CHANGED
|
@@ -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`,
|
|
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
|