How amirzaafouri/false-positive-reduction-system works
Purpose and runtime
False Positive Validation Platform is an in-development .NET 8 ASP.NET Core service that receives test-failure tickets and is intended to classify them as false positives, defects, infrastructure issues, or other outcomes. Its implemented focus is Jira webhook intake, not the broader planned evidence, rerun, AI, persistence, or ticket-update workflow.
• Host entry point: src/Api/Program.cs
• Solution root: IncidentValidationEngine.slnx
• Container orchestration exists at docker-compose.yml
API boundary and composition
The API layer exposes HTTP endpoints and composes the application and infrastructure layers through dependency-injection extension methods. This is the external boundary for Jira and future ticketing integrations.
• Startup and route registration: src/Api/Program.cs
• Jira webhook endpoint: src/Api/Endpoints/JiraWebhookEndpoints.cs
• Application registrations: src/Api/Configuration/ApplicationServiceExtensions.cs
• Infrastructure registrations: src/Api/Configuration/InfrastructureServiceExtensions.cs
Control enters through the Jira endpoint, which delegates rather than embedding intake/parsing policy in the HTTP layer.
Application intake orchestration
The application layer owns the intake use case and its ports. IncidentIntakeService coordinates conversion of a received ticket payload into an application-level incident intake model, while depending on abstractions for payload parsing.
• Intake use case: src/Application/UseCases/IncidentIntakeService.cs
• Intake contract: src/Application/Interfaces/IIncidentIntakeService.cs
• Parser port: src/Application/Interfaces/ITicketPayloadParser.cs
• Transfer model: src/Application/Common/IncidentIntake.cs
This boundary permits ticket-system-specific parsers to be replaced without coupling the API or use case to Jira payload structure.
Domain decision model
The domain project defines the central incident and classification vocabulary needed by a future validation/decision engine. It is intentionally independent of HTTP and Jira concerns.
• Incident aggregate/model: src/Domain/Entities/Incident.cs
• Classification entity: src/Domain/Entities/Classification.cs
• Decision entity: src/Domain/Entities/Decision.cs
• Classification enum: src/Domain/Enums/IncidentClassification.cs
The README’s rerun/evidence/rule workflow is architectural intent; no dedicated decision-engine, evidence-collection, or self-healing implementation appears in the supplied tree.
Jira infrastructure adapter
Infrastructure supplies the Jira-specific implementation of the application parser port. It is the integration boundary where Jira webhook payload semantics are interpreted before the application intake flow receives normalized data.
• Jira parser: src/Infrastructure/Ticketing/Jira/JiraPayloadParser.cs
• Infrastructure project: src/Infrastructure/Infrastructure.csproj
• Parser abstraction consumed upstream: src/Application/Interfaces/ITicketPayloadParser.cs
Jira is the only concrete external service integration visible. Jira REST ticket actions, Xray, Azure DevOps, and ServiceNow integrations are not present.
Primary request flow
1. Jira sends an HTTP webhook to src/Api/Endpoints/JiraWebhookEndpoints.cs.
2. The endpoint resolves IIncidentIntakeService.
3. IncidentIntakeService uses ITicketPayloadParser.
4. The registered Jira adapter parses the payload into IncidentIntake.
5. The resulting intake is the handoff point for future domain incident creation, evidence/rerun validation, classification, and ticket automation.
Material gaps and infrastructure
The repository is structured as Clean Architecture—API → Application → Domain, with Infrastructure implementing application ports—but currently contains no visible EF Core context/migrations, PostgreSQL access, Serilog setup, OpenAPI configuration, background processing, or AI provider client. docker-compose.yml indicates infrastructure is planned or locally orchestrated, but concrete service wiring should be verified before extending it.
Main entry points: Program.cs API startup · IncidentIntakeService.cs Incident intake service · Incident.cs Incident · JiraPayloadParser.cs Jira payload parser
Components 15
API
HTTP boundary and composition root.
- API startup
src/Api/Program.cs - Jira webhook endpoint
src/Api/Endpoints/JiraWebhookEndpoints.cs - Application registrations
src/Api/Configuration/ApplicationServiceExtensions.cs - Infrastructure registrations
src/Api/Configuration/InfrastructureServiceExtensions.cs
Application
Intake use case and integration ports.
- Incident intake contract
src/Application/Interfaces/IIncidentIntakeService.cs - Incident intake service · Coordinates normalized ticket intake.
src/Application/UseCases/IncidentIntakeService.cs - Ticket payload parser
src/Application/Interfaces/ITicketPayloadParser.cs - Incident intake · Normalized handoff for future validation.
src/Application/Common/IncidentIntake.cs
Domain
Independent incident decision vocabulary.
- Incident
src/Domain/Entities/Incident.cs - Classification
src/Domain/Entities/Classification.cs - Decision
src/Domain/Entities/Decision.cs - Incident classification · False positive, defect, infrastructure issue, or other.
src/Domain/Enums/IncidentClassification.cs
Infrastructure
Jira-specific port implementation.
- Jira payload parser · Interprets Jira webhook payloads.
src/Infrastructure/Ticketing/Jira/JiraPayloadParser.cs
Other components
- Jira · Only concrete external integration.
- Container orchestration · Planned or local infrastructure; concrete wiring is unverified.
docker-compose.yml
Connections 15
- Jira → Jira webhook endpoint: sends webhook
- API startup → Jira webhook endpoint: registers routes
- API startup → Application registrations: composes
- API startup → Infrastructure registrations: composes
- Jira webhook endpoint → Incident intake contract: resolves
- Incident intake contract → Incident intake service: implemented by
- Incident intake service → Ticket payload parser: uses
- Jira payload parser → Ticket payload parser: implements
- Infrastructure registrations → Jira payload parser: registers
- Jira payload parser → Incident intake: parses into
- Incident intake service → Incident intake: returns
- Incident intake → Incident: future creation
- Incident → Classification: future classification
- Classification → Incident classification: uses
- Incident → Decision: future decision