Commit 3e85268
* fix: extract cost/model from correct tuple index per operation (#555)
The sync loop read result[1] as cost for all operations, but each
returns a different tuple format. generate's result[1] is a bool
(was_incremental) which passed isinstance(bool, (int, float)) and
was counted as $1.00; crash/fix/verify have cost at index 4, not 1,
so their costs were always $0.00. Two helpers now dispatch on the
operation name to read the correct index.
Fixes #555
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: apply cost extraction fix to operation_log.py and add passing tests (#555)
- operation_log.py: use _extract_cost_from_result/_extract_model_from_result helpers
instead of hardcoded result[1]/result[2] (same bug as sync_orchestration.py)
- Update test files to import and test the actual fixed helpers (29/29 pass)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f9df4b8 commit 3e85268
File tree
4 files changed
+884
-15
lines changed- pdd
- tests
4 files changed
+884
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
340 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
341 | 342 | | |
342 | 343 | | |
343 | 344 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 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 | + | |
73 | 113 | | |
74 | 114 | | |
75 | 115 | | |
| |||
1854 | 1894 | | |
1855 | 1895 | | |
1856 | 1896 | | |
1857 | | - | |
1858 | | - | |
| 1897 | + | |
1859 | 1898 | | |
1860 | 1899 | | |
1861 | 1900 | | |
| |||
1877 | 1916 | | |
1878 | 1917 | | |
1879 | 1918 | | |
1880 | | - | |
1881 | | - | |
1882 | | - | |
1883 | | - | |
1884 | | - | |
1885 | | - | |
1886 | | - | |
1887 | | - | |
1888 | | - | |
1889 | | - | |
1890 | | - | |
| 1919 | + | |
| 1920 | + | |
1891 | 1921 | | |
1892 | 1922 | | |
1893 | 1923 | | |
| |||
0 commit comments