tools tier

tools-ir-triage

The binary that ships on the IR boot stick: gate a target, capture a disk under a verified write-block, verify the artifact into a signed receipt, and run the registry and event-log rules against a mounted image. Composes operations-block-imaging, operations-device-safety and infrastructure-registry-forensics -- it wires them, it does not reimplement them.

The binary that ships on the IR boot stick: gate a target, capture a disk under a verified write-block, verify the artifact into a signed receipt, and run the registry and event-log rules against a mounted image. Composes operations-block-imaging, operations-device-safety and infrastructure-registry-forensics -- it wires them, it does not reimplement them.

Tiertools
Roletooling
Pathcrates/tools/ir-triage
Edition2021
Targetsir-triage, tools_ir_triage
Public items8 across 0 modules
Tests11

What it is for

The decidable parts of ir-triage, split from the binary so they can be tested.

Everything here is a pure function over values the caller already has. The binary reads the world — udev, /proc/mounts, files — and hands it in. That split is why the reverse-tunnel naming rule and the observation rendering are testable at all.

Capabilities

crate root

The decidable parts of ir-triage, split from the binary so they can be tested.

Item
pub const IR_PORT_RANGE: std::ops::RangeInclusive <u16>
fn render_observations(observations : & Observation) -> Vec <String>
fn normalize_esp_path(path : & str) -> String

EspEntry

The decidable parts of ir-triage, split from the binary so they can be tested.

Item
pub struct EspEntry
fn boot_binary_observations(entries : & EspEntry) -> Vec <Observation>

TriageError

The decidable parts of ir-triage, split from the binary so they can be tested.

Item
pub enum TriageError
fn hostname_for(port : u16) -> Result <String, TriageError>
fn port_for(hostname : & str) -> Result <u16, TriageError>

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

No public modules: the crate root is its whole surface.

Public surface

`crate root`

ItemWhat it is
pub const IR_PORT_RANGE: std::ops::RangeInclusive <u16>The reverse-tunnel port range reserved for IR sticks
pub enum TriageErrorErrors from the decidable layer.
fn hostname_for(port : u16) -> Result <String, TriageError>The one identity a stick carries: system hostname, cdmx account, usd node_id and DNS alias are all this string, so reading it tells you the port without a lookup.
fn port_for(hostname : & str) -> Result <u16, TriageError>The inverse
fn render_observations(observations : & Observation) -> Vec <String>Render observations as cited lines
pub struct EspEntryOne executable found on an EFI System Partition, as the binary read it: the path relative to the ESP root, its size, its SHA-256, and whether its bytes carry a Microsoft publisher string
fn normalize_esp_path(path : & str) -> StringNormalize an ESP-relative path for comparison: backslashes to slashes, trimmed leading slash, lowercased
fn boot_binary_observations(entries : & EspEntry) -> Vec <Observation>Turn an ESP inventory into cited Observations

No pub use re-exports: every item above is declared in this crate.

Boundary

Reaches into foundation, infrastructure, operations.

Shares tier tools with 84 other crates: tools-advisory-reach, tools-archive-guard, tools-artifact-scaffold, tools-ask-ai-core, tools-ask-ais, tools-ask-gemini, tools-book, tools-book-report, … (84 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)tools
Architectural role (taxonomy)tooling
Locationcrates/tools/ir-triage
Vocabulary in force (lexicon)current

Tier flow. Which tiers this crate's own edges cross.

flowchart LR
  n_tools["tools"] --> n_foundation["foundation"]
  n_tools["tools"] --> n_infrastructure["infrastructure"]
  n_tools["tools"] --> n_operations["operations"]

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`foundation-audit-log`foundationnoalways
`foundation-crypto-sign`foundationnoalways
`infrastructure-bitlocker-forensics`infrastructurenoalways
`infrastructure-host-forensics`infrastructurenoalways
`infrastructure-registry-forensics`infrastructurenoalways
`operations-block-imaging`operationsnoalways
`operations-device-safety`operationsnoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
anyhow^1noalways
clap^4derivenoalways
rand_core^0.6getrandomnoalways
serde_json^1noalways
thiserror^2noalways

Development, in this workspace.

CrateTierOptionalOnly on
`tools-cli-conformance`toolsnoalways

Build. None.

Depended on by. Nothing in this workspace.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  SELF["tools-ir-triage"]
  SELF -->|development| n_tools_cli_conformance["tools-cli-conformance"]
  SELF -->|runtime| n_foundation_audit_log["foundation-audit-log"]
  SELF -->|runtime| n_foundation_crypto_sign["foundation-crypto-sign"]
  SELF -->|runtime| n_infrastructure_bitlocker_forensics["infrastructure-bitlocker-forensics"]
  SELF -->|runtime| n_infrastructure_host_forensics["infrastructure-host-forensics"]
  SELF -->|runtime| n_infrastructure_registry_forensics["infrastructure-registry-forensics"]
  SELF -->|runtime| n_operations_block_imaging["operations-block-imaging"]
  SELF -->|runtime| n_operations_device_safety["operations-device-safety"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.

Targets

KindNameSource
binir-triage`src/main.rs`
libtools_ir_triage`src/lib.rs`

Error model

Error typeNamed by
TriageErrorhostname_for, port_for

Operational characteristics

PropertyEvidence
async public surfacenone detected
async runtimenone detected
database accessnone detected
network I/Onone detected
unsafe codenone detected
environment variablesnone detected

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.

No workspace crate depends on this one.

Verification

KindCount
Unit tests11
Integration tests0
Examples0
Doctests0

Evidence by module. How often each public module is named by something executable.

ModuleTestsExamplesConsumers
crate root800

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc88
Public modules with a //! block00
pie showData
    title Public items with rustdoc
    "Documented" : 8
    "No rustdoc detected" : 0

Metrics

MetricValue
Rust source files2
Source lines723
Code lines528
Public API items8
Public modules0
Tests11
Examples0
Cargo features0
Direct runtime dependencies12
Workspace reverse dependencies0
pie showData
    title Public API by kind
    "constant" : 1
    "enum" : 1
    "function" : 5
    "struct" : 1
pie showData
    title Rust source composition
    "Code" : 528
    "Blank or comment" : 195

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

All tools · Manual