# Written Status Marker

> A defect in which a party writes a record's state as a marker instead of deriving it from the record's edges, so the marker goes stale and asserts a state that no longer holds.

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

Listed in [Architecture principles](https://banes-lab.com/api/records/architecture.md), after [Contradicted Invariant](https://banes-lab.com/records/architecture/contradicted-invariant.md) and before [Invocation-Keyed Report](https://banes-lab.com/records/architecture/invocation-keyed-report.md).

## Repair

- Refactored by: Derive the State From the Edges
- Detected by: a status field whose value the record's edges contradict
- Violated by: adding a status field that parties are trusted to keep current
- Measured by: records carrying a written state
- 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

- [Derived Record State](https://banes-lab.com/records/architecture/derived-record-state.md)

## Linked from

- [Handoff signals](https://banes-lab.com/pag/orchestration/handoff-signals.md)
- [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)
