Proof Portal

Project overview

litellm

BerriAI117 findings · 107 requirements

LiteLLM Python->Rust migration audit (proof mirroring).

93 withheld (location undisclosed)

All requirements
RequirementSW-REQ-260731-DTRNSoftwareReview

_reconstruct_diarized_transcript groups the per-word speaker stream into contiguous segments labelled `Speaker <id>:`, opening a new segment whenever the speaker id changes and preferring each word's punctuated_word over its bare word, and returns the empty string for an empty word stream

All automated checks pass and 4/4 obligations are satisfied. Human review is still pending.
PriorityshallTypeguaranteeCategoryfunctionalComponentdeepgram_audio_transcriptionAssuranceEFindingsLowworst open

Specification

The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.

Description

_reconstruct_diarized_transcript groups the per-word speaker stream into contiguous segments labelled Speaker <id>:, opening a new segment whenever the speaker id changes and preferring each word's punctuated_word over its bare word, and returns the empty string for an empty word stream

FRETish formula
when audio_has_diarization the deepgram_audio_transcription shall always satisfy diarized_transcript_reconstructed
View full formal model

Verification & provenance

How this requirement was checked: the review trail, edit history, and the machine-analysis status terms (each ⓘ explains what it means).

Assurance levelE
Formalizationvalid
Strategyfretish

Review

Status
pending

History

Created
Jul 31, 2026, 00:00 UTC · Claude Code · AI agent
Modified
Jul 31, 2026, 00:00 UTC · Claude Code · AI agent

Hazard review

Reviewed Aug 1, 2026, 18:01 UTCby agent:claude-opus-4-8catalog v1.9.1
  • scenarioreviewednominalempty_input

    nominal is the segmentation happy path over a multi-speaker stream; empty_input is the empty word list returning the empty string; malformed_input is suppressed because each word is read defensively with .get (punctuated_word falling back to word falling back to the empty string), so there is no reject-invalid partition, a missing field degrades to the fallback rather than raising

  • propertyreviewedboundarypure_function_property_tested

    boundary is the speaker-change edge (a new segment opens exactly when the speaker id differs from the running one, and the very first word opens the first segment against the None sentinel); the segment-per-contiguous-speaker property is property-testable over any word stream; determinism follows from purity and totality is delegated to the empty_input base case

  • structuralnot applicable

    Garbage-collected Python list accumulation and string join with no manual memory, pointer arithmetic, overflow, or format string

  • domainnot applicable

    Pure in-process string reconstruction issuing no network/filesystem/IPC call

Change history

Every recorded revision of this requirement's source file — newest first, each with its commit message and the diff for that change.

Review history

Human and AI-agent approvals of this requirement — the 'why was this approved' lineage, each with the reviewer's justification and the code it cites.

  1. Claude Code · AI agentApprovedSpec conformanceJul 31, 2026 · 4 months agoREVIEW-32

    _reconstruct_diarized_transcript opens a new segment on 'if speaker != current_speaker' (158), flushing the prior via 'if current_words' (160), and returns '' for empty words ('if not words' at 146); word_text prefers punctuated_word. FRETish 'when audio_has_diarization satisfy diarized_transcript_reconstructed' matches the per-speaker segmentation.

    Cited code (3)

Open known issues

Findings currently open against this requirement — issues its verification surfaced that are not resolved yet. Each links to the full finding.

Obligations

What this requirement must witness to be considered satisfied — the required evidence, and the tests that discharge each one.

4 obligations · 4 discharged

Browse the catalogue
Discharged

Happy-path behavior with valid inputs.

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    Covered by 1 test
Discharged

Behavior when inputs are absent, nil, zero-length, or blank.

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    Covered by 1 test
Discharged

Behavior at limits, thresholds, and edge-of-range values.

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    Covered by 1 test
Discharged

A function declared pure (no I/O, no global state, output is f(input) only) shall carry property-based tests that exercise its declared algebraic properties (determinism, totality, commutativity, monotonicity, idempotency — whichever apply); example-based tests alone shall not be sufficient evidence for a pure-function obligation.

Discharging evidence1/1 required witnessed
  • nominalrequiredpresent
    Covered by 1 test

Formula evidence

The formal formula behind this requirement, the variables it is written over, and the tests that exercise it (each term is explained inline).

FRETish formula

when audio_has_diarization the deepgram_audio_transcription shall always satisfy diarized_transcript_reconstructed

Witnesses· 1 scenario total

  • test_segments_by_contiguous_speaker_with_punctuation_fallback
    exercises 1 condition scenario

MC/DC truth table· 3 rows

Each row assigns the formula's conditions (T/F) and shows the Result— the formula's value for that input row, not a test pass/fail. A row proves a condition when flipping only that condition flips the outcome. The test that covers each row is linked.

Covereda test exercises this rowExempteda reviewed mcdc:ignoreNo-actionfalse-result row satisfied by designUncoveredneeds a covering test
#audio_has_diarizationdiarized_transcript_reconstructedResultProvesCovering test
1FFTaudio_has_diarizationUncovered
2TFFaudio_has_diarizationUncovered
3TTTdiarized_transcript_reconstructed

Its place

How this requirement connects — what proves it, what it affects, and what it rests on. Authored links only here; automatically derived links come from the audit index.

Loading graph…

Trace evidence

The concrete artifacts linked to this requirement — implementing code, verifying tests, documents, and the findings raised against it.

Mirrors

Ports this requirement participates in — it carries a reviewed exemption on one side, or a finding raised against it is tracked as part of the port.

  • Deepgram audio transcription: Python -> RustMIR-005
    Not portedPython → Rust
    View in Mirrors

Impact

Blast radius — authored trace links only (automatically derived links come from the audit index and aren't shown here).

If you change this

Requirements
0
Files
1
Tests
1
At-risk contracts
0

Files to re-check (1)

  • transformation.pylitellm/llms/deepgram/audio_transcription/transformation.py

Tests to re-run (1)

  • test_deepgram_audio_transcription_transform_baseline.pytests/test_litellm/llms/deepgram/audio_transcription/test_deepgram_audio_transcription_transform_baseline.py

What this rests on

Discussions

Discuss this with the proof team. Nothing changes in your audit automatically — you open a request and a staff member records any outcome inside the thread.

Sign in to discuss this with the proof team.Sign in