Move one untracked file to its home, rewrite exact-path citers, stage the result — the estate-loop intake step as a tool
| Tier | tools |
| Role | unclassified (baselined) |
| Path | crates/tools/untracked-intake |
| Edition | 2021 |
| Targets | tools-untracked-intake, cli_test |
| Public items | 0 across 0 modules |
| Tests | 11 |
What it is for
Move one UNTRACKED file to its home, rewrite exact-path citers, stage the result (sprint 3.42 T5, #235 item 6). The judgment — WHERE the file belongs — stays with the caller; the move, the citer rewrite, and the staging are mechanical. Bare-basename mentions are ambiguous (they may not mean this file) and are listed for a human, never rewritten.
Refusals are named errors before any write: tracked source, missing source, occupied destination, path escaping the repo root.
Capabilities
No public items.
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
No public items.
No pub use re-exports: every item above is declared in this crate.
Boundary
Depends on no other workspace tier.
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) | unclassified (baselined) |
| Location | crates/tools/untracked-intake |
| Vocabulary in force (lexicon) | current |
Dependencies
Runtime, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
anyhow | ^1 | — | no | always |
Development, in this workspace.
| Crate | Tier | Optional | Only on |
|---|---|---|---|
| `foundation-test-support` | foundation | no | always |
Development, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
tempfile | ^3 | — | no | always |
Build. None.
Depended on by. Nothing in this workspace.
Signal flow — what reaches this crate, and what it reaches.
flowchart LR SELF["tools-untracked-intake"] SELF -->|development| n_foundation_test_support["foundation-test-support"] 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
| Kind | Name | Source |
|---|---|---|
| bin | tools-untracked-intake | `src/main.rs` |
| test | cli_test | `tests/cli_test.rs` |
Error model
No public error type was detected: no public item declares a type named *Error, and no public signature returns one.
Operational characteristics
| Property | Evidence |
|---|---|
| async public surface | none detected |
| async runtime | none detected |
| database access | none detected |
| network I/O | none detected |
| unsafe code | none detected |
| environment variables | none 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.
Related capabilities
No workspace crate depends on this one.
Verification
| Kind | Count |
|---|---|
| Unit tests | 2 |
| Integration tests | 9 |
| Examples | 0 |
| Doctests | 0 |
What the tests establish, by name:
a_failed_citer_write_stages_nothing—tests/cli_test.rsintake_dry_run_writes_nothing_and_signals_pending_changes—tests/cli_test.rsintake_moves_stages_and_rewrites_exact_path_citers—tests/cli_test.rsintake_refuses_a_dest_escaping_the_repo_before_any_write—tests/cli_test.rsintake_refuses_a_path_escaping_the_repo—tests/cli_test.rsintake_refuses_a_tracked_file_by_name—tests/cli_test.rsintake_refuses_an_occupied_destination—tests/cli_test.rsintake_refuses_every_dynamically_generated_escape_of_file_not_just_one_hardcoded_case—tests/cli_test.rsthe_citer_size_cap_holds_at_its_exact_boundary—tests/cli_test.rsparse_requires_file_and_dest—src/main.rspath_replacement_stops_at_token_boundaries—src/main.rs
Documentation coverage
| Measure | Documented | Total |
|---|---|---|
| Public items with rustdoc | 0 | 0 |
Public modules with a //! block | 0 | 0 |
Metrics
| Metric | Value |
|---|---|
| Rust source files | 1 |
| Source lines | 344 |
| Code lines | 282 |
| Public API items | 0 |
| Public modules | 0 |
| Tests | 11 |
| Examples | 0 |
| Cargo features | 0 |
| Direct runtime dependencies | 1 |
| Workspace reverse dependencies | 0 |
pie showData
title Rust source composition
"Code" : 282
"Blank or comment" : 62
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.