All sample articles

Sample fixture

Sample: Document-Aware Development

A sample fixture for testing how decisions, specifications, tasks, and code relate in the English content model.

Another language edition is publishedRead in Persian

Sample fixture.This article is sample content for reviewing the bilingual reading experience. It makes no claim about the author’s work or views.

A document-to-code dependency flowAn abstract sample diagram of decisions becoming specifications, tasks, and code.
An abstract sample diagram of decisions becoming specifications, tasks, and code.

This is a sample fixture. It makes no claim about the author’s experience or personal views.

Begin with the decision

A code change is easier to review when the reason for it is visible. In this sample workflow, an accepted decision becomes a testable specification before it becomes an implementation task. The chain is deliberately short: ADR → SPEC → TASK → CODE.

The point is not to produce more documents. It is to keep the constraint that shaped a change close enough to the change that a reviewer can test whether the two still agree.

Keep the contract executable

A specification should name an observable outcome. The task can then select the smallest change that proves that outcome, while evidence records what actually happened.

type Stage = 'adr' | 'spec' | 'task' | 'code';

const trace = (stages: Stage[]) =>
  stages.every((stage, index) => index === 0 || stage !== stages[index - 1]);

Isolate technical identifiers

Commands such as npm run check, identifiers such as translationKey, and a URL such as https://example.com/system-boundary retain their left-to-right direction even when the surrounding edition uses another writing direction.

Move through explicit states

The workflow is useful when each transition has a clear owner and a visible test. A draft task cannot silently override an accepted decision, and a completed task cannot rely on evidence that was never captured.

StageQuestionEvidence
ADRWhy this direction?Accepted decision
SPECWhat must be observable?Testable criteria
TASKWhat is the smallest change?Commands and captures
A bounded feedback path Four modules connected in sequence, with a feedback edge returning from code to the decision boundary.
Sample figure: implementation feedback returns to the decision boundary instead of disappearing in the codebase.

Review the distance

The practical risk is distance: a decision in one place, a task in another, and a test with no visible relationship to either. A small traceability record reduces that distance without pretending that documentation can replace judgment.1

The review question stays simple: can another person follow the reason, the contract, the change, and the evidence without reconstructing the entire project history?

  1. This note is fixture content used to verify footnote rhythm and keyboard navigation.