Repository navigation
proto!: drop SING_BOX and reserve BackendType 2 (feature 004) - #1
Merged
Merged
Conversation
…d an older panel's 2 decodes as the bare number
The node drops the sing-box server core (feature 004, the owner's order
of 2026-12-01) and reserves BackendType 2 and the name SING_BOX in
common/service.proto. The bridge carries the same proto, so its wire
dialect test follows:
- the fork backend types are XRAY 0, WIREGUARD 1, OPEN_VPN 3 and L2TP 5;
- the reserved ranges are [(4, 4), (2, 2)] and the reserved names
[MTPROTO, SING_BOX]; Name(2) and Value("SING_BOX") raise;
- a Backend carrying type 2 decodes as the bare number 2, which is no
BackendType value.
RED on beb8814: 2 is still SING_BOX ("Lists differ: [(4, 4)] !=
[(4, 4), (2, 2)]", "2 unexpectedly found in [0, 1, 2, 3, 5]").
…endType 2 and its name reserved scripts/sync_proto.sh pins Free-Guy-IR/node at ecfb6b29 (branch feat/004-remove-singbox, feature 004): BackendType SING_BOX = 2 is gone and "reserved 2;" and "reserved \"SING_BOX\";" stand beside the MTProto reservation. The stubs are regenerated by make generate_grpc_code with the locked grpcio-tools; service_grpc.py does not change, and scripts/check_proto_drift.sh reports the proto and every stub in sync with that commit. Proxy keeps every field, Hysteria2 (7) and TUIC (10) included. The README's fork notes stop listing sing-box among the backends and SING_BOX among the accepted backend types, record 2 as reserved, and date upstream's MTPROTO = 2 to bridge 0.9.5 (upstream 779f9b9, PasarGuard#26), the first upstream tag whose proto carries it, not 0.10.0. Upstream node_bridge_py gives 2 to MTPROTO from v0.9.5 to v0.11.2 (main); the fork keeps 2 reserved instead, so an older fork panel that still sends 2 for sing-box is never read as another backend. The wire dialect tests of the previous commit pass.
The public part stays 0.11.2, upstream's release line; the fork's local label moves one step, from 0.11.2+singbox.2 (5a1e106) to 0.11.2+3, for the proto sync that drops SING_BOX (feature 004). The word goes with the backend it named. The counter alone keeps the order: by PEP 440 a numeric local segment sorts above a lettered one, so packaging.version reads 0.11.2+3 > 0.11.2+singbox.2, while a new word such as 0.11.2+fork.3 would sort below it. The panel's floor 0.9.2+singbox.3 is still met. uv lock changes only this package's version line.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feature 004, track A, bridge part: the proto follows the node, which drops the sing-box server core on the owner's order of 2026-12-01 (Free-Guy-IR/node#14).
35a3817[(4, 4), (2, 2)]and names[MTPROTO, SING_BOX], and an older panel's type 2 decoding as the bare number3e9e14cscripts/sync_proto.shpins nodeecfb6b29(proto.lock);SING_BOX = 2gone,reserved 2;andreserved "SING_BOX";added; stubs regenerated with the locked grpcio-tools; README fork notes updatedde2c74e0.11.2+singbox.2to0.11.2+3RED on
beb8814: three dialect cases fail (Lists differ: [(4, 4)] != [(4, 4), (2, 2)],2 unexpectedly found in [0, 1, 2, 3, 5]). They pass on this head, andscripts/check_proto_drift.shreports the proto and every stub in sync with nodeecfb6b29.Version: the public part stays upstream's 0.11.2 and the local counter moves one step. The word
singboxgoes with the backend it named. By PEP 440 a numeric local segment sorts above a lettered one, sopackaging.versionreads0.11.2+3above0.11.2+singbox.2; a new word such as0.11.2+fork.3would sort below it.0.11.2+singbox.3would also sort correctly if the owner prefers to keep the word. The panel's floor0.9.2+singbox.3is met either way.Open point: upstream node_bridge_py gives BackendType 2 to
MTPROTOfrom v0.9.5 (779f9b9, PasarGuard#26) to v0.11.2. With 2 reserved, the fork can only take that number later by dropping the reservation on purpose.proto.lockpins a commit of the node branch; it stays valid when the node lands onmainby fast-forward.CI on
de2c74e: Proto drift check 46753756720 (integrity ok) and the pull_request Tests run 46753756536 (all four jobs) are green. In the push Tests run 46753716842 the windows-latest 3.12 job failed once intest_lifecycle_lease_interleave.LeaseInterleaveTests.test_two_workers_never_both_renew_one_lease("second worker acquired while the first still renewed"). This PR does not touch that test or the storage code it drives. The same commit passed that job in the pull_request run, and the log of the failure shows the event loop stalling (611 asyncio slow-callback warnings, 0.156 s at the start of that test) before the first worker reported "Lifecycle lease for LifecycleOperation.UPDATE_NODE was lost". A re-run of that job (attempt 2, job 143048359128) passed:Ran 326 tests in 962.234s,OK (skipped=44), with the lease testok.