FrankenTerm

Substrate Audit Discipline

195 words1 min readFrom the README at ft 0.15.21

The codebase is swept by family rather than by spot. Each family is a defect class with a known pattern; the discipline is that every audit closes every member of the family it touches.

Family What it looks like Example fixes
Public-field bypass pub struct field lets callers bypass clamping, NaN-rejection, or invariants ErasureShard, CircuitBreaker::Config, QuantileBudgetMs, ArrivalCurve/ServiceCurve, ApprovalScope, ScaleFactor, AxisValue
Rubber-stamp is_safe() Release-gate is_safe() returns true on cold start or before any measurement is recorded display_pipeline_ci_matrix (CRITICAL release-gate forgery), gpu_regression_fuzz_report, redactor_coverage_matrix, iterm2_osc_1337, 7 cold-start doctor snapshots, others
Sanitization gap Input sanitizer accepts DEL / C1 / argv-flag injection / path traversal restore_process (DEL + C1 + CSI), kitty_graphics_alt_text (HIGH bypass), browser::sanitize_path_component, cass argv flag injection
NaN / unbounded input Float input not validated against NaN / NEG_INFINITY / unbounded ranges chaos, recorder_replay::ReplayConfig, VirtualClock, bench_stats::empirical_bernstein_ci, disk_pressure::EwmaEstimator
Privacy bypass Optional redaction field can be skipped via direct access scrollback_cold_tier::ChunkMetadata.redaction, incident_bundle::truncate_file_content, truncate_excerpt
Redactor coverage Token family not in the redactor pattern set Added JWT, GitLab, Twilio, SendGrid, Datadog patterns
State-machine defects Transitions accept impossible / inconsistent input pane_groups, triple_buffer_watchdog, sync_output_watchdog, frame_budget::SustainedBurstHarness
Docstring overpromise Docstring claims behavior the implementation doesn't honor OSC 52 docstring honesty (ft-uea9o)

See docs/audit-checklist.md for the per-substrate audit checklist and the bead-keyed exemplars.