> For the complete documentation index, see [llms.txt](https://docs.walnutai.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.walnutai.ai/core-features/gap-analysis.md).

# Gap Analysis

The **Gap Analysis module** serves as the alignment engine of the WalnutAI platform. It continuously evaluates how well business requirements (stories) align with the implemented code, ensuring that development accurately reflects product intent while maintaining overall code quality.

#### How is Gap Analysis helpful?

In complex and evolving projects, it’s important to have clear visibility into how the system is built, tested, documented, and secured. Gap Analysis helps identifying architectural issues, documentation gaps, unit test coverage gaps, and security risks early, helping teams maintain quality and control across the SDLC.

This helps you quickly understand what needs attention and where to focus first, making it easier to prioritize fixes and improve overall code quality with clarity and confidence.

The following are the Insights provided during Gap Analysis:

#### Story Coverage Analysis

Analyse whether each documented requirement has been fully and correctly implemented in the codebase.

#### Missing Story Detection

Identify implemented functionality that does not have an associated requirement, helping prevent scope creep and undocumented changes.

#### Implementation Health Metrics

View coverage percentages, gap counts, and alignment scores to quickly assess project health at a glance, along with indicators of code quality, testing completeness, and technical risk.

#### Code Quality & Documentation Review

Evaluate engineering standards, technical debt indicators, documentation completeness, architectural structure, unit test coverage, and security posture to ensure a robust and maintainable codebase.

#### Traceability & Governance

Maintain a clear, auditable link between business intent, development output, and quality validation, ensuring transparency across requirements, implementation, and engineering quality.

#### AI-Powered Risk Detection

Leverage WalnutAI to intelligently analyse requirements and code, identifying functional gaps, architectural weaknesses, security vulnerabilities, and testing gaps beyond simple keyword matching.

Gap Analysis transforms alignment from a manual review process into a continuous, end-to-end intelligence layer. It enables teams to monitor and improve every phase of development from requirement coverage and implementation accuracy to architecture quality, testing reliability, documentation completeness, and security ensuring high-quality, scalable, and reliable software delivery.

&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.walnutai.ai/core-features/gap-analysis.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
