HARVEST-PLAYBOOK Gate 3.4 no-dark check (ported from scripts/harvest/no-dark.sh via script-scan): a new crate must be referenced by >=1 host on the runtime path or it ships dark. Component-wise path exclusions (fixes the bash over-exclusion bug), bounded walk, in-process matching.
| Tier | tools |
| Role | unclassified (baselined) |
| Path | crates/tools/no-dark |
| Edition | 2021 |
| Targets | tools-no-dark |
| Public items | 0 across 0 modules |
| Tests | 11 |
What it is for
tools-no-dark — Gate 3.4: no capability ships dark (HARVEST-PLAYBOOK §13.6).
A new library crate must be referenced by >=1 HOST on the runtime path (not just its own tests). Prints the host references; if there are none, the capability ships dark, so the caller should open a wiring issue.
Usage: tools-no-dark infrastructure_jobs ~/projects (use the crate's Rust ident form, underscores: library crates_foo)
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/no-dark |
| Vocabulary in force (lexicon) | current |
Dependencies
Runtime, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
anyhow | ^1 | — | no | always |
Development. None.
Build. None.
Depended on by. Nothing in this workspace.
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-no-dark | `src/main.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 | yes |
No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.
Configuration
| Variable | Read in |
|---|---|
HOME | src/main.rs |
Related capabilities
No workspace crate depends on this one.
Verification
| Kind | Count |
|---|---|
| Unit tests | 11 |
| Integration tests | 0 |
| Examples | 0 |
| Doctests | 0 |
What the tests establish, by name:
excludes_primary_dirs—src/main.rsexcludes_secondary_paths—src/main.rsfinds_host_reference_outside_own_crate—src/main.rsline_matches_use_with_word_boundary—src/main.rsmissing_crate_ident_is_an_error—src/main.rsroot_must_be_a_directory—src/main.rsships_dark_when_only_own_crate_and_tests_reference_it—src/main.rsskips_files_over_size_cap—src/main.rsskips_symlinked_directories—src/main.rsstrips_tier_prefix_from_registry—src/main.rsvalidates_crate_ident—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 | 488 |
| Code lines | 399 |
| 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" : 399
"Blank or comment" : 89
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.