Skip to content

feat: policy groups in the policy skills - #63

Open
nicobatalla wants to merge 2 commits into
mainfrom
nb-policy-groups
Open

nicobatalla wants to merge 2 commits into
mainfrom
nb-policy-groups

Conversation

@nicobatalla

@nicobatalla nicobatalla commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

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.

@pareilly pareilly left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: reused import is always forked with overrideName.
  • "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 version of its entry in policies. 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, read dtwo-get-policy-versions".

@pareilly pareilly left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go, but merge must wait until after the policy groups are deployed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants