Expand description
AI-powered intelligence for MockForge
This crate contains modules extracted from mockforge-core related to
intelligent behavior, AI response generation, and behavioral cloning.
Currently migrated:
ai_response: Typed AI response generation helpersbehavioral_cloning: Probability models, sequence learning, edge amplificationpr_generation: GitHub/GitLab PR generation client (Issue #562 phase 1 — moved out ofmockforge-corebecause it only depends onmockforge_foundation::Error, no other core internals)intelligent_behavior: LLM-driven behavior model, persona-aware response generation, OpenAPI-backed example/rule generation (Issue #562 phase 2 — the AI cluster’s leaf module, depends only onmockforge-openapiandmockforge-foundation)threat_modeling: LLM-driven security analyzer (DoS / PII / schema / error / threat / remediation generators) for the contract-drift pillar (Issue #562 phase 3). Depends only on siblingintelligent_behavior+mockforge-openapi+mockforge-foundation.ai_contract_diff: LLM-assisted OpenAPI diff with semantic analysis, confidence scoring, recommendations, and correction proposals (Issue #562 phase 4). Recordsai_generationpillar usage via the now-foundationpillar_trackingglobal, so the analytics dashboard keeps reflecting contract-diff activity unchanged.contract_validation: OpenAPI-spec-to-response contract validator (Issue #562 phase 5). Single file; depends only onserde+mockforge-openapimockforge-foundation::pillar_tracking.
failure_analysis: LLM-driven failure context + narrative generator (Issue #562 phase 5). Depends only on siblingintelligent_behavior.
Still in mockforge-core and worth migrating in follow-ups:
ai_studio: 3 sub-files still pullreality(debug_context, debug_context_integrator) andvoice(nl_mock_generator). Reality is moveable next; voice is the wall and a multi-day campaign.
Modules§
- ai_
contract_ diff - Pillars: [Contracts][AI]
- ai_
response - AI-assisted response generation for dynamic mock endpoints
- ai_
studio - Pillars: [AI]
- behavioral_
cloning - Behavioral Cloning of Backends
- contract_
validation - Pillars: [Contracts]
- failure_
analysis - Failure analysis and root-cause narrative generation
- intelligent_
behavior - Intelligent Mock Behavior System
- pr_
generation - Pull request generation for contract changes
- reality
- Pillars: [Reality]
- threat_
modeling - Contract Threat Modeling
- voice
- Pillars: [AI][DevX]