Skip to content

Mission-critical audit fixes: schema/device safety + resilient registry tests#38

Open
christopherkarani wants to merge 1 commit intomainfrom
automation/check-frameworks-audit-20260312
Open

Mission-critical audit fixes: schema/device safety + resilient registry tests#38
christopherkarani wants to merge 1 commit intomainfrom
automation/check-frameworks-audit-20260312

Conversation

@christopherkarani
Copy link
Owner

Summary

  • harden DeviceCapabilities.getChipType() sysctl handling and remove deprecated C-string conversion
  • remove unreachable GenerationSchema encoding error path by switching to non-failable dynamic coding keys
  • add schema regression coverage for empty property-name encoding
  • fix DiffusionModelDownloaderTests compile gating to match production trait conditions
  • replace brittle hard-coded model/provider count assertions with invariant checks, including new provider cases

Verification

  • swift package clean && swift build
  • swift test

Notes

  • tasks/todo.md was intentionally left uncommitted per repo rule for planning docs.

- remove unreachable GenerationSchema encoding error path by using non-failable DynamicCodingKey initializers and eliminating impossible throws

- harden DeviceCapabilities chip-type sysctl extraction with return-code checks and UTF-8 decoding without deprecated String(cString:)

- add schema regression test covering empty property-name encoding/decoding

- align DiffusionModelDownloader test compile guard with production trait conditions (CONDUIT_TRAIT_MLX + MLX + Hub)

- replace brittle hard-coded registry/provider counts with invariant assertions in model/provider tests and include new provider cases
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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