Skip to content

FLT-281 quality gate verification

Measured on DESKTOP-SCDT9HI (streaming), 2026-10-26, resuming baseline 4b511f2. Node v24.18.0; .NET SDK 10.0.400-preview.0.26322.102; Docker 29.6.1. Local receipt files are under ignored .tmp/receipts/. No mobile/android or Verse4Verse.Themes source was changed.

Gate behavior

CI job Build fails on
backend Any .NET test failure; Scripture line coverage below 688/738, Catalog below 436/505, Translate below 624/720; all three have an 80% minimum
frontend Build/test failure; Vitest statements <86.49%, branches <78.57%, functions <77.21%, lines <97.51%; disclaimer or UI microcopy FK grade >8.5
security Invalid/accepted-bad security parser or runner controls; gitleaks findings; any vulnerable NuGet package; High/Critical web or mobile npm audit finding
codeql (C# and JS/TS) Missing/invalid SARIF, analysis errors, any error/warning result, or security-severity >=4 even if labeled note
mutation Stryker score below configured break; runs on pushes to master only, so task-branch CI intentionally skips it
e2e Any headless Playwright assertion; serious/critical axe violation; token contrast <4.5:1; unreachable/non-HTML ZAP target, scanner/report failure, or any High ZAP alert

CodeQL C# uses a real solution build so source generators and project boundaries are respected. JS/TS uses no-build extraction. SARIF is retained as an artifact. upload: never disables CodeQL v3 code-scanning uploads without GHAS; legacy false can still upload on failure. Permissions explicitly grant contents:read, security-events:write and actions:read. No continue-on-error is used.

Local receipts

The commands below ran with MSBUILDDISABLENODEREUSE=1, DOTNET_NOLOGO=1 and DOTNET_CLI_TELEMETRY_OPTOUT=1. Catalog__ExpandedPath points to C:/v4v-data/catalog/catalog-expanded.json. Database credentials came from the ignored root .env, never from committed configuration. Use Host=127.0.0.1 for local Compose: localhost incurred an IPv6 fallback delay on this Windows host.

dotnet coverage and tests

Passed!  - Failed:     0, Passed:    82, Skipped:     0, Total:    82, Duration: 1 s - Verse4Verse.Scripture.Tests.dll (net10.0)
Scripture line coverage: 93.22% (688/738); required >=93.22%
Passed!  - Failed:     0, Passed:    98, Skipped:     0, Total:    98, Duration: 1 s - Verse4Verse.Catalog.Tests.dll (net10.0)
Catalog line coverage: 86.34% (436/505); required >=85.62%
Passed!  - Failed:     0, Passed:    73, Skipped:     0, Total:    73, Duration: 2 m 4 s - Verse4Verse.Translate.Tests.dll (net10.0)
Translate line coverage: 86.67% (624/720); required >=86.67%
Passed!  - Failed:     0, Passed:     1, Skipped:     0, Total:     1, Duration: 115 ms - Verse4Verse.ArchitectureTests.dll (net10.0)

npm --prefix web run test:coverage

 Test Files  9 passed (9)
      Tests  60 passed (60)
Statements   : 89.63% ( 856/955 )
Branches     : 84.55% ( 323/382 )
Functions    : 81.13% ( 86/106 )
Lines        : 98.17% ( 322/328 )

Live producer capture: scripts/capture-web-contracts.ps1

translations HTTP 200 1203 bytes
chapter HTTP 200 5157 bytes
compare HTTP 200 24691 bytes
history HTTP 200 18435 bytes
song HTTP 200 234 bytes

npm --prefix web run test:e2e

axe /: 0 total violations; 0 serious/critical
contrast --text on --bg: 17.54:1
contrast --text-2 on --surface: 8.72:1
contrast --gold on --bg: 10.89:1
contrast --on-gold on --gold: 10.39:1
axe /scripture: 0 total violations; 0 serious/critical
axe /scripture: 0 total violations; 0 serious/critical
axe /scripture: 0 total violations; 0 serious/critical
axe /scripture: 0 total violations; 0 serious/critical
axe /scripture: 0 total violations; 0 serious/critical
axe /songs/20000000-0000-0000-0000-000000000001: 0 total violations; 0 serious/critical
  5 passed (11.2s)

scripts/run-zap.ps1 -Target http://host.docker.internal:5000

ZAP target readiness: HTTP 200 HTML
FAIL-NEW: 0 FAIL-INPROG: 0  WARN-NEW: 0 WARN-INPROG: 0  INFO: 0 IGNORE: 5   PASS: 63
ZAP risk 3 alert types: 0
ZAP risk 2 alert types: 0
ZAP risk 1 alert types: 5
90004: Cross-Origin-Embedder-Policy Header Missing or Invalid [Low (Medium)]
90004: Cross-Origin-Opener-Policy Header Missing or Invalid [Low (Medium)]
90004: Cross-Origin-Resource-Policy Header Missing or Invalid [Low (Medium)]
10110: Dangerous JS Functions [Low (Low)]
10063: Permissions Policy Header Not Set [Low (Medium)]
ZAP risk 0 alert types: 3
10109: Modern Web Application [Informational (Medium)]
10049: Storable and Cacheable Content [Informational (Medium)]
10049: Storable but Non-Cacheable Content [Informational (Medium)]
ZAP High alert gate passed.

scripts/test-security-gates.ps1

Security parser controls: 15 passed.
ZAP runner warning-clean: exit 0; expected outcome verified.
ZAP runner high: exit 1; expected outcome verified.
ZAP runner readiness-error: exit 1; expected outcome verified.
ZAP runner scanner-error: exit 1; expected outcome verified.
ZAP runner checker-exit: exit 1; expected outcome verified.
ZAP runner controls: 5 passed.

Dependency audits

NuGet audit gate: 23 project(s), no vulnerable dependencies.
web npm audit --audit-level=high: exit 0; 2 moderate severity vulnerabilities
mobile npm audit --audit-level=high: exit 0; 3 moderate severity vulnerabilities

node scripts/reading-level.mjs

MODERATION-LINE outcome summaries: FK grade 2.72 (maximum 8.50)
AI draft disclaimer: FK grade 4.46 (maximum 8.50)
home UI microcopy: FK grade 5.54 (maximum 8.50)
scripture UI microcopy: FK grade 4.59 (maximum 8.50)
verse-history UI microcopy: FK grade 7.57 (maximum 8.50)
history-compare UI microcopy: FK grade 6.21 (maximum 8.50)
song UI microcopy: FK grade 4.79 (maximum 8.50)
library UI microcopy: FK grade 2.91 (maximum 8.50)
study-everyone-is-welcome.md study day 1: FK grade 7.17
study-everyone-is-welcome.md study day 2: FK grade 5.50
study-everyone-is-welcome.md study day 3: FK grade 6.25
study-everyone-is-welcome.md study day 4: FK grade 5.63
study-everyone-is-welcome.md study day 5: FK grade 7.37
study-everyone-is-welcome.md study day 6: FK grade 6.44
study-everyone-is-welcome.md study day 7: FK grade 9.93
study-love-was-always-the-point.md study day 1: FK grade 5.23
study-love-was-always-the-point.md study day 2: FK grade 6.40
study-love-was-always-the-point.md study day 3: FK grade 6.49
study-love-was-always-the-point.md study day 4: FK grade 4.83
study-love-was-always-the-point.md study day 5: FK grade 5.23
study-love-was-always-the-point.md study day 6: FK grade 5.07
study-love-was-always-the-point.md study day 7: FK grade 4.67
study-love-was-always-the-point.md study day 8: FK grade 7.93
study-love-was-always-the-point.md study day 9: FK grade 9.13
study-love-was-always-the-point.md study day 10: FK grade 7.53
study-love-was-always-the-point.md study day 11: FK grade 8.39
study-love-was-always-the-point.md study day 12: FK grade 10.49
study-love-was-always-the-point.md study day 13: FK grade 9.80
study-love-was-always-the-point.md study day 14: FK grade 10.72

Mutation receipts

Scripture mutation: 63.03% (583/925); break 59.00; required break >= 58.03; PASS
  CompileError: 108
  Ignored: 70
  Killed: 582
  NoCoverage: 92
  Survived: 250
  Timeout: 1
Translate mutation: 61.61% (207/336); break 57.00; required break >= 56.61; PASS
  CompileError: 405
  Ignored: 1202
  Killed: 207
  NoCoverage: 15
  Survived: 114
Web mutation: 72.13% (88/122); break 67.13; required break >= 67.13; PASS
  Killed: 88
  NoCoverage: 11
  Survived: 23

All configurations use high=80 and low=60. Break thresholds are at least max(50, displayed score minus 5): Stryker.NET requires integers, so its breaks round UP to 59 and 57; web accepts 67.13. The ratcheted thresholds were validated against the saved JSON reports; web was also rerun with its ratcheted threshold. Native Stryker runs passed their initial break=50 thresholds. The pinned .NET CLI rejected decimal configuration and accepted the final integer configuration (then rejected the intentionally project-free validation directory); this was a configuration check, not another full mutation run.

Scripture ran with two workers. Translate ran with eight workers and IPv4 after two slower local attempts were stopped; the completed run took 4m03s. Compile-error and ignored mutants do not enter the score. Translate OriginalNormalization had no viable score because Stryker removed its mutations after compile errors; ScriptValidation measured 40.32% inside the project score. These are measurement limits, not passing file-level thresholds.

Contract, security and scope notes

Five JSON files preserve live API response bodies verbatim; origin/endpoints are recorded in web/src/testing/contracts/README.md. Real Api service and component tests consume them. The negative compare test moves selectedTranslation under a wrong data path and requires the real component to throw.

The refreshed PostgreSQL fixture was restored into a fresh v4v_e2e_verify database: 22 verses each for WEB, BSB and GULNT, all Ruth 1; 15 history rows, all Ruth 1:1; one approved synthetic song; zero out-of-scope verse/original/mapping rows. NT references in provenance are metadata; no NT verse text is included.

API/SPA tests assert CSP, nosniff, Referrer-Policy, frame-ancestors, API no-store, HTTPS HSTS, exact Demo CORS origins and the existing rate limit. Fixture mode is scripts/demo.ps1 -Database <fresh fixture DB> -SkipCatalogSeed; normal catalog import intentionally replaces the synthetic demo song.

ZAP was a passive baseline of the local Demo SPA/assets, reached from Docker via host.docker.internal:5000 (the same host service as 127.0.0.1:5000). An initial host-network attempt could not connect, and an initial alias scan received host filter HTTP 400s; neither is counted as a valid app scan. Demo's exact host allowlist and a scanner-network HTTP 200 HTML preflight fixed that. Reviewed Low/Info rules retain reasons; High alerts are checked independently in raw JSON.

Local gitleaks intentionally FAILS: two generic-key detections in ignored, untracked .env (lines 2 and 3). Git history and the other source scans are clean: 1,506 clean-scan receipts, with .env the only failed file. There is no broad .env or data/**/raw allowlist. No credential values are reproduced here. CI scans Git history without the local .env. Moderate npm advisories remain below the existing High audit threshold; mobile's suggested forced fix would change dependencies.

FK syllables use an English heuristic, so grades are estimates. Disclaimer/UI microcopy enforce 8.5; study-plan days are reported, not enforced. Study days reach 10.72 and need editorial work if that separate content is later given the same cap.

The final checked CI SHA is reported with completion. After the first commit, a local full recheck was blocked by Windows Application Control (0x800711C7) loading the rebuilt Catalog DLL in Scripture and Architecture tests. The earlier full local pass above is retained as that earlier receipt; it must not be mistaken for a successful final recheck. No Windows security policy was changed. Session-identity registry updates were also blocked by Application Control.

Final local Translate recheck after the compatibility-test correction

Passed!  - Failed:     0, Passed:    73, Skipped:     0, Total:    73, Duration: 6 s - Verse4Verse.Translate.Tests.dll (net10.0)
Translate line coverage: 86.67% (624/720); required >=86.67%
Exit code: 0. This checks the final Translate test changes; it does not replace the disclosed full-run Application Control failure.