Files
scadaproj/components/ui-theme/validation/bunit-2.7.2/BTDB/VALIDATION.md
T
2026-11-13 15:32:41 -05:00

25 lines
3.2 KiB
Markdown

# BU-09 BTDB validation
Existing checkout execution was explicitly authorized on 2026-11-13 after managed worktree creation stalled. Parent confirmed clean master; child independently rechecked clean HEAD 5b89798 and created codex/scada-ui-consistency before mutation. No new worktree was created and no further creation request made.
## Prerequisites and baseline
- global.json requires SDK 10.0.105 with latestPatch; host default10.0.403 could not satisfy it. Installed exact10.0.105 only in /tmp/scada-btdb-dotnet, verified archive SHA512 against official Microsoft release metadata, then extracted the verified archive. SDK path/hash/source are in sdk-provenance.json. No global.json, machine SDK or runtime configuration changed. All BTDB commands use task-local PATH/DOTNET_ROOT only.
- Original restore failed NU1902/NU1903 for transitive Pkcs9.0.13. Original failure and selected graph records retained as prerequisite-* evidence; no audit bypass or warning suppression.
- Parent authorized minimal production dependency remediation: direct Pkcs9.0.21 pin only in Manager.Core (SqlClient7.0.2 otherwise resolves9.0.13). Both advisories list9.0.21 as patched9.x. This is an explicit production graph change, separate from the bUnit migration; see production-graph-change.json.
- With only that prerequisite applied, Manager BEFORE full suite426 passed, zero failures/skips; Core full suite350 passed, zero failures/skips. This is the before-bUnit baseline, not a claim that the original vulnerable restore succeeded.
## Migration and after results
- Exact bunit2.7.2 and direct AngleSharp1.5.2 in existing test csproj; no new central package management or xUnit/Test SDK/runner versions.
- Version-only compilation red recorded old API errors. Migrated26 C# test/helper files: BunitContext, Render, AddAuthorization/BunitAuthorizationContext, BunitNavigationManager, typed IRenderedComponent<T> helper, and awaited DisposeComponentsAsync in cancellation/Monaco tests. Real policy registration, strict Monaco JSInterop and every assertion remain. Assertion-call counts unchanged in all26 files.
- Build: zero warnings/errors. Focused43/43 passed, including machine/dialog/row/rail/cancellation/Monaco behavior.
- Clean Release/forced restore after full suite:426 passed, zero failures/skips. Same426 identities and outcomes; no added/removed tests or new skips.
- Package vulnerability audit: no vulnerable packages. Restored test graph has bunit2.7.2, AngleSharp1.5.2 and no old bunit.core/web generation. Production graph contains no bUnit/AngleSharp/xUnit leaks. The necessary Pkcs production delta is recorded explicitly above; production graph is not claimed unchanged overall.
## Scope and handoff
The Core csproj security prerequisite was reviewed/committed by the parent as b12117a. The remaining27 test project/fixture files are uncommitted for parent review and a separate migration commit. No Theme/app UI, navigation production code, database/schema or live data changes. Core350 tests establish existing unit contracts; no new live SQL/PLC/environment integration acceptance is claimed.
Before/after TRX, discovery/commands/graphs/audit, SDK provenance and assertion/test identity comparisons are preserved alongside this record.