Skip to main content

Verification Methodology

9 min read

Methods to ensure quality when applying AIDLC in complex MSA environments.

Verification Checklist​

Ontology Verification​

  • Completeness: Are all entities/events defined in the ontology?
  • Consistency: Is the ontology consistent across Bounded Contexts?
  • Accuracy: Do invariants match business rules?
  • Traceability: Are ontology and code synchronized?

Harness Verification​

Here "failure scenarios" refers not to arbitrary faults but to the failure types explicitly enumerated in the target system's fault model (for example, service timeouts, duplicate or lost messages, partial commits, network partitions). Record that types absent from the fault model are out of verification scope.

  • Coverage: Are all required harnesses implemented?
  • Automation: Are harnesses integrated into CI/CD?
  • Failure Scenarios: Are all failure types enumerated in the documented fault model tested?
  • Performance: Is harness execution time reasonable?

Deployment Verification​

  • Canary Deployment: Is there a progressive rollout strategy?
  • Rollback Plan: Can you rollback if problems occur?
  • Monitoring: Is real-time monitoring available post-deployment?
  • Alerting: Are anomaly detection alerts configured?

Verification Automation​

CI/CD Pipeline​

aidlc-cli is not a published tool; it is a placeholder for the ontology, harness and quality-gate validator that your organization must implement. No public CLI with this name was found (as of 2026-10-29), and the commands and options below are examples of the interface that validator should provide. Each GitHub Actions job runs on a separate runner, so for the quality-gate job to read the harness results, the run-harness job must upload the result files as an artifact and the quality-gate job must download them. needs: passes only the execution order and whether the earlier jobs succeeded.

# .github/workflows/aidlc-validation.yml
name: AIDLC Validation

on: [push, pull_request]

jobs:
validate-ontology:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Validate Ontology
run: |
aidlc-cli validate-ontology --path ontology/

run-harness:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run Harness Tests
run: |
aidlc-cli run-harness --suite saga --output harness-results/saga.json
aidlc-cli run-harness --suite idempotency --output harness-results/idempotency.json
- name: Upload Harness Results
uses: actions/upload-artifact@v4
with:
name: harness-results
path: harness-results/

quality-gate:
runs-on: ubuntu-latest
needs: [validate-ontology, run-harness]
steps:
- name: Download Harness Results
uses: actions/download-artifact@v4
with:
name: harness-results
path: harness-results/
- name: Check Quality Gate
run: |
aidlc-cli quality-gate --threshold 80 --results harness-results/

Expert Review​

For complexity L4-5, expert review is a deployment-blocking gate. Deployment cannot proceed until a designated expert (L4-5) completes the review below and records approval; this is the same pass criterion as the "Expert Review (L4-5) Required" row in the Quality Gate table above.

Review Checklist​

  • Is the Saga design appropriate?
  • Does compensation logic cover all failure scenarios?
  • Is there an event schema version management strategy?
  • Is projection logic accurate?
  • Are performance/scalability considerations reflected?

Review Process​

  1. Design Review: Review Saga/Event Sourcing design
  2. Ontology Review: Verify ontology completeness/accuracy
  3. Harness Review: Verify test coverage and failure scenarios
  4. Performance Review: Review bottlenecks and scalability
  5. Security Review: Analyze data consistency and security vulnerabilities

Quality Gate​

Pass Criteria​

Table 1. Quality gate minimum requirement and recommended target by item

ItemMinimum RequirementRecommended Target
Ontology Coverage90%100%
Harness Success Rate95%100%
Required Harness Implementation100%-
Code Review ApprovalRequired-
Expert Review (L4-5)Required-

These thresholds relate to the aidlc-cli quality-gate --threshold 80 call in the CI/CD example above as follows. --threshold 80 is the lower bound for the gate's composite score (80%), while the table's "Ontology Coverage" and "Harness Success Rate" are the lower bounds of the individual metrics that make up that composite score. "Required Harness Implementation 100%" means every harness classified as P0/P1 in the Harness Checklist must be implemented; P2 and below map to the recommended target. The three values measure different things, so they are not merged into a single number.

Action on Failure​

  1. Incomplete Ontology: Add missing items and re-verify
  2. Harness Failure: Fix bugs and re-run
  3. Performance Issues: Resolve bottlenecks and re-measure
  4. Expert Review Failure: Improve design and re-review

Continuous Improvement​

Metric Tracking​

  • Ontology change frequency
  • Harness execution time trends
  • Production issue occurrence rate
  • Rollback frequency

Feedback Loop​

  1. Add harness when production issues occur
  2. Improve ontology for frequently failing patterns
  3. Optimize slow harnesses
  4. Document best practices

Next Steps​