small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo

test(discord): check channel names and handles against a model

The rename fix (#296) came with a real-daemon scenario that the test rewrite had already restructured around, so it did not apply. The rule lives in refs.gleam's upsert and lookup, which an in-process model reaches directly: operation histories of observed names, subscription labels and name lookups over three channels and three names, checked after each step. An observed name replaces the recorded one, a label only fills a missing one, handles never change, and a lookup ignores case and a leading # and is ambiguous when two channels share a name. Planted defects (the pre-fix upsert, observed names ignored, a case-sensitive lookup, every channel numbered 1) each fail it.


Author aly.codes
Date Commit Parent 78d95d69
+223
3 changed files
+223
3 changed files