# Hand-Kept Index

> A defect in which an index is written by hand beside what it indexes, so it drifts silently because nothing compares the two.

Record: `architecture:hand-kept-index`
Kind: anti-pattern
Layer: [Execution Core](https://banes-lab.com/records/layer/execution-core.md)
Severity: discouraged
Scope: index
Canonical: https://banes-lab.com/ontology#architecture-hand-kept-index

Listed in [Architecture principles](https://banes-lab.com/api/records/architecture.md), after [Destructive Closure](https://banes-lab.com/records/architecture/destructive-closure.md) and before [Closed Vocabulary](https://banes-lab.com/records/architecture/closed-vocabulary.md).

## Repair

- Refactored by: Generate the Index From the Directory
- Detected by: an index entry with no file, or a file with no entry
- Violated by: adding and removing index entries by hand
- Measured by: entries and files missing their counterpart
- Enforced by: coordination review

## Severity

- [discouraged](https://banes-lab.com/records/vocabulary/severity-discouraged.md)

## Category

- [Coordination Surfaces](https://banes-lab.com/records/architecture-category/coordination-surfaces.md)

## Detected by

- [rules/eslint/closure-barrel-must-be-glob.eslint.rule.ts](https://banes-lab.com/source/governance/rules/eslint/closure-barrel-must-be-glob.eslint.rule.ts.md)

## Negated by

- [Two-Direction Index](https://banes-lab.com/records/architecture/two-direction-index.md)

## Linked from

- [Coordination Surfaces](https://banes-lab.com/ontology/principles/architecture-category-coordination-surfaces.md)
- [Severity levels](https://banes-lab.com/ontology/schema/the-vocabulary-severity.md)

## Evidence in the code

- [models/coordination.model.md](https://banes-lab.com/source/coordination/models/coordination.model.md.md)
