Engineering Methodology

How Condrox AI was designed, built, tested, and verified. Every principle, standard, and measurement that shapes the system from first commit to final deployment.

Development Philosophy

Condrox AI was built on four principles that guided every decision from the first line of code to the final deployment manifest.

Testing Standards

The project maintains 63 mandatory testing rules (R-TS-01 through R-TS-63) documented in Report/rules/testing_standards.md. These rules are derived from academic, corporate, and laboratory standards.

12 acceptance criteria (A1 through A12) must all pass for any test to be considered valid:

IDCriterion
A1Test has a unique identifier
A2Test has a clear purpose statement
A3Test has documented preconditions
A4Test has documented postconditions
A5Test covers both positive and negative cases
A6Test has boundary value analysis
A7Test has error path coverage
A8Test is deterministic (same input, same output)
A9Test is isolated (no dependency on other tests)
A10Test is repeatable (can be run multiple times)
A11Test has documented complexity (O() notation)
A12Test is automated (no manual steps)

Current test suite: 938 tests across 43 files.

639
Unit Tests
90
Integration Tests
8
API Tests
11
Storage Tests
24
Admin API Tests
51
AI-OS Tests
32
BM25 / Conversation Tests
83
Evidence Engine Tests

All passing. Zero failures. ~210 seconds execution time.

Test-First Development

New features start with failing tests that define expected behavior. The implementation is then written to make those tests pass. This ensures that every feature has a test before it exists, not as an afterthought.

The Evidence Engine followed this pattern across all 7 phases. Each phase started with test scenarios that defined what the evidence should look like, then the evaluator was built to produce that evidence.

Evidence-Driven Improvement

Every change to the system is measured by the Evidence Engine before and after. The engine runs 11 scenarios across 7 evidence dimensions:

  1. System verification (boot, API health, scenario runs)
  2. Conversational evidence (empathy, relevance, consistency, multi-turn stability)
  3. Reasoning evidence (step-by-step structure, logical coherence, planning)
  4. Agent and pipeline evidence (agent usage, RAG, memory, personality)
  5. Full-system integration (end-to-end conversation, reasoning, agents, RAG, API)
  6. Academic reports (Lab, Academic, Peer Review editions)
  7. Evidence portal (score history, report library)

If a change reduces the evidence score, it is not merged. The current score is 93.87% (WARN), with full-system release status READY and a complete-session score of 92.94%. The remaining WARN is driven by StepByStepStructure and ExplanationQuality on the code_analysis reasoning task.

Code Standards

Report Standards

All professional reports follow rules in Report/rules/:

Every report has a unique ID: RPT-<domain>-<seq>-<year>. Domains: SYS, PERF, CI, AGT, CREA, TEST, SEC, REL, RES.

Phase-Based Development

Work is organized into phases with clear entry and exit criteria. Each phase has:

16 phases have been completed. Each is documented on the Development Phases page.

Reproducibility

Every claim about the system can be independently verified:

The evidence reports include methodology sections, references, signatures, and reproducibility instructions. Any expert can run the same commands and get the same results.