knolo-core icon indicating copy to clipboard operation
knolo-core copied to clipboard

Follow-up: live MAVLink, DJI logs, and knolo-verify log rehash

Open HiveForensicsAI opened this issue 1 month ago • 1 comments

Summary

#89 and PR #105 landed offline post-flight ingest for ULog, DataFlash, and rosbag2. Three items from the original request stayed out of that pass. This issue tracks them for a later revisit.

Current behavior to keep:

  • knolo flight ingest hashes one log file and packs a flight-events-1 document. It does not decode the log.
  • A hash or length mismatch writes nothing (FLIGHT_LOG_MISMATCH).
  • SATISFIED means the declared evidence requirements were met. It does not mean a flight was safe, legal, or compliant.
  • docs/flight/README.md states that the knolo-verify action does not hash the external log. Compare the log file with the hash stored in the image before treating the dossier as bound to those bytes. That check is separate from knolo cortex verify.
  • Optional producers stay outside core and outside npm test. pyulog, pymavlink, and rosbags stay pinned and are not vendored.
  • Packages stay 6.2.0 until a release is requested.

Later work

  1. Live MAVLink. The original request asked whether a later phase should accept live MAVLink telemetry, for example a MAVLink FTP log download on a companion computer. Offline file ingest stays the supported path until that is designed. This is not onboard flight control or a safety-of-flight function.

  2. DJI proprietary logs. log.format is ulog, dataflash, or rosbag2. An unknown format, including dji, is refused with FLIGHT_EVENTS_INVALID. A later producer needs a documented, redistributable parser pin and stays outside core and outside npm test.

  3. knolo-verify rehash of the external log. The action already accepts flight images, KAR graphs, attestations, and Cortex traces. It does not rehash the on-disk log. A later input could take that file, recompute its SHA-256, and fail the check when the digest differs from the hash stored in the image. The ingest mismatch check and verifyCortexAnswer stay separate.

Out of this follow-up unless asked

  • Retuning domains/flight-ops, or any claim of regulatory certification or compliance approval.
  • Replacing the 95-byte ULog stand-in or the synthetic DataFlash and rosbag2 fixtures with public recordings.
  • A version bump, tag, npm publish, or GitHub Release.

HiveForensicsAI avatar Nov 02 '26 12:11 HiveForensicsAI

Item 3 is on main and in the published CLI. This comment does not close the issue.

knolo flight verify-log hashes the on-disk log and compares it with the single flight-log object. A mismatch is FLIGHT_LOG_MISMATCH and writes nothing. The knolo-verify action input flight-logs runs that command. Published @knolo/[email protected] includes it. A match is an integrity check. It does not mean a flight was safe, legal, or compliant. It stays separate from knolo cortex verify.

Items 1 and 2 stay open. Live MAVLink and DJI logs stay outside core. pyulog, pymavlink, and rosbags stay unvendored and out of npm test.

The issue body still says the action does not hash the external log and that packages stay 6.2.0. That text is the original request. This comment is the correction.

HiveForensicsAI avatar Nov 14 '26 11:11 HiveForensicsAI