Skip to content

docs: add rationale docs for CrewAI, AutoGen/AG2, Vercel AI SDK, Pydantic AI#6

Merged
jhumel-code merged 2 commits into
mainfrom
cf/new-sdk-coverage
Jun 5, 2026
Merged

docs: add rationale docs for CrewAI, AutoGen/AG2, Vercel AI SDK, Pydantic AI#6
jhumel-code merged 2 commits into
mainfrom
cf/new-sdk-coverage

Conversation

@jhumel-code

Copy link
Copy Markdown
Collaborator

Summary

Adds the paired rationale docs for the four new SDK rule packs — 30 docs (one per shipped YAML pack) under docs/Policy/{crewai,autogen,vercel_ai,pydantic_ai}/, covering all 47 new rules. The rulebook now documents 164 rules total.

Each doc's front-matter severity/confidence/scope matches the shipped YAML exactly; references are OWASP LLM Top 10:2025 IDs. The code-execution / SSRF docs carry CVE-grounded threat models (CrewAI CVE-2026-2275/2287/2286/2285; Pydantic CVE-2026-46678/25580) plus the adversarial "what this policy does not cover" gap analysis (e.g. CrewAI BaseTool-subclass gap, Vercel .js/name-rule gaps, Pydantic RunContext-strip false-negative).

Index + tooling

  • Regenerated POLICY_INDEX.md and the four new per-category indexes. check_rulebook.py --strict and gen_index.py --check both pass (0 warnings, 164 rules).
  • tools/gen_index.py: registered the four SDKs in SDK_ORDER/SDK_LABEL/SDK_FULL + the ID-prefix legend, and made the index write LF-safe and Python 3.9-compatiblewrite_text's newline= kwarg is 3.10+ and was crashing regeneration under the repo's default python3.

Companion PRs

No Jira ticket supplied; add Refs: TR-XXX if one applies.

…dantic AI

30 rationale docs (one per shipped YAML pack) across four new SDK categories, covering all 47 new rules; the rulebook now documents 164 rules. Front-matter severity/confidence/scope match the shipped YAML; references are OWASP LLM Top 10 IDs, with CVE-grounded threat models and adversarial gap analysis.

Regenerated POLICY_INDEX.md + four per-category indexes (check_rulebook --strict and gen_index --check both green). gen_index.py: register the four SDKs in SDK_ORDER/LABEL/FULL + the legend, and make the index write LF-safe and Python 3.9-compatible (write_text's newline= kwarg is 3.10+ and crashed regeneration under the repo's default python3).
Validate this PR's docs against the matching trustabl-rules PR before either merges: both jobs check out trustabl-rules at a branch matching this PR's head_ref when one exists, else main (push to main has an empty head_ref, so main always validates against the production pack).
@jhumel-code jhumel-code merged commit 7ed9ae3 into main Jun 5, 2026
2 checks passed
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