Neo Guide
Neo home

For developers

How to check a change

Which checks to run before saying a change is ready.

Test layers

LayerPurpose
Pure/unitMoney allocation, state transitions, parsing, rendering, and validation.
Service integrationPostgreSQL writes, ownership, idempotency, callbacks, and audits.
End-to-endBuyer, seller, creator, support, admin, payment, shipment, and finance journeys.
ConcurrencyTwo-connection claims, one-time challenges, inventory, carts, recipients, payouts, and support cases.
PostgreSQLRuns the complete corpus, including race and lock cases, with zero database-specific skips.
Provider contractsDeterministic adapters, signature checks, retry, ambiguity, and certification gates.

Baseline gate

npm run db:start
npm run env:check
npm run typecheck
npm test
npm audit --omit=dev
npm run docs:check
git diff --check

CI runs environment validation, type checking, a dependency audit, PostgreSQL migrations, and the complete PostgreSQL test suite. Documentation checks validate page inventory, internal links, anchors, diagrams, and required disclosure vocabulary.

OpenAI evaluation and smoke tests

The recorded conversation corpus covers buyer and seller intent, Nigerian English/Pidgin, spelling, role changes, unsafe requests, price ranges, and regressions. ai:smoke:openai exercises structured planner scenarios. ai:smoke:conversation seeds an isolated catalogue and runs the real session, router, tool plan, search, clarification, correction, and no-stock path.

Run paid live checks only when the planner, prompt, schema, tools, or conversation runtime changes. Documentation-only changes do not consume model quota.

Remaining quality gaps

AQ5 and AQ6 are complete for their declared exit gates: supported production turns have immutable redacted evidence, offline candidate reproduction/diff, bounded candidate capture, risk-based grading, first-failure clustering, reviewed replay-backed regression fixtures, durable quality signals/alerts, and route-complete read/action replay contracts. The final inventory covers every supported WhatsApp buyer/seller route and named resume workflow. Mandatory live-model CI thresholds, full distributed tracing/OpenTelemetry, privacy post-condition drills, continuous financial scanners, and exact-target live-provider certification remain open programme work. A large deterministic suite does not by itself certify a live provider or prove production operations.

  • .github/workflows/ci.yml
  • src/conversation-replay.ts
  • src/conversation-replay-runtime.ts
  • src/conversation-review.ts
  • src/conversation-quality-operations.ts
  • scripts/replay-conversation.ts
  • scripts/conversation-quality-ops.ts
  • test/conversation-replay.test.ts
  • test/conversation-review.test.ts
  • test/conversation-quality-operations.test.ts
  • scripts/openai-planner-smoke.ts
  • scripts/openai-conversation-smoke.ts
  • docs/audits/neo-conversational-commerce-architecture-audit.md