FrankenTerm

Safety Guarantees

703 words3 min read1 subsectionFrom the README at ft 0.15.21

On this page1
Trust & Attestation
  • Observe vs act split: the default ft watch loop does not send pane input, but it does own local persistence effects such as schema migration, capture writes, and retention pruning. Input and --auto-handle workflow actions remain separately policy-gated and auditable.
  • No silent gaps: capture gaps are recorded explicitly and surfaced in events/diagnostics.
  • Policy-gated sending: ft send and workflows enforce prompt/alt-screen checks, rate limits, and approvals.
  • Policy-gated reads: get-text/search surfaces enforce policy checks and return redacted text payloads.
  • Transactional operations: ft tx run uses prepare/commit/compensate phases with idempotency guards and deterministic replay.
  • Approval tokens: allow-once approval codes scoped to specific action + pane + fingerprint combinations.
  • Secret redaction: captured output is redacted before being returned through any API surface, with configurable sensitivity tiers (T1/T2/T3) and retention policies. Token redactor coverage was expanded in 2026-05 to include JWT, GitLab, Twilio, SendGrid, and Datadog patterns.
  • Workflow trigger-policy allowlists (ft-j0ufc): high-trust workflows declare allowlisted source panes to prevent low-trust panes from triggering them via output injection.
  • Public-field bypass class eliminated: ~6 audit findings closed where pub struct fields let callers bypass clamping or validation. Constructors/builders now own the invariants for ErasureShard, CircuitBreaker::Config, QuantileBudgetMs, ArrivalCurve, ServiceCurve, ApprovalScope/AuditContext, ScaleFactor, and AxisValue.
  • Rubber-stamp is_safe() class eliminated: ~17 audit findings closed where is_safe() returned true on cold start or before measurements were recorded. Every release-gate is_safe now requires evidence before reporting safe.
  • Attestation bundles: docs/attestations/ records artifact hashes and deferred claims. Bundle integrity, publisher authentication under a trusted policy, and the DSR release artifact signatures are separate checks; a development bundle is not proof of a published release.

Trust & Attestation

Latest reality-check drumbeat: docs/reports/reality-check-2026-11-20.md (2026-11-20). Fourth full pass (RC4): docs/reality-check-bridge-plan-2026-11-20.md, epic ft-mgy5t2 (four-surface truth, cross-platform release-channel split, attestation --strict-deferred unblock, and proof-closeout convergence). Predecessors: 2026-04-30 (RC1), 2026-05-12 (ft-tf6g3, RC2), and 2026-09-01 (ft-xxfwy, RC3).

The canonical manifest is docs/attestations/manifest.json; each slot maps a claim category to its producing-bead artifact, and the per-release bundle signs those slot hashes.

The README claim-to-slot map identifies populated artifacts and explicitly deferred proofs:

README claim Manifest slot Producing bead
Capture latency benchmark lane perf/headline-claims ft-syqcz.3
Deferred: capture-path Lindley / min-plus bound perf/lindley-bounds ft-7h5da.10.2
Bloom prefilter search speedup perf/headline-claims ft-syqcz.3
200-pane capacity and memory-budget benchmark lane perf/headline-claims ft-syqcz.3
Robot JSON/TOON envelope contract proofs/robot-contracts ft-0elb9
Scoped remote operating-envelope read-only admission proof; target-class capacity remains unproven proofs/robot-contracts ft-booek.7
Redactor coverage matrix security/redactor-coverage ft-x0666.2
Distributed wire-protocol safety security/distributed-threat-model ft-x0666.3
runtime_async Loom model proofs/loom-runtime-async ft-e87u6.12
RuntimeProof sealed-trait guard proofs/runtime-proof-trait ft-i2eni.1
Transaction kill-switch proof proofs/tx-killswitch ft-tf6g3.12

The operating-envelope contract (ft.operating_envelope.v1) remains deferred under the proofs/robot-contracts manifest category to ft-booek.7. Its retained artifact records scoped remote contract tests and development bundle verification; final artifact and bundle qualification remain pending. The slot does not prove target-class production capacity while the target-class resource-cockpit artifact remains skipped_not_proven. The renderer SLO suite is still tracked under ft-tf6g3 for inclusion in a future bundle. The optional proofs/rehearsal-score slot hashes the rehearsal-score golden matrix so blocked, skipped, degraded, missing-evidence, and fixture-only score rows stay visible; it is not a production support claim unless the cited receipt criterion has proven evidence.

Verify a release attestation bundle in one command, offline, without trusting GitHub or any registry:

bash
ft attestation verify docs/attestations/<version>.json

The CLI re-derives every artifact's SHA-256 from disk, recomputes the canonical signing payload, checks the recorded .sigstore file hash and size, and verifies the Sigstore signature. Exits 0 on full pass; non-zero on any failure. For machine-readable output:

bash
ft attestation verify docs/attestations/<version>.json --json
ft attestation show docs/attestations/<version>.json

Use --strict-required on verify to fail when the bundle's required_categories list does not match the canonical manifest. The release gate is meant to run the shell verifier with --strict-deferred so tagged releases cannot ship intentionally deferred slots; wiring that check into the DSR quality gate is tracked under ft-xxfwy.15. At this revision the only bundle in the tree is docs/attestations/0.0.0-dev.json (dev channel, signature.method: unsigned); no tagged release has shipped a signed bundle yet, so <version> in the examples above is a placeholder until the first one lands.

The ft attestation family is a thin Rust wrapper over scripts/attestation-verify.sh; third parties without an ft binary can run the script directly with the same arguments. For Sigstore signing identity, Fulcio/Rekor trust-root details, and manual cosign verify-blob commands, see docs/attestations/SIGNING.md. For the per-release closure procedure (when to run, how to file regressions on hash mismatch), see docs/release/attestation-checklist.md.