Capability gating strips ANSI
Platform spec ADR
Capability gating strips ANSI
Spec standingStandard
- Contracts and edge cases MUST/SHOULD rules for escape emission and supported sequence subsets.
- Design model ESC/CSI/OSC taxonomy and normative control-character tables for terminal output.
- Examples Representative escape composition and gated emission patterns.
- Flow and algorithm How escape bytes are composed, gated, and written to stdout.
- Verification and traceability Golden tests and source anchors for ANSI escape framing.
0 revisions (git unavailable at build; counts may be empty)
No commits recorded for this path.
| Section id | Required | Found |
|---|---|---|
what-this-feature-specifies | yes | yes |
implementation-anchors | yes | yes |
Full tree: run pnpm verify:platform-spec-layout (writes src/generated/platform-spec-layout-report.json).
Context
Section titled “Context”Programs must not leak escapes to pipes, log files, or NO_COLOR environments.
Decision
Section titled “Decision”| Rule | Detail |
|---|---|
| Gating | User-visible styled output must pass Ansi.Escape.WhenEnabled |
| Tests | Ungated Csi remains for golden tests |
Consequences
Section titled “Consequences”When ShouldEmitAnsi() is false, gated builders return empty strings.
Verification anchors
Section titled “Verification anchors”AnsiEscapeTests.bd; console capability integration.