Skip to content

Commit 246ce4f

Browse files
lachlangroseclaude
andcommitted
docs(spec): record C-021, the master #421 merge and the master + #424 baseline
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XADRvHhG72666JkYNHtzUx
1 parent 51d8e2b commit 246ce4f

3 files changed

Lines changed: 29 additions & 9 deletions

File tree

‎specs/003-fault-evaluation-performance/spec.md‎

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Feature spec: Faster evaluation of faulted models
22

3-
**Feature**: `003-fault-evaluation-performance` | **Created**: 2026-11-01 | **Status**: Clarified 2026-11-26 (C-018 to C-020: batch rule of FR-008 and FR-010, Linux baseline, memory meter)
3+
**Feature**: `003-fault-evaluation-performance` | **Created**: 2026-11-01 | **Status**: Clarified 2026-11-26 (C-018 to C-021: batch rule of FR-008 and FR-010, Linux baseline, memory meter, references after master #421)
44

55
**Input**: The user renders models in the QGIS plugin. A model with faults and
66
unconformities is slow to render, and it becomes slower with each fault and
@@ -584,9 +584,10 @@ failed acceptance run T030 (`t030-diagnosis.md`, `profile-d4a.md`).
584584
faster, so a Windows baseline makes the ratios of a Linux run too small.
585585
T030 runs on Linux. Which baseline do the time ratios use?
586586
**Answer** (2026-11-26): a new baseline of the code before this feature
587-
(master at 1ae507aa, which has the master changes #410 to #417 that the
588-
candidate has, but not this feature; branch `bench/003-linux-baseline`
589-
adds only the harness and the plugin model data), measured on Linux on the same computer and Python
587+
(master at a942177b with the fix of #424, which has the master changes
588+
that the candidate has, but not this feature; branch
589+
`bench/003-linux-baseline` adds only the harness and the plugin model
590+
data), measured on Linux on the same computer and Python
590591
version as T030, two runs, in `baseline_linux.json` and
591592
`baseline_linux_repeat.json`. All the time ratios of C-015 use
592593
`baseline_linux.json`. `baseline.json` stays as the historical Windows
@@ -603,3 +604,15 @@ failed acceptance run T030 (`t030-diagnosis.md`, `profile-d4a.md`).
603604
results of the same method. The baseline memory is measured again with this
604605
meter (C-019). The meter does not see memory that a C library allocates
605606
outside Python and NumPy.
607+
- **C-021 Golden references after master #421.** Master #421 changes fault
608+
gradients near faults, `fault_pitch` and fold rotation angles, so 60 golden
609+
outputs of 17 models no longer match the frozen references. The spec branch
610+
gives the same bits as master for all of them. Do the references change?
611+
**Answer** (2026-11-26): yes. The changed outputs are captured again from
612+
master a942177b with the fix of #424 (which stops a crash of
613+
`fillnan='nearest'` on points with a NaN coordinate), at the stored
614+
reference points. Evidence: the spec branch gives the same bits as that
615+
code for all 970 golden arrays, and every array that #421 does not change
616+
is bit-identical to the old reference. The manifest records the code, the
617+
reason and the changed keys (`provenance.reference_updates`). Tests that
618+
count gradient batches follow the refinement of #421.

‎specs/003-fault-evaluation-performance/tasks.md‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Tasks: Faster evaluation of faulted models
22

33
**Input**: spec.md and plan.md in `specs/003-fault-evaluation-performance/`
4-
**State**: Replanned 2026-11-18 for the reduced scope (spec C-012 to C-017, plan D7 to D11). Review of 2026-11-26: T054-T061 and T063 are done (spec C-018 to C-020). T001-T029, T033-T061 and T063 are done. T030 runs on Linux against a new Linux baseline (C-019, OP6 closed); T031 and T032 wait for it.
4+
**State**: Replanned 2026-11-18 for the reduced scope (spec C-012 to C-017, plan D7 to D11). Review of 2026-11-26: T054-T061, T063 and T064 are done (spec C-018 to C-021). T001-T029, T033-T061, T063 and T064 are done. T030 runs on Linux against a new Linux baseline (C-019, OP6 closed); T031 and T032 wait for it.
55

66
## Orchestrator notes
77

