# Invocation-Keyed Report

> A defect in which a run writes its result under a name derived from how it was invoked, beside the shared aggregate, so documents accumulate that each describe a moment and none the state.

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

Listed in [Architecture principles](https://banes-lab.com/api/records/architecture.md), after [Written Status Marker](https://banes-lab.com/records/architecture/written-status-marker.md) and before [Narrowed Aggregate](https://banes-lab.com/records/architecture/narrowed-aggregate.md).

## Repair

- Refactored by: Stream the Narrowed Verdict, Keep One Aggregate
- Detected by: a report whose name carries a scope or caller segment
- Violated by: keying a report's filename on the scope, the caller or the flags of a run
- Measured by: keyed reports beside the aggregate
- 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)

## Negated by

- [Single Aggregate](https://banes-lab.com/records/architecture/single-aggregate.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/substrate.model.md](https://banes-lab.com/source/coordination/models/substrate.model.md.md)
