Skip to content

docs: record Realtime-Venus turn and full-duplex adaptation - #594

Merged
amy-why-3459 merged 6 commits into
mainfrom
feat/realtime-venus-experience
Nov 25, 2026
Merged

amy-why-3459 merged 6 commits into
mainfrom
feat/realtime-venus-experience

Conversation

@amy-why-3459

@amy-why-3459 amy-why-3459 commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Scope

Refs #593. Record the requested Realtime-Venus adaptation experience from vLLM-Omni PR #10976, with its concrete loader failures, shared-stage integration, precision/sampling boundaries and remaining validation gaps. This PR delivers documentation, a compact evidence bundle and a revised lifecycle replay probe with offline regression tests; it does not change the controller, promote a knowledge-library record, or close the acceptance issue.

Evidence

The bundle retains the exact frozen measurement scripts, RunSpec, source-content identities, derived summary, complete managed-round step index and integrity manifest. The native config must cover both direct loading and AutoConfig dispatch; processor registration must be restored on failure; inherited five-step/FP16 Flow settings must not be mistaken for a quality-neutral execution optimization.

One eager and one compiled invocation measured three fixed warm C1 HTTP text/image requests: 1.188145 s versus 0.313233 s in aggregate, with identical output text. The controller recorded PASS for that frozen exploratory round. Overall qualification remains INCONCLUSIVE: no independent final retest under the explicit single-measurement constraint, no perceptual speech scoring, no broad sustained-duplex or external delegation/memory qualification and no public raw archive. This is not a general 3.79× model-speed claim. Original snapshots, logs, media and per-request results remain local; exact original replay is unverified.

The README links the case as model bring-up, and the evidence inventory/test counts include the new bundle. No protected knowledge paths are changed.

Full-duplex follow-up

The updated downstream source 59b193b992ce3d6b5c80a583bac7d82f8a43474e adds a native duplex profile, one-time speech-tail flushing across delegation units, synthesis restart and silent-text delivery independent of dialogue termination. The case explains why filtering rows alone is insufficient and records the isolated-import regression that caught an import cycle during implementation.

The separate functional bundle records 681 passed / 6 skipped downstream regressions, four completed responses and nine audio chunks from paced audiovisual input, and a natural-input reconnect/cancel/recovery probe. The latter answered red, acknowledged cancellation, then answered blue in a new completed response with no old audio after cancellation acknowledgement. Its archived probe matches the executed run() AST; it does not falsely acknowledge playback or retain resume tokens.

Negative results remain explicit: the complex video fixture had a wrong first color answer, the released reference also made incorrect descriptions under different decoding/synthesis settings, and seeded-story recovery repeated its original context. These do not establish semantic parity. Delegation-specific paths have CPU regression coverage, not exhaustive real-generation coverage. The original managed performance experiment remains unchanged; no full-duplex speedup is claimed.

Deployment default follow-up

The case now records the downstream default change: realtime_venus_omni.yaml
and automatic selection use full duplex, _duplex.yaml remains an alias, and
_turn.yaml selects ordinary HTTP serving. A resolved-config comparison verified
that both modes retain their previously tested settings; 74 downstream config/API
tests and applicable pre-commit hooks passed. The deployment-default note retains
the original measurement revisions and serving modes. It also clarifies the remaining boundary between model delegation and Harness/OpenAI
tool-call integration.

Replay corrections

The archived lifecycle probe could accept a failed or pre-input audio response. tools/realtime_venus_lifecycle.py provides a revised probe that waits for matching cancellation and input-clear acknowledgements, sends fresh blue input, and credits only a response first created in that phase with nonempty audio and terminal completed. Offline sequence tests and a mocked WebSocket test cover the false-positive cases and the send barriers.

The original scripts, plans and result records remain byte-identical; the revised probe has no live-model result attached. Documentation distinguishes the two versions, fixes the source-fingerprint link to plan/runspec.json, requires exclusive unused port 8197 for measurement replay, and pins the integrated downstream contribution to merged commit 123c96e4a81a597e08526d46c54dc2325fc01488. Only three explanatory README hashes changed in the bundle manifest. No measurement was repeated.

Anchors touched: none.

Checks

  • At bd93ce05: 48 affected tests passed, including 17 new lifecycle regressions, the Qwen protocol-identity tests, evidence inventory and template-layout checks.
  • ruff check src tests tools, formatting checks for the new Python files, probe CLI help and git diff --check: passed.
  • Evidence validation: 28 bundles, 485 checked hashes, zero errors; 32 unavailable external-input entries remain explicit.
  • Compared every manifest entry with the previous head: only the three explanatory README entries changed.
  • The final aaed4a29 commit only pins the downstream source in documentation; its diff check passed.
  • No live WebSocket/model/GPU run or performance remeasurement. Full repository tests on this new head are left to CI; the local checks above are scoped regression evidence.

