Skip to content

fix: repair invalid UTF-8 agent metadata cache fields#526

Merged
piorpua merged 2 commits into
mainfrom
aionissue/fix-128150775-001
Jun 26, 2026
Merged

fix: repair invalid UTF-8 agent metadata cache fields#526
piorpua merged 2 commits into
mainfrom
aionissue/fix-128150775-001

Conversation

@piorpua

@piorpua piorpua commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Belongs to AionIssue fix run 128150775/001.

Related repositories in this fix run: AionCore, AionUi, aionrs.

Summary:

  • Read rebuildable agent_metadata cache fields as bytes and clear invalid UTF-8 values to NULL without dropping agent rows.
  • Route list, get, source/name, builtin backend, apply_handshake, and agent binding reads through the safe agent metadata mapper.
  • Keep registry hydration and AppServices health startup moving when old cache data is corrupted.
  • Preserve valid UTF-8 invalid JSON behavior on the existing registry fallback path.

Validation:

  • cargo test -p aionui-db invalid_utf8 -- --nocapture
  • cargo test -p aionui-db resolve_agent_binding_uses_safe_agent_metadata_reads -- --nocapture
  • cargo test -p aionui-ai-agent hydrate_continues_when_agent_metadata_config_options_has_invalid_utf8 -- --nocapture
  • cargo test -p aionui-ai-agent hydrate_keeps_valid_utf8_invalid_json_config_options_non_fatal -- --nocapture
  • cargo test -p aionui-ai-agent registry_config_option -- --nocapture
  • cargo test -p aionui-app health_check_returns_ok_when_agent_metadata_cache_field_has_invalid_utf8 -- --nocapture
  • cargo fmt --all --check
  • cargo test -p aionui-db
  • cargo test -p aionui-ai-agent
  • cargo clippy -p aionui-db -p aionui-ai-agent --all-targets -- -D warnings
  • rg -n 'aionrs.git", tag = "v0.1.33"' Cargo.toml

Notes:

  • No SQLite schema migration is added.
  • aionrs remains a validation-only related repository for this fix run.

zynx added 2 commits June 26, 2026 19:40
Read rebuildable agent_metadata cache fields as bytes, clear invalid UTF-8 values to NULL, and keep registry hydration moving.

Add repository, binding, registry, and health regressions for corrupted config_options while preserving valid UTF-8 JSON fallback behavior.

Remove stale test struct updates so the required clippy all-targets check passes.
…75-001

# Conflicts:
#	crates/aionui-ai-agent/src/registry_tests.rs
@piorpua piorpua merged commit 91969cd into main Jun 26, 2026
6 checks passed
@piorpua piorpua deleted the aionissue/fix-128150775-001 branch June 26, 2026 13:43
piorpua pushed a commit that referenced this pull request Jun 26, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.1.38](v0.1.37...v0.1.38)
(2026-06-26)


### Features

* remove single-chat team upgrade path
([#524](#524))
([5c60df3](5c60df3))


### Bug Fixes

* **agent:** expose runtime catalogs from metadata
([#523](#523))
([d9c2502](d9c2502))
* **assistant:** expose auto-inject skills and preserve assistant rules
([#525](#525))
([f2e91fd](f2e91fd))
* repair invalid UTF-8 agent metadata cache fields
([#526](#526))
([91969cd](91969cd))
* **skills:** sync AionUi Butler skills + rule with current backend
([#520](#520))
([5603b9a](5603b9a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant