67 lines
3.0 KiB
Markdown
67 lines
3.0 KiB
Markdown
# Step 22: Result Recovery Modules
|
|
|
|
> 과거 개발 계획이다. 아래 작업·상태·예시는 현재 실행 지시가 아니다.
|
|
> 현재 구현과 검증 한계는 [기능 요약](../../docs/cpp-object-oriented-modular-refactoring/README.md)을 따른다.
|
|
|
|
## 읽어야 할 파일
|
|
|
|
- `/AGENTS.md`
|
|
- `../../docs/solver-core/README.md`
|
|
- `../../docs/solver-core/README.md`
|
|
- `../../docs/solver-core/README.md`
|
|
- `../../docs/linear-static-3d-euler-beam/formulation.md`
|
|
- `../../docs/linear-static-mitc4-shell/formulation.md`
|
|
- `../../docs/linear-static-3d-euler-beam/README.md`
|
|
- `../../docs/linear-static-mitc4-shell/README.md`
|
|
- `../../docs/cpp-object-oriented-modular-refactoring/README.md`
|
|
- Step 17 generic ResultRecovery files
|
|
- `/include/fesa/results/result_records.h`
|
|
- `/include/fesa/analysis/analysis_state.h`
|
|
- `/src/fesa/results/result_recovery.cpp`
|
|
- `/tests/unit/results/result_recovery_test.cpp`
|
|
- `/src/fesa/CMakeLists.txt`, `/tests/CMakeLists.txt`
|
|
- `/phases/cpp-object-oriented-modular-refactoring/index.json`
|
|
- `/phases/cpp-object-oriented-modular-refactoring/step22.md`
|
|
|
|
## 작업
|
|
|
|
Requirement `R-MODULE-001`의 recovery split을 구현한다.
|
|
|
|
1. `/tests/unit/results/result_recovery_components_test.cpp`를 먼저 추가한다.
|
|
`C-MODULE-002` directly tests candidate creation/validation for global equilibrium, beam rows,
|
|
shell rows and all-or-nothing commit, including a later-invalid bundle rollback.
|
|
2. Missing component headers/symbols provides RED.
|
|
3. Keep `ResultRecovery` as public facade. Candidate private modules:
|
|
|
|
```text
|
|
recovery_candidate.h/.cpp owns all mutable candidate rows/evidence before commit
|
|
global_equilibrium_recovery.h/.cpp computes K*d-F, reactions, free residual and global moments
|
|
beam_result_recovery.h/.cpp validates/orders distinct beam result identities
|
|
shell_result_recovery.h/.cpp validates/orders physical shell rows and energy
|
|
analysis_state_commit.h/.cpp validates complete candidate and atomically updates state
|
|
```
|
|
|
|
4. Private functions return `Status`/`Result<T>` and do not mutate `AnalysisState` until the final
|
|
commit module succeeds.
|
|
5. Preserve exact B33 endpoint/section/Gauss/stress distinctions, MITC4 GP/stress ordering,
|
|
drilling exclusion, equilibrium scale rules and global origin.
|
|
6. Reduce `result_recovery.cpp` to facade orchestration without changing public behavior.
|
|
|
|
## Acceptance Criteria
|
|
|
|
과거 도구 실행·출력 지시는 정리했으며, 현재 검증 방법은 기능 요약을 따른다.
|
|
|
|
## 검증 및 상태 갱신
|
|
|
|
- RED missing components, focused sign/order/rollback, facade wiring and full CTest를 summary에 기록한다.
|
|
- Any identity/sign/atomicity regression is `error`.
|
|
- 성공 시 현재 Step만 `completed`로 갱신한다.
|
|
- timestamp, retry, commit, advancement는 Executor 소유다.
|
|
|
|
## 금지사항
|
|
|
|
- Result rows를 station mismatch 평균으로 합치지 마라.
|
|
- Failed candidate에서 partial AnalysisState를 commit하지 마라.
|
|
- HDF5 concerns를 recovery components에 넣지 마라.
|
|
- 직접 commit하거나 hook script를 수동 실행하지 마라.
|