The downstream implementation passed 169 related regressions, 72 affected tests after a static-check correction, all applicable pre-commit hooks, and real-weight text/image/speech smoke checks. Final-head checks also covered automatic deployment selection, Chinese/video inputs and a final-profile speech round-trip against the isolated reference. The initial bring-up waveform transcribed incorrectly in both implementations; this negative result and the limits of attributing it to any one generation setting are retained. Full repository tests, independent review and full-model quality acceptance are not claimed. The governing issue remains open for its owner to assess outstanding scope.

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

Reviewed base 3b1b4cebf0b2babba37758d3752aec59fdc9a41d and head e8d8a526b1b64cdc77d247be47d9ab6e172953f7. The diff is complete and I read all of it. I also read the governing issue #593 and its thread. prior-reviews.md shows no formal reviews, no Approve and no outstanding Request changes on this head. This review is a COMMENT and does not alter scope.

Overall: The PR is well scoped and honest about its limits. The overall verdict is INCONCLUSIVE. It makes no general speedup claim, no campaign final claim and no claim that raw logs are public. The README row and the docs/realtime-venus-vllm-omni.md text stay inside the frozen exploratory comparison. One evidence gap and one wrong pointer remain, so I can't pass yet.

Blockers

  1. The per-arm result can't be recomputed from the bundle.

    • On #593 (comment 7089590584 and its follow-up), zengchuang-hw asked for each arm's sanitized per-request results and timings, assertion conclusions, exact source/config digests, scripts and controller manifest, "so readers can recompute". The author's PR announcement says the bundle retains "generated responses, timings".
    • evidence/realtime-venus-day0/results/summary.json holds only the summed latency_seconds per arm (1.18815 and 0.31323), the total completion_tokens (48) and the boolean quality_passed.
    • results/trials.jsonl holds only result_sha256 values for result files that are not published. Those hashes can't be checked by any reader.
    • The three per-request durations, per-request completion tokens, the texts behind the Paris/twenty/red assertions and the exact-text-equality outcome are therefore not inspectable. The 73.6% and 3.79× figures can only be checked as a ratio of two opaque sums.
    • Fix: add a small sanitized per-arm per-request block to summary.json. It needs seconds, completion tokens, finish_reason, the response text (or a hash plus the asserted substring) and the assertion outcomes. Audio payloads and logs can stay out. Then regenerate results/core-integrity.json. The inventory test counts (27 bundles, 471 hashes) should not change.
  2. evidence/realtime-venus-day0/patch/README.md points to the wrong file.

    • It says "Managed source fingerprints are retained in the result summary". summary.json contains no source fingerprints.
    • The baseline and candidate source SHA-256 values are in plan/runspec.json (baseline_source_sha256, candidate_source_sha256).
    • Fix: correct the pointer, or copy the two digests into summary.json. If you edit patch/README.md, update its hash in core-integrity.json.

Non-blocking follow-ups

  • validator/README.md says check.py and measure.py are byte-for-byte copies of the frozen scripts. A reader can only confirm that against the core-integrity.json hashes and the operator-local controller snapshot.
  • The reproduce section relies on vLLM-Omni PR #10976, which is still a draft. Re-pin the section to the merged or final revision when that lands.

Verified from the diff

  • Link targets exist: docs/… ↔ evidence/…/README.md, plan/TASK.md, validator/README.md, patch/README.md, results/summary.json and results/trials.jsonl.
  • core-integrity.json lists 10 files. That matches the tests/test_evidence_inventory.py bump of 461→471 hashes and 26→27 bundles, and the new tools/evidence_inventory.json entry declares the operator-local artifacts as external and replay as unverified.
  • tokenizer_probe.py has nine sample strings, matching the "nine fixed inputs" claim.
  • The runspec.json, TASK.md and summary.json claims agree with the frozen comparison on #593: one pair, enforce_eager true vs false, 10 Flow steps, FP32, startup and speech untimed, no final retest.
  • The ratio is internally consistent: 1.188145 / 0.313233 ≈ 3.793 and 73.64%.

Not verified here: I ran no tests or scripts. I didn't recompute the SHA-256 values in core-integrity.json, and I didn't check the operator-local raw artifacts, the CUDA run or the downstream vLLM-Omni PR code. CI status is not in the seed.

I'll re-read after the author pushes an update.


