oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1# Fable follow-up regression and mutation evidence
2
3Base: b04598da. Review: ee79c086, CHANGES REQUESTED. The controller's
42026-11-23 corrections supersede omitted-name learning and composer refusal.
5No migration changes; no GitHub work.
6
7## Test-first failures
8
9Command: `GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0 go test ./internal/equipo/chat ./internal/thintest -run TestCardNames -count=1`.
10Before implementation, regressions failed for ordinary, phrase, project_id,
11attachment and aside composer paths; omission learned an unseen name; ordinary
12placement accepted a name and paired it with the wrong repository; carried
13selection bound a later request and quoted Equipo's words as the person's;
14access 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}]
29FAIL
30FAIL 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}
50FAIL
51FAIL amadan.net/oficina/equipo/internal/thintest 2.749s
52FAIL
53```
54
55## Deliberate guard mutations
56
57Each mutation was applied alone, its listed command failed on an assertion,
58and the original file was restored in a finally block. All 22 were killed.
59The restored CardNames suites pass; full validation is in the controller report.
60Commands used GOTOOLCHAIN=go1.26.11 and CGO_ENABLED=0.
61
62### project_id passes through
63
64File: `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>}}
72FAIL
73FAIL amadan.net/oficina/equipo/internal/thintest 1.145s
74FAIL
75```
76
77### attachments pass through
78
79File: `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
87FAIL
88FAIL amadan.net/oficina/equipo/internal/thintest 1.182s
89FAIL
90```
91
92### aside cards ignored
93
94File: `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
102FAIL
103FAIL amadan.net/oficina/equipo/internal/thintest 1.152s
104FAIL
105```
106
107### closed cards ignored
108
109File: `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"}
117FAIL
118FAIL amadan.net/oficina/equipo/internal/thintest 1.133s
119FAIL
120```
121
122### unknown composer passes through
123
124File: `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"}
132FAIL
133FAIL amadan.net/oficina/equipo/internal/thintest 1.132s
134FAIL
135```
136
137### short phrase resolves
138
139File: `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
147FAIL
148FAIL amadan.net/oficina/equipo/internal/thintest 1.149s
149FAIL
150```
151
152### unreachable composer passes through
153
154File: `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
162FAIL
163FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.412s
164FAIL
165```
166
167### retry does not answer new card
168
169File: `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>
176FAIL
177FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.425s
178FAIL
179```
180
181### typed cards only
182
183File: `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
190FAIL
191FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.386s
192FAIL
193```
194
195### person isolation
196
197File: `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
205FAIL
206FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.395s
207FAIL
208```
209
210### lane isolation
211
212File: `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
220FAIL
221FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.390s
222FAIL
223```
224
225### composer chosen identity
226
227File: `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
234FAIL
235FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.425s
236FAIL
237```
238
239### omission skips learning
240
241File: `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}]
249FAIL
250FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.477s
251FAIL
252```
253
254### suggestion required
255
256File: `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}]
264FAIL
265FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.387s
266FAIL
267```
268
269### identity instead of index
270
271File: `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}]
279FAIL
280FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.383s
281FAIL
282```
283
284### typed identity learning
285
286File: `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
293FAIL
294FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.373s
295FAIL
296```
297
298### carried selection stays scoped
299
300File: `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
307FAIL
308FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.472s
309FAIL
310```
311
312### person quote excludes system note
313
314File: `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.]
321FAIL
322FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.408s
323FAIL
324```
325
326### carried project note retained
327
328File: `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.]
335FAIL
336FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.386s
337FAIL
338```
339
340### access continuation batching
341
342File: `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
349FAIL
350FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.390s
351FAIL
352```
353
354### typed answer separate turn
355
356File: `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
363FAIL
364FAIL amadan.net/oficina/equipo/internal/equipo/chat 0.380s
365FAIL
366```
367
368### Later plain message stays separate
369
370Removed 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>
378FAIL
379rastrillo-budget/v1 ran 615ms
380FAIL amadan.net/oficina/equipo/internal/thintest 1.154s
381FAIL
382```
383