AGENTS: do not use bitbox_lvgl::ffi directly
What changed, and why it matters
This commit only updates the project's AGENTS.md file, which is a set of instructions for AI coding assistants. It adds a guideline telling agents not to directly use low-level FFI bindings to the LVGL UI library from feature code, and instead to use safe wrappers. No source code, firmware behavior, or security controls were changed.
No action required. This is a documentation-only change to coding-agent instructions and does not alter firmware security posture.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff adds two lines to AGENTS.md, a documentation file for AI agents. The new rule instructs agents working on BitBox03 UI code to avoid calling bitbox_lvgl FFI directly and to prefer safe idiomatic wrappers. There are no code changes, no bug fixes, no API changes, and no runtime impact.
Changed components
AGENTS.md (documentation only)Inspect captured patch +2 / −0
diff --git a/AGENTS.md b/AGENTS.md
index 2cf585a..0e1b479 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -100,3 +100,5 @@ conclude.
- when editing code, unless otherwise instructed, try to keep the diff small and not do any
unprompted refactorings or core reorganizations.
- rust fmt all Rust files you modify, using 2024 edition.
+- when working on BitBox03 UI code, do not reach into `bitbox_lvgl` FFI directly from feature code.
+ If needed, add safe idiomatic wrappers to `bitbox-lvgl` first and use those wrappers instead.
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.