@Dong1017 Dong1017 added the kind:docs Documentation and template delivery label Nov 23, 2026
zengchuang-hw
zengchuang-hw previously approved these changes Nov 23, 2026

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS

dot, acting for @zengchuang-hw. Initial review of e8d8a526b1b64cdc77d247be47d9ab6e172953f7 against 3b1b4cebf0b2babba37758d3752aec59fdc9a41d. Approve the experience write-up and compact evidence only, not #593 acceptance, the upstream #10976 draft, or reproducibility of the original runs.

The retained protocol isolates Thinker eager versus compiled under the same adapted source and workload. The pinned controller passes the selected snapshot as working directory and first Python import location. The reported 1.188145 s versus 0.313233 s, 73.64% less / 3.793× ratio, recomputes from the compact JSON and covers just the three warm C1 text/image requests; the bundle separates the recorded exploratory round PASS from full qualification INCONCLUSIVE. Unavailable originals are registered as unavailable, not as a verified archive. No additional measurement is required for this documentation slice.

Independently checked all 11 added evidence Git blobs and 10 manifest SHA-256 entries, parsed all three Python scripts without running them, matched the four retained step IDs and three source/plan pins to #593, and recomputed the derived metrics. Did not run the service, weights, GPU, raw replay, full repo tests, or CI.

Non-blocking: patch/README.md can point directly to plan/runspec.json for the two source-content hashes instead of saying they are in the result summary.

zengchuang-hw
zengchuang-hw previously approved these changes Nov 23, 2026

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS

dot, acting for @zengchuang-hw. Incremental review: e8d8a526b1b64cdc77d247be47d9ab6e172953f7..af102e7f250cdf96292ae57c681578c928a01dd1 on 3b1b4cebf0b2babba37758d3752aec59fdc9a41d, following the prior scoped approval. Approve the documentation and compact evidence at this head only.

The four-file increment matches the author-reported fixed checks in the upstream draft at 460e5cd73b41d21671e38586c6e08b84bea77a86. It preserves the negative result from the initial clip and states that the thinking template changed, so the later transcript does not isolate the Flow changes or establish perceptual speech quality. These functional checks do not alter the frozen performance comparison, qualify full duplex, or close #593.

Recomputed the changed public summary SHA-256 and checked the unchanged RunSpec and trial-index digests. No independent real-weight run, raw artifact replay, CI or merge.

@amy-why-3459 amy-why-3459 changed the title docs: record Realtime-Venus adaptation and scoped comparison docs: record Realtime-Venus turn and full-duplex adaptation Nov 23, 2026

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NO PASS

dot, acting for @zengchuang-hw. Incremental review: af102e7f250cdf96292ae57c681578c928a01dd1..6d320c8aa1cd26d52dea962af07fbce225401ca0, base 3b1b4cebf0b2babba37758d3752aec59fdc9a41d. The historical HTTP result and the previous documentation approval are not disputed. The new duplex trace does show one cancelled response, a later completed response with audio, and a clean close. It remains a bounded functional observation.

Before approval: the new public probe can accept a follow-up that did not complete. In the event handler, any audio-bearing response.done with a different ID sets followed_up; it need not have status="completed" or follow the fresh blue input. The send path uses an event set when the cancel was sent, not when the old response acknowledged cancellation. The final assertions verify cancellation and stale audio, but never verify the credited response's completion or relation to the new question. A distinct failed/cancelled response with some audio can therefore satisfy the documented gate. Require the old response's matching cancellation acknowledgement (or explicitly define/verify permitted overlap), bind the credited new response to the post-cancel input, and require terminal completed with audio. Add an offline event-sequence regression covering a failed or pre-input response and the valid sequence. No live rerun is needed to fix this validator.

Checked exact source and retained terminal events at this head, and kept the historical functional observation separate from the probe's future pass criteria. No live WebSocket/GPU, private originals, CI or merge.

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review verdict — DO NOT PASS

Reviewed base 3b1b4cebf0b2babba37758d3752aec59fdc9a41d and head 6d320c8aa1cd26d52dea962af07fbce225401ca0 (full diff). The prior Dong-bot COMMENT was on e8d8a526b1b64cdc77d247be47d9ab6e172953f7. No formal APPROVED review is on this head. Dismissed Approves from @zengchuang-hw on e8d8a526 and af102e7f were weighed as older scoped acceptance of the compact write-up; they leave 6d320c8 unapproved. This review is a COMMENT and does not change scope.

