|
Bootstrap
Bash-based bootstrap engine reference documentation
|
Accepted
This Architecture Decision Record defines a documentation-first, narrative-heavy source code commenting standard intended for use in projects that employ AI/LLM-assisted code generation or modification.
This ADR is deliberately project-agnostic. It does not assume the presence of other Architecture Decision Records, specific architectures, or particular tooling. It is intended to be reusable across projects, teams, and organizations.
The standard applies both to:
This ADR is intentionally verbose. Verbosity is a design choice, not an accident.
Source code is read far more often than it is written.
It is read:
This ADR assumes a human reader who is:
The goal of this standard is not elegance. The goal is comprehension under stress.
AI/LLM-generated code frequently exhibits the following failure patterns:
These problems are not hypothetical. They occur regularly in real workflows.
This ADR exists to counteract those tendencies explicitly.
Documentation is architecture.
Comments and docstrings are not decorative. They are part of the system’s safety, maintainability, and incident-prevention surface.
This ADR adopts an intentionally extreme posture:
Target approximately two lines of meaningful documentation for every line of executable code.
This ratio is a guiding norm, not a rigid metric. The standard is met when a reader can understand both what the code does and why it exists without reverse-engineering behavior.
This ADR centers the experience of a tired or stressed human.
That perspective drives several deliberate choices:
Clarity is prioritized over cleverness.
Code should read like a book written in plain language.
This means:
Documentation SHOULD explain:
Documentation SHOULD NOT:
The following MUST be documented in all applicable languages:
Undocumented behavior is considered a defect.
Where applicable, documentation SHOULD include:
Not every section applies everywhere, but omissions should be intentional.
This ADR adopts a Doxygen-style conceptual structure across languages.
Exact syntax varies by language, but the following concepts should be present: