Policy As Code

2 posts

line4 min readCurated summary

Journey Toward Perfect AI Guardrails

NeurIPS 2025 research shows that AI safety is moving beyond simple post-training alignment and output filtering toward system-level, modular defenses. New approaches intervene in reasoning, multimodal interpretation, policy enforcement, and continuous evaluation to balance safety with latency and usefulness. The central conclusion is that deployable AI requires adaptable guardrails designed for real-world systems, not isolated attack benchmarks. ## The Shift Toward Practical AI Safety - Guardrails protect AI services from harmful instructions, privacy leaks, confidential-data exposure, bias, prompt injection, and other failures. - NeurIPS 2025 reflects a broader shift: - From post-training safety tuning to intervention in reasoning mechanisms. - From text-only LLMs to VLMs, RAG systems, and reasoning models. - From laboratory attack scenarios to the practical balance between utility and safety. - The article focuses on guardrail frameworks, multimodal moderation, prompt injection and jailbreaks, hallucinations, and over-refusal. ## Modular Guardrail Frameworks **PRIME Guardrails: A General, Low-Latency Safety Framework for Generative AI** addresses the trade-off between rigorous safety checks and response latency through a modular architecture: - **Policy specification:** Declarative, human-readable rules separate policies from model parameters, allowing legal or policy teams to control behavior. - **Risk sensing and scoring:** Asynchronous detectors combine lexical rules, semantic similarity, and lightweight classifiers. Early exit blocks obvious attacks quickly while allowing domain-specific calibration. - **Intervention router:** A deterministic controller chooses whether to allow, rewrite, or reject an interaction based on policies and risk scores. - **Monitoring and memory:** Lightweight records preserve decisions and rejection reasons for predictability and auditing. - **Evaluation and evolution:** Red-team recipes and automated vulnerability testing help the system adapt to new attack methods. The framework supports defense in depth without running every expensive safety mechanism sequentially. Its modularity, auditing capabilities, and continuous-evaluation loop make it suitable for production environments. ## Turning Governance Policies into Code **Policy-as-Prompt: Turning AI Governance Rules into Guardrails for AI Agents** converts informal organizational materials into runtime-enforceable controls. - The framework analyzes sources such as PRDs, technical design documents, regulations, and source code. - It builds a **source-linked policy tree** connecting individual rules to their original documents. - The policies are compiled into lightweight prompt-based classifiers. - When an agent rejects a request, the system can trace the decision back to its legal or organizational basis. - The approach helps enforce: - Least-privilege access. - Data minimization. - Restrictions on out-of-scope tasks. - Protection against prompt injection. - It may be especially valuable in regulated industries such as finance and healthcare, where frequently changing policies create substantial technical debt. ## Multimodal Safety and VLM Reasoning Vision-language models create new safety challenges because harmful meaning can emerge from interactions between images and text. **GuardReasoner-VL: Safeguarding VLMs via Reinforced Reasoning** trains models to reason about combined modalities rather than classifying each input independently. - It addresses cases where harmless text obscures harmful visual content, such as an image of a bloodied knife paired with “cooking.” - Its GRPO-based training process includes: - **Safety-aware data concatenation** to create difficult examples containing hidden or mixed harmful content. - **Dynamic clipping** that encourages exploration early in training and tighter refinement later. - **Length-aware safety rewards** that reward concise conclusions supported by reasoning. - The method aims to detect subtle harms such as hate speech hidden in memes and visual metaphors. ## Hidden Vulnerabilities in Multimodal Training Data **VLMs can Aggregate Scattered Training Patches** demonstrates that filtering training images may not be sufficient. - A harmful image can be divided into individually innocuous patches and included in training. - A VLM may reconstruct the harmful concept by associating patches that share the same text label. - The paper calls this behavior **visual stitching**, related to cross-sample reasoning and inductive out-of-context reasoning. - Text labels such as “safe” or “unsafe” can help the model connect fragmented visual information and infer the original image-level meaning. - This suggests that safety evaluations must inspect not only final outputs but also: - Input-processing pipelines. - Cross-sample interactions. - Internal or latent representations. The available article ends while introducing research on distorted safety perception, so that section cannot be summarized further from the provided text. In practice, organizations should combine modular, low-latency enforcement with traceable policy management and multimodal evaluations that test hidden interactions—not just obvious harmful prompts or images.

Read original(opens in new tab)
gitlab3 min readCurated summary

Agentic SDLC: GitLab and TCS deliver Intelligent Orchestration across the enterprise

GitLab and TCS are partnering to help enterprises scale DevSecOps through AI-agent orchestration. Their combined approach addresses fragmented toolchains, inconsistent security, manual compliance, and the risks of AI-generated code by combining GitLab’s unified platform and guardrails with TCS’s migration, architecture, and industry expertise. The goal is to evolve DevSecOps into auditable “Intelligent Orchestration,” where humans and AI agents collaborate across the software lifecycle. ## Supporting the Future-Ready Enterprise - GitLab’s unified data model connects planning, coding, testing, security, and deployment in one source of context. - Enterprises can standardize pipelines, controls, and metrics without repeatedly re-engineering their development platforms. - GitLab and TCS combine: - Multi-agent orchestration - Dynamic planning - Confidence-scored decisions - Continuous learning cycles - GitLab Duo agents, including Planner, Security Analyst, and Code Review agents, can be invoked through MCP-driven integrations and TCS’s structured agent hierarchy. - These agents operate with project context while remaining subject to GitLab’s AI-native DevSecOps controls. ## Scaling DevSecOps Through Platform Engineering - Platform engineering replaces individually managed pipelines with an Internal Developer Platform (IDP). - Self-service “golden paths” standardize how applications are built, tested, secured, and deployed. - Policy-as-code embeds governance, compliance, and security into development by default. - GitLab serves as the IDP control plane. - TCS designs and industrializes self-service workflows around that control plane. - GitLab Duo adds AI-driven automation to development and operational tasks. ## From DevSecOps to Intelligent Orchestration - Traditional DevSecOps platforms manage code, pipelines, and controls; intelligent orchestration also coordinates human and AI work. - GitLab Duo agents can work in parallel on: - Code generation - Testing - Code review - Security analysis - CI/CD troubleshooting - Pipeline repair - Developers remain in control through rules and guidance while agents handle repetitive or multi-step work. - Agent actions are contextual, auditable, and policy-aligned. - This allows organizations to extend AI across thousands of engineers while preserving security and regulatory compliance. ## The GitLab–TCS Reference Architecture - GitLab contributes: - Intelligent Orchestration across the DevSecOps lifecycle - Unified project context - Specialized AI agents - Integrated security and compliance controls - TCS contributes: - Reference architectures - Migration factories - Enterprise security baselines - AI capabilities and risk-management frameworks - Platform engineering and adoption programs - TCS’s industry and regulatory experience helps adapt GitLab to legacy systems, organizational models, compliance obligations, and multi-cloud environments. - The partnership emphasizes enterprise-scale adoption rather than isolated tooling deployments. Together, GitLab and TCS recommend building an Internal Developer Platform with embedded policy-as-code, self-service workflows, and governed AI agents. This approach can reduce delivery friction and manual toil while allowing enterprises to scale automation without sacrificing oversight, security, or compliance.

Read original(opens in new tab)