sam
|
156453cf74
|
fix: tool registry — 8 bugs from adversarial review (17.1, 17.2)
Verification review found 8 bugs, all fixed with regression tests:
- Available() deadlock: CheckFn evaluated outside RLock
- Register() shared references: Clone() defensive copy before storage
- Clone() shallow nested schemas: deepCopyAny for maps/arrays
- stringLit: no backtick/escape handling → strconv.Unquote
- intLit: no negative/hex/octal/binary → strconv.ParseInt
- Discover: abort on first error → Continue + errors.Join
- isRegisterCall: too broad → only DefaultRegistry() calls match
- schemaLit: only string values → handle ints, bools, nested maps
38 tests pass. All 34 packages green. golangci-lint + gofmt clean.
Closes: archie-core-abg.17.1, 17.2
|
2026-07-26 01:31:17 +10:00 |
|
sam
|
30b76f2ead
|
feat: MessageType enum + MessageEvent struct (16.1, 16.2)
internal/gateway/messagetype.go — 14-value MessageType enum with
IsMedia(), IsRich(), IsEphemeral() classification helpers.
internal/gateway/messageevent.go — platform-neutral MessageEvent:
text, type, media attachments (file metadata, dimensions, duration),
reply context (message ID, text, author), editing support (edited
flag, edit timestamp), capability flags (streaming, code blocks).
Verification agent found 7 issues, 5 fixed (pointer types for
FileSize/Width/Height/Duration, MsgSticker in IsMedia, IsRich
coverage, ToLegacy edge cases), 2 correctly deferred.
42 tests pass. Build + vet + fmt clean.
Closes: archie-core-abg.16.1, archie-core-abg.16.2
|
2026-07-26 01:19:38 +10:00 |
|