GDPR, HIPAA, PCI, and strict model allowlists for compliance-aware model gating in agent workflows.
The harness enforces model allowlists based on compliance requirements. When a compliance mode is set, only models in the corresponding allowlist are permitted.
gpt-4o, gpt-4o-mini, Claude Sonnet 4.5, Claude Haiku 4.5
Denied
Compliance profile names currently differ between the Python and TypeScript harnesses. TypeScript does not currently implement the gdpr, hipaa, or pci profiles. An unknown TypeScript profile does not apply an allowlist.
import cascadeflowcascadeflow.init(mode="enforce")# GDPR compliance — only gpt-4o, gpt-4o-mini, gpt-3.5-turbo allowedwith cascadeflow.run(compliance="gdpr") as session: result = await agent.run("Process this EU customer data")
import { init, run } from '@cascadeflow/core';init({ mode: 'enforce' });await run({ compliance: 'regulated' }, async () => { await agent.run('Process this regulated customer data');});
Compliance and budget constraints are independent. Both are checked at every step:
with cascadeflow.run(budget=0.50, compliance="gdpr") as session: # Must stay within budget AND use only GDPR-approved models result = await agent.run("Analyze EU customer feedback")
The harness APIs select built-in profiles by name. They do not currently accept custom model allowlists. For custom requirements, validate the selected model in your integration before sending the request.
approved_models = {"my-approved-deployment"}if selected_model not in approved_models: raise PermissionError("Model is not approved")
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"cascadeflow","colors":{"primary":"#0E7490","light":"#22D3EE","dark":"#0E7490"},"logo":{"light":"https://mintcdn.com/cascadeflow/XBH9iEf5YbNVfBQt/logo/cascadeflow-light.svg?fit=max\u0026auto=format\u0026n=XBH9iEf5YbNVfBQt\u0026q=85\u0026s=6d5fa0dba985df928922d85669644099","dark":"https://mintcdn.com/cascadeflow/XBH9iEf5YbNVfBQt/logo/cascadeflow-dark.svg?fit=max\u0026auto=format\u0026n=XBH9iEf5YbNVfBQt\u0026q=85\u0026s=96c554bf12d4e92756d217c8fd45897c","href":"https://cascadeflow.ai"},"favicon":"https://mintcdn.com/cascadeflow/XBH9iEf5YbNVfBQt/favicon.svg?fit=max\u0026auto=format\u0026n=XBH9iEf5YbNVfBQt\u0026q=85\u0026s=d87c83822db83e73da36af845a48af11","navbar":{"links":[{"href":"https://cascadeflow.ai","label":"Home"},{"href":"https://pypi.org/project/cascadeflow/","label":"PyPI"},{"href":"https://www.npmjs.com/package/@cascadeflow/core","label":"npm"}],"primary":{"type":"github","href":"https://github.com/lemony-ai/cascadeflow"}},"footer":{"socials":{"website":"https://cascadeflow.ai","github":"https://github.com/lemony-ai/cascadeflow","x":"https://x.com/saschabuehrle","linkedin":"https://www.linkedin.com/company/lemony-ai"},"links":[{"header":"Packages","items":[{"label":"PyPI","href":"https://pypi.org/project/cascadeflow"},{"label":"npm","href":"https://www.npmjs.com/package/@cascadeflow/core"}]},{"header":"Resources","items":[{"label":"Changelog","href":"/changelog"},{"label":"Contributing","href":"/contributing"},{"label":"For Coding Agents","href":"/for-coding-agents"}]}]},"contextual":{"options":["copy","view","chatgpt","claude","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://cascadeflow.ai"},{"anchor":"GitHub","icon":"github","href":"https://github.com/lemony-ai/cascadeflow"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cascadeflow","hasAudioNarration":false,"actualSubdomain":"cascadeflow","customDomains":["docs.cascadeflow.ai"],"gitSource":{"type":"github","owner":"lemony-ai","repo":"cascadeflow","deployBranch":"main","contentDirectory":"docs-site","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a904592fe5feb54075ca2a1","collectionId":"430c8883-9ae1-406f-a9a8-f2a3cab171e6","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a904592fe5feb54075ca2a1"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a904592fe5feb54075ca2a1","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"Documentation","count":39},{"language":"default","tag":"API Reference","count":27},{"language":"default","tag":"Python","count":14},{"language":"default","tag":"Examples","count":14},{"language":"default","tag":"TypeScript","count":13},{"language":"default","tag":"Integrations","count":10},{"language":"default","tag":"Getting Started","count":8},{"language":"default","tag":"Harness","count":8},{"language":"default","tag":"Guides","count":6},{"language":"default","tag":"Resources","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"harness/compliance","slug":"/harness/compliance","pageMetadata":{"title":"Compliance Gating","description":"GDPR, HIPAA, PCI, and strict model allowlists for compliance-aware model gating in agent workflows.","href":"/harness/compliance"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"GDPR, HIPAA, PCI, and strict model allowlists for compliance-aware model gating in agent workflows.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The harness enforces model allowlists based on compliance requirements. When a compliance mode is set, only models in the corresponding allowlist are permitted.`}),`\n`,_jsx(Heading,{level:`2`,id:`python-compliance-modes`,children:`Python Compliance Modes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Mode`}),_jsx(_components.th,{children:`Allowed Models`}),_jsx(_components.th,{children:`Use Case`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`gdpr`})}),_jsx(_components.td,{children:`gpt-4o, gpt-4o-mini, gpt-3.5-turbo`}),_jsx(_components.td,{children:`EU data protection`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`hipaa`})}),_jsx(_components.td,{children:`gpt-4o, gpt-4o-mini`}),_jsx(_components.td,{children:`Healthcare data`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pci`})}),_jsx(_components.td,{children:`gpt-4o-mini, gpt-3.5-turbo`}),_jsx(_components.td,{children:`Payment card data`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`strict`})}),_jsx(_components.td,{children:`gpt-4o`}),_jsx(_components.td,{children:`Maximum restriction`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`typescript-compliance-modes`,children:`TypeScript Compliance Modes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Mode`}),_jsx(_components.th,{children:`Allowed Models`}),_jsx(_components.th,{children:`Tool Policy`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`regulated`})}),_jsx(_components.td,{children:`gpt-4o, Claude Sonnet 4.5`}),_jsx(_components.td,{children:`Allowed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`strict`})}),_jsx(_components.td,{children:`gpt-4o, gpt-4o-mini, Claude Sonnet 4.5, Claude Haiku 4.5`}),_jsx(_components.td,{children:`Denied`})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Compliance profile names currently differ between the Python and TypeScript harnesses. TypeScript does not currently implement the `,_jsx(_components.code,{children:`gdpr`}),`, `,_jsx(_components.code,{children:`hipaa`}),`, or `,_jsx(_components.code,{children:`pci`}),` profiles. An unknown TypeScript profile does not apply an allowlist.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`usage`,children:`Usage`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`7`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cascadeflow`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`cascadeflow.init(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`mode`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"enforce\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# GDPR compliance — only gpt-4o, gpt-4o-mini, gpt-3.5-turbo allowed`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cascadeflow.run(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`compliance`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gdpr\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` session:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` agent.run(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Process this EU customer data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`7`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`run`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@cascadeflow/core'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`mode:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'enforce'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` run`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`compliance:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'regulated'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` agent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`run`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Process this regulated customer data'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})]}),`\n`,_jsx(_components.p,{children:`Or as agent metadata:`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`3`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`@cascadeflow.agent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`compliance`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hipaa\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` medical_agent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`query`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`str`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` llm.complete(query)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`5`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`harnessAgent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '@cascadeflow/core'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` regulatedAgent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` harnessAgent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`compliance:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'regulated'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`query`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` llm`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`complete`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`query`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`enforcement-behavior`,children:`Enforcement Behavior`}),`\n`,_jsx(_components.p,{children:`When a model outside the allowlist is requested:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`In `,_jsx(_components.code,{children:`observe`}),` mode: the trace records `,_jsx(_components.code,{children:`action: \"switch_model\"`}),` with the suggested compliant alternative, but execution continues with the original model`]}),`\n`,_jsxs(_components.li,{children:[`In `,_jsx(_components.code,{children:`enforce`}),` mode: the harness blocks the non-compliant model and either switches to a compliant alternative or stops execution`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`combining-with-budget`,children:`Combining with Budget`}),`\n`,_jsx(_components.p,{children:`Compliance and budget constraints are independent. Both are checked at every step:`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Python`,numberOfLines:`3`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cascadeflow.run(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`budget`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.50`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`compliance`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gdpr\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` session:`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Must stay within budget AND use only GDPR-approved models`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` agent.run(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Analyze EU customer feedback\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`TypeScript`,numberOfLines:`3`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` run`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`budget:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0.50`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`compliance:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'regulated'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` agent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`run`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Analyze regulated customer feedback'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`custom-policies`,children:`Custom Policies`}),`\n`,_jsx(_components.p,{children:`The harness APIs select built-in profiles by name. They do not currently accept custom model allowlists. For custom requirements, validate the selected model in your integration before sending the request.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`approved_models `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"my-approved-deployment\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` selected_model `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`not`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` approved_models:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` raise`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` PermissionError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Model is not approved\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Example walkthrough:`}),` `,_jsx(_components.a,{href:`/examples/compliance-gating`,children:`Compliance Gating`}),` | `,_jsx(_components.strong,{children:`GitHub:`}),` `,_jsx(_components.a,{href:`https://github.com/lemony-ai/cascadeflow/blob/main/examples/enforcement/basic_enforcement.py`,children:`enforcement/basic_enforcement.py`})]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Compliance Gating","description":"GDPR, HIPAA, PCI, and strict model allowlists for compliance-aware model gating in agent workflows.","href":"/harness/compliance"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Python Compliance Modes","slug":"python-compliance-modes","depth":2,"children":[]},{"title":"TypeScript Compliance Modes","slug":"typescript-compliance-modes","depth":2,"children":[]},{"title":"Usage","slug":"usage","depth":2,"children":[]},{"title":"Enforcement Behavior","slug":"enforcement-behavior","depth":2,"children":[]},{"title":"Combining with Budget","slug":"combining-with-budget","depth":2,"children":[]},{"title":"Custom Policies","slug":"custom-policies","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"cascadeflow","siteName":"cascadeflow","title":"Compliance Gating - cascadeflow","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-27T14:11:52.179Z","originalFileLocation":"harness/compliance.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"GDPR, HIPAA, PCI, and strict model allowlists for compliance-aware model gating in agent workflows.\">\u003cmeta data-mint-head name=\"application-name\" content=\"cascadeflow\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cascadeflow/LunE6ki4gQkyanrJ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cascadeflow/LunE6ki4gQkyanrJ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cascadeflow/LunE6ki4gQkyanrJ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cascadeflow/LunE6ki4gQkyanrJ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cascadeflow/LunE6ki4gQkyanrJ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cascadeflow/LunE6ki4gQkyanrJ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cascadeflow/LunE6ki4gQkyanrJ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cascadeflow/LunE6ki4gQkyanrJ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cascadeflow/LunE6ki4gQkyanrJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Compliance Gating - cascadeflow\">\u003cmeta data-mint-head property=\"og:description\" content=\"GDPR, HIPAA, PCI, and strict model allowlists for compliance-aware model gating in agent workflows.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"cascadeflow\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cascadeflow.ai/harness/compliance\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cascadeflow.mintlify.site/_mintlify/api/og/v2?division=Harness\u0026amp;title=Compliance+Gating\u0026amp;description=GDPR%2C+HIPAA%2C+PCI%2C+and+strict+model+allowlists+for+compliance-aware+model+gating+in+agent+workflows.\u0026amp;theme=927026d725a0373c7e42b357\u0026amp;signature=fa6e077798994cd9fbf9ebf6d7e36abdb3da15b38f6603a85e3d78ac65383558\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Compliance Gating - cascadeflow\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"GDPR, HIPAA, PCI, and strict model allowlists for compliance-aware model gating in agent workflows.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cascadeflow.mintlify.site/_mintlify/api/og/v2?division=Harness\u0026amp;title=Compliance+Gating\u0026amp;description=GDPR%2C+HIPAA%2C+PCI%2C+and+strict+model+allowlists+for+compliance-aware+model+gating+in+agent+workflows.\u0026amp;theme=927026d725a0373c7e42b357\u0026amp;signature=fa6e077798994cd9fbf9ebf6d7e36abdb3da15b38f6603a85e3d78ac65383558\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/cascadeflow/LunE6ki4gQkyanrJ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"cascadeflow\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0E7490\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cascadeflow.ai/harness/compliance\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/harness/compliance.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cascadeflow.ai/#organization\",\"name\":\"cascadeflow\",\"url\":\"https://docs.cascadeflow.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cascadeflow/XBH9iEf5YbNVfBQt/logo/cascadeflow-light.svg?fit=max\u0026auto=format\u0026n=XBH9iEf5YbNVfBQt\u0026q=85\u0026s=6d5fa0dba985df928922d85669644099\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cascadeflow.ai#website\",\"name\":\"cascadeflow\",\"url\":\"https://docs.cascadeflow.ai\",\"publisher\":{\"@id\":\"https://docs.cascadeflow.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cascadeflow.ai/harness/compliance#webpage\",\"url\":\"https://docs.cascadeflow.ai/harness/compliance\",\"name\":\"Compliance Gating\",\"description\":\"GDPR, HIPAA, PCI, and strict model allowlists for compliance-aware model gating in agent workflows.\",\"dateModified\":\"2026-08-27T14:11:52.179Z\",\"isPartOf\":{\"@id\":\"https://docs.cascadeflow.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cascadeflow.ai/harness/compliance#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cascadeflow.ai/harness/compliance#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Harness\",\"item\":\"https://docs.cascadeflow.ai/harness/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Compliance Gating\",\"item\":\"https://docs.cascadeflow.ai/harness/compliance\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.cascadeflow.ai/harness/compliance#article\",\"headline\":\"Compliance Gating\",\"name\":\"Compliance Gating\",\"description\":\"GDPR, HIPAA, PCI, and strict model allowlists for compliance-aware model gating in agent workflows.\",\"url\":\"https://docs.cascadeflow.ai/harness/compliance\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cascadeflow.ai/harness/compliance#webpage\"},\"dateModified\":\"2026-08-27T14:11:52.179Z\",\"publisher\":{\"@id\":\"https://docs.cascadeflow.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cascadeflow.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"cascadeflow\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"cascadeflow","nav":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://cascadeflow.ai"},{"anchor":"GitHub","icon":"github","href":"https://github.com/lemony-ai/cascadeflow"}]},"tabs":[{"tab":"Documentation","icon":"book-open","groups":[{"group":"Overview","pages":[{"title":"cascadeflow","sidebarTitle":"cascadeflow","href":""},{"title":"Why cascadeflow","sidebarTitle":"Why cascadeflow","href":"/why-cascadeflow"}]},{"group":"Getting Started","pages":[{"title":"Installation","href":"/get-started/installation"},{"title":"Quickstart: Observe Mode","href":"/get-started/observe"},{"title":"Quickstart: Enforce Mode","href":"/get-started/enforce"},{"title":"Quickstart: Agent Decorator","href":"/get-started/agent-decorator"},{"title":"Agent Harness","href":"/get-started/agent-harness"},{"title":"Agent Loop","href":"/get-started/agent-loop"},{"title":"Rollout Guide","href":"/get-started/rollout-guide"},{"title":"Choose Your Integration","href":"/get-started/choose-integration"}]},{"group":"Core Concepts","pages":[{"title":"How It Works","href":"/get-started/how-it-works"},{"title":"Capabilities Overview","href":"/capabilities/overview"}]},{"group":"Harness","pages":[{"title":"Harness Overview","href":"/harness/overview"},{"title":"Harness Modes","href":"/harness/modes"},{"title":"Budget Enforcement","description":"Configure budget enforcement with per-run caps and automatic stop actions when budget is exceeded.","href":"/harness/budget-enforcement"},{"title":"Compliance Gating","href":"/harness/compliance"},{"title":"KPI-Weighted Routing","description":"Inject business priorities as quality, cost, latency, and energy weights into every model routing decision.","href":"/harness/kpi-optimization"},{"title":"Energy Tracking","href":"/harness/energy-tracking"},{"title":"Decision Traces","href":"/harness/decision-trace"},{"title":"Decision Actions","href":"/harness/actions"}]},{"group":"Integrations","pages":[{"title":"Integrations Overview","href":"/integrations/overview"},{"title":"LangChain","href":"/integrations/langchain"},{"title":"OpenAI Agents SDK","href":"/integrations/openai-agents"},{"title":"CrewAI","href":"/integrations/crewai"},{"title":"Google ADK","href":"/integrations/google-adk"},{"title":"PydanticAI","href":"/integrations/pydantic-ai"},{"title":"Vercel AI SDK","href":"/integrations/vercel-ai"},{"title":"n8n","href":"/integrations/n8n"},{"title":"OpenClaw","href":"/integrations/openclaw"},{"title":"Hermes Agent","href":"/integrations/hermes-agent"}]},{"group":"Guides","pages":[{"title":"Providers And Presets","href":"/developers/providers-and-presets"},{"title":"Tools And Streaming","href":"/developers/tools-and-streaming"},{"title":"Production And Deployment","href":"/developers/production-and-deployment"},{"title":"Enterprise Networking","href":"/developers/enterprise-networking"},{"title":"Customization","href":"/developers/customization"},{"title":"Observability And Privacy","href":"/developers/observability-and-privacy"}]},{"group":"Resources","pages":[{"title":"For Coding Agents","sidebarTitle":"For Coding Agents","href":"/for-coding-agents"},{"title":"Changelog","href":"/changelog"},{"title":"Contributing","href":"/contributing"}]}]},{"tab":"API Reference","icon":"code","pages":[{"title":"API Reference","href":"/api-reference/python/overview"}]},{"tab":"Examples","icon":"flask","pages":[{"title":"Examples","href":"/examples/catalog"}]}]},"basePath":"","title":"Compliance Gating - cascadeflow","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":[],"chunks":[]}