Repository navigation
docs(spec): add 007-native-fault-kernel - #430
Merged
Merged
Conversation
Spec 007 adds a native fault application that LoopStructural uses when the native package is installed, with the Python path as the reference and the fallback. Five stories: the restore order computed once per feature (Python), native restoration, native values and gradients, on by default with a switch and prebuilt packages, and safe use (public API, fallback, no stale data, threads). Reviewed and clarified (C-001 to C-011). research.md is the literature review of precomputed displacement maps, kept as background. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XADRvHhG72666JkYNHtzUx
lachlangrose
added a commit
that referenced
this pull request
Nov 27, 2026
…evaluation-performance Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XADRvHhG72666JkYNHtzUx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds spec 007, native fault application (
specs/007-native-fault-kernel/spec.md), and an index row inspecs/README.md. Documents only; no code.Restoring points through the faults of a feature is about 90 % of the evaluation time of a faulted model. A proof of concept (a Rust port of the fault application, wrapped for Python) was 6.5–16× faster on one thread and 60–150× faster on 20 threads than the Python path of spec 003. The spec makes a native path that LoopStructural uses when the native package is installed, with Python as the reference and the fallback.
Stages (user stories)
Key decisions (clarifications)
Also
specs/007-native-fault-kernel/research.md: the literature review of precomputed displacement maps (flow maps, semi-Lagrangian correction, diffeomorphic registration, discontinuous fields, geological fault operators). Kept as background: after fix(fault): restore a cutting fault before the fault it cuts #427–fix(builder): check each builder once per up_to_date call #429 the cost is linear in the depth of a cutting chain, so precomputed maps are out of scope.ROADMAP.md, so the spec has no architecture-impact block. FR-015 asks for the decision to be recorded inROADMAP.mdwhen the stages complete.Next step: spec-planner, after spec 003 (#391) is merged.
🤖 Generated with Claude Code
https://claude.ai/code/session_01XADRvHhG72666JkYNHtzUx