Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
123456789101112131415161718192021222324252627// Frozen receipt comparison is a boundary invariant: old Standard receipts// omit cyber_access, while Blue is immutable. E2E covers lost ACK/conflict;// these cases exercise null normalization without manufacturing old servers.package daemon
import ( "encoding/json" "testing")
func TestCreationIntentKeepsCyberAccessDistinct(t *testing.T) { standard := json.RawMessage(`{"kind":"new","workspace":"/tmp/test","name":null,"provider_profile":null,"model":null,"effort":null}`) explicitNull := json.RawMessage(`{"kind":"new","workspace":"/tmp/test","name":null,"provider_profile":null,"model":null,"effort":null,"cyber_access":null}`) blue := json.RawMessage(`{"kind":"new","workspace":"/tmp/test","name":null,"provider_profile":null,"model":null,"effort":null,"cyber_access":"daybreak_blue"}`) if !sameCreationIntent(standard, explicitNull) || !sameCreationIntent(explicitNull, standard) { t.Fatal("Standard omission/null differs") } if sameCreationIntent(standard, blue) || sameCreationIntent(blue, standard) || !sameCreationIntent(blue, blue) { t.Fatal("Blue intent is not immutable") } fork := json.RawMessage(`{"kind":"fork","source_session_id":"source","checkpoint_id":"point","name":null}`) invalidFork := json.RawMessage(`{"kind":"fork","source_session_id":"source","checkpoint_id":"point","name":null,"cyber_access":null}`) if sameCreationIntent(fork, invalidFork) { t.Fatal("normalized a field the daemon does not accept for forks") }}