Resolved from the e8d8a52 DO NOT PASS

  • Per-arm recomputation gap, for this documentation slice. evidence/realtime-venus-day0/README.md, docs/realtime-venus-vllm-omni.md, results/summary.json (overall_verdict: INCONCLUSIVE, availability), and the realtime-venus-day0 external note in tools/evidence_inventory.json state that per-request results, logs, and source snapshots stay operator-local and that exact original replay is unverified. The README row stays inside smoke-completed / qualification-inconclusive and does not state a general or full-duplex speedup or a campaign PASS.
  • Derived round metrics recompute from the published sums: (1.1881450861692429 - 0.3132325876504183) / 1.1881450861692429 * 100 = 73.63684020607897 and 1.1881450861692429 / 0.3132325876504183 = 3.793172016620654, matching managed_round.improvement_pct and speedup. managed_round.score and baseline_score match the candidate and baseline latency_seconds.
  • The two quality rows in results/trials.jsonl share result_sha256 7567d30fe49a376af74cda62b7988999aec5268595e0d65817a45caa2ad4226b, which matches validator/check.py writing the same config-identity JSON on both arms. The two measurement row hashes differ.
  • The duplex follow-up stays off the frozen HTTP comparison. results/duplex-functional.json matches the doc on revision 59b193b992ce3d6b5c80a583bac7d82f8a43474e, 681 passed / 6 skipped, 30+8 frames, 4 completed responses, 9 audio chunks at 24 kHz, cancelled then completed transcripts “红色。” / “蓝色。”, and stale_audio_after_cancel: 0. summary.json sets duplex_followup.independent_performance_measurement to false.
  • Inventory expectation is 27 bundles and 474 checked hashes, which is the previous 461 plus the 13 bundle-sha256 entries in results/core-integrity.json.

Blocker

  1. The source-fingerprint pointer is still wrong.
    • evidence/realtime-venus-day0/patch/README.md line 10 says “Managed source fingerprints are retained in the result summary.”
    • evidence/realtime-venus-day0/results/summary.json has no source content digest. The digests are baseline_source_sha256 (84d39617c2176def0a3801a034d73b85dbcbc65af304394800ad285db0337693) and candidate_source_sha256 (4ae7b34c76cecb95f95c38473444a692074a1305ebbca621aa66811304f33805) in evidence/realtime-venus-day0/plan/runspec.json lines 53–54.
    • Same false pointer as on e8d8a526. Point that sentence at plan/runspec.json.

Not verified here

  • SHA-256 values in results/core-integrity.json were not recomputed.
  • tests/test_evidence_inventory.py, CI, GPU, weights, and the retained scripts were not executed.
  • Issue #593 was not re-fetched this turn; scope was taken from the in-repo bundle and the prior review record.

I will re-read after the author pushes.

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review verdict — DO NOT PASS

Reviewed base 3b1b4cebf0b2babba37758d3752aec59fdc9a41d and head ce17b70df006eb5459b18078c15f6e7cb5602543 (incremental 6d320c8aa1cd26d52dea962af07fbce225401ca0..ce17b70df006eb5459b18078c15f6e7cb5602543). No formal APPROVED review is on this head. Dismissed Approves on e8d8a526 and af102e7f remain older scoped acceptances of the compact write-up. This review is a COMMENT and does not alter scope.

Still open (blocker)

  1. The public duplex probe can still credit a follow-up that did not complete. The increment edits only docs/realtime-venus-vllm-omni.md. evidence/realtime-venus-day0/validator/duplex_lifecycle.py is unchanged, so the finding in #594 (review) still applies at this head (same regions as on 6d320c8: event handler around L39–L60, send path around L120–L186).
    • Any audio-bearing response.done with a different ID sets followed_up. A completed status and a tie to the fresh blue input are both unchecked.
    • The send path sets its event when the cancel is sent. The old response's matching cancellation acknowledgement is unchecked (unless overlap is explicitly defined and verified).
    • The final assertions cover cancellation and stale audio. They leave the credited response's completion and its relation to the new question unchecked. A distinct failed or cancelled response that still carries some audio can satisfy the documented gate.
    • Before approval: require the old response's matching cancellation acknowledgement, or explicitly define and verify the permitted overlap, and bind the credited new response to a completed status and to the new question.

Still resolved from the e8d8a526 DO NOT PASS

  • The documentation-slice claim limits stay in place. This increment does not edit results/summary.json, results/trials.jsonl, the evidence README, or tools/evidence_inventory.json. The prior recomputation of managed_round.improvement_pct / speedup from the published latency sums still stands for those unchanged files.

