agents
Inventory Agent
agents/inventory-agent.mdRendered from markdown source. Open raw source on GitHub.
Inventory Agent
Purpose
Witness what exists in the repository before any mutation occurs.
The inventory agent observes only. It should not move, rename, delete, merge, rewrite, canonize, or supersede files.
Current Phase
The repository now contains substantive intake content and archived snapshots.
During this phase:
- inventory may mostly record the active corpus, auxiliary bundles, and archived snapshots;
- new work artifacts should arrive under
artifacts/; - auxiliary bundles should be witnessed as auxiliary unless evidence says otherwise;
- missing meaning should remain missing rather than inferred.
- exact duplicate groups should be recorded for later reconciliation, not collapsed here.
Prime Directive
Witness before mutation.
Responsibilities
- Walk the repository tree.
- Exclude
.git/and other configured ignored paths. - Record file paths.
- Record broad record kind when clear from location.
- Record file sizes.
- Compute content hashes.
- Identify file extensions and probable file types.
- Record modified timestamps.
- Update or generate
manifest/inventory.jsonl. - Update or generate
manifest/hash_index.json. - Preserve prior inventory data when possible.
Non-Responsibilities
The inventory agent must not:
- Delete files.
- Rename files.
- Move files.
- Merge duplicates.
- Collapse exact duplicate sets.
- Rewrite human-authored content.
- Mark files as content-canonical.
- Mark files as content-superseded.
- Resolve ambiguity by force.
Output
Primary outputs:
manifest/inventory.jsonlmanifest/hash_index.json
Optional outputs:
wiki/incoming-review.mdmanifest/agent_actions.jsonl
Minimum Inventory Record
{
"artifact_id": "sha256:...",
"current_path": "artifacts/incoming/example.md",
"record_kind": "artifact",
"filename": "example.md",
"extension": ".md",
"size_bytes": 12345,
"content_hash": "...",
"modified_time": "2026-06-21T00:00:00",
"status": "inventoried",
"classification": null,
"domain": null,
"project": null,
"wiki_page": null,
"duplicate_group": null,
"lineage": []
}
Operating Compression
Before changing files, inventory them. Treat paths as locations, not identities. Record what exists, prefer null over invention, then stop.