5B config schema 程式 repo 結構檢查與實作前盤點

返回文件索引

本文件以唯讀方式檢查程式 repo 目前的 config / plugin 結構、候選檔案、測試基準與停止線。使用者尚未確認 5B 七項前,不修改程式 repo。

0. 文件狀態

項目內容
文件狀態已完成
建立日期2026-06-07
程式基準bc3f191,外部 DLL manual-only fake verifier
是否修改程式 repo否,只做唯讀盤點、測試與文件整理

1. 檢查結論

項目結論
5B 承接位置可承接在 AppSettingsConfig.csConfigValidator.cs
設定檔承接位置建議維持 samples/config/appsettings.json,不新增第四個啟動設定檔。
目前 plugin schemaAppSettingsConfig 尚無 PluginLoader / Plugins 欄位。
目前 loader 讀檔ConfigLoader 只載入三個既有 config 檔,5B 不需改讀檔清單。

2. 候選檔案

類型候選檔案建議
Config modelAppSettingsConfig.cs新增 PluginLoader / Plugins 最小 config model。
Config validationConfigValidator.cs新增 plugin id、重複、safe default、source summary 安全驗證。
Sample configsamples/config/appsettings.json加入非敏感 metadata-only sample。
Core testsConfigValidatorTests.csConfigLoaderTests.cs補齊合法、相容、重複與 unsafe source tests。

3. 測試基準

測試結果
dotnet test tests\HS.DeviceControl.Core.Tests\HS.DeviceControl.Core.Tests.csproj --no-restore189 passed / 0 failed / 0 skipped
dotnet test tests\HS.DeviceControl.Application.Tests\HS.DeviceControl.Application.Tests.csproj --no-restore57 passed / 0 failed / 0 skipped
dotnet test HS.DeviceControl.sln --no-restore509 passed / 0 failed / 0 skipped

4. 明確停止線

5. 下一步

下一步仍需等待使用者回覆 5B config schema 實作前確認表 七項同意,才能進入程式 repo 的最小 config schema 實作。