Repository navigation
feat: add the dependency-graph primitives package - #6
Merged
Merged
Conversation
Stryker's vitest runner reports no killed mutants against vitest 5: every mutant survives with almost no tests run per mutant. The 4.x line kills them as expected, so it is the one the mutation testing in this workspace can use.
Each package's stryker.config.ts calls packageStrykerConfig, so thresholds and plugin wiring live in one place. Plugins are listed explicitly because Stryker's default discovery cannot see siblings under pnpm's isolated node_modules.
@exadev/process-graph-dag builds an immutable graph once from a node set and a needs accessor and analyses it with plain functions: topological layers, ancestors, descendants, cycles, transitive reduction and the critical path. Unknown references and cycles are returned as data, cyclic input to an operation that needs acyclicity throws an error carrying the cycles, and every traversal is iterative so depth cannot overflow the call stack.
Knip resolves the plugins through the Stryker config itself, so the ignore entries only produced configuration hints.
Mearman
marked this pull request as ready for review
October 10, 2026 08:47
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Adds
@exadev/process-graph-dag, the dependency-graph primitives the domain layer and ci-adapters will both build on. It takes a node set and aneedsaccessor, builds an immutable graph once, and exposes plain functions over it: topological layers, ancestors, descendants, cycles, transitive reduction and the critical path for a caller-supplied weight.Generalised from ci-adapters'
dependencyLevelsandancestorsOfand from Graphle's reachability. Unlike the former, an unknownneedstarget and a cycle are returned as data instead of being absorbed or recursing forever, and nothing is recursive.The branch also adds the shared Stryker configuration this package uses, and pins vitest to 4.x: Stryker's vitest runner kills no mutants against vitest 5 (almost no tests run per mutant) and works on 4.1.
Cycle and tie-break semantics are in the package README. Before marking ready I ran the repo's
lint,typecheck,test,test:smoke,test:coverage,deps:lint,knip,build:tscand the package's attw and publint from a clean clone with a frozen lockfile.