wrkr inventory
wrkr inventory
Synopsis
wrkr inventory [--state <path>] [--anonymize] [--json]
wrkr inventory --diff [--baseline <path>] [--state <path>] [--json]inventory is the developer-facing compatibility wrapper over Wrkr's existing inventory export and drift primitives.
Flags
--json--state--anonymize--diff--baseline
Developer personal-hygiene example
wrkr inventory --json
wrkr inventory --anonymize --json
wrkr inventory --diff --baseline ./.wrkr/inventory-baseline.json --state ./.wrkr/last-scan.json --jsonOutput contract
wrkr inventory --json emits the same stable payload as the raw inventory export surface:
export_versionexported_atorgagentstools
wrkr inventory --diff --json emits:
statusdrift_detectedbaseline_pathadded_countremoved_countchanged_countaddedremovedchanged
inventory --diff exits 5 when deterministic drift is present.
Baseline semantics
--baselinepoints to a prior Wrkr scan state snapshot.- When
--baselineis omitted, Wrkr defaults to.wrkr/inventory-baseline.jsonbeside the active state file. - The baseline file must be a machine-readable Wrkr scan state written by
wrkr scan --state ... --jsonor copied from a previous.wrkr/last-scan.json.
Security-team org example
wrkr inventory --diff --baseline ./.wrkr/inventory-baseline.json --state ./.wrkr/last-scan.json --jsonUse this when platform or security teams want a deterministic change review over the latest saved org posture before deciding whether to escalate into wrkr regress or evidence generation.
Compatibility relationship
wrkr exportremains the stable raw inventory export surface for automation and archival workflows.wrkr regressremains the approval/lifecycle drift gate surface.wrkr inventory --diffis the ergonomic wrapper for developer inventory drift review over the same deterministic state/diff model.
Canonical state and baseline path behavior: `docs/state_lifecycle.md`.