gabriel / musehub public
refactor BREAKING dev
AI Agent gabriel · 118 days ago · May 16, 2026 · Diff

refactor: erase all streaming wire protocol traces — comments, docs, tests, nginx, scripts

- tests/test_wire_framing.py: deleted (tested deleted iter_wire_frames) - tests/test_staging_gates.py: deleted (depended on deleted bench_wire_remote) - scripts/wire_test.py, scripts/push_timing_test.py: deleted (tested push/stream, fetch/stream) - docs/wire-verbs-status.md: deleted (entirely about the old MWP streaming spec) - docs/reference/type-contracts.md: removed WireNegotiateRequest, WireNegotiateResponse, _SampleModel entries - docs/test-coverage-checklist.md: removed MWP section heading and negotiate/stream references - tests/test_genesis_ids.py: removed WireNegotiateRequest import and three negotiate tests - tests/test_phase1_intel_schema.py: replaced wire_push_stream symbol ref - tests/test_ltier_fetch_regression.py: removed wire_push_stream comment - tests/conftest.py: removed _AsyncExactReader reference from _Asgi24Wrapper docstring - deploy/nginx-cf.conf: removed push/stream location block, removed legacy push/confirm/presign/unpack comments, updated fetch location - musehub/auth/request_signing.py: removed application/x-muse-wire content-type check - musehub/types/compression.py: removed MWP from module docstring - musehub/models/wire.py: removed MWP acronym from docstrings - musehub/api/routes/wire.py: removed MWP from section header and route summaries - musehub/services/musehub_wire.py: removed push/confirm and fetch/stream references - musehub/services/musehub_mist_push_validator.py, musehub_sync.py, musehub_abuse_models.py: updated stale comments

