Skip to content

kyc-rules: aggregate listed ownership under the OFAC 50 Percent Rule - #405

Open
Mattbusel wants to merge 1 commit into
anthropics:mainfrom
tensorust-ai:use-ownership-rules
Open

Mattbusel wants to merge 1 commit into
anthropics:mainfrom
tensorust-ai:use-ownership-rules

Conversation

@Mattbusel

Copy link
Copy Markdown

The kyc-rules skill scores ownership by how deep the beneficial_owners chain goes and treats sanctions as a name hit from the screening MCP. Nothing adds up the stakes of listed owners, so two common cases under the OFAC 50 Percent Rule pass through:

  • Two SDNs own 25% each of the applicant. Neither name hit is a majority owner, but together they own 50%, so the applicant is blocked.
  • An SDN owns 60% of a holding company that owns 50% of the applicant. The holding company is blocked, so the applicant is too. The usual UBO declaration multiplies this out to 30% and it looks fine.

What this PR changes:

  • kyc-rules gets a Step 1b, "Aggregate listed ownership". It builds edges from the ownership chain, takes the confirmed sanctions hits as listed parties (unresolved matches still escalate on their own), applies the 50% rule and cites the edges in rule_outcomes, for example Person X (SDN) 25% + Person Y (SDN) 25% = 50% of Applicant Ltd. The verdicts (listed, definitely, possibly, control_only, not) map onto the skill's existing routing; it still decides nothing.
  • When a shell is available (the operations plugin), the step runs ownership-rules, which is Apache-2.0, standard library only, Python 3.9+, and returns the verdict with its proof path. The kyc-screener agent is Read/Grep only, so the skill also says how to apply the same rule by hand there. I did not give any tier new tools.
  • The BIS Affiliates Rule is an optional extra check for grids that cover export controls. It is suspended through 2027-01-10 (FR Doc. 2026-22793), so the skill says to report it as a flag, not a block, until then.
  • kyc-doc-parse now extracts ownership_links (each link with its own share, null if unknown, [low, high] for a band), because the 50% rule needs the chain, not a multiplied-through percentage. The managed-agent doc-reader output schema gets a matching links array with the same name pattern and length caps as ubos, and the rules-engine subagent prompt gets one sentence on the rule.
  • Skills edited in vertical-plugins/ and synced with scripts/sync-agent-skills.py. operations and kyc-screener bumped to 0.1.1.

The two cases above, run through the command in the skill:

$ ownership-rules explain --edges graph.json --listed graph.json "Applicant Ltd"
Person X: listed (SDN)
Person Y: listed (SDN)
Applicant Ltd: definitely (covered share 50-50%) because Person X (listed) owns 25% of Applicant Ltd; Person Y (listed) owns 25% of Applicant Ltd

Parent Co: listed (SDN)
HoldCo BV: definitely (covered share 60-60%) because Parent Co (listed) owns 60% of HoldCo BV
Applicant Ltd: definitely (covered share 50-50%) because HoldCo BV (definitely) owns 50% of Applicant Ltd

An owner with an unknown share plus one with a 20-60% band comes back possibly, which the skill routes to escalate and request the missing share.

Checks: scripts/test-cookbooks.sh passes for all cookbooks, including kyc-screener (4 bodies). scripts/validate.py accepts a doc-reader output with links (including a null share) and rejects a link whose pct is a string. version_bump.py --check is OK. scripts/check.py reports the same 3 existing meeting-prep-agent bundled-skill errors as main and nothing new. On Linux I had to give deploy-managed-agent.sh a GNU-style mktemp template to run the dry-run; I left that script alone here.

I maintain ownership-rules. It encodes the OFAC 50 Percent Rule and the BIS Affiliates Rule as data and ships the worked examples from the OFAC and BIS FAQs as conformance vectors (31 cases). The skill pins the v0.2.0 release wheel until the PyPI upload is live, and I'll keep it current as OFAC and BIS update their guidance. Happy to cut this down to the markdown only if you'd rather not link an outside package.

- kyc-rules gets a Step 1b that adds up the stakes of confirmed sanctioned
  owners, directly and through blocked intermediates, and cites the edges
  in rule_outcomes. Two SDNs at 25% each, or an SDN holding the applicant
  through a blocked holding company, now escalate instead of passing.
- With a shell, the step runs ownership-rules (Apache-2.0, stdlib only) for
  a deterministic verdict and proof path; without one it applies the same
  rule by hand. BIS Affiliates Rule is optional and reported as a flag
  while it is suspended (through 2027-01-10).
- kyc-doc-parse extracts ownership_links (each link's own share), and the
  doc-reader output schema gains a matching links array.

Bumps the operations and kyc-screener plugin versions to 0.1.1.
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.

1 participant