Repository navigation
perf(exec): serial disposition for max_flow (#545) - #639
Merged
Merged
Conversation
WalkthroughThe PR adds a deterministic ChangesMax-flow workload
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related issues
Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This comment has been minimized.
This comment has been minimized.
DecisionNerd
marked this pull request as ready for review
August 11, 2026 23:06
DecisionNerd
force-pushed
the
cursor/545-serial-max-flow-disposition-c6a4
branch
2 times, most recently
from
August 11, 2026 23:47
849dc32 to
672d4cd
Compare
DecisionNerd
marked this pull request as draft
August 12, 2026 01:05
DecisionNerd
marked this pull request as ready for review
August 12, 2026 05:06
DecisionNerd
force-pushed
the
cursor/545-serial-max-flow-disposition-c6a4
branch
from
August 12, 2026 05:06
672d4cd to
9a9f9df
Compare
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@crates/graphforge-api/tests/m4_entry_baseline.rs`:
- Around line 421-422: Remove the obsolete paths-gomory-hu-tree workload
consistently: in crates/graphforge-api/tests/m4_entry_baseline.rs at lines
421-422, keep run_paths_max_flow as the only workload in collect_workloads_for;
at lines 1092-1093, apply the same replacement in collect_short_matrix; at lines
1200-1201, replace the Gomory-Hu ID in its original position and do not append a
Max-Flow ID; in scripts/ci/m4-entry-matrix.py at lines 28-29, remove
paths-gomory-hu-tree from REQUIRED_WORKLOAD_IDS so the workload matrix matches
the contract.
- Around line 583-594: Repair the malformed insertion around
run_paths_gomory_hu_tree and run_paths_max_flow: retain a single person_uuid
helper, restore each function as a complete independent implementation, and
ensure both return their workload collections with WorkloadEvidence initializers
valid. Match each function’s workload count and ordering to the expected IDs,
then run the required Rust validation gates.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: c11ceb0b-f1b1-49e8-b4d0-25a12d543ac4
⛔ Files ignored due to path filters (1)
docs/development/execution-resource-policy.mdis excluded by!**/*.md,!**/docs/**
📒 Files selected for processing (4)
crates/graphforge-api/tests/m4_entry_baseline.rscrates/graphforge-exec/src/algorithm_paths_max_flow.rsscripts/ci/m4-entry-matrix.pytests/contracts/m4-entry-matrix.json
DecisionNerd
force-pushed
the
cursor/545-serial-max-flow-disposition-c6a4
branch
2 times, most recently
from
August 12, 2026 05:16
27d1385 to
98b5182
Compare
Document Edmonds-Karp as serial, include paths-max-flow in the M4 short matrix, and keep tip-main workload evidence intact. Closes #545 Co-authored-by: Cursor <cursoragent@cursor.com>
DecisionNerd
force-pushed
the
cursor/545-serial-max-flow-disposition-c6a4
branch
from
August 12, 2026 05:26
98b5182 to
1679ecc
Compare
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.
Implements #545: serial disposition for max_flow.
Closes #545
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Add serial disposition for
paths(by="max_flow")to the M4 entry baselinerun_paths_max_flowworkload to the M4 entry harness that runsGraphForge::pathswithPathAlgorithm::MaxFlow, asserts determinism across two runs, and records fingerprint evidence."paths-max-flow"in the CI matrix script and contract JSON withdisposition: serial_edmonds_karp_augmenting_pathsandshort_ci: true.Macroscope summarized 1679ecc.
Summary by CodeRabbit
New Features
Bug Fixes
Tests