Repository navigation
feat: policy groups in the policy skills - #63
nicobatalla wants to merge 2 commits into
Conversation
pareilly
left a comment
There was a problem hiding this comment.
Thanks for this, Nico. I checked every tool name, parameter and result field the skill cites against the MCP server's tool definitions, and they all match, including the reuse behaviour behind "don't assume version 1". No correctness problems in the prose. A few things to sort out:
1. Hold the merge until the tools are released (process)
Plugin content reaches users as soon as it merges, so this should wait until the policy group tools are available in production. The policy-store reference also describes the groups/ layout and the manifest:check rules from dtwoai/policy-store#35, which is still open, so it should wait for that too. Could you add a "ready for review, do not merge on approval" note to the description? We can green-light it in a comment once both are out.
2. PR description links a private issue
This repo is public, so please drop the link to the internal issue from the description. The committed content itself is clean.
3. dtwo-gateway-policy/SKILL.md: three different rules for adjusting a reused import
- Quick start step 2 (line 72) says a
status: reusedimport is always forked withoverrideName. - "Import and adjust" (line 323) says to fork only when other gateways run the copy from its draft.
- Step 3 of Checking the Catalog First offers "adjusting the existing one" as a choice.
The detailed rule in "Import and adjust" looks like the right one. Suggest making the quick start match it, or just pointing to it without restating the rule.
Optional
- "Import unchanged" says to pin each policy to the
versionof its entry inpolicies. That field can be null in the tool's output, and a null pin would attach the draft silently. One clause would cover it, e.g. "if it is null, readdtwo-get-policy-versions".
pareilly
left a comment
There was a problem hiding this comment.
Good to go, but merge must wait until after the policy groups are deployed
dtwo-gateway-policy now covers the policy group tools. It groups policies that only work together, names a policy's groups before attaching, detaching or deleting it, and reports groupWarnings. For catalog imports, it pins the version the import returns instead of assuming version 1. dtwo-policy-rego points to groups for multi-policy outcomes, and its policy-store reference covers declaring groups in frontmatter. Plugin version 1.3.7.