@@ -303,7 +303,7 @@
303303
- [ ] T032 [Finish] [M] Run final project and package checks and record the result.
304304
- Do: Run python -m black --check LoopStructural tests/fault_evaluation benchmarks/fault_evaluation packages/loop_common/src/loop_common/supports/_3d_structured_grid.py; python -m ruff check LoopStructural packages; python -m pytest; python -m pytest packages/loop_common/tests; python -m pytest packages/loop_interpolation/tests. Use the prepared development environment. Record failures exactly. No Cargo command is needed. Do not claim done with any failed task or unresolved acceptance gate.
305305
- Files: `specs/003-fault-evaluation-performance/validation.md`
306-
- Needs: T001, T002, T003, T004, T005, T006, T007, T008, T009, T010, T011, T012, T013, T014, T015, T016, T017, T018, T019, T020, T021, T022, T023, T024, T025, T026, T027, T028, T029, T030, T031, T033, T034, T035, T036, T037, T038, T039, T040, T041, T042, T043, T044, T045, T046, T047, T048, T049, T050, T051, T052, T053, T054, T055, T056, T057, T058, T059, T060, T061, T062, T063
306+
- Needs: T001, T002, T003, T004, T005, T006, T007, T008, T009, T010, T011, T012, T013, T014, T015, T016, T017, T018, T019, T020, T021, T022, T023, T024, T025, T026, T027, T028, T029, T030, T031, T033, T034, T035, T036, T037, T038, T039, T040, T041, T042, T043, T044, T045, T046, T047, T048, T049, T050, T051, T052, T053, T054, T055, T056, T057, T058, T059, T060, T061, T062, T063, T064
307307
- Wave: 42
308308
- Done when: Black, Ruff, root pytest, loop_common pytest and loop_interpolation pytest all exit 0; validation.md records commands, revisions, golden runtime and acceptance status.
309309

@@ -570,8 +570,15 @@ and SC-009 0.56.
570570
- Wave: 38
571571
- Done when: the review round 2 scratch tests pass as regression tests.
572572

