Testing Strategy Models and Lanes (2026)

Audience: module owners and test-automation engineers choosing the right test types for a Stella Ops project, and CI maintainers wiring those tests into lanes.

Source advisorydocs/product/advisories/22-Dec-2026 - Better testing strategy.md
Supersedes / extendsdocs/product/advisories/archived/2025-12-21-testing-strategy/20-Dec-2025 - Testing strategy.md

Purpose

Strategy in brief

Test models (requirements)

Repository foundations

CI lanes (standard filters)

Documentation moments (when to update)


Turn #6 Enhancements (2026-01-27)

Source advisory: Testing Enhancements (Automation Turn #6) Sprint: docs/implplan/SPRINT_0127_002_DOCS_testing_enhancements_turn6.md

New test intent categories

Every non-trivial test must declare intent. Intent clarifies why the behavior exists.

public static class TestIntents
{
    public const string Regulatory = "Regulatory";   // Compliance, audit, legal
    public const string Safety = "Safety";           // Security, fail-secure, crypto
    public const string Performance = "Performance"; // Latency, throughput, resources
    public const string Competitive = "Competitive"; // Parity with competitor tools
    public const string Operational = "Operational"; // Observability, operability
}

// Usage
[Trait("Intent", TestIntents.Safety)]
[Trait("Category", "Unit")]
public void Signer_RejectsExpiredCertificate() { /* ... */ }

New test trait categories

CategoryPurposeExample Usage
IntentTest intent classification[Trait("Intent", "Safety")]
EvidenceEvidence chain validation[Trait("Category", "Evidence")]
ObservabilityOTel/log/metrics contracts[Trait("Category", "Observability")]
LongevityTime-extended stability tests[Trait("Category", "Longevity")]
InteropCross-version/environment skew[Trait("Category", "Interop")]
PostIncidentTests from production incidents[Trait("Category", "PostIncident")]

Updated test model requirements

ModelTurn #6 Additions
L0 (Library/Core)+ Intent trait required for non-trivial tests
S1 (Storage/Postgres)+ Interop tests for schema version migrations
W1 (WebService/API)+ Observability contract tests (OTel spans, log fields, metrics)
WK1 (Worker/Indexer)+ Longevity tests for memory/connection stability
CLI1 (Tool/CLI)+ PostIncident regression tests

New CI lanes

LanePurposeCadenceGating
EvidenceEvidence chain validation, traceabilityPer PRPR-gating for regulatory modules
LongevityTime-extended stability testsNightlyRelease-gating
InteropCross-version compatibilityWeekly + pre-releaseRelease-gating

Observability contract requirements (W1 model)

WebService tests must validate:

[Trait("Category", "Observability")]
[Trait("Intent", "Operational")]
public async Task Scanner_EmitsRequiredTelemetry()
{
    using var otel = new OtelCapture();
    await sut.ScanAsync(request);

    OTelContractAssert.HasRequiredSpans(otel, "ScanImage", "ExtractLayers", "AnalyzeSBOM");
    OTelContractAssert.NoHighCardinalityAttributes(otel, threshold: 100);
}

Evidence traceability requirements

Regulatory tests must link to requirements:

[Requirement("REQ-EVIDENCE-001")]
[Trait("Intent", "Regulatory")]
public void EvidenceBundle_IsImmutableAfterSigning() { /* ... */ }

CI generates traceability matrix: requirement -> test -> artifact.

Cross-version testing requirements (Interop)

For modules with schema or API versioning:

Time-extended testing requirements (Longevity)

For worker modules (WK1 model):

Run duration: 1+ hours for nightly, 4+ hours for release validation.

Post-incident testing requirements

For P1/P2 production incidents:

  1. Capture event sequence via replay infrastructure.
  2. Generate test scaffold from replay manifest.
  3. Include incident metadata (ID, root cause, severity).
  4. Tag with [Trait("Category", "PostIncident")].
  5. Test failures block releases.