Commit 507eafe
committed
review fixes (#164 P1/P2): DO-arm carries private hook bodies; zip guard survives release
P1 (CATCH-LATENT): lift_actions now chains model.helpers — since ruff #45
the Ruby walker splits private/protected defs there, and Rails lifecycle
hook targets are conventionally private (Redmine: 67/84 hook targets).
Without the chain, compile_graph_ruby's actions silently omitted exactly
the W3.3 delete-blocking hook bodies AT-CARRY-1 exists to carry. The
producer emits effect annotations; routability enrichment stays a
registration concern (join Model::callbacks by name to tell hooks from
routable actions). Regression test: a private helper hook body arrives
with its reads/writes intact.
P2: the three zip guards are plain assert_eq! with the invariant named —
debug_assert compiled out in release, where a future model-level filter
would truncate the zip silently and cross-attribute every subsequent
class's actions. Once-per-graph, effectively free.
cargo test -p ogar-from-ruff: 65+3 green; clippy --all-targets
-D warnings clean.1 parent f5bb789 commit 507eafe
2 files changed
Lines changed: 56 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
535 | 544 | | |
536 | 545 | | |
537 | 546 | | |
| 547 | + | |
538 | 548 | | |
539 | 549 | | |
540 | 550 | | |
| |||
1812 | 1822 | | |
1813 | 1823 | | |
1814 | 1824 | | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
1815 | 1853 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
| |||
134 | 139 | | |
135 | 140 | | |
136 | 141 | | |
137 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
138 | 148 | | |
139 | 149 | | |
140 | 150 | | |
| |||
164 | 174 | | |
165 | 175 | | |
166 | 176 | | |
167 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
168 | 183 | | |
169 | 184 | | |
170 | 185 | | |
| |||
0 commit comments