{
  "schema": "vericull.binary-facts.v1",
  "generated_on": "2026-11-23",
  "what_this_is": "Facts about the compiled native engines, read from the binaries. Function starts, calls and unknowns come from a reverse-engineering core that grades each fact by how many independent engines state it; exports, imports and system-call instructions come from nm and objdump.",
  "signature": {
    "vericull_publisher_key": false,
    "why": "The core's seal chains the digest of every engine run. It is checked by running the core again, not with the Vericull receipt key, which signs adjudication receipts only."
  },
  "reader": {
    "name": "DomainRE native core",
    "package_version": "0.4.0",
    "flow_engine_version": "0.5.2",
    "files_sha256": "a1048f6ca0bfc8116c1dacbdf5b19de4ba743f76d75561b7606f2a17d3b9de3a",
    "files": [
      "native.py",
      "facts.py",
      "adjudicate.py",
      "calibration.json",
      "engines/flow.py",
      "engines/macho.py",
      "engines/llvm.py",
      "engines/objdump.py",
      "engines/tables.py",
      "engines/words.py",
      "engines/ghidra.py"
    ],
    "calibration_sha256": "a6c7b8d2085e53654fea232316571caaa01a4c01f9cfcff80af91a0e1a1353ec",
    "decoder": {
      "library": "libLTO.dylib (Apple Command Line Tools)",
      "version": "LLVM version 21.0.0"
    },
    "ghidra": "left out",
    "python": "Python 3.13.18"
  },
  "toolchain": {
    "compiler": "Apple clang version 21.0.0 (clang-2100.4.1.1)",
    "linker": "ld PROJECT:ld-27106.1",
    "system": "macOS 27.2.1 arm64",
    "nm_objdump": "Apple LLVM version 21.0.0"
  },
  "targets": [
    {
      "id": "vericull-core",
      "title": "Vericull native core",
      "role": "Reference build of the native source published in the SDK. The live site runs the JavaScript engine on Cloudflare Workers; this library is what the SDK's native Makefile produces on macOS arm64.",
      "source": {
        "native_source_sha256": "62d78d138c315e15297136f475d9cb75d71f3d2ba713fe1e3680ffcd0a8c0d01",
        "files": {
          "include/vericull_core.h": "140b7c680461a63c8d0774f5eee73d871541a5f74851700ddfb958005f274ad1",
          "native/vericull_core.cpp": "75cfaab080c8de25bb447bc583a9f93c5bb29cb24d953fb5142f61ceeb2412bd"
        }
      },
      "build": {
        "command": "make -C native",
        "compiler_line": "c++ -std=c++17 -O3 -ffp-contract=off -Wall -Wextra -Werror -fPIC -I. -I../include -dynamiclib -Wl,-install_name,@rpath/libvericull_core.dylib vericull_core.cpp -o libvericull_core.dylib",
        "rebuilt_here": [
          "681e20a4d51e4a1a38acf5656098784317c7cbebb24a0e2ae79f1481e1af0182",
          "681e20a4d51e4a1a38acf5656098784317c7cbebb24a0e2ae79f1481e1af0182"
        ]
      },
      "binary": {
        "file": "libvericull_core.dylib",
        "path": "/audit/libvericull_core.dylib",
        "sha256": "681e20a4d51e4a1a38acf5656098784317c7cbebb24a0e2ae79f1481e1af0182",
        "bytes": 56280,
        "format": "mach-o",
        "arch": "arm64"
      },
      "exports": [
        "vericull_abi_version",
        "vericull_adjudicate",
        "vericull_adjudicate_402",
        "vericull_aho_corasick_sweep",
        "vericull_aho_corasick_sweep_ex",
        "vericull_gbdt_eval",
        "vericull_lex_inspect",
        "vericull_lex_inspect_ex",
        "vericull_pattern_recall",
        "vericull_pattern_recall_ex",
        "vericull_selftest_bounds"
      ],
      "imports": [
        "_Unwind_Resume",
        "_ZNSt11logic_errorC2EPKc",
        "_ZNSt12length_errorD1Ev",
        "_ZNSt13runtime_errorC1EPKc",
        "_ZNSt13runtime_errorD1Ev",
        "_ZNSt20bad_array_new_lengthC1Ev",
        "_ZNSt20bad_array_new_lengthD1Ev",
        "_ZNSt9bad_allocC1Ev",
        "_ZNSt9bad_allocD1Ev",
        "_ZSt9terminatev",
        "_ZTISt12length_error",
        "_ZTISt13runtime_error",
        "_ZTISt20bad_array_new_length",
        "_ZTISt9bad_alloc",
        "_ZTISt9exception",
        "_ZTIi",
        "_ZTVSt12length_error",
        "_ZdlPv",
        "_Znwm",
        "__cxa_allocate_exception",
        "__cxa_begin_catch",
        "__cxa_end_catch",
        "__cxa_free_exception",
        "__cxa_throw",
        "__gxx_personality_v0",
        "__stack_chk_fail",
        "__stack_chk_guard",
        "bzero",
        "expf",
        "logf",
        "memcpy",
        "memset"
      ],
      "core": {
        "read": true,
        "seal": "25f5887a6456d4f6a97281b1142bcfd5f391a04b91d8f0bee4aacda335d01663",
        "repeat": {
          "store_intact": true,
          "engines_said_the_same": {
            "flow": "same",
            "ghidra": "not repeated",
            "stubs": "same",
            "symbols": "same",
            "unwind": "same"
          }
        },
        "engines": [
          {
            "engine": "flow",
            "version": "0.5.2",
            "status": "ok",
            "digest": "ebd4988f624a242a58ffa19316a8fad01c719b93bdb3e59cc7d9f7318d894587",
            "note": "",
            "said": {
              "function-body": 43,
              "function-start": 48,
              "call": 57,
              "import-call": 147,
              "no-return": 6
            }
          },
          {
            "engine": "ghidra",
            "version": null,
            "status": "skipped",
            "digest": "46b2f6fe5403d885b0d9a5f5d162f378a8097a5c80ed0b76453d6f0b599abc2e",
            "note": "left out on request",
            "said": {}
          },
          {
            "engine": "stubs",
            "version": "1",
            "status": "ok",
            "digest": "882d74d802eaaf79813d44f10b7dfe710525d7df9cab0437907901d321025039",
            "note": "",
            "said": {
              "function-start": 19
            }
          },
          {
            "engine": "symbols",
            "version": "1",
            "status": "ok",
            "digest": "62ca8e13146af7d49420b8bb37c296576904897c3d2fa4b78bb3fdfa4189accd",
            "note": "",
            "said": {
              "function-start": 37
            }
          },
          {
            "engine": "unwind",
            "version": "1",
            "status": "ok",
            "digest": "1dbe8d44346df38ca274fbbdd2da98810cb36bdbc06eadd037e966296a89ecb3",
            "note": "",
            "said": {
              "function-start": 35
            }
          }
        ],
        "code": {
          "text_bytes": 21068,
          "examined_bytes": 21068
        },
        "function_starts": {
          "total": 57,
          "grades": {
            "agreed": {
              "count": 37,
              "measured": {
                "right": 243025,
                "wrong": 0
              },
              "held_out": {
                "right": 92422,
                "wrong": 0
              }
            },
            "single": {
              "count": 20,
              "measured": {
                "right": 129705,
                "wrong": 555
              },
              "held_out": {
                "right": 55194,
                "wrong": 2860
              }
            }
          },
          "single_on_a_reason_not_yet_measured": {
            "stubs:import-stub": 19
          }
        },
        "calls": {
          "direct": 57,
          "to_imports": 147,
          "to_imports_by_symbol": {
            "_Unwind_Resume": 7,
            "_ZNSt11logic_errorC2EPKc": 2,
            "_ZNSt13runtime_errorC1EPKc": 1,
            "_ZNSt20bad_array_new_lengthC1Ev": 1,
            "_ZNSt9bad_allocC1Ev": 1,
            "_ZSt9terminatev": 1,
            "_ZdlPv": 37,
            "_Znwm": 14,
            "__cxa_allocate_exception": 6,
            "__cxa_begin_catch": 25,
            "__cxa_end_catch": 24,
            "__cxa_free_exception": 3,
            "__cxa_throw": 6,
            "__stack_chk_fail": 1,
            "bzero": 5,
            "expf": 1,
            "logf": 1,
            "memcpy": 3,
            "memset": 8
          },
          "functions_that_never_return": 6,
          "seen_by": "flow only"
        },
        "unknowns": {
          "traps-outside-functions": 6
        },
        "measured_on": "development set: 44 built C and C++ targets and 22 installed programs in C, C++, Rust, Go and Swift: 66 targets, 373384 functions, measured 2026-11-14",
        "held_out_on": "validation set 3: eleven installed programs in Swift, Rust, Go, C and C++, none of them used in development: 11 targets, 148102 functions, measured 2026-11-14"
      },
      "checks": [
        {
          "id": "source-is-the-published-source",
          "claim": "The library was built from the source whose hash the release manifest publishes.",
          "outcome": "confirmed",
          "basis": "SHA-256 of header, a newline and the source, against releases/manifest.json",
          "detail": {
            "manifest": "62d78d138c315e15297136f475d9cb75d71f3d2ba713fe1e3680ffcd0a8c0d01"
          }
        },
        {
          "id": "rebuild-gives-the-same-file",
          "claim": "Building that source again with the stated command gives this file, byte for byte.",
          "outcome": "confirmed",
          "basis": "two fresh builds through native/Makefile on the stated toolchain",
          "detail": {
            "builds": [
              "681e20a4d51e4a1a38acf5656098784317c7cbebb24a0e2ae79f1481e1af0182",
              "681e20a4d51e4a1a38acf5656098784317c7cbebb24a0e2ae79f1481e1af0182"
            ]
          }
        },
        {
          "id": "exports-equal-header",
          "claim": "The library exports exactly the functions the public header declares.",
          "outcome": "confirmed",
          "basis": "nm -g --defined-only against include/vericull_core.h",
          "detail": {
            "only_in_header": [],
            "only_in_library": []
          }
        },
        {
          "id": "imports-are-memory-runtime-math",
          "claim": "Every symbol the library asks the system for is memory handling, the C++ runtime or math: none opens a file, a socket, a process, a clock, the environment or a random source.",
          "outcome": "confirmed",
          "basis": "nm -u",
          "detail": {
            "by_family": {
              "c++ runtime": [
                "_Unwind_Resume",
                "_ZNSt11logic_errorC2EPKc",
                "_ZNSt12length_errorD1Ev",
                "_ZNSt13runtime_errorC1EPKc",
                "_ZNSt13runtime_errorD1Ev",
                "_ZNSt20bad_array_new_lengthC1Ev",
                "_ZNSt20bad_array_new_lengthD1Ev",
                "_ZNSt9bad_allocC1Ev",
                "_ZNSt9bad_allocD1Ev",
                "_ZSt9terminatev",
                "_ZTISt12length_error",
                "_ZTISt13runtime_error",
                "_ZTISt20bad_array_new_length",
                "_ZTISt9bad_alloc",
                "_ZTISt9exception",
                "_ZTIi",
                "_ZTVSt12length_error",
                "__cxa_allocate_exception",
                "__cxa_begin_catch",
                "__cxa_end_catch",
                "__cxa_free_exception",
                "__cxa_throw",
                "__gxx_personality_v0",
                "__stack_chk_fail",
                "__stack_chk_guard"
              ],
              "memory": [
                "_ZdlPv",
                "_Znwm",
                "bzero",
                "memcpy",
                "memset"
              ],
              "math": [
                "expf",
                "logf"
              ]
            },
            "count": 32
          }
        },
        {
          "id": "no-system-call-instructions",
          "claim": "A linear disassembly of the executable sections shows no instruction that enters the kernel directly.",
          "outcome": "confirmed",
          "basis": "objdump -d",
          "detail": {
            "found": 0
          }
        }
      ]
    },
    {
      "id": "ntsb-forensics-linux",
      "title": "AI-NTSB forensics core (Linux x86_64)",
      "role": "The file the AI-NTSB deployment loads on Linux x86_64.",
      "source": {
        "files": {
          "engine/native_core/ai_incident_forensics.cpp": "14147034c4a510496c08bfabbf1b442ae069715cc6b13e782a2c9c78c2015891"
        }
      },
      "binary": {
        "file": "libai_incident_forensics.so",
        "path": null,
        "sha256": "d1d35fe4e1602b62b4480e6453d4c0384b3018b5badc45f738eb791ce88d4a93",
        "bytes": 20208,
        "format": "elf",
        "arch": "x86_64"
      },
      "exports": [
        "aif_classify_pathology_signature",
        "aif_counterfactual_shapley_attribution",
        "aif_investigate_and_triage_gate",
        "aif_verify_t1_t6_flight_recorder"
      ],
      "imports": [
        "expf",
        "logf"
      ],
      "core": {
        "read": false,
        "why": "The core reads thin Mach-O files only. No function-start, call or unknown facts exist for this file."
      },
      "checks": [
        {
          "id": "is-the-file-in-the-release",
          "claim": "This is the library file in the source snapshot of the release run named in the basis.",
          "outcome": "confirmed",
          "basis": "release run 20261114T022629Z-oh9a_9zt, release-source.sha256",
          "detail": {}
        },
        {
          "id": "is-the-file-verified-on-linux",
          "claim": "This is the library the release run loaded and verified on Linux x86_64, 25 cases.",
          "outcome": "confirmed",
          "basis": "release run 20261114T022629Z-oh9a_9zt, linux-native.txt",
          "detail": {
            "cases": 25
          }
        },
        {
          "id": "loader-binds-only-exports",
          "claim": "Every function the production loader binds is exported by the library.",
          "outcome": "confirmed",
          "basis": "nm -g --defined-only against prod_engine/ai_incident_re_engine.py",
          "detail": {
            "bound": [
              "aif_investigate_and_triage_gate"
            ],
            "exported_not_bound": [
              "aif_classify_pathology_signature",
              "aif_counterfactual_shapley_attribution",
              "aif_verify_t1_t6_flight_recorder"
            ]
          }
        },
        {
          "id": "imports-are-memory-runtime-math",
          "claim": "Every symbol the library asks the system for is memory handling, the C++ runtime or math: none opens a file, a socket, a process, a clock, the environment or a random source.",
          "outcome": "confirmed",
          "basis": "nm -D -u",
          "detail": {
            "by_family": {
              "math": [
                "expf",
                "logf"
              ]
            },
            "count": 2
          }
        },
        {
          "id": "no-system-call-instructions",
          "claim": "A linear disassembly of the executable sections shows no instruction that enters the kernel directly.",
          "outcome": "confirmed",
          "basis": "objdump -d",
          "detail": {
            "found": 0
          }
        }
      ]
    },
    {
      "id": "ntsb-forensics-macos",
      "title": "AI-NTSB forensics core (macOS arm64)",
      "role": "The macOS arm64 build of the same source, used for local runs. Not the deployed file.",
      "source": {
        "files": {
          "engine/native_core/ai_incident_forensics.cpp": "14147034c4a510496c08bfabbf1b442ae069715cc6b13e782a2c9c78c2015891"
        }
      },
      "binary": {
        "file": "libai_incident_forensics.dylib",
        "path": null,
        "sha256": "6df25d40e5fa74826c3c88fbb262d6662b4efdd409b940942fb1fb38c863b851",
        "bytes": 33760,
        "format": "mach-o",
        "arch": "arm64"
      },
      "exports": [
        "aif_classify_pathology_signature",
        "aif_counterfactual_shapley_attribution",
        "aif_investigate_and_triage_gate",
        "aif_verify_t1_t6_flight_recorder"
      ],
      "imports": [
        "expf",
        "logf"
      ],
      "core": {
        "read": true,
        "seal": "225a76ed620114a9adc7c0d57aab10979e46970aad6ce7d2c093dd0c1d56c19d",
        "repeat": {
          "store_intact": true,
          "engines_said_the_same": {
            "flow": "same",
            "ghidra": "not repeated",
            "stubs": "same",
            "symbols": "same",
            "unwind": "same"
          }
        },
        "engines": [
          {
            "engine": "flow",
            "version": "0.5.2",
            "status": "ok",
            "digest": "446447eff0ffc6ad861e3c622e8c54091c4a548aff21613b3b23152fcec401c3",
            "note": "",
            "said": {
              "function-body": 4,
              "function-start": 5,
              "import-call": 14,
              "call": 1
            }
          },
          {
            "engine": "ghidra",
            "version": null,
            "status": "skipped",
            "digest": "46b2f6fe5403d885b0d9a5f5d162f378a8097a5c80ed0b76453d6f0b599abc2e",
            "note": "left out on request",
            "said": {}
          },
          {
            "engine": "stubs",
            "version": "1",
            "status": "ok",
            "digest": "b1d68e2d3bf80645eefdc4bd2d8d14ed84e6e8b66228cf3779268dea4bbd9d63",
            "note": "",
            "said": {
              "function-start": 2
            }
          },
          {
            "engine": "symbols",
            "version": "1",
            "status": "ok",
            "digest": "6dd730d5f4d4bdacd35487eba8f51ce263378e547f4aaa1f03c2a59557c245bb",
            "note": "",
            "said": {
              "function-start": 4
            }
          },
          {
            "engine": "unwind",
            "version": "1",
            "status": "ok",
            "digest": "cb9259b2d1400857483e85bea1c94fe051283dfc932030ceaad116e2967c4988",
            "note": "",
            "said": {
              "function-start": 5
            }
          }
        ],
        "code": {
          "text_bytes": 3184,
          "examined_bytes": 3184
        },
        "function_starts": {
          "total": 7,
          "grades": {
            "agreed": {
              "count": 4,
              "measured": {
                "right": 243025,
                "wrong": 0
              },
              "held_out": {
                "right": 92422,
                "wrong": 0
              }
            },
            "single": {
              "count": 3,
              "measured": {
                "right": 129705,
                "wrong": 555
              },
              "held_out": {
                "right": 55194,
                "wrong": 2860
              }
            }
          },
          "single_on_a_reason_not_yet_measured": {
            "stubs:import-stub": 2
          }
        },
        "calls": {
          "direct": 1,
          "to_imports": 14,
          "to_imports_by_symbol": {
            "expf": 10,
            "logf": 4
          },
          "functions_that_never_return": 0,
          "seen_by": "flow only"
        },
        "unknowns": {},
        "measured_on": "development set: 44 built C and C++ targets and 22 installed programs in C, C++, Rust, Go and Swift: 66 targets, 373384 functions, measured 2026-11-14",
        "held_out_on": "validation set 3: eleven installed programs in Swift, Rust, Go, C and C++, none of them used in development: 11 targets, 148102 functions, measured 2026-11-14"
      },
      "checks": [
        {
          "id": "is-the-file-in-the-release",
          "claim": "This is the library file in the source snapshot of the release run named in the basis.",
          "outcome": "confirmed",
          "basis": "release run 20261114T022629Z-oh9a_9zt, release-source.sha256",
          "detail": {}
        },
        {
          "id": "loader-binds-only-exports",
          "claim": "Every function the production loader binds is exported by the library.",
          "outcome": "confirmed",
          "basis": "nm -g --defined-only against prod_engine/ai_incident_re_engine.py",
          "detail": {
            "bound": [
              "aif_investigate_and_triage_gate"
            ],
            "exported_not_bound": [
              "aif_classify_pathology_signature",
              "aif_counterfactual_shapley_attribution",
              "aif_verify_t1_t6_flight_recorder"
            ]
          }
        },
        {
          "id": "imports-are-memory-runtime-math",
          "claim": "Every symbol the library asks the system for is memory handling, the C++ runtime or math: none opens a file, a socket, a process, a clock, the environment or a random source.",
          "outcome": "confirmed",
          "basis": "nm -u",
          "detail": {
            "by_family": {
              "math": [
                "expf",
                "logf"
              ]
            },
            "count": 2
          }
        },
        {
          "id": "no-system-call-instructions",
          "claim": "A linear disassembly of the executable sections shows no instruction that enters the kernel directly.",
          "outcome": "confirmed",
          "basis": "objdump -d",
          "detail": {
            "found": 0
          }
        }
      ]
    }
  ],
  "not_covered": [
    "What the functions compute. These facts are boundaries, calls and imports.",
    "The JavaScript engine the live Vericull site runs, and the Python engine.",
    "Function-level facts for the AI-NTSB Linux library: the core does not read ELF.",
    "Ghidra was left out, so 'agreed' is agreement among the flow engine, the unwind table, the symbol table and the stub table.",
    "Builds on other compilers or systems. The byte-for-byte rebuild holds for the toolchain stated here.",
    "Whether the running AI-NTSB deployment still holds that Linux file: the record ties it to the release run, not to a read of the live service."
  ]
}
