Repository navigation
Commit 50b389d
v0.42.0: eval-suite plumbing through ref-mode merge rebuild
The reference-mode merge rebuild path now propagates the user's
eval suite, pipeline, and metric-retirement decisions onto the
mirrored merge commit instead of leaving them as the empty
placeholders sync_one_commit originally planted. Ten previously
ignored acceptance specs unblock as a consequence.
Added
-----
- `morph_core::rebuild_merge_commit` + `MergeRebuildOpts`. After
`sync_to_head_with_origin` mirrors the merge commit, the
rebuild helper re-derives the commit using the MergePlan's
auto-union eval suite, the user's --pipeline / --eval-suite /
--metrics, and any retired metrics, then re-points the branch
ref onto the rewritten hash. Same recipe the non-merge
`morph commit` rewrite already used.
- `MERGE_REF.json` now carries pipeline / eval_suite /
retired_metrics / retire_reason across the conflict boundary
so `morph merge --continue` reproduces the same plan a
single-shot merge would have used.
- `MergePlan::head_commit()` / `other_commit()` accessors.
- `auto_detect_introduces_cases()` in `morph_core::annotate`.
`morph commit` (without --new-cases) now diffs the
about-to-commit eval suite against the first-parent's suite
and auto-records the case-id difference as an
`introduces_cases` annotation. `--new-cases ""` is the
explicit opt-out; `--new-cases "manual:override"` keeps the
manual override path.
- `morph_core::ensure_review_node_for_retirement` is now public.
Fixed
-----
- `morph merge` propagates the auto-union eval suite onto the
merged commit; the dominance check now finds violations on
subsequent merges and rejects with the parent name on stderr
(`current: acc 0.9 → 0.87`).
- `morph merge --retire <metric>` writes a real review node
attributing the retirement to the merge author.
- `morph merge --retire` survives a textual conflict — the
retire intent flows through MERGE_REF.json to `--continue`.
Tests
-----
Ten previously-`#[ignore]`'d specs flip green:
- 3 in merge.yaml (auto-union, reject-with-explained-failure,
retirement-succeeds)
- 3 in merge_retire_review.yaml (synthesise/default-reason/
no-resynthesis)
- 3 in merge_retire_stateful.yaml (clean-three-way, conflict-
then-continue, abort-clears-breadcrumb; the latter two also
rewritten for v0.40+ stderr-shaped conflict UX)
- commit_auto_detects_new_cases_added_to_default_suite
Run / metrics
-------------
- recorded eval run: `44f34acb403f2bee…`
metrics: tests_passed=1184, tests_total=1187, tests_ignored=3,
pass_rate=0.997, wall_time_secs=34.31
- 3 specs remain `#[ignore]` (mixed_authorship.yaml), scheduled
for v0.42.1 — mixed-authorship plumbing (human_edits diff,
contributor stamping) on the rebuild path.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent c1186ab commit 50b389d
15 files changed
Lines changed: 540 additions & 210 deletions
File tree
- morph-cli
- src
- tests/specs
- morph-core/src
- site
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
19 | 113 | | |
20 | 114 | | |
21 | 115 | | |
| |||
827 | 921 | | |
828 | 922 | | |
829 | 923 | | |
830 | | - | |
| 924 | + | |
| 925 | + | |
831 | 926 | | |
832 | 927 | | |
833 | 928 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
616 | 633 | | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
617 | 640 | | |
618 | 641 | | |
619 | 642 | | |
| |||
765 | 788 | | |
766 | 789 | | |
767 | 790 | | |
768 | | - | |
| 791 | + | |
769 | 792 | | |
770 | 793 | | |
771 | 794 | | |
772 | | - | |
773 | 795 | | |
774 | 796 | | |
775 | 797 | | |
| |||
785 | 807 | | |
786 | 808 | | |
787 | 809 | | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
788 | 818 | | |
789 | 819 | | |
790 | 820 | | |
| |||
794 | 824 | | |
795 | 825 | | |
796 | 826 | | |
797 | | - | |
| 827 | + | |
798 | 828 | | |
799 | 829 | | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
800 | 841 | | |
801 | 842 | | |
802 | 843 | | |
| |||
847 | 888 | | |
848 | 889 | | |
849 | 890 | | |
850 | | - | |
| 891 | + | |
851 | 892 | | |
852 | 893 | | |
853 | 894 | | |
854 | 895 | | |
855 | 896 | | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
856 | 913 | | |
857 | 914 | | |
858 | 915 | | |
| |||
886 | 943 | | |
887 | 944 | | |
888 | 945 | | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
889 | 950 | | |
890 | 951 | | |
891 | 952 | | |
| |||
920 | 981 | | |
921 | 982 | | |
922 | 983 | | |
923 | | - | |
| 984 | + | |
924 | 985 | | |
925 | 986 | | |
926 | 987 | | |
| |||
946 | 1007 | | |
947 | 1008 | | |
948 | 1009 | | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
949 | 1034 | | |
950 | 1035 | | |
951 | 1036 | | |
| |||
957 | 1042 | | |
958 | 1043 | | |
959 | 1044 | | |
960 | | - | |
| 1045 | + | |
961 | 1046 | | |
962 | 1047 | | |
963 | 1048 | | |
| |||
966 | 1051 | | |
967 | 1052 | | |
968 | 1053 | | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
969 | 1077 | | |
970 | 1078 | | |
971 | 1079 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments