Repository navigation
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
kyc-rulesskill scores ownership by how deep thebeneficial_ownerschain 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:What this PR changes:
kyc-rulesgets 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 inrule_outcomes, for examplePerson 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.operationsplugin), the step runs ownership-rules, which is Apache-2.0, standard library only, Python 3.9+, and returns the verdict with its proof path. Thekyc-screeneragent 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.kyc-doc-parsenow extractsownership_links(each link with its own share,nullif unknown,[low, high]for a band), because the 50% rule needs the chain, not a multiplied-through percentage. The managed-agentdoc-readeroutput schema gets a matchinglinksarray with the same name pattern and length caps asubos, and therules-enginesubagent prompt gets one sentence on the rule.vertical-plugins/and synced withscripts/sync-agent-skills.py.operationsandkyc-screenerbumped to 0.1.1.The two cases above, run through the command in the skill:
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.shpasses for all cookbooks, including kyc-screener (4 bodies).scripts/validate.pyaccepts a doc-reader output withlinks(including anullshare) and rejects a link whosepctis a string.version_bump.py --checkis OK.scripts/check.pyreports the same 3 existingmeeting-prep-agentbundled-skill errors asmainand nothing new. On Linux I had to givedeploy-managed-agent.sha GNU-stylemktemptemplate 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.