Commit c30092f
feat(loader): REQUIRED template adders attach as HD's getAssignedAdders() does
GenericObject.getAssignedAdders() clones every REQUIRED available adder not
already assigned and marks it selected -- generic, on READ. HD-written files
state these adders, so the corpus never exercised the attach; a hand-written
element without them (the sink's Damage Over Time) got a different value
(+1 vs HD's +3 1/4: base 1 + INCREMENTS first option 0.25 + TIMEBETWEEN
first option 2.0). The engine now materialises them at the end of
_build_modifier -- AFTER the element's own adders (attaching before them
double-counted 24 corpus objects) -- resolving the SAME template variant the
modifier application used (MINDLINK's nested INVISIBLE has no required
adders; the global one does), priced at the first option, alias wired.
Sink cost ledger 10 -> 8; the last prototype cell's reason now carries the
loaded-vs-prototype cross-evidence. Suite 1,728; parity and display intact.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PrVDXgpDfQpzEGErZTLjEs1 parent 5b57d51 commit c30092f
3 files changed
Lines changed: 40 additions & 4 deletions
File tree
- kirby_cost/io
- tests/fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1872 | 1872 | | |
1873 | 1873 | | |
1874 | 1874 | | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
1875 | 1913 | | |
1876 | 1914 | | |
1877 | 1915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
| |||
0 commit comments