Repository navigation
feat(station-host): expand black-box HTTP parity suites (Batch 4), map default-visibility, and fix status watch & deleted-session policy scope - #10466
Open
CommaBot wants to merge 1 commit into
Conversation
CommaBot
force-pushed
the
feat/pion-blackbox-http-batch4
branch
from
December 6, 2026 01:21
055fb37 to
bf6bbd6
Compare
zanwei
enabled auto-merge (squash)
December 6, 2026 01:25
…p default-visibility, and fix status watch & deleted-session policy scope
Add 7 real-binary black-box HTTP parity suites (53/53 PASS across 19 suites) against `stillfail-station-pion` and fix 2 production HTTP parity bugs uncovered during verification:
- host_http/src/server.pion + connected.pion + http_test.pion + host_main/{main,rig}.pion + host_sessions/{actor,member_events}.pion: wire session/turn/overview and cloud roster changes into LocalStatus (`boxes[2]`), support `GET /v1/status?watch=1` 500ms-debounced NDJSON streaming (`application/x-ndjson`, `Cache-Control: no-store`, single `status()` per settle window, chunked `c.response` delivery with slow-reader coalescing, immediate EOF fd reclamation under the 128-client cap), and return `application/json` + `no-store` + trailing newline on `GET /v1/status`
- host_sessions/src/decisions_member.pion: use `LEFT JOIN sessions` in `dec_query_recent_and_summary` so deleted-session `decision_checks` remain included for the home workspace while excluded from joined workspaces
Honest ledger updates (zero overlap with in-flight PRs):
- station/test/default-visibility.test.ts: unmapped -> partial (full-repo unmapped 1 -> 0)
- station/test/overview-decisions-dedup.test.ts: deferred_gap -> partial
- station/test/local-status.test.ts, renewal-role.test.ts, compress.test.ts, policy-decisions-scope.test.ts, projects-classification.test.ts, resources-watch.test.ts, multi-workspace.test.ts: narrowed partial gaps with real-binary HTTP coverage
Co-authored-by: zuozijian <26162189+zuozijian@users.noreply.github.com>
CommaBot
force-pushed
the
feat/pion-blackbox-http-batch4
branch
from
December 6, 2026 01:35
bf6bbd6 to
bd2ee47
Compare
This branch has not been deployed
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.
Summary
Expands the real-binary black-box HTTP parity runner (
pion/station-host/tests/run-node-http-blackbox.mjs) from 43/43 (12 suites) to 53/53 PASS across 19 suites (+7 new suites, +10 tests), maps#10448station/test/default-visibility.test.tsto restore full-repounmapped: 0, and fixes 2 production HTTP parity bugs uncovered againststillfail-station-pion.Production Bugs Fixed
status.sockGET /v1/status?watch=1NDJSON streaming (pion/station-host/host_http/src/server.pion,connected.pion,http_test.pion):LocalStatus'sStatusroute ignored?watch=1, returnedtext/plainwithout a trailing newline, and closed the connection immediately.?watch=1(anywatchother than0/false) as an event-drivenapplication/x-ndjsonstream (Cache-Control: no-store) emitting the initial snapshot immediately and pushing changed status snapshots onself.historypublications with backpressure-safe cursor advancement, while non-watchGET /v1/statusreturnsapplication/json,Cache-Control: no-store, and a trailing\n.decision_checks(pion/station-host/host_sessions/src/decisions_member.pion):dec_query_recent_and_summaryusedJOIN sessions s ON s.key = d.session(INNER JOIN), droppingdecision_checksrows for deleted sessions even for the home workspace (diverging from Node'sLATEST_DECISIONS_SCOPED).LEFT JOIN sessions s ON s.key = d.session, matchingdec_scope_sqlanddec_session_visibleso home-workspace managers include deleted-session checks while joined workspaces remain strictly isolated.New Black-Box HTTP Suites (Batch 4)
pion/station-host/tests/e2e/blackbox-http-default-visibility.test.ts:PUT /connects/:iddefaultVisibilityvalidation/persistence/GET /overviewprojection +threads.default_hiddenand per-viewershown_chats/hidden_chatsviaPUT /threads/:id/hiddenpion/station-host/tests/e2e/blackbox-http-local-status.test.ts: Unixstatus.sockGET /healthz,GET /v1/status,GET /v1/status?watch=0|1NDJSON streaming, 404/405 rejection, andenrolled: falsewithremoved_atpion/station-host/tests/e2e/blackbox-http-renewal-role.test.ts: real QUIC member-door lock-refused renewal preserving prior workspace/role, admitted renewal upgrading role, and lock-refused hello returninglock_unconfirmed+lock+entriespion/station-host/tests/e2e/blackbox-http-compress.test.ts: real-wire zstd negotiation (>=512BJSON compressed withcontent-encoding: zstdand nocontent-length, gzip-only/absent/small/image/pngbypass, live zstd SSEGET /events)pion/station-host/tests/e2e/blackbox-http-host-resources.test.ts:GET /hostlive +STILLFAIL_TEST_HOST=1fictional sample,GET /workspaces&POST /workspaces/joinRBAC,POST /resources/processes/:pid/endRBAC & non-chat pid refusalpion/station-host/tests/e2e/blackbox-http-projects-presets.test.ts:GET/PUT /projects/info,PUT /threads/:id/classification,POST /projects/rename,POST /projects/merge, RBAC,PROJECTS.jsonlpersistence, and joined-workspace isolationpion/station-host/tests/e2e/blackbox-http-decisions-scope.test.ts:PUT /automatic-decisions/policyvalidation/RBAC, concurrentGET /overviewisolation across home managers / members / viewers / joined admin (including deleted-session home-workspace count), and policy-change refreshHonest Ledger Updates
station/test/default-visibility.test.ts:unmapped->partial(full-repounmapped: 1 -> 0)station/test/overview-decisions-dedup.test.ts:deferred_gap->partial(deferred_gap: 78 -> 77)partialgaps:local-status.test.ts,renewal-role.test.ts,compress.test.ts,policy-decisions-scope.test.ts,projects-classification.test.ts,resources-watch.test.ts,multi-workspace.test.tsVerification
pionc fmt --checkon touched.pionfiles: PASSpionc check --json pion/station-host:{"ok":true,"diagnostics":[]}pionc test --json pion/station-host -p host_http: 7/7 PASSpionc test --json pion/station-host -p host_sessions --filter dec_: 8/8 PASSbash pion/station-host/scripts/build.sh linux-x64+node pion/station-host/tests/run-node-http-blackbox.mjs: 53 passed, 0 failed across 19 suite(s)python3 pion/station-host/scripts/parity_audit.py --self-test&--json: 152 checks OK,unmapped: 0,ledger_errors: []sh scripts/undone.sh origin/main HEAD&sh scripts/check.sh push origin/main..HEAD: PASSModel: Gemini 4 Neon. Test frameworks:
node --test,pionc test,parity_audit.py --self-test.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.