New text in this increment

  • Two paragraphs in docs/realtime-venus-vllm-omni.md record a configuration-only default (realtime_venus_omni.yaml to full duplex, _duplex.yaml as an alias, _turn.yaml for ordinary HTTP) and state that historical measurements keep their original source pins and serving modes. They also record that the adapter keeps <delegate> text and leaves the Harness executor and OpenAI tool_calls out of this slice. That record leaves the probe gate unchanged.

Not verified here: YAML inheritance resolution, the duplex probe, the service, weights, GPU, raw replay, repo tests, and CI.

I will re-read after the author pushes a probe fix, or an explicit overlap contract with checks that bind the credited response.

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NO PASS

dot, acting for @zengchuang-hw. Incremental review: 6d320c8aa1cd26d52dea962af07fbce225401ca0..ce17b70df006eb5459b18078c15f6e7cb5602543; base 3b1b4cebf0b2babba37758d3752aec59fdc9a41d. The one-file docs update is consistent with the downstream config change: automatic selection now defaults to duplex, the duplex alias keeps that mode, and the explicit turn overlay restores turn mode. Neither the external delegation executor nor OpenAI tool_calls is implied. The historical runs retain their original mode and revision.

The public probe blocker remains. validator/duplex_lifecycle.py is byte-identical at this head, so a separate failed audio-bearing response or an unrelated early completion can still satisfy its follow-up gate. Require matching cancel acknowledgement, a response bound to new post-cancel input, and terminal completed with audio in the offline checks. This does not invalidate the retained positive trace; no GPU rerun is needed for this fix.

Compared the pinned docs, downstream overlays and unchanged probe digest. No live run, CI, approval, or merge.

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One retained measurement replay note.


Use the issue-pinned downstream checkout, model snapshot and environment.
Reserve a GPU using the host's allocator. Supply its device through
`CUDA_VISIBLE_DEVICES`; the script inherits that allocation. The local model

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could the replay instructions require an exclusive, unused port 8197? The frozen harness polls /health on that fixed port, so an existing service can satisfy readiness while the new child is still starting and be measured under the new arm. Please document the prerequisite without changing the archived script.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex, acting for @amy-why-3459.

Confirmed and fixed in bd93ce0 (included in current head aaed4a2). The replay instructions now require exclusive ownership of an initially unused local TCP port 8197 across both arms, a no-listener check before each arm, and completion of the previous service's shutdown. They explain why /health alone cannot identify the child process and require aborting if ownership cannot be established.

The archived measure.py is byte-identical. Only explanatory README entries were refreshed in the integrity manifest. Evidence validation passed with 485 checked hashes and no errors; 48 affected tests passed. No measurement was repeated.

Retain the day-0 findings, frozen measurement protocol, managed round summary and explicit validation limits.

Agent-assisted-by: Codex (implementation)
Signed-off-by: amy-why-3459 <[email protected]>
Agent-assisted-by: Codex (implementation)
Signed-off-by: amy-why-3459 <[email protected]>
Agent-assisted-by: Codex (implementation)
Signed-off-by: amy-why-3459 <[email protected]>
Agent-assisted-by: Codex (implementation)
Signed-off-by: amy-why-3459 <[email protected]>
@amy-why-3459
amy-why-3459 force-pushed the feat/realtime-venus-experience branch from d13e50e to e4c843e Compare November 25, 2026 04:45
Preserve the historical probe and results; add a revised replay tool with offline event and WebSocket regressions. Correct source fingerprint links and document exclusive measurement port ownership.

Agent-assisted-by: Codex (implementation)
Signed-off-by: amy-why-3459 <[email protected]>
Keep historical validation attached to its original source snapshots.

Agent-assisted-by: Codex (implementation)
Signed-off-by: amy-why-3459 <[email protected]>

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @amy-why-3459.

Verified the review findings against the current branch and pushed bd93ce05 and aaed4a29.

  • Lifecycle false positives — confirmed and fixed for new runs. This addresses the original finding and the repeated Dong1017 / zengchuang-hw findings. Offline reproduction confirmed that the archived handler accepted failed/cancelled audio responses without a cancellation acknowledgement or fresh input. The revised tools/realtime_venus_lifecycle.py waits for the targeted cancellation terminal and input-clear acknowledgement before sending fresh input. It credits only a response first created after that input, with nonempty audio and terminal completed; early responses, missing creation, empty audio and duplicate terminals cannot pass. Stale old audio still fails. The archived script remains byte-identical for provenance, and the docs explicitly direct new runs to the revised probe. The fresh-input association is an ordered protocol check, not a semantic-quality claim.

  • Source-fingerprint pointer — confirmed and corrected. This addresses the initial review, the repeated finding and the scoped approval's note. patch/README.md now links to plan/runspec.json and names both source-digest fields.

  • Downstream revision follow-up — completed. PR #10976 has now merged. The reproduction section points to immutable merge commit 123c96e4a81a597e08526d46c54dc2325fc01488, while keeping historical observations attached to their original source pins.

  • Per-request publication gap — already resolved for this documentation scope, as explicitly recorded in the follow-up review. No additional public per-request evidence is claimed: the original records remain unavailable publicly and overall qualification remains INCONCLUSIVE.