sha256:931e49567532561236ada9097864a0c484f101d6c25c50943af4ec2c1f5690f2 sha
+9 ~90 −178 symbols
sha256:280beb65c8d03bc7e7c492230be094b92f7f9b18319e8730f9d22caf01a5bd33 snapshot
+9
symbols added
~90
symbols modified
−178
symbols removed
0
dead code introduced
Semantic Changes 277 symbols
~ docs/wire-verbs-status.md .md 49 symbols removed
Muse Wire Protocol — Four Verbs: Status, Bugs, and Fix Plan section Muse Wire Protocol — Four Verbs: Status, Bugs, and Fix Plan L1–288
Push — POST /{owner}/{slug}/push/stream section 1. Push — POST /{owner}/{slug}/push/stream L33–104
Atomic tests for push (must all pass before scaling up) section Atomic tests for push (must all pass before scaling up) L88–104
table@L90 section table@L90 L90–99
Known bugs / freeze points section Known bugs / freeze points L64–73
table@L66 section table@L66 L66–72
Push P3 — current freeze: what we need to find out section Push P3 — current freeze: what we need to find out L73–88
py) section What the client does (muse/core/transport.py) L40–49
py) section What the server does (musehub/services/musehub_wire.py) L49–64
What the spec says section What the spec says L35–40
Fetch — POST /{owner}/{slug}/fetch/stream section 2. Fetch — POST /{owner}/{slug}/fetch/stream L104–165
Atomic tests for fetch section Atomic tests for fetch L149–155
table@L151 section table@L151 L151–154
Known bugs / freeze points — fixed section Known bugs / freeze points — fixed L129–138
table@L131 section table@L131 L131–137
Pre-H-frame timing profile (830 commits, 500 objects, localhost) section Pre-H-frame timing profile (830 commits, 500 objects, localhost) L138–149
table@L140 section table@L140 L140–148
py) section What the client does (muse/core/transport.py) L111–118
py — fetch side) section What the server does (musehub/services/musehub_wire.py — fetch side) L118–129
What the spec says section What the spec says L106–111
What was verified section What was verified L155–165
Pull — muse pull <remote> <branch> section 3. Pull — muse pull <remote> <branch> L165–196
Atomic tests for pull section Atomic tests for pull L185–196
code@L187 variable variable code@L187 L187–193
py or similar) section Client flow (muse/cli/commands/pull.py or similar) L171–178
Known bugs / freeze points section Known bugs / freeze points L178–185
What pull does section What pull does L167–171
Clone — muse clone <url> section 4. Clone — muse clone <url> L196–227
Atomic tests for clone section Atomic tests for clone L216–227
code@L218 variable variable code@L218 L218–224
Client flow section Client flow L202–209
Known bugs / freeze points section Known bugs / freeze points L209–216
table@L211 section table@L211 L211–215
What clone does section What clone does L198–202
How MWP Maps to Git section How MWP Maps to Git L8–21
table@L10 section table@L10 L10–16
Immediate Debug Plan section Immediate Debug Plan L227–277
Step 1 — Confirm push fix is on staging section Step 1 — Confirm push fix is on staging L229–245
code[bash]@L233 variable variable code[bash]@L233 L233–238
code[bash]@L240 variable variable code[bash]@L240 L240–243
Step 2 — Add server-side timing logs to push section Step 2 — Add server-side timing logs to push L245–259
code[python]@L249 variable variable code[python]@L249 L249–258
Step 3 — Audit fetch/stream server response section Step 3 — Audit fetch/stream server response L259–265
Step 4 — Run atomic tests in order section Step 4 — Run atomic tests in order L265–270
Step 5 — Fix fetch/stream streaming if needed section Step 5 — Fix fetch/stream streaming if needed L270–277
Scale Ladder (used throughout this doc) section Scale Ladder (used throughout this doc) L21–33
table@L23 section table@L23 L23–30
What "Done" Looks Like section What "Done" Looks Like L277–288
table@L279 section table@L279 L279–285
~ scripts/push_timing_test.py .py 27 symbols removed
MKCERT_CA variable variable MKCERT_CA L33–33
OWNER variable variable OWNER L48–48
REPO variable variable REPO L49–49
ROUTE variable variable ROUTE L50–50
TARGETS variable variable TARGETS L35–38
WIRE_CONTENT_TYPE variable variable WIRE_CONTENT_TYPE L51–51
_auth_header function function _auth_header L132–138
_commit_frame function function _commit_frame L91–125
_content_snapshot_id function function _content_snapshot_id L83–88
_end_frame function function _end_frame L128–129
_fmt function function _fmt L218–229
_header_frame function function _header_frame L64–68
_object_frame function function _object_frame L71–80
_oid function function _oid L54–55
_pack_frame function function _pack_frame L58–61
Path import import Path L25–25
annotations import import annotations L18–18
asyncio import import asyncio L20–20
hashlib import import hashlib L21–21
httpx import import httpx L27–27
msgpack import import msgpack L28–28
os import import os L22–22
sys import import sys L23–23
time import import time L24–24
main function async_function main L232–268
run_push function async_function run_push L141–215
target_name variable variable target_name L40–40
~ scripts/wire_test.py .py 37 symbols removed
FETCH_ROUTE variable variable FETCH_ROUTE L48–48
FETCH_TESTS variable variable FETCH_TESTS L366–372
MKCERT_CA variable variable MKCERT_CA L26–26
OWNER variable variable OWNER L45–45
PUSH_ROUTE variable variable PUSH_ROUTE L47–47
PUSH_TESTS variable variable PUSH_TESTS L356–364
REFS_ROUTE variable variable REFS_ROUTE L49–49
REPO variable variable REPO L46–46
TARGETS variable variable TARGETS L28–31
WIRE_CONTENT_TYPE variable variable WIRE_CONTENT_TYPE L50–50
_auth_header function function _auth_header L150–156
_auth_header_body function function _auth_header_body L159–165
_commit_frame function function _commit_frame L98–143
_content_snapshot_id function function _content_snapshot_id L83–95
_end_frame function function _end_frame L146–147
_fmt_fetch function function _fmt_fetch L343–353
_fmt_push function function _fmt_push L330–340
_header_frame function function _header_frame L63–67
_object_frame function function _object_frame L70–80
_oid function function _oid L53–54
_pack_frame function function _pack_frame L57–60
do_fetch function async_function do_fetch L257–327
do_push function async_function do_push L171–238
get_refs function async_function get_refs L244–254
Path import import Path L18–18
annotations import import annotations L11–11
asyncio import import asyncio L13–13
hashlib import import hashlib L14–14
httpx import import httpx L20–20
msgpack import import msgpack L21–21
os import import os L15–15
sys import import sys L16–16
time import import time L17–17
main function async_function main L375–421
run_fetch variable variable run_fetch L35–35
run_push variable variable run_push L34–34
target_name variable variable target_name L33–33
~ tests/test_staging_gates.py .py 20 symbols removed
BenchResult import import BenchResult L20–20
GATES import import GATES L20–20
Path import import Path L14–14
annotations import import annotations L11–11
bench_wire_remote import import bench_wire_remote L19–19
pytest import import pytest L16–16
sys import import sys L13–13
test_bench_push_stream_catches_ssl_and_read_error function function test_bench_push_stream_catches_ssl_and_read_error L119–126
test_bench_result_staging_gate_fail_with_slow_time function function test_bench_result_staging_gate_fail_with_slow_time L110–114
test_bench_result_staging_gate_pass_with_fast_time function function test_bench_result_staging_gate_pass_with_fast_time L104–107
test_bench_result_uses_local_gates_by_default function function test_bench_result_uses_local_gates_by_default L84–86
test_bench_result_uses_local_gates_for_localhost function function test_bench_result_uses_local_gates_for_localhost L89–91
test_bench_result_uses_staging_gates_for_prod_url function function test_bench_result_uses_staging_gates_for_prod_url L99–101
test_bench_result_uses_staging_gates_for_staging_url function function test_bench_result_uses_staging_gates_for_staging_url L94–96
test_seed_repo_catches_read_error function function test_seed_repo_catches_read_error L129–141
test_staging_gates_exist function function test_staging_gates_exist L25–29
test_staging_gates_l_stream_is_none function function test_staging_gates_l_stream_is_none L71–79
test_staging_gates_not_stricter_than_local function function test_staging_gates_not_stricter_than_local L41–60
test_staging_gates_same_keys_as_local function function test_staging_gates_same_keys_as_local L32–38
test_staging_gates_xs_stream_push_is_defined function function test_staging_gates_xs_stream_push_is_defined L63–68
~ tests/test_wire_framing.py .py 34 symbols removed
TestEmptyStream class class TestEmptyStream L140–155
test_empty_body_yields_nothing method async_method test_empty_body_yields_nothing L144–148
test_empty_chunk_yields_nothing method async_method test_empty_chunk_yields_nothing L151–155
TestHashMismatch class class TestHashMismatch L257–271
test_tampered_payload_raises method async_method test_tampered_payload_raises L261–271
TestRoundtrip class class TestRoundtrip L56–133
test_frames_split_across_chunks method async_method test_frames_split_across_chunks L97–110
test_header_id_verified method async_method test_header_id_verified L125–133
test_import method async_method test_import L60–61
test_multiple_frames_in_sequence method async_method test_multiple_frames_in_sequence L77–94
test_payload_parses_as_msgpack method async_method test_payload_parses_as_msgpack L113–122
test_single_header_frame method async_method test_single_header_frame L64–74
TestSizeMismatch class class TestSizeMismatch L278–301
test_size_mismatch_raises method async_method test_size_mismatch_raises L282–301
TestTruncatedHeader class class TestTruncatedHeader L162–214
test_invalid_magic_raises method async_method test_invalid_magic_raises L191–201
test_truncated_at_version_byte method async_method test_truncated_at_version_byte L166–175
test_truncated_mid_header_bytes method async_method test_truncated_mid_header_bytes L178–188
test_wrong_version_raises method async_method test_wrong_version_raises L204–214
TestTruncatedPayload class class TestTruncatedPayload L221–250
test_truncated_payload_raises method async_method test_truncated_payload_raises L225–235
test_truncation_raises_wire_error_not_msgpack_error method async_method test_truncation_raises_wire_error_not_msgpack_error L238–250
_body function async_function _body L40–42
_collect function async_function _collect L45–49
_make_frame function function _make_frame L34–37
_pack function function _pack L30–31
AsyncIterator import import AsyncIterator L17–17
JSONObject import import JSONObject L23–23
JSONValue import import JSONValue L23–23
annotations import import annotations L14–14
blob_id import import blob_id L22–22
msgpack import import msgpack L19–19
pytest import import pytest L20–20
struct import import struct L16–16
~ docs/reference/type-contracts.md .md 8 symbols added, 6 symbols removed, 70 symbols modified
py` section WireNegotiateRequest — `musehub/models/wire.py` L3610–3622
table@L3616 section table@L3616 L3616–3620
py` section WireNegotiateResponse — `musehub/models/wire.py` L3622–3635
table@L3628 section table@L3628 L3628–3633
py` section _SampleModel — `tests/test_musehub_negotiate.py` L3892–3904
table@L3898 section table@L3898 L3898–3902
+ py`@L3831 section MyModel — `tests/test_api_contracts_section37.py` L3831–3840
+ table@L3835 section table@L3835 L3835–3838
+ py`@L3840 section MyModel — `tests/test_api_contracts_section37.py` L3840–3849
+ table@L3844 section table@L3844 L3844–3847
+ table@L3853 section table@L3853 L3853–3856
+ py`@L3858 section MyModel — `tests/test_api_contracts_section37.py` L3858–3867
+ table@L3654 section table@L3654 L3654–3657
+ table@L3665 section table@L3665 L3665–3669
~ docs/test-coverage-checklist.md .md 1 symbol added, 1 symbol removed, 2 symbols modified
Wire Protocol (MWP) section 1. Wire Protocol (MWP) L70–87
+ Wire Protocol section 1. Wire Protocol L70–87
~ musehub/models/wire.py .py 1 symbol modified
~ tests/conftest.py .py 1 symbol modified
~ tests/test_genesis_ids.py .py 4 symbols removed, 5 symbols modified
test_negotiate_request_accepts_future_algo method method test_negotiate_request_accepts_future_algo L397–399
test_negotiate_request_rejects_bad_have method method test_negotiate_request_rejects_bad_have L389–391
test_negotiate_request_rejects_bad_want method method test_negotiate_request_rejects_bad_want L393–395
WireNegotiateRequest import import WireNegotiateRequest L65–65
← Older Oldest on dev
All commits
Newer → Latest on dev

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:931e49567532561236ada9097864a0c484f101d6c25c50943af4ec2c1f5690f2 --body "your comment"