573+
- [x] T064 [Found] [M] Merge master #421 and the #424 fix; re-record the changed golden references (C-021). Commits `9262da85`, `e1a82898`, `51d8e2be`.
574+
- Done: the refinement loop of #421 keeps its fault-side check in `probe_points()`; 60 outputs of 17 models re-recorded from master a942177b + #424 (branch bit-identical on all 970 arrays); gradient batch tests replay the #421 refinement.
575+
- Files: `LoopStructural/modelling/features/_geological_feature.py`, `tests/fault_evaluation/data/`, `tests/fault_evaluation/test_gradient_context.py`, `tests/fault_evaluation/test_memory.py`
576+
- Needs: T053
577+
- Wave: 38
578+
- Done when: the golden validator exits 0 and the spec tests pass.
579+
573580
- [ ] T062 [US3] [M] Record the Linux baseline of the standard suite twice (C-019).
574-
- Do: On branch `bench/003-linux-baseline` (master at 1ae507aa plus one commit with the `benchmarks/`, `tests/fault_evaluation/` and plugin model data of the spec branch, no library change; spec C-019), run the standard suite twice as in T011, with Python 3.13 on the T030 computer. Copy the result files to the spec folder and add a Linux section to baseline.md.
581+
- Do: On branch `bench/003-linux-baseline` (master at a942177b with the #424 fix, plus one commit with the `benchmarks/`, `tests/fault_evaluation/` and plugin model data of the spec branch, no library change; spec C-019), run the standard suite twice as in T011, with Python 3.13 on the T030 computer. Copy the result files to the spec folder and add a Linux section to baseline.md.
575582
- Files: `specs/003-fault-evaluation-performance/baseline_linux.json`, `specs/003-fault-evaluation-performance/baseline_linux_repeat.json`, `specs/003-fault-evaluation-performance/baseline.md`
576583
- Needs: T059
577584
- Wave: 39
@@ -645,7 +652,7 @@ unaffected baselines fixed; compare equivalent correctness and run provenance.
645652
| 35 | T050 | 0 | 1 |
646653
| 36 | T051, T052 | 0 | 2 |
647654
| 37 | T053 | 0 | 1 |
648-
| 38 | T054, T055, T056, T057, T058, T059, T060, T061, T063 | 2 | 7 |
655+
| 38 | T054, T055, T056, T057, T058, T059, T060, T061, T063, T064 | 2 | 8 |
649656
| 39 | T062 | 0 | 1 |
650657
| 40 | T030 | 0 | 1 |
651658
| 41 | T031 | 0 | 1 |

‎specs/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ not certify that an implementation or a numerical acceptance gate passed.
77
|---|---|---|
88
| [001-low-memory-interpolator](001-low-memory-interpolator/spec.md) | Spec declares ready for plan, reviewed 2026-10-27 | Follow its existing plan and task workflow. This cascade did not reassess it. |
99
| [002-rbf-interpolator](002-rbf-interpolator/spec.md) | Draft, not reviewed | Continue its existing review and clarification workflow. This cascade did not change it. |
10-
| [003-fault-evaluation-performance](003-fault-evaluation-performance/spec.md) | Implementation done; review of 2026-11-26 fixed (T054-T061; spec C-018 to C-020: batch rule, Linux baseline, tracemalloc memory meter) | Record the Linux baseline (T062), run T030 on Linux, then T031 (docs) and T032 (final checks). |
10+
| [003-fault-evaluation-performance](003-fault-evaluation-performance/spec.md) | Implementation done; review of 2026-11-26 fixed (T054-T061; spec C-018 to C-021: batch rule, Linux baseline, tracemalloc memory meter, references after master #421) | Record the Linux baseline (T062), run T030 on Linux, then T031 (docs) and T032 (final checks). |
1111
| [004-matrix-free-directional-constraints](004-matrix-free-directional-constraints/spec.md) | Draft; 005 contract cascade applied; task graph checked | Review the updated plan and tasks. OP1 still requires the quadrature measurements before a default is chosen. |
1212
| [005-coordinate-frame-correctness](005-coordinate-frame-correctness/spec.md) | S1 implemented 2026-11-04 on `feat/005-coordinate-frame-correctness` (17 of 17 tasks; evidence in [verification.md](005-coordinate-frame-correctness/verification.md)); S5 planned 2026-11-05 and revised after review; S6 planned 2026-11-06 and reviewed the same day; maintainer decisions recorded ("Stage S6 design" in plan.md; OP1, OP18, OP19 and OP20 closed; spec clarification C-019 added; OP21 to OP24 have defaults and block no task) | Review and merge the S1 branch. S2 planned and tasked 2026-11-04 (T018 to T031, waves 8 to 13); run spec-orchestrator for S2. S3 planned and tasked 2026-11-05 ("Stage S3 design" in plan.md; OP4 and OP5 closed; T033 to T050, waves 14 to 22; build after S2 merges). S3 is built on `feat/005-s3-frame-persistence` (pull request #397, stacked on #396; 18 of 18 tasks, evidence in verification.md). S3 merged (#397); a follow-up keeps the legacy load backward compatible (pull request #400). S4 planned and tasked 2026-11-05 ("Stage S4 design" in plan.md; OP8 to OP10 have defaults and block nothing; T051 to T068, waves 23 to 31); run spec-orchestrator for S4. S5 planned 2026-11-05 and revised the same day after review and five maintainer answers ("Stage S5 design" in plan.md; OP13 to OP15 closed; OP12, OP16 and OP17 have defaults; OP17 blocks the S5 merge only if a parity file changes); S5 tasked 2026-11-05 (T069 to T088, waves 32 to 42; no open point blocks a task; build after S4 merges). OP1 closed 2026-11-06. S6 tasked 2026-11-06 (T089 to T108, waves 43 to 52; 20 tasks; no open point blocks a task; build after S5 merges). OP3: constant-norm accuracy check. OP2 closed 2026-11-04: the R2/R5 matrix stays in the default pytest run. 7 minor review findings are open (run-state.json). |
1313
| [006-loop-link](006-loop-link/spec.md) | S1 to S3 (stories 1 and 5) implemented 2026-11-07 on `feat/006-loop-link` (37 of 37 tasks, 13 waves; wave and end reviews passed; not merged) | Pull request 406 is open. S5 (stories 2 to 4) planned 2026-11-07 against geoviewer spec 067 ([plan.md](006-loop-link/plan.md), "Design of stage S5"); S5 tasks written 2026-11-07 (T039 to T063; the file has 62 tasks in 19 waves); next: build S5 with the spec-orchestrator skill. S4 (stories 6, 7) planned 2026-11-08 ("Design of stage S4" in plan.md) and tasked 2026-11-08 (T064 to T087) and built except T080, T081, T086 and T087; geoviewer spec 072 (protocol 1.20) answered OP15 on 2026-11-09 and the S4d tasks were rewritten (T088 to T092 added; the file has 91 tasks in 23 waves); next: build the open S4 tasks with the spec-orchestrator skill. |

0 commit comments

Comments
 (0)