update_device_fingerprint
Update a device's fingerprint by merging kernel, OS, package, and capabilities data. Top-level keys are overwritten; capability sub-dict replaces each incoming key entirely. Run after discover_and_map.
Instructions
Merge fingerprint data (kernel, OS, package digest, capabilities) into a device's sitemap row. Top-level keys overwrite (last-write-wins). The capabilities sub-dict updates one level deep — each incoming top-level capability key REPLACES its stored entry entirely (NOT a recursive merge); stored capability keys not present in the call are preserved. Callers updating any field within a capability must pass the full capability dict. Run discover_and_map first to populate the device. See the configure_host_fingerprint prompt for the conversational workflow. Persists to DB and bumps updated_at; last_seen is preserved (Phase 38 REVIEW-FIX WR-03).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostname | Yes | Hostname of the device to fingerprint | |
| fingerprint | Yes | Fingerprint dict. Recognized top-level keys: kernel_name, kernel_version, os_name, os_version, package_fingerprint, capabilities. Unknown top-level keys are dropped server-side. capabilities is a freeform sub-dict. |