| 1 | # Fable follow-up regression and mutation evidence |
| 2 | |
| 3 | Base: b04598da. Review: ee79c086, CHANGES REQUESTED. The controller's |
| 4 | 2026-11-23 corrections supersede omitted-name learning and composer refusal. |
| 5 | No migration changes; no GitHub work. |
| 6 | |
| 7 | ## Test-first failures |
| 8 | |
| 9 | Command: `GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0 go test ./internal/equipo/chat ./internal/thintest -run TestCardNames -count=1`. |
| 10 | Before implementation, regressions failed for ordinary, phrase, project_id, |
| 11 | attachment and aside composer paths; omission learned an unseen name; ordinary |
| 12 | placement accepted a name and paired it with the wrong repository; carried |
| 13 | selection bound a later request and quoted Equipo's words as the person's; |
| 14 | access approval forced a fresh turn. The failure output follows. |
| 15 | |
| 16 | ```text |
| 17 | --- FAIL: TestCardNamesAccessResumeJoinsWaitingBatch (0.06s) |
| 18 | access_resume_test.go:158: access continuation forced fresh turn t_c5q7jwrsjdfera7qbkrvjj7vah t_vsgymojfs4x3wpmyfrgjjy3giq |
| 19 | --- FAIL: TestCardNamesConfirmed (0.05s) |
| 20 | --- FAIL: TestCardNamesConfirmed/tito/ (0.01s) |
| 21 | project_card_names_test.go:51: filtered or skipped name learned: [{ProjectID:p_old Person:owner@example.com Name:tito CreatedAt:2026-11-12 12:00:00 +0000 UTC}] |
| 22 | --- FAIL: TestCardNamesCarriedSelection (0.01s) |
| 23 | project_card_names_test.go:104: system note quoted as person words [Equipo: these earlier messages from the person got no answer: their turns failed before you saw them. They are the person's own words, oldest first, still waiting. Answer them together with the newest message.] |
| 24 | --- FAIL: TestCardNamesPlacementIdentity (0.01s) |
| 25 | --- FAIL: TestCardNamesPlacementIdentity/suggestion= (0.01s) |
| 26 | project_card_names_test.go:251: ordinary card accepted name [{p_new owner@example.com portal 2026-11-12 12:00:00 +0000 UTC}] |
| 27 | --- FAIL: TestCardNamesPlacementIdentity/suggestion=portal (0.01s) |
| 28 | project_card_names_test.go:254: name paired by index [{p_new owner@example.com portal 2026-11-12 12:00:00 +0000 UTC}] |
| 29 | FAIL |
| 30 | FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.596s |
| 31 | --- FAIL: TestCardNamesComposerDevice (1.86s) |
| 32 | --- FAIL: TestCardNamesComposerDevice/exact (0.61s) |
| 33 | project_card_names_test.go:83: composer learned unseen suggestion 1 <nil> |
| 34 | --- FAIL: TestCardNamesComposerDevice/phrase (0.14s) |
| 35 | project_card_names_test.go:59: composer refused by open card HTTP 422: {"code":"invalid_input","copy_key":"api.invalid_input","request_id":"C2KIB2X7OPDB7GBHTUM4FXOPFF"} |
| 36 | --- FAIL: TestCardNamesComposerDevice/unrelated (0.14s) |
| 37 | project_card_names_test.go:59: composer refused by open card HTTP 422: {"code":"invalid_input","copy_key":"api.invalid_input","request_id":"RKIN7OTP63V2IFEH42KVV5KRCP"} |
| 38 | --- FAIL: TestCardNamesComposerDevice/unknown (0.14s) |
| 39 | project_card_names_test.go:59: composer refused by open card HTTP 422: {"code":"invalid_input","copy_key":"api.invalid_input","request_id":"LO2UVM5354FT5ERMWD44YJT5CS"} |
| 40 | --- FAIL: TestCardNamesComposerDevice/multiple (0.14s) |
| 41 | project_card_names_test.go:59: composer refused by open card HTTP 422: {"code":"invalid_input","copy_key":"api.invalid_input","request_id":"44AFREYK6MHCTTJVH6WKL4R5SP"} |
| 42 | --- FAIL: TestCardNamesComposerDevice/project (0.14s) |
| 43 | project_card_names_test.go:59: composer refused by open card HTTP 422: {"code":"invalid_input","copy_key":"api.invalid_input","request_id":"BWUXCBJTSV2EEJ2WFZZSJLMQDO"} |
| 44 | --- FAIL: TestCardNamesComposerDevice/attachment (0.14s) |
| 45 | project_card_names_test.go:79: card state answered want open |
| 46 | --- FAIL: TestCardNamesComposerDevice/aside (0.14s) |
| 47 | project_card_names_test.go:79: card state answered want open |
| 48 | --- FAIL: TestCardNamesCarriedDevice (0.17s) |
| 49 | project_card_names_test.go:163: carried selection incorrectly bound newest request {t_mpim55wdjn2rvffqiwmls5lnqi/1/carried-new-request owner@example.com true placement_mismatch Use the project the person chose. A project correction moves the existing task; do not record or start another. false} |
| 50 | FAIL |
| 51 | FAIL amadan.net/oficina/equipo/internal/thintest 2.749s |
| 52 | FAIL |
| 53 | ``` |
| 54 | |
| 55 | ## Deliberate guard mutations |
| 56 | |
| 57 | Each mutation was applied alone, its listed command failed on an assertion, |
| 58 | and the original file was restored in a finally block. All 22 were killed. |
| 59 | The restored CardNames suites pass; full validation is in the controller report. |
| 60 | Commands used GOTOOLCHAIN=go1.26.11 and CGO_ENABLED=0. |
| 61 | |
| 62 | ### project_id passes through |
| 63 | |
| 64 | File: `internal/equipo/chat/project_composer.go`. |
| 65 | |
| 66 | `go test ./internal/thintest -run TestCardNamesComposerDevice/project -count=1` |
| 67 | |
| 68 | ```text |
| 69 | --- FAIL: TestCardNamesComposerDevice (0.61s) |
| 70 | --- FAIL: TestCardNamesComposerDevice/project (0.61s) |
| 71 | project_card_names_test.go:62: message lost words, project or turn {{ m_jqcuyiimdbnh6tthzs4b3eocti 1 person oficina/equipo t_mqcgxufdxqxzu3jbkkc4jdq43o 2026-11-23 08:51:30.407466 +0000 UTC <nil> []} {t_mqcgxufdxqxzu3jbkkc4jdq43o 1 queued 1 [m_jqcuyiimdbnh6tthzs4b3eocti] 2026-11-23 08:51:30.407466 +0000 UTC 2026-11-23 08:51:30.40824 +0000 UTC <nil>}} |
| 72 | FAIL |
| 73 | FAIL amadan.net/oficina/equipo/internal/thintest 1.145s |
| 74 | FAIL |
| 75 | ``` |
| 76 | |
| 77 | ### attachments pass through |
| 78 | |
| 79 | File: `internal/equipo/chat/project_composer.go`. |
| 80 | |
| 81 | `go test ./internal/thintest -run TestCardNamesComposerDevice/attachment -count=1` |
| 82 | |
| 83 | ```text |
| 84 | --- FAIL: TestCardNamesComposerDevice (0.61s) |
| 85 | --- FAIL: TestCardNamesComposerDevice/attachment (0.61s) |
| 86 | project_card_names_test.go:65: attachments lost |
| 87 | FAIL |
| 88 | FAIL amadan.net/oficina/equipo/internal/thintest 1.182s |
| 89 | FAIL |
| 90 | ``` |
| 91 | |
| 92 | ### aside cards ignored |
| 93 | |
| 94 | File: `internal/equipo/chat/project_composer.go`. |
| 95 | |
| 96 | `go test ./internal/thintest -run TestCardNamesComposerDevice/aside -count=1` |
| 97 | |
| 98 | ```text |
| 99 | --- FAIL: TestCardNamesComposerDevice (0.62s) |
| 100 | --- FAIL: TestCardNamesComposerDevice/aside (0.62s) |
| 101 | project_card_names_test.go:79: card state answered want open |
| 102 | FAIL |
| 103 | FAIL amadan.net/oficina/equipo/internal/thintest 1.152s |
| 104 | FAIL |
| 105 | ``` |
| 106 | |
| 107 | ### closed cards ignored |
| 108 | |
| 109 | File: `internal/equipo/chat/project_composer.go`. |
| 110 | |
| 111 | `go test ./internal/thintest -run TestCardNamesComposerDevice/answered -count=1` |
| 112 | |
| 113 | ```text |
| 114 | --- FAIL: TestCardNamesComposerDevice (0.61s) |
| 115 | --- FAIL: TestCardNamesComposerDevice/answered (0.61s) |
| 116 | project_card_names_test.go:59: composer refused by open card HTTP 503: {"code":"unavailable","copy_key":"api.unavailable","request_id":"JPTRONKPW3KJHZY3BJNXPNHYVK"} |
| 117 | FAIL |
| 118 | FAIL amadan.net/oficina/equipo/internal/thintest 1.133s |
| 119 | FAIL |
| 120 | ``` |
| 121 | |
| 122 | ### unknown composer passes through |
| 123 | |
| 124 | File: `internal/equipo/chat/project_composer.go`. |
| 125 | |
| 126 | `go test ./internal/thintest -run TestCardNamesComposerDevice/unknown -count=1` |
| 127 | |
| 128 | ```text |
| 129 | --- FAIL: TestCardNamesComposerDevice (0.61s) |
| 130 | --- FAIL: TestCardNamesComposerDevice/unknown (0.61s) |
| 131 | project_card_names_test.go:59: composer refused by open card HTTP 422: {"code":"invalid_input","copy_key":"api.invalid_input","request_id":"JLYUI64PPF7D77PB5UUM6XGXEX"} |
| 132 | FAIL |
| 133 | FAIL amadan.net/oficina/equipo/internal/thintest 1.132s |
| 134 | FAIL |
| 135 | ``` |
| 136 | |
| 137 | ### short phrase resolves |
| 138 | |
| 139 | File: `internal/equipo/chat/project_composer.go`. |
| 140 | |
| 141 | `go test ./internal/thintest -run TestCardNamesComposerDevice/phrase -count=1` |
| 142 | |
| 143 | ```text |
| 144 | --- FAIL: TestCardNamesComposerDevice (0.61s) |
| 145 | --- FAIL: TestCardNamesComposerDevice/phrase (0.61s) |
| 146 | project_card_names_test.go:79: card state open want answered |
| 147 | FAIL |
| 148 | FAIL amadan.net/oficina/equipo/internal/thintest 1.149s |
| 149 | FAIL |
| 150 | ``` |
| 151 | |
| 152 | ### unreachable composer passes through |
| 153 | |
| 154 | File: `internal/equipo/chat/project_composer.go`. |
| 155 | |
| 156 | `go test ./internal/equipo/chat -run TestCardNamesComposerUnavailableOrAmbiguous/false -count=1` |
| 157 | |
| 158 | ```text |
| 159 | --- FAIL: TestCardNamesComposerUnavailableOrAmbiguous (0.05s) |
| 160 | --- FAIL: TestCardNamesComposerUnavailableOrAmbiguous/false (0.05s) |
| 161 | project_card_names_test.go:329: unavailable or ambiguous name refused composer chat: repository not allowed |
| 162 | FAIL |
| 163 | FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.412s |
| 164 | FAIL |
| 165 | ``` |
| 166 | |
| 167 | ### retry does not answer new card |
| 168 | |
| 169 | File: `internal/equipo/chat/project_composer.go`. |
| 170 | |
| 171 | `go test ./internal/equipo/chat -run TestCardNamesRetryBeforeCard -count=1` |
| 172 | |
| 173 | ```text |
| 174 | --- FAIL: TestCardNamesRetryBeforeCard (0.06s) |
| 175 | project_card_names_test.go:301: retry changed outcome true <nil> |
| 176 | FAIL |
| 177 | FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.425s |
| 178 | FAIL |
| 179 | ``` |
| 180 | |
| 181 | ### typed cards only |
| 182 | |
| 183 | File: `internal/equipo/chat/project_composer.go`. |
| 184 | |
| 185 | `go test ./internal/equipo/chat -run TestCardNamesOnlyTypedCard -count=1` |
| 186 | |
| 187 | ```text |
| 188 | --- FAIL: TestCardNamesOnlyTypedCard (0.06s) |
| 189 | project_card_names_test.go:234: option card captured composer |
| 190 | FAIL |
| 191 | FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.386s |
| 192 | FAIL |
| 193 | ``` |
| 194 | |
| 195 | ### person isolation |
| 196 | |
| 197 | File: `internal/equipo/chat/project_composer.go`. |
| 198 | |
| 199 | `go test ./internal/equipo/chat -run TestCardNamesComposerScope -count=1` |
| 200 | |
| 201 | ```text |
| 202 | --- FAIL: TestCardNamesComposerScope (0.06s) |
| 203 | --- FAIL: TestCardNamesComposerScope/member@example.com (0.05s) |
| 204 | project_card_names_test.go:160: another conversation answered card |
| 205 | FAIL |
| 206 | FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.395s |
| 207 | FAIL |
| 208 | ``` |
| 209 | |
| 210 | ### lane isolation |
| 211 | |
| 212 | File: `internal/equipo/chat/project_composer.go`. |
| 213 | |
| 214 | `go test ./internal/equipo/chat -run TestCardNamesComposerScope -count=1` |
| 215 | |
| 216 | ```text |
| 217 | --- FAIL: TestCardNamesComposerScope (0.06s) |
| 218 | --- FAIL: TestCardNamesComposerScope/owner@example.comjob:other (0.01s) |
| 219 | project_card_names_test.go:160: another conversation answered card |
| 220 | FAIL |
| 221 | FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.390s |
| 222 | FAIL |
| 223 | ``` |
| 224 | |
| 225 | ### composer chosen identity |
| 226 | |
| 227 | File: `internal/equipo/chat/project_composer.go`. |
| 228 | |
| 229 | `go test ./internal/equipo/chat -run TestCardNamesComposerStar -count=1` |
| 230 | |
| 231 | ```text |
| 232 | --- FAIL: TestCardNamesComposerStar (0.05s) |
| 233 | project_card_names_test.go:348: chat: invalid |
| 234 | FAIL |
| 235 | FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.425s |
| 236 | FAIL |
| 237 | ``` |
| 238 | |
| 239 | ### omission skips learning |
| 240 | |
| 241 | File: `internal/equipo/chat/project_resolution.go`. |
| 242 | |
| 243 | `go test ./internal/equipo/chat -run TestCardNamesConfirmed -count=1` |
| 244 | |
| 245 | ```text |
| 246 | --- FAIL: TestCardNamesConfirmed (0.10s) |
| 247 | --- FAIL: TestCardNamesConfirmed/tito/ (0.06s) |
| 248 | project_card_names_test.go:51: filtered or skipped name learned: [{ProjectID:p_old Person:owner@example.com Name:tito CreatedAt:2026-11-12 12:00:00 +0000 UTC}] |
| 249 | FAIL |
| 250 | FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.477s |
| 251 | FAIL |
| 252 | ``` |
| 253 | |
| 254 | ### suggestion required |
| 255 | |
| 256 | File: `internal/equipo/chat/projects.go`. |
| 257 | |
| 258 | `go test ./internal/equipo/chat -run TestCardNamesPlacementIdentity/suggestion=$ -count=1` |
| 259 | |
| 260 | ```text |
| 261 | --- FAIL: TestCardNamesPlacementIdentity (0.06s) |
| 262 | --- FAIL: TestCardNamesPlacementIdentity/suggestion= (0.06s) |
| 263 | project_card_names_test.go:258: ordinary card accepted name [{p_old owner@example.com portal 2026-11-12 12:00:00 +0000 UTC}] |
| 264 | FAIL |
| 265 | FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.387s |
| 266 | FAIL |
| 267 | ``` |
| 268 | |
| 269 | ### identity instead of index |
| 270 | |
| 271 | File: `internal/equipo/chat/project_resolution.go`. |
| 272 | |
| 273 | `go test ./internal/equipo/chat -run TestCardNamesPlacementIdentity/suggestion=portal -count=1` |
| 274 | |
| 275 | ```text |
| 276 | --- FAIL: TestCardNamesPlacementIdentity (0.05s) |
| 277 | --- FAIL: TestCardNamesPlacementIdentity/suggestion=portal (0.05s) |
| 278 | project_card_names_test.go:261: name paired by index [{p_new owner@example.com portal 2026-11-12 12:00:00 +0000 UTC}] |
| 279 | FAIL |
| 280 | FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.383s |
| 281 | FAIL |
| 282 | ``` |
| 283 | |
| 284 | ### typed identity learning |
| 285 | |
| 286 | File: `internal/equipo/chat/project_resolution.go`. |
| 287 | |
| 288 | `go test ./internal/equipo/chat -run TestCardNamesTypedExplicit -count=1` |
| 289 | |
| 290 | ```text |
| 291 | --- FAIL: TestCardNamesTypedExplicit (0.05s) |
| 292 | project_card_names_test.go:279: chat: invalid |
| 293 | FAIL |
| 294 | FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.373s |
| 295 | FAIL |
| 296 | ``` |
| 297 | |
| 298 | ### carried selection stays scoped |
| 299 | |
| 300 | File: `internal/equipo/chat/project_message.go`. |
| 301 | |
| 302 | `go test ./internal/equipo/chat -run TestCardNamesCarriedSelection -count=1` |
| 303 | |
| 304 | ```text |
| 305 | --- FAIL: TestCardNamesCarriedSelection (0.05s) |
| 306 | project_card_names_test.go:111: carried selection bound newest request amadan.net/oficina/new |
| 307 | FAIL |
| 308 | FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.472s |
| 309 | FAIL |
| 310 | ``` |
| 311 | |
| 312 | ### person quote excludes system note |
| 313 | |
| 314 | File: `internal/equipo/chat/store.go`. |
| 315 | |
| 316 | `go test ./internal/equipo/chat -run TestCardNamesCarriedSelection -count=1` |
| 317 | |
| 318 | ```text |
| 319 | --- FAIL: TestCardNamesCarriedSelection (0.05s) |
| 320 | project_card_names_test.go:104: system note quoted as person words [Equipo: these earlier messages from the person got no answer: their turns failed before you saw them. They are the person's own words, oldest first, still waiting. Answer them together with the newest message.] |
| 321 | FAIL |
| 322 | FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.408s |
| 323 | FAIL |
| 324 | ``` |
| 325 | |
| 326 | ### carried project note retained |
| 327 | |
| 328 | File: `internal/equipo/chat/store.go`. |
| 329 | |
| 330 | `go test ./internal/equipo/chat -run TestCardNamesCarriedSelection -count=1` |
| 331 | |
| 332 | ```text |
| 333 | --- FAIL: TestCardNamesCarriedSelection (0.05s) |
| 334 | project_card_names_test.go:101: carried prompt lost selection [Equipo: these earlier messages from the person got no answer: their turns failed before you saw them. They are the person's own words, oldest first, still waiting. Answer them together with the newest message.] |
| 335 | FAIL |
| 336 | FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.386s |
| 337 | FAIL |
| 338 | ``` |
| 339 | |
| 340 | ### access continuation batching |
| 341 | |
| 342 | File: `internal/equipo/chat/store.go`. |
| 343 | |
| 344 | `go test ./internal/equipo/chat -run TestCardNamesAccessResumeJoinsWaitingBatch -count=1` |
| 345 | |
| 346 | ```text |
| 347 | --- FAIL: TestCardNamesAccessResumeJoinsWaitingBatch (0.06s) |
| 348 | access_resume_test.go:158: access continuation forced fresh turn t_txpj2o6wuojiazwcej7hmfbjx4 t_zxduk5ge4hdebnhawjdxkqabh4 |
| 349 | FAIL |
| 350 | FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.390s |
| 351 | FAIL |
| 352 | ``` |
| 353 | |
| 354 | ### typed answer separate turn |
| 355 | |
| 356 | File: `internal/equipo/chat/store.go`. |
| 357 | |
| 358 | `go test ./internal/equipo/chat -run TestCardNamesAnswerOwnTurn -count=1` |
| 359 | |
| 360 | ```text |
| 361 | --- FAIL: TestCardNamesAnswerOwnTurn (0.06s) |
| 362 | project_card_names_test.go:217: typed answer joined ordinary queued turn |
| 363 | FAIL |
| 364 | FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.380s |
| 365 | FAIL |
| 366 | ``` |
| 367 | |
| 368 | ### Later plain message stays separate |
| 369 | |
| 370 | Removed the answer_message exclusion from the waiting-batch query. |
| 371 | |
| 372 | `go test ./internal/thintest -run TestCardNamesComposerDevice/exact -count=1` |
| 373 | |
| 374 | ```text |
| 375 | --- FAIL: TestCardNamesComposerDevice (0.61s) |
| 376 | --- FAIL: TestCardNamesComposerDevice/exact (0.61s) |
| 377 | project_card_names_test.go:88: plain message joined answer turn <nil> |
| 378 | FAIL |
| 379 | rastrillo-budget/v1 ran 615ms |
| 380 | FAIL amadan.net/oficina/equipo/internal/thintest 1.154s |
| 381 | FAIL |
| 382 | ``` |
| 383 | |