feat(linear-static-3d-euler-beam): step 8 - core-diagnostics
This commit is contained in:
@@ -45,3 +45,43 @@
|
||||
- handoff: `fesa_solver`, `fesa_unit_tests`, `fesa_tests`, normalized
|
||||
`Fesa::MKL`, `Fesa::TBB`, `Fesa::HDF5`, and `solverVersion()` are available
|
||||
to Step 8.
|
||||
|
||||
## Step 8 — core-diagnostics
|
||||
|
||||
- task_id: `TASK-08`
|
||||
- status: `completed`
|
||||
- changed_files: `include/fesa/core/source_identity.hpp`,
|
||||
`include/fesa/core/diagnostic.hpp`, `include/fesa/core/status.hpp`,
|
||||
`src/fesa/core/diagnostic.cpp`, `src/fesa/core/status.cpp`,
|
||||
`src/fesa/CMakeLists.txt`, `tests/CMakeLists.txt`,
|
||||
`tests/unit/core/source_identity_test.cpp`,
|
||||
`tests/unit/core/diagnostic_test.cpp`, `tests/unit/core/status_test.cpp`,
|
||||
`docs/implementation-plans/linear-static-3d-euler-beam-implementation-report.md`
|
||||
- requirement_ids: `FESA-REQ-LS3DEB-033`, `FESA-REQ-LS3DEB-034`
|
||||
- test_ids: `T08-CORE-001`, `T08-CORE-002`, `T08-CORE-003`
|
||||
|
||||
| stage | exact command | exit_code | expected_or_observed_result | evidence_tail |
|
||||
| --- | --- | ---: | --- | --- |
|
||||
| RED | `cmake --build .harness/build --config Debug --target fesa_tests` | 1 | Tests are registered before production and fail for the three missing core headers | MSVC C1083 for `fesa/core/diagnostic.hpp`, `fesa/core/source_identity.hpp`, and `fesa/core/status.hpp` |
|
||||
| GREEN-build | `cmake --build .harness/build --config Debug --target fesa_tests` | 0 | Minimal core implementation and all test translation units build | `diagnostic.cpp`, `status.cpp`, and three core tests compile; `fesa_unit_tests.exe` links |
|
||||
| GREEN-test | `ctest --test-dir .harness/build -C Debug -R CoreDiagnostics --output-on-failure` | 0 | Identity, deterministic ordering, and Result exclusivity pass | 3/3 `CoreDiagnostics` tests passed |
|
||||
| VERIFY-configure | `cmake -S . -B .harness/build -A x64 -DFESA_GTEST_SOURCE_DIR=C:/git/googletest "-DMKL_DIR=C:/Program Files (x86)/Intel/oneAPI/mkl/2026.1/lib/cmake/mkl" "-DTBB_DIR=C:/Program Files (x86)/Intel/oneAPI/tbb/2023.1/lib/cmake/tbb" "-DHDF5_DIR=C:/Program Files/HDF_Group/HDF5/2.1.1/cmake"` | 0 | Approved MSVC x64 build tree regenerates with normalized dependencies | Configure and generate completed; MKL 2026.1 resolved |
|
||||
| VERIFY-build | `cmake --build .harness/build --config Debug` | 0 | Full Debug build passes without a new FESA warning | `fesa_solver.lib` and `fesa_unit_tests.exe` built under `/W4 /WX` |
|
||||
| VERIFY-targeted | `ctest --test-dir .harness/build -C Debug -R CoreDiagnostics --output-on-failure` | 0 | Focused Step 8 suite remains green | 3/3 tests passed |
|
||||
| VERIFY-discovery | `ctest --test-dir .harness/build -C Debug --show-only=json-v1` | 0 | CTest discovers the existing and new named tests | 5 tests discovered with feature and unit labels |
|
||||
| VERIFY-full | `ctest --test-dir .harness/build -C Debug --output-on-failure` | 0 | Full accumulated C++ suite has zero failures | 5/5 tests passed |
|
||||
| VERIFY-harness | `uv run --with pytest python -m pytest -v -rs` | 0 | Harness regression suite remains green | 4/4 tests passed |
|
||||
|
||||
- contract_checks: `SourceEntityId` preserves numeric and raw label forms;
|
||||
`sortDiagnostics()` applies the fixed file/line/keyword/entity/code tuple with
|
||||
stable discovery-order ties; `Status` owns sorted diagnostics and optional
|
||||
failure category; `Result<T>` owns either a value or failed status and rejects
|
||||
both failed value access and construction from an OK status. Core public
|
||||
headers include only FESA core or C++ standard-library headers; no
|
||||
MKL/TBB/HDF5 names are present.
|
||||
- generated_evidence: `.harness/build/src/fesa/Debug/fesa_solver.lib`,
|
||||
`.harness/build/tests/Debug/fesa_unit_tests.exe`
|
||||
- reference_diff: unchanged
|
||||
- handoff: `SourceLocation`, `SourceEntityId`, `Diagnostic`, deterministic
|
||||
diagnostic sorting, `FailureCategory`, `Status`, and `Result<T>` are available
|
||||
to Step 9 and later parser/model/solver tasks.
|
||||
|
||||
Reference in New Issue
Block a user