The port-ownership finding is also fixed and answered in its inline thread.

Validation at bd93ce0: 48 affected tests passed, including 17 new offline lifecycle regressions and a mocked WebSocket send-order test; Ruff, formatting, CLI help and diff checks passed. Evidence validation reported 28 bundles / 485 checked hashes / zero errors, with 32 unavailable external-input entries still explicit. Only the three explanatory README hashes changed; archived scripts, plans and result records retain their prior bytes. aaed4a2 adds only the downstream source link and passed its diff check. No live-model/GPU rerun or performance remeasurement; full tests on the new head remain with CI.

@amy-why-3459

Copy link
Copy Markdown
Collaborator Author

@david6666666 @Dong1017 @zengchuang-hw @Bounty-hunter

@Bounty-hunter Bounty-hunter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
deepseek-v4.1-flash (agent), acting for @Bounty-hunter.

PR review verdict — PASS
Reviewed base 62949701cb03d7ade1c9d6fe71fb7923191cb627 and head aaed4a2912ddbc8a2b8f19c7eec887459c9fabc8, including the increment ce17b70df006eb5459b18078c15f6e7cb5602543..aaed4a29 (bd93ce05, aaed4a29) and the earlier blocking reviews on this PR. The prior probe finding is resolved.

Evidence

  • tools/realtime_venus_lifecycle.py now enforces the ordered barriers: request_clear() requires the matching cancelled terminal, mark_fresh_input_sent() requires input_audio_buffer.cleared, a response is credited only when its first response.created arrives after fresh input, and validate() requires nonempty audio, terminal completed, and zero audio from the cancelled response after acknowledgement.
  • tests/campaigns/test_realtime_venus_lifecycle.py adds 17 offline cases covering failed/cancelled/incomplete terminals, pre-input responses, a mismatched cancel, unsolicited clear, missing created/audio/terminal, duplicate terminals, stale audio, and a mocked send-order WebSocket test.
  • The archived validator/duplex_lifecycle.py keeps its bytes for provenance, and the docs, evidence README and validator README explicitly say it cannot qualify a new run; the frozen plan is identified as the historical command. This preserves the retained positive trace without letting the archived gate admit new results.
  • evidence/realtime-venus-day0/patch/README.md now points at plan/runspec.json; I confirmed baseline_source_sha256 and candidate_source_sha256 are present there. aaed4a29 pins the integrated downstream contribution to merged commit 123c96e4a81a597e08526d46c54dc2325fc01488 while keeping historical observations on their original pins.
  • At this head, full-check (3.10), full-check (3.11), installed-package (3.10), installed-package (3.11), lint-and-smoke, declarations, dashboard-browser and both advisory host-compatibility checks are success.

The earlier per-arm recomputation gap and source-fingerprint pointer are addressed by the explicit INCONCLUSIVE scope and the corrected pointer. I did not re-run the live WebSocket probe, the model or GPU; the new probe has no live-model result attached, and I did not recompute the archived bundle hashes. This review covers the documentation, probe logic, offline regressions and the recorded CI state, not a new performance or semantic-quality claim.

@amy-why-3459
amy-why-3459 enabled auto-merge (squash) November 25, 2026 06:21

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NO PASS

回应本条点名。对照上轮 ce17b70d,现检视 aaed4a2912ddbc8a2b8f19c7eec887459c9fabc8,基线 62949701cb03d7ade1c9d6fe71fb7923191cb627,只覆盖本 PR 的回放探针和文档/证据,不作 #593 验收。

新版探针还有一处发送/接收竞态。 run() 在 await ws.send(...) 返回后才设置 fresh_input_sent;接收任务已经独立运行。如果帧已发出但 send 仍在等待写缓冲,已经因蓝色输入开始的 response.created 可能先被处理。当时不会进入 followup_responses,随后合法的音频和 completed 也无法挽回,探针会把有效恢复判为超时。当前 mock 的 send 入队后不让出事件循环,覆盖不到这个顺序。请让输入发送和响应归属使用同一个有明确顺序的边界,并补一条 mock 回归:服务端在 send 返回前收到新帧并发回 response.created。修复也应保留对真正发送前创建的响应的拒绝,不能简单放宽判定。

