| 1 | # update_check.py DOX |
| 2 | |
| 3 | ## Purpose |
| 4 | |
| 5 | - Own the `update_check.py` helper module. |
| 6 | - This module checks available Agent Zero updates. |
| 7 | - Keep this file-level DOX profile synchronized with `update_check.py` because this directory is intentionally flat. |
| 8 | |
| 9 | ## Ownership |
| 10 | |
| 11 | - `update_check.py` owns the runtime implementation. |
| 12 | - `update_check.py.dox.md` owns durable notes about responsibilities, contracts, side effects, and verification for that implementation. |
| 13 | - Top-level functions: |
| 14 | - `async check_version()` |
| 15 | |
| 16 | ## Runtime Contracts |
| 17 | |
| 18 | - Helper modules own reusable framework APIs and must preserve public callers unless all callers, tests, and docs are updated together. |
| 19 | - Update this file whenever public functions, classes, persistence behavior, path/security assumptions, side effects, or cross-module contracts change. |
| 20 | - Observed side-effect areas: network calls, settings/state persistence. |
| 21 | - Imported dependency areas include: `hashlib`, `helpers`. |
| 22 | |
| 23 | ## Key Concepts |
| 24 | |
| 25 | - Important called helpers/classes observed in the source: `git.get_version`, `git.is_official_agent_zero_repo`, `hashlib.sha256.hexdigest`, `httpx.AsyncClient`, `response.json`, `client.post`, `hashlib.sha256`, `runtime.get_persistent_id.encode`, `runtime.get_persistent_id`. |
| 26 | - Keep request/response, tool, or helper semantics documented here at the same time as source changes. |
| 27 | |
| 28 | ## Work Guidance |
| 29 | |
| 30 | - Preserve public helper APIs used by core code and plugins unless every caller is updated. |
| 31 | - Keep path, auth, secret, persistence, network, and subprocess behavior explicit and bounded. |
| 32 | - Prefer adding cohesive helper functions here only when behavior is reused across modules. |
| 33 | |
| 34 | ## Verification |
| 35 | |
| 36 | - Run targeted tests for changed helper behavior; run security regressions for auth, filesystem, WebSocket, tunnel, upload, or secret-handling helpers. |
| 37 | - No direct test reference was found by name search; choose the nearest behavioral test or perform a focused smoke check. |
| 38 | |
| 39 | ## Child DOX Index |
| 40 | |
| 41 | No child DOX files. |