Refs #12406 (part of #8479); this PR does not close the remediation issue.
Summary
Adds the no-write inventory step for the first remediation stage. It resolves effective sensitivity from the chunk label or session label, defaulting invalid or missing classifications to secret-bearing. It validates SHA-256 content hashes, maps by content hash, and hashes source and destination vector bytes in memory (requiring the expected 768-float shape) so a present but different vector stays unresolved. Reports include vector fingerprints, and resume checks bind source vector identity while detecting destination snapshot drift.
The example requires an explicit SECRET_HOST verified against the Turso listing, parses only its declared CLI flags, rejects existing output paths, and writes reports with private permissions. It has no purge or visibility-switch operation. No production or local corpus data was read or changed.
Evidence
- Fleet run #45906471674: the remote command step completed successfully for changed-file
rustfmt --check, cargo test -p atlas-core --test remediation, and cargo check -p atlas-core --example remediation_inventory. GitHub Actions was still running its post-command cache/cleanup step when this body was updated.
- Failing-first baseline, Fleet run 45892026616: the mapping oracle failed on the stub (
source count 0 instead of 4), not on compilation.
git diff --check origin/main...HEAD: clean; the current PR diff is limited to the inventory module, example, module export, and tests.
- Transport tests use synthetic SQLite fixtures and assert the inventory queries never select corpus text.
Merge danger
No service wiring or corpus changes are included. The example only performs reads and writes its trace-safe report to a new explicit local output path with mode 0600 on Unix.
Remaining work
The production ingestion path still runs through external scripts: #5670 remains open, and the #14162 adapter/staging integration is not live. A purge could allow the old path to repopulate the monolith, so this PR leaves production data untouched. The remaining #12406 criteria require live ingestion/routing verification, then a fresh destination-completeness inventory, dry-run, and gated purge with audit and post-run absence checks.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-26T21:33:41Z",
"session_id": null,
"lane": null,
"host": "amd",
"worktree": "/home/user/git/fleet/21012-12406-inventory",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/fleet/21012-12406-inventory",
"repo": "developing-today/code",
"branch": "agent-next-19-local/12406-inventory-20261126",
"sha": "25bf27fc1984240c987395f8dead02f85d635d9d"
},
"auth_subject": "oc-code-05",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.