其余上轮问题在新版路径上已收敛:匹配取消 ID,等待 clear,且只接受新响应的非空音频和终态 completed。旧探针仍作为历史脚本保存,新版没有被当成已上线实测。查阅了相关代码、mock、#593 范围与历史脚本 blob;尝试隔离运行定向用例,但当前环境缺少 pytest。未做实机或 CI 验证、不批准本提交。

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-opus-5-5).

PR review verdict — PASS

Reviewed base 62949701cb03d7ade1c9d6fe71fb7923191cb627 and head aaed4a2912ddbc8a2b8f19c7eec887459c9fabc8. That covers the full PR diff against the merge base and the increment since my last DO NOT PASS on ce17b70df006eb5459b18078c15f6e7cb5602543. All my earlier blockers are resolved. The approval covers the documentation, the compact evidence, the revised offline probe logic and its regressions. It does not cover #593 acceptance, a live duplex rerun or any performance or quality claim beyond INCONCLUSIVE.

Prior findings, new observations, what I ran

Prior Dong-bot blockers

  • Source-fingerprint pointer (e8d8a526, 6d320c8a): resolved. evidence/realtime-venus-day0/patch/README.md:10-11 now links ../plan/runspec.json and names baseline_source_sha256 / candidate_source_sha256. Both fields are present in plan/runspec.json.
  • Duplex probe credits a non-completed follow-up (ce17b70d, after zengchuang-hw's finding on 6d320c8a): resolved for new runs. In tools/realtime_venus_lifecycle.py:
    • request_clear() (L40-44) requires the matching cancelled terminal for the cancelled ID (L67-68).
    • mark_fresh_input_sent() (L46-48) requires input_audio_buffer.cleared after a requested clear (L54-56).
    • Only a response whose first-seen event is response.created after fresh input gets credited (L57-59, seen_responses L80-81).
    • Crediting also requires terminal completed with nonempty audio on its first terminal (L69-77).
    • validate() (L83-88) keeps the stale-audio check.
    • The archived validator/duplex_lifecycle.py keeps its original bytes. docs/realtime-venus-vllm-omni.md:137-144, the evidence README and validator/README.md:74-108 say it cannot qualify a new run and that the revised probe has no live result.
  • Per-arm recomputation gap (e8d8a526): remains resolved by the explicit operator-local and INCONCLUSIVE scope, as recorded on 6d320c8a. summary.json, trials.jsonl and the inventory external note are unchanged in scope.
  • Non-blocking follow-up from e8d8a526, the draft downstream pin: done. The reproduction section (docs/realtime-venus-vllm-omni.md:194-200) pins merged commit 123c96e4a81a597e08526d46c54dc2325fc01488. Historical observations stay on their original pins.
  • @david6666666's port-8197 note: addressed in docs. validator/README.md:15-22 requires exclusive ownership of an unused port and a no-listener check before each arm. measure.py is byte-identical.

New observations (non-blocking)

  1. On zengchuang-hw's send/receive race at this head (run(), tools/realtime_venus_lifecycle.py:233-249): mark_fresh_input_sent() runs only after await ws.send(...) returns. With websockets 17, send() can yield in drain() when the transport is paused (default high-water mark 32 KiB, and one append frame is roughly 50 KiB). I agree the ordering is not strictly enforced.
    • I don't treat it as a blocker. The failure is fail-closed: a valid recovery would time out, but no invalid response could pass. To trigger it, the server would have to receive the whole frame, start a response and get response.created processed before the client's drain waiter resumes. No claim in this PR depends on a live result from the revised probe.
    • Suggested fix: call gate.mark_fresh_input_sent() immediately before the first blue ws.send. Input is already cleared and acknowledged at that point, so this does not admit earlier responses. Add a mock whose send yields and injects response.created before it returns.
  2. "Binds the response to the fresh-input phase" is a temporal ordering check. A late response still driven by pre-clear state would be credited if it is first created after the blue send. The docs already say this is not a semantic check (validator/README.md:96-98), so I'm noting it only for future readers.

What I ran (CPU only, Python 3.11 venv, websockets 17.4)

  • pytest tests/campaigns/test_realtime_venus_lifecycle.py tests/repository/test_evidence_inventory.py passed (34 tests).
  • ruff check and ruff format --check on the new tool and test passed.
  • python tools/validate_evidence.py reported errors: [] and checked_hashes: 485, which matches the test's 28 bundles / 485.
  • I recomputed SHA-256 for all 13 entries in results/core-integrity.json, and all match. Only the three README hashes changed since ce17b70d.
  • CI at this head: every reported check is SUCCESS.

Not verified: the live WebSocket probe, model weights, GPU, the original raw artifacts and the downstream merge commit's code.

@amy-why-3459
amy-why-3459 merged commit 443891e into main Nov 25, 2026
12 checks passed
@Dong1017
Dong1017 deleted the feat/realtime-venus-experience branch November 25, 2026 06:33
@Bounty-hunter

Copy link
Copy Markdown
Collaborator

deepseek-v4.1-flash (agent), acting for @Bounty-hunter.

Post-merge check — the NO PASS ordering finding is real; a follow-up fix is still needed.

Details

I checked the review at aaed4a29 against the merged source. Reviewed base 62949701cb03d7ade1c9d6fe71fb7923191cb627, head aaed4a2912ddbc8a2b8f19c7eec887459c9fabc8, squash 443891ef23c8fcaf4b2c6b2e7d49568bc0b3bf0c, merged 2026-11-25T06:31:14Z.

In run() L231-L248, the first blue frame is written by await ws.send(...) and gate.mark_fresh_input_sent() runs only after that await returns. That makes correctness depend on send() not yielding after the frame reaches the socket, which is a client-library implementation detail: in the websockets 10.x path, write_frame() calls write_frame_sync() and then awaits drain(), which yields when the write buffer is full while the receiver task keeps running. A response.created produced by the already-written blue frame can then be recorded while fresh_input_sent is still false. It is not added to followup_responses, so its later non-empty audio and completed terminal cannot set followed_up, and a valid recovery is reported as a timeout.

The mock at tests/campaigns/test_realtime_venus_lifecycle.py L136-L177 emits the response from a non-yielding send(), so it cannot exercise this order.

My earlier APPROVE on this head predates the finding; I am not reopening the merged verdict. For a follow-up, make the write and the fresh-input marker one ordered step so no response can be attributed in the gap, while still rejecting a response created before the write, and add a mock where the server returns response.created while send() is blocked in drain().

I did not run the probe or CI; this is a source-level check of the merged revision.

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

Reviewed base 62949701cb03d7ade1c9d6fe71fb7923191cb627 and head aaed4a2912ddbc8a2b8f19c7eec887459c9fabc8. This is a re-check of the revised probe only, prompted by the 05:40Z mention and the findings that came in after my 06:31Z Approve on this head. That Approve stays on record. It covered the docs, the compact evidence and the offline gate logic. This COMMENT does not retract it. It also does not change the PR's scope, and the thread says the PR is already merged.

Blocker (follow-up needed): the fresh-input marker is set after the send returns, not with it.

  • In tools/realtime_venus_lifecycle.py, run() does await ws.send(<first blue frame>). It then calls gate.mark_fresh_input_sent() only if offset == 0, after that await returns.
  • The receiver task runs independently. If send() yields after the frame is written, for example while awaiting drain() on a full write buffer, the server's response.created for the blue input can reach LifecycleGate.record() first.
  • At that point fresh_input_sent is still False. record() only adds a response to followup_responses when self.fresh_input_sent is True, so this response is not added. seen_responses still gets the id.
  • Its later nonempty audio and completed terminal therefore cannot set followed_up. A valid recovery times out at wait_for(gate.followed_up.wait(), 40).
  • Zengchuang-hw (6052786516) and Bounty-hunter (7155163054) reported the same ordering gap. I confirmed it in the code.
  • Severity: this fails closed. It cannot admit a failed or pre-input response, so it is a false negative, not the earlier false-positive class. The retained positive trace is unaffected. It still means the revised probe can reject a correct run, which is the property this PR advertises.

Test gap

  • In tests/campaigns/test_realtime_venus_lifecycle.py, Socket.send() queues the server events with put_nowait and never yields. The test cannot reach the order above.
  • The existing gate tests cover the opposite direction. They show that a response created before the marker must not be credited. A fix has to keep that.

Suggested shape of the fix (non-blocking on wording)

  • Make the write and the marker one ordered step. For example, set a "send in flight" marker before the first blue ws.send, and attribute only responses first created after that point.
  • Then add a mock where the server emits response.created while send() is still suspended.
  • Keep rejecting any response created before the marker was set.

Verified: I read the diff and run() and LifecycleGate. I also read the mock's send path against the findings.

Not run: no tests, CI, live WebSocket or model run. Verdict stays DO NOT PASS until the probe is fixed in a follow-up PR or a push, and I will re-read it when that lands.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:docs Documentation and template delivery

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants