Provenance and verification flags
Three claims in the source document are stated here exactly as written, with their verification status attached. Nothing on this page upgrades an unverified claim into a verified one.
PMLA, SAL, DIMEA 2.0, Token-Swap Prompting, Master Constraint Block, Kill Switch, and the Neuruh Factory are Neuruh's own frameworks as named in the source. DDD, BDD, ADRs, SOC 2, ISO 27001, ISO 42001, and NIST AI RMF are established external methodologies and standards referenced by the source.
What changed for 2027
IPP was written as a methodology. For 2027 it is mapped onto the systems that already run it. The protocol does not change. The substrate does.
- Master Constraint Block maps to N-Cell authority masks plus the Conceptual Lexicon as the ubiquitous language. Locked variables become authority masks: what an agent may do, not just what it is told.
- PMLA maps to the Memory Workbench. Memory slots become governed, versioned capsules with decay, provenance, and contradiction handling.
- SAL maps to the Organization Compiler plus Mother/Axon. Agent handoffs become compiled orgs with a conductor, not ad hoc pipelines.
- Kill Switch maps to Sentinel Court. Halting a pipeline becomes an adjudicated verdict with a severity ladder and a reversibility score.
- DIMEA maps to Founder Economics and the Calibration Lab. Alignment scores become tracked forecasts with Brier scoring, not one-off workshop numbers.
- Audit logging maps to CRUCIBLE hash-chained receipts. Logs become tamper-evident chains, not append-only files.
- The seven phases map to the JGI Ops Console promotion pipeline. Phase gates become promotion stages with rollback.
- Model references updated from GPT-4 to 2026 frontier models (Claude, GPT, Grok). Vector memory updated to Qdrant plus Supabase. Deployment updated to Cloudflare Workers/Pages plus Vercel.
Live systems this maps to: N-Cell paper, N-Cell worked example, JGI Ops Console, JGI Sentinel Court, JGI Organization Compiler, JGI Memory Workbench, JGI Calibration Lab, JGI Autonomy Lab, Liability Layer, CRUCIBLE demo, Public Commons chain demo, Atomic AI Agent, Modular AI Research Agent, Conceptual Lexicon, ClearPath Formula v1.
The seven frameworks, with their 2027 organism mapping
| Framework | Drift vector it addresses | 2027 organism mapping |
|---|---|---|
| Master Constraint Block | Unrequested features, boundary violations | N-Cell authority masks plus Conceptual Lexicon |
| SAL (Stacked Agent Logic) | Single-agent overload, lost handoff context | Organization Compiler plus Mother/Axon |
| PMLA | Context loss across sessions | Memory Workbench |
| DIMEA 2.0 | Business purpose drift | Founder Economics plus Calibration Lab |
| Token-Swap Prompting | Uncontrolled variation | Token-Swap Studio (locked DNA, swappable tokens) |
| Kill Switch | Flawed outputs propagating downstream | Sentinel Court |
| Neuruh Factory | Intent captured from only one starting point | Modular AI Research Agent (idea to system, system to execution) |
The problem IPP solves
The missing component that ensures every AI-assisted build is architecturally sound, commercially deployable, security-ready, and immune to requirement drift.
The Intent Preservation Protocol solves the fundamental problem plaguing AI-assisted software development: the systematic erosion of business intent, architectural decisions, and quality standards as code evolves through iterative AI generation cycles. Where the source states that 21.7% of AI-generated package recommendations are hallucinations and 43% of organizations report their architecture documentation no longer reflects production reality, traditional development methodologies fail to constrain AI behavior. IPP codifies Neuruh's capital-grade deployment process into a universal framework that transforms raw ideas into production-ready, commercially viable agent systems.
This protocol synthesizes Neuruh's proprietary frameworks (PMLA, SAL, DIMEA 2.0, Token-Swap Prompting, and the Master Constraint Block architecture) with proven software engineering principles from Domain-Driven Design, Behavior-Driven Development, and Architecture Decision Records. The result is an executable methodology that prevents the compounding technical debt, security vulnerabilities, and requirement drift that typically plague AI-generated codebases.
Core philosophy: intent as immutable infrastructure
Traditional software development treats requirements as input and code as output. AI-assisted development inverts this relationship: the AI becomes a co-author whose probabilistic outputs must be constrained by deterministic intent. The Intent Preservation Protocol operates on three foundational principles.
1. Intent is the source of truth, not code
Specifications, constraints, and architectural decisions exist as immutable artifacts that AI cannot modify. Code generation occurs within explicit boundaries defined by the Master Constraint Block pattern: locked variables that persist across sessions, agents, and iterations.
2. Validation must be continuous, not terminal
Every AI interaction passes through quality gates that verify alignment with original intent before proceeding. The Kill Switch mechanism halts generation pipelines when outputs drift beyond acceptable thresholds.
3. Context must bridge, not break
AI systems forget. The Prompt-as-Memory Loop Architecture (PMLA) transforms passive context into active execution triggers, creating persistent state that survives session boundaries and context window limitations.
Neuruh's framework architecture mapped to intent preservation
The protocol integrates seven core Neuruh frameworks, each addressing specific drift vectors in AI-assisted development.
The Master Constraint Block pattern
Neuruh's Visual Cortex system demonstrates the pattern: immutable configuration artifacts that lock brand identity, visual parameters, and quality thresholds across all agent operations. The master_constraints.yaml file codifies non-negotiable variables that AI agents cannot override even when user inputs request violations:
intent_constraints:
locked: true
business_logic:
domain_model: "[UBIQUITOUS_LANGUAGE_DEFINITIONS]"
bounded_contexts: "[CONTEXT_BOUNDARIES]"
architectural_rules:
patterns_required: "[MANDATORY_PATTERNS]"
patterns_forbidden: "[ANTI_PATTERNS]"
quality_gates:
security_threshold: 0.95
test_coverage_minimum: 0.90
architectural_compliance: true
When constraint overrides arrive via API, the orchestrator ignores conflicts with locked parameters. This prevents the "yes-and" problem where AI adds unrequested features by establishing explicit boundaries that generation cannot exceed.
The SAL Framework: Stacked Agent Logic
SAL decomposes complex tasks into sequenced execution plans with explicit handoff protocols between specialized agents. Each agent operates within defined capability boundaries, preventing the architectural drift that occurs when a single AI attempts to handle end-to-end implementation:
| Agent Type | Responsibility | Intent Preservation Role |
|---|---|---|
| Content Parser | Extracts specifications from user input | Validates input against domain model |
| Frame Generator | Creates artifacts from specifications | Enforces visual/structural constraints |
| Quality Control | Validates outputs against requirements | Implements Kill Switch logic |
| Orchestrator | Coordinates agent workflows | Manages retry loops with semantic feedback |
The SAL Framework implements agentic feedback loops: when Quality Control fails, it provides semantic correction to the Generator agent rather than blind retry:
scene.prompt += f" REVISION: Fix text '{scene.required_text}'"
This preserves intent by propagating failure context forward.
PMLA: Prompt-as-Memory Loop Architecture
PMLA addresses the context window limitation that causes AI to forget architectural decisions mid-conversation. Each memory slot becomes a strategic execution capsule containing pre-instructed logic that activates on trigger patterns:
Memory 04 -> "Activate REI-X Protocol" -> Launches real estate intelligence loop
with skip tracing, zoning logic, and off-market filters
Memory 07 -> "Loop Mxx > Mxx > Mxx" -> Executes chained prompts across
defined memory slots for cascading operations
The Recall-Aware Intelligence Stack (RAIS) upgrade adds pattern detection beyond keywords: when semantic or structural patterns match pre-defined triggers, the system activates relevant memory nodes automatically. This creates persistent multi-agent state simulation within stateless AI architectures.
DIMEA 2.0: The alignment framework
DIMEA (Desire, Identity, Mission, Expression, Alignment) provides the "why" layer that grounds technical execution in business purpose. For enterprise deployments, DIMEA translates to:
- Desire: Business objectives and success metrics
- Identity: Brand constraints and organizational standards
- Mission: Strategic objectives the system must serve
- Expression: Output formats and communication patterns
- Alignment: Verification that implementation matches purpose
The DIMEA Score Tracker enables weekly assessment of drift from original intent across all five dimensions, flagging misalignment before it compounds.
Token-Swap Prompting methodology
Token-Swap demonstrates constraint-based generation at scale. A master template defines immutable visual DNA (technical specifications, lighting, materials, style boundaries) while designated tokens permit controlled variation:
<ANGLE_TOKEN> | [LOCKED: ultra-photoreal 8K, golden-hour, global illumination,
natural color science, zero stylization artifacts]
SWAP OPTIONS:
P1: "High-altitude aerial..."
P2: "Eye-level cinematic hero shot..."
P3: "Low-angle twilight view..."
The template establishes the foundation that never changes while enabling surgical control over specific elements. Applied to code generation: lock architectural patterns, domain models, and security requirements while allowing variation only in implementation details.
The Kill Switch pattern
Neuruh's Visual Cortex implements bounded retry logic that halts pipelines when quality thresholds fail:
while not frame_approved and attempts < 3:
draft_frame = self.generator.create(scene.prompt, specs.constraints)
qc_result = self.qc.verify_text(draft_frame, scene.required_text)
if qc_result.passed:
frame_approved = True
else:
scene.prompt += f" REVISION: Fix '{scene.required_text}'"
attempts += 1
if not frame_approved:
raise JobFailedException("Generation failed after 3 attempts")
The Neuruh Factory: Bi-Directional System Architecture Engine
The Factory demonstrates the complete idea-to-deployment pipeline in both directions:
MODE 1: IDEA -> DIAGRAM -> SYSTEM. Raw concept or conversation -> visual architecture -> complete specification.
MODE 2: DIAGRAM -> SYSTEM -> EXECUTION. Existing flowchart -> full specification -> agentic AI deployment.
This bi-directional capability ensures intent can be captured from any starting point, whether stakeholder conversation, existing documentation, or whiteboard sketch, and transformed into executable specifications with autonomous agent implementations.
The seven-phase build process
Phase 1: Intent capture and codification
Objective: Extract and formalize all business requirements, constraints, and success criteria into immutable artifacts.
Activities:
- Conduct DIMEA alignment session to establish Desire, Identity, Mission, Expression, and Alignment parameters
- Create Master Constraint Block with locked business rules, domain model, and architectural patterns
- Generate Architecture Decision Records (ADRs) for all significant technical choices
- Define bounded contexts and ubiquitous language following DDD principles
- Establish success criteria with quantifiable metrics
Artifacts produced: INTENT.yaml (master intent specification with locked constraints); ADR-NNN.md (numbered decision records with context, decision, and consequences); DOMAIN_MODEL.md (ubiquitous language dictionary and bounded context map); SUCCESS_CRITERIA.md (measurable outcomes and quality thresholds).
Quality gate: Stakeholder sign-off on intent artifacts; DIMEA score >= 80 across all dimensions.
Phase 2: Visual architecture generation
Objective: Transform captured intent into visual specifications that constrain AI generation.
Activities:
- Generate C4 diagrams (System Context, Container, Component) using Structurizr DSL or Mermaid
- Create sequence diagrams for critical user journeys
- Produce data flow diagrams with trust boundaries for security requirements
- Develop BPMN workflows for business process logic
- Define API contracts using OpenAPI 3.1 specification
Artifacts produced: architecture/c4/ (complete C4 model hierarchy); architecture/sequences/ (sequence diagrams for key flows); architecture/dfd/ (data flow with security boundaries); api/openapi.yaml (API contract specification); workflows/ (BPMN process definitions).
Quality gate: Architecture review against ADRs; contract validation; security boundary completeness.
Phase 3: Executable specification creation
Objective: Convert visual architecture into executable specifications that validate AI outputs.
Activities:
- Write BDD scenarios in Gherkin format for all features
- Create API contract tests using OpenAPI specification
- Define architectural fitness functions for drift detection
- Establish security test cases aligned with OWASP requirements
- Document non-functional requirements with acceptance criteria
Artifacts produced: features/*.feature (BDD scenarios in Given-When-Then format); contracts/*.test.js (contract test implementations); fitness/*.test.js (architectural fitness functions); security/*.test.js (security validation tests); NFR.md (non-functional requirements with thresholds).
Quality gate: All scenarios pass review; contract tests execute against API spec; fitness functions validate current architecture.
Phase 4: Constrained AI generation
Objective: Generate implementation code within explicit constraints from Phases 1-3.
Activities:
- Load Master Constraint Block into AI context with PMLA triggers
- Provide intent artifacts, ADRs, and visual specifications as generation constraints
- Execute generation in SAL-structured agent pipeline
- Implement Kill Switch checkpoints after each generation step
- Validate outputs against executable specifications before proceeding
Generation prompt structure:
CONTEXT: [Master Constraint Block]
INTENT: [Phase 1 intent artifacts]
ARCHITECTURE: [Phase 2 visual specifications]
SPECIFICATIONS: [Phase 3 executable specs]
CURRENT_STATE: [Previously generated/approved code]
CONSTRAINTS:
- All generated code MUST conform to ADR decisions
- Domain model terminology MUST use ubiquitous language
- Architectural patterns MUST match C4 component diagram
- Security requirements MUST meet [THRESHOLD] validation
TASK: [Specific generation request]
VALIDATION REQUIRED: Before accepting this output, verify:
1. BDD scenarios still pass
2. Contract tests validate
3. Architectural fitness functions confirm compliance
Quality gate: All executable specifications pass; Kill Switch not triggered; code review approval.
Phase 5: Drift detection and remediation
Objective: Continuously validate implementation against original intent throughout development.
Activities:
- Execute architectural fitness functions on every commit
- Run contract tests against API implementations
- Compare generated code against visual specifications
- Measure DIMEA alignment scores weekly
- Flag and remediate drift before it compounds
Drift detection mechanisms:
| Drift Type | Detection Method | Remediation |
|---|---|---|
| Architectural | Fitness functions comparing structure to C4 diagrams | Refactor to architectural boundary |
| Requirements | BDD scenario failures | Regenerate with corrected constraints |
| Contract | API response validation against OpenAPI spec | Update implementation or spec (with ADR) |
| Security | SAST/DAST scanning against security requirements | Block merge until resolved |
| Intent | DIMEA score tracking | Stakeholder review and realignment |
Quality gate: Zero critical drift; all fitness functions green; DIMEA scores stable or improving.
Phase 6: Capital-grade deployment preparation
Objective: Ensure system meets enterprise deployment standards for compliance, security, and commercial viability.
Activities:
- Complete SOC 2 Type II control mapping
- Document ISO 27001/ISO 42001 compliance evidence
- Implement audit logging with 6+ month retention
- Configure multi-tenant isolation (if applicable)
- Prepare operational runbooks and incident response procedures
- Validate API documentation for white-label readiness
Compliance checklist:
- Audit logging captures all AI interactions, model versions, user actions
- Access controls implement RBAC with documented role definitions
- Data encryption at rest and in transit
- Vulnerability scanning passes with no critical/high findings
- Penetration testing completed
- Business continuity plan documented and tested
- SLA definitions documented with measurable thresholds
Quality gate: Compliance audit readiness; security scan clean; operational documentation complete.
Phase 7: Operational intent preservation
Objective: Maintain intent alignment throughout production lifecycle.
Activities:
- Implement continuous drift detection in CI/CD pipeline
- Monitor DIMEA alignment scores in production
- Execute weekly context refresh following PMLA protocols
- Conduct monthly architectural review against ADRs
- Update intent artifacts when business requirements evolve (with full ADR documentation)
Monitoring dashboard metrics: architectural conformance score; contract compliance rate; security vulnerability count; DIMEA alignment by dimension; intent drift velocity (rate of drift over time).
Quality gate: Monthly architectural review sign-off; intent drift within acceptable thresholds.
Drift prevention mechanisms by build stage
At requirements capture
Mechanism: DIMEA alignment scoring with stakeholder validation.
Implementation: Before any development begins, capture business intent across all five DIMEA dimensions. Score each dimension 0-100 based on clarity and stakeholder agreement. Proceed only when all dimensions score >= 80.
Prevents: Ambiguous requirements that AI interprets inconsistently; missing business context; unstated constraints.
At architecture design
Mechanism: Architecture Decision Records with consequence tracking.
Implementation: Document every architecturally significant decision using the Nygard template. Include context (forces at play), decision (what we chose), status (proposed/accepted/superseded), and consequences (all effects: positive, negative, neutral). ADRs become context for subsequent decisions: consequences of ADR-003 inform context of ADR-007. This creates a decision chain that preserves rationale across project lifetime.
Prevents: Re-litigation of past decisions; blind acceptance or change of architecture; loss of institutional knowledge.
At specification creation
Mechanism: Executable specifications with living documentation.
Implementation: Write BDD scenarios before implementation. These serve as: (1) requirements documentation stakeholders can read; (2) acceptance criteria AI must satisfy; (3) regression tests that verify ongoing compliance; (4) living documentation that updates with code. When specifications change, changes require explicit approval and ADR documentation.
Prevents: Specification drift from implementation; outdated documentation; ambiguous acceptance criteria.
At code generation
Mechanism: Master Constraint Block with Kill Switch validation.
Implementation: Load all constraints into AI context:
generation_constraints:
architectural_patterns:
required: [repository, service_layer, dependency_injection]
forbidden: [god_objects, circular_dependencies, direct_db_access]
domain_model:
entities: [from DOMAIN_MODEL.md]
value_objects: [from DOMAIN_MODEL.md]
ubiquitous_language: [from DOMAIN_MODEL.md]
security_requirements:
authentication: OAuth2.0
authorization: RBAC
encryption: AES-256
minimum_threshold: 0.95
After each generation step, execute validation against specifications. If validation fails, provide semantic feedback and retry (max 3 attempts). If still failing after max retries, trigger Kill Switch and escalate to human review.
Prevents: Hallucinated dependencies; architectural violations; security vulnerabilities; scope creep.
At integration
Mechanism: Contract testing with API-first validation.
Implementation: Generate API contracts (OpenAPI spec) before implementation. All AI-generated code must pass contract tests that validate request/response schemas match specification, error codes align with documentation, authentication flows work correctly, and rate limiting behaves as documented. Contract violations block deployment.
Prevents: API drift between documentation and implementation; integration failures; breaking changes.
At deployment
Mechanism: Fitness functions with continuous validation.
Implementation: Architectural fitness functions run in CI/CD pipeline on every merge:
// Example: Module dependency validation
describe('Architecture Fitness', () => {
it('should not have circular dependencies', () => {
const cycles = detectCyclicDependencies(codebase);
expect(cycles).toHaveLength(0);
});
it('should respect bounded context boundaries', () => {
const violations = findBoundaryViolations(codebase, contextMap);
expect(violations).toHaveLength(0);
});
});
Fitness function failures block deployment and trigger architectural review.
Prevents: Architectural erosion over time; accumulating technical debt; boundary violations.
In production
Mechanism: Intent drift monitoring with alerting.
Implementation: Track intent alignment metrics in production: compare live API behavior against contract specification; monitor for undocumented endpoints or responses; track DIMEA alignment through user feedback and business metrics; alert when drift exceeds thresholds. Weekly automated reports compare current system state against original intent artifacts.
Prevents: Production drift from documented behavior; silent feature changes; compliance violations.
Quality gates and verification checkpoints
Gate 1: Intent lock
Trigger: Before development begins. Criteria: DIMEA scores >= 80 all dimensions; Master Constraint Block approved by stakeholders; initial ADRs documented for known technical decisions; success criteria quantified. Approval: Product owner + technical lead sign-off.
Gate 2: Architecture freeze
Trigger: Before code generation begins. Criteria: C4 diagrams complete (Context, Container, Component levels); sequence diagrams for critical paths; API contracts defined in OpenAPI; security boundaries mapped. Approval: Architecture review board sign-off.
Gate 3: Specification validation
Trigger: Before AI generates implementation code. Criteria: All BDD scenarios reviewed and approved; contract tests execute successfully against mocked implementations; fitness functions defined for architectural rules; security test cases aligned with requirements. Approval: QA lead + security lead sign-off.
Gate 4: Generation acceptance
Trigger: After each AI generation cycle. Criteria: Kill Switch not triggered; all BDD scenarios pass; contract tests validate; fitness functions green; security scans clean (no critical/high). Approval: Automated + developer review.
Gate 5: Integration clearance
Trigger: Before merge to main branch. Criteria: All tests pass (unit, integration, contract, security); architectural fitness functions validate; code coverage >= 90%; no new architectural violations. Approval: Automated CI/CD + peer review.
Gate 6: Deployment authorization
Trigger: Before production deployment. Criteria: Compliance documentation complete; audit logging verified; runbooks tested; rollback procedure validated; SLA definitions documented. Approval: Operations lead + compliance officer sign-off.
Gate 7: Production validation
Trigger: After production deployment. Criteria: Smoke tests pass; monitoring dashboards operational; alerting configured; incident response contacts verified. Approval: Operations team confirmation.
Visual methodology integration
Visual artifacts serve three functions in the Intent Preservation Protocol.
As design constraints
C4 diagrams define component boundaries that AI code generation must respect. Container diagrams establish which services exist; Component diagrams define internal structure. AI prompts include these specifications as constraints:
ARCHITECTURE CONSTRAINT: Generated code must implement the following
structure from Component Diagram C4-003:
- UserService container with Authentication, Authorization, Profile components
- UserService may ONLY communicate with DataStore via Repository pattern
- UserService may ONLY call PaymentService via defined API contract
As communication artifacts
Diagrams enable stakeholder review without technical depth. The C4 model's hierarchical zoom (System Context -> Container -> Component -> Code) allows business stakeholders to validate system context while technical teams review component details. The Three Amigos process from BDD applies: business analyst, developer, and QA review specifications together. Visual diagrams make this collaboration practical across different expertise levels.
As drift detection baselines
Fitness functions compare implemented architecture against visual specifications. When code structure diverges from C4 Component diagrams, automated detection flags the drift before it compounds.
Recommended tool stack
| Purpose | Primary Tool | Alternative |
|---|---|---|
| Architecture diagrams | Structurizr DSL | C4-PlantUML |
| Sequence diagrams | Mermaid | PlantUML |
| Process workflows | Camunda Modeler | Lucidchart |
| API documentation | Swagger/OpenAPI | Redoc |
| Data flow/security | Custom DFD tooling | Draw.io |
| Unified rendering | Kroki API | Individual tools |
Tool and platform recommendations
Core infrastructure
Version control: Git with branch protection requiring quality gate approval. CI/CD: GitHub Actions or GitLab CI with fitness function integration. Configuration management: YAML-based constraint files in repository. Secrets management: HashiCorp Vault or cloud provider secret stores.
AI development stack
Primary AI models: Claude (extended context), GPT-4 (code generation), specialized fine-tuned models for domain-specific tasks. 2027 update: frontier models Claude, GPT, and Grok, selected per task. Prompt management: Version-controlled prompt libraries with PMLA trigger definitions. Context management: Structured context injection following Anthropic context engineering principles. Evaluation: LLM-as-a-Judge for quality scoring; human review for critical decisions.
Testing and validation
BDD framework: Cucumber or Behave with Gherkin scenarios. Contract testing: Pact or Dredd for API contract validation. Fitness functions: Custom Jest/Pytest suites with architectural rules. Security scanning: Semgrep, CodeQL, Bandit (language-appropriate SAST).
Observability
Logging: Structured JSON logging with correlation IDs. Tracing: OpenTelemetry with GenAI semantic conventions. Monitoring: Prometheus/Grafana or cloud provider monitoring. AI-specific observability: Langfuse, Arize Phoenix, or LangSmith.
Compliance
Audit logging: Immutable log storage with 6+ month retention. 2027 update: CRUCIBLE hash-chained receipts. Access control: RBAC with documented role definitions. Documentation: Arc42 template structure with C4 visual integration.
Success metrics and monitoring
Development phase metrics
| Metric | Target | Measurement Method |
|---|---|---|
| Kill Switch activation rate | < 10% of generation cycles | CI/CD pipeline logs |
| BDD scenario pass rate | >= 95% first attempt | Test automation reports |
| Architectural fitness compliance | 100% | Fitness function results |
| Security scan findings (critical/high) | 0 | SAST/DAST scan outputs |
| Code coverage | >= 90% | Coverage tool reports |
| ADR documentation completeness | 100% of significant decisions | Manual review |
Production phase metrics
| Metric | Target | Measurement Method |
|---|---|---|
| API contract compliance | 100% | Runtime contract validation |
| Architectural drift velocity | Stable or decreasing | Monthly fitness function trends |
| DIMEA alignment score | >= 80 all dimensions | Stakeholder surveys + metrics |
| Incident rate (intent-related) | < 1 per quarter | Incident classification |
| Time to detect drift | < 24 hours | Alerting latency |
| Mean time to remediate drift | < 1 sprint | Issue tracking |
Business outcome metrics
| Metric | Target | Measurement Method |
|---|---|---|
| White-label deployment time | < 1 week from contract | Project tracking |
| Compliance audit findings | Zero critical | Audit reports |
| Customer-reported bugs (architectural) | < 5% of total bugs | Bug classification |
| Technical debt trend | Stable or decreasing | Debt tracking tools |
Packaging as sellable methodology
The Intent Preservation Protocol is designed for dual deployment.
As internal standard
Implementation pattern:
- Adopt IPP as organizational engineering standard
- Create organization-specific constraint templates
- Train teams on PMLA, SAL, and DIMEA concepts
- Integrate quality gates into CI/CD pipelines
- Establish metrics dashboards for leadership visibility
Time to value: 1-2 months for initial adoption; 3-6 months for full integration.
As commercial offering
Product tiers:
IPP Essentials (Self-service): Protocol documentation and templates; constraint file templates; quality gate checklists; video training library; community support.
IPP Professional (Guided implementation): Essentials plus implementation workshops; custom constraint development assistance; architecture review support; dedicated slack channel; quarterly alignment reviews.
IPP Enterprise (White-glove): Professional plus embedded consultant; full compliance documentation support; custom tool integration; executive briefings; ongoing protocol optimization.
Certification program: IPP Practitioner (can execute protocol on projects); IPP Architect (can design constraint systems and fitness functions); IPP Lead (can train teams and optimize organizational adoption).
White-label licensing: Rebrandable documentation; custom constraint templates for vertical markets; co-branded certification; revenue share on sub-licenses.
The protocol in action: deployment pattern
A complete IPP deployment follows this flow:
Week 1: Intent Capture
├── DIMEA alignment workshop
├── Initial constraint identification
├── Success criteria definition
└── Stakeholder sign-off on Gate 1
Week 2-3: Architecture & Specification
├── C4 diagram development
├── ADR documentation
├── BDD scenario writing
├── Contract definition
└── Gate 2 & 3 sign-off
Week 4-6: Constrained Generation
├── PMLA context loading
├── SAL agent pipeline execution
├── Kill Switch validation cycles
├── Fitness function development
└── Gate 4 sign-off per sprint
Week 7-8: Integration & Deployment Prep
├── Contract test validation
├── Security scan remediation
├── Compliance documentation
├── Runbook creation
└── Gate 5 & 6 sign-off
Week 9: Production Launch
├── Staged deployment
├── Monitoring activation
├── Incident response testing
└── Gate 7 sign-off
Ongoing: Operational Excellence
├── Weekly drift detection
├── Monthly architectural review
├── Quarterly DIMEA assessment
└── Continuous protocol refinement
Conclusion: from chaos to capital-grade
The Intent Preservation Protocol transforms AI-assisted development from probabilistic chaos into deterministic engineering. By treating intent as immutable infrastructure (codified in constraints, validated through executable specifications, and monitored throughout production), organizations can harness AI's acceleration benefits without accumulating the compounding technical debt that typically follows.
For Neuruh deployments specifically, IPP operationalizes the patterns proven across CartIQ, REIA GPT, ROOF-OPS, TaxShield AI, and the defense contractor systems. The Master Constraint Block locks brand and quality requirements. The Kill Switch prevents flawed outputs from propagating. PMLA maintains context across sessions. SAL orchestrates specialized agents. DIMEA aligns execution with purpose.
Together, these patterns ensure that every Neuruh build produces systems that are architecturally sound, commercially deployable, security-ready, and immune to the drift that kills typical AI-assisted projects.
The protocol is the missing component of intent.
This protocol synthesizes Neuruh's proprietary frameworks (PMLA, SAL, DIMEA 2.0, Token-Swap Prompting, Master Constraint Block, Kill Switch, Neuruh Factory) with established software engineering methodologies (DDD, TDD, BDD, ADRs, Contract-First Development) and enterprise compliance standards (SOC 2, ISO 27001, ISO 42001, NIST AI RMF) into a unified methodology for capital-grade AI agent deployment.
Studio 1: Phase Navigator
Walk the seven phases. Check off each artifact as you produce it and each gate criterion as you meet it. Readiness is the share of artifacts plus gate criteria completed. The first phase below 100% is the blocking gate.
Studio 2: DIMEA Scorer
Score each dimension 0 to 100. Gate 1 requires 80 or higher on every dimension. The overall score is the mean of the five dimensions.
Studio 3: Master Constraint Block Builder
Build the locked constraint file for your project. Locked means locked: the violation test below shows the orchestrator ignoring an override request that conflicts with a locked parameter.
Violation test
Type an override request. If it conflicts with a locked parameter, the orchestrator ignores it and cites the locked rule.
Studio 4: Kill Switch Simulator
A simulated generation pipeline. Set the defect rate and the drift threshold, then run. Each failed QC check appends semantic feedback to the prompt and retries, up to 3 attempts. After 3 failures the Kill Switch halts the pipeline and reports the downstream cost saved. The run uses a fixed seed, so the same settings always produce the same run.
Downstream steps skipped when the Kill Switch triggers: integration testing, contract validation, security scan, staging deploy, monitoring setup.
Studio 5: Drift Detector and Dashboard
Pick a drift type to see its detection method and remediation from the protocol. Then advance the dashboard week by week: drift events are injected on a fixed schedule, and an alert fires when intent drift velocity exceeds 5 points per week.
Drift dashboard simulator
| Metric | Value | Threshold | Status |
|---|
Week counter: 0
Studio 6: Quality Gate Checker
Check each gate criterion as it is met. A gate is approved only when every criterion is checked. Deployment readiness is the count of approved gates out of 7.
Studio 7: Deployment Timeline
The 9-week flow. Click a segment to see its activities and gate sign-offs. Advance the progress marker as the deployment moves.
Studio 8: Commercial Tiers
Answer three questions and the picker recommends a tier. Features are from the protocol as written.
IPP Essentials
Self-service
- Protocol documentation and templates
- Constraint file templates
- Quality gate checklists
- Video training library
- Community support
IPP Professional
Guided implementation
- Everything in Essentials
- Implementation workshops
- Custom constraint development assistance
- Architecture review support
- Dedicated slack channel
- Quarterly alignment reviews
IPP Enterprise
White-glove
- Everything in Professional
- Embedded consultant
- Full compliance documentation support
- Custom tool integration
- Executive briefings
- Ongoing protocol optimization
Certification program
- IPP Practitioner: Can execute protocol on projects.
- IPP Architect: Can design constraint systems and fitness functions.
- IPP Lead: Can train teams and optimize organizational adoption.
White-label licensing
- Rebrandable documentation
- Custom constraint templates for vertical markets
- Co-branded certification
- Revenue share on sub-licenses