feat
patch
security
task/stream-security-phase3
#1 / 1
feat(security): cumulative decompressed size gate in stream path — Phase 3 of issue #51
Adds _cumulative_decompressed accumulator inside wire_push_stream. After each O/OC object is decoded, the running total is compared against settings.bundle_max_decompressed_bytes; if exceeded, yields ERROR (413) and returns — no write, no branch advance. Mirrors the bundle path gate.
Both O-frame paths (inline and OC-reassembled) are guarded. The cap is read from settings, not hardcoded — monkeypatched to small values in tests.
4 TDD tests green (test_stream_security_phase3.py); 74 regression tests pass.
sha256:16141f5093d996133d5bb396e94cccc25de9dc1651fcb4384650b67d9d7c85ae
sha
+33
~1
symbols
sha256:8fb53fa7719d1e62b5ea6ca6398a6de0bc98bbcbeeb5560b4d1defbd29471e82
snapshot
+33
symbols added
~1
symbol modified
0
dead code introduced
Semantic Changes
34 symbols
+
test_cumulative_total_exceeds_cap_yields_error
function
async_function test_cumulative_total_exceeds_cap_yields_error L189–223
+
test_single_object_exceeds_cumulative_cap_yields_error
function
async_function test_single_object_exceeds_cumulative_cap_yields_error L153–185
+
test_stream_under_cap_completes_successfully
function
async_function test_stream_under_cap_completes_successfully L227–260
← Older
Oldest on task/stream-security-phase3
All commits
Newer →
Latest on task/stream-security-phase3
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:16141f5093d996133d5bb396e94cccc25de9dc1651fcb4384650b67d9d7c85ae --body "your comment"
No comments yet. Be the first to start the discussion.