P/D connector/router: fills through the TT gate, fill status cleanup, FA+GDN-only deeper-GDN rule (#368 review lows) #375

Merged
orchestra merged 5 commits from opus/pd-connector-lows into master 2026-11-09 14:05:46 +01:00
Member

Follow-up to the #368 review's low findings. Code only; deploy needs an RTX window (broker + decode restart, decode.env fill_allow += http://127.0.0.1:8790, router --fill-url http://127.0.0.1:8790/pd/fill).

  • Fills through the TT gate: router --fill-url (default '' = unchanged); POST /pd/fill/v1/completions forwards a connector fill export to TT through the router's TT gate (tt-max-inflight 1, sjf). Non-export bodies get 400.
  • Fill status: broker poll replies carry consumed:true for a handoff claimed and released (no false 'not complete' WARNING / stale .err when the RTX imported the fill before TT's 200). .err files are deleted at load release and pruned (>1 h) at connector start.
  • Group guard: divergent_hit's deeper-GDN override only when every group is full attention or GDN; otherwise vLLM's hit is kept (deeper_gdn_other_group).

Tests: router 178 passed / 1 skipped; transport 37 passed; connector test_cpu 13 passed (cfx-llm1, CPU).

🤖 Generated with Claude Code

Follow-up to the #368 review's low findings. Code only; deploy needs an RTX window (broker + decode restart, decode.env fill_allow += http://127.0.0.1:8790, router --fill-url http://127.0.0.1:8790/pd/fill). - **Fills through the TT gate**: router --fill-url (default '' = unchanged); POST /pd/fill/v1/completions forwards a connector fill export to TT through the router's TT gate (tt-max-inflight 1, sjf). Non-export bodies get 400. - **Fill status**: broker poll replies carry consumed:true for a handoff claimed and released (no false 'not complete' WARNING / stale .err when the RTX imported the fill before TT's 200). .err files are deleted at load release and pruned (>1 h) at connector start. - **Group guard**: divergent_hit's deeper-GDN override only when every group is full attention or GDN; otherwise vLLM's hit is kept (deeper_gdn_other_group). Tests: router 178 passed / 1 skipped; transport 37 passed; connector test_cpu 13 passed (cfx-llm1, CPU). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
pd-split: #368 review low items: fills through the TT gate (--fill-url, router /pd/fill), fill status cleanup + consumed signal, deeper-GDN rule only for FA+GDN groups
Some checks failed
tt-stack-ci / Build simulators and check the host module (pull_request) Has been cancelled
tt-stack-ci / Report upstream drift (pull_request) Has been cancelled
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Has been cancelled
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
d422d4fb19
- router: --fill-url (default '' = TT directly, unchanged); POST /pd/fill/v1/completions forwards a connector's fill
  export to TT through the same TT gate (tt-max-inflight, sjf) as the router's own exports; non-export bodies 400.
- receiver/broker: a handoff claimed and then released is remembered (bounded) as consumed; poll replies carry
  consumed: true, so the fill thread's grace probe no longer logs a false 'not complete' and writes a stale .err when
  the RTX imported the fill before TT's 200 came back.
- connector: fill .err verdicts are deleted when the load is released and pruned (>1 h) at connector start;
  divergent_hit's deeper-GDN override only runs when every group is full attention or GDN (else vLLM's hit is kept
  and counted as deeper_gdn_other_group).

Deploy needs a window (broker + decode restart, decode.env fill_allow += the router URL, router --fill-url).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
walkthrough §9: n1d TTFT breakdown (B8: TT queue 67%, TT prefill 22%) and what TT prefill rate buys
Some checks failed
tt-stack-ci / Build simulators and check the host module (pull_request) Has been cancelled
tt-stack-ci / Report upstream drift (pull_request) Has been cancelled
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Has been cancelled
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
994d5719c4
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Owner

verdict: approve
tier: T2
model: ollama/agent-dense (pre-applied by dispatch; session already on agent-dense, no mid-session swap needed)

rationale: WIP draft follow-up to the #368 review lows; scope is exactly the three declared items (fills through the TT gate, fill status cleanup, FA+GDN-only deeper-GDN group guard), additive, flag-gated, and default-off (--fill-url defaults to '' so the served behavior is unchanged until an operator sets it). Clean on the secret/red-flag sweep; the guard's "only the verified shape" discipline (fall back to vLLM's hit on a third group kind) is the right conservatism.

concerns:

  • [warn] tools/pd-split/router/router.py:208 — the head CI run (11747, head 994d5719c4) is still waiting; the card A/B is unproven on this head. Per the standing rule the human-approved label is HELD until the head run lands green; re-dispatch after it does (the levers themselves approve as-is).
  • [warn] tools/pd-split/router/router.py:145-195 — once merged with --fill-url set, fills permanently flow through the router's TT gate (tt-max-inflight 1, sjf); that is the point, but it makes the router's queue the critical path for every RTX connector fill. Keep the gate sizing in mind when the B8 TTFT queue is still 67% of TTFT (per the new walkthrough §9).
  • [nit] docs/walkthroughs/2026-11-08-pd-delta-export.md:209 — the §9 TTFT table is a good addition but it re-baselines "today" at 4.6k tok/s effective; the calibrated 7.5k target should be tracked in the TT prefill lane so the walkthrough's claim doesn't silently go stale.
**verdict:** approve **tier:** T2 **model:** ollama/agent-dense (pre-applied by dispatch; session already on agent-dense, no mid-session swap needed) **rationale:** WIP draft follow-up to the #368 review lows; scope is exactly the three declared items (fills through the TT gate, fill status cleanup, FA+GDN-only deeper-GDN group guard), additive, flag-gated, and default-off (`--fill-url` defaults to `''` so the served behavior is unchanged until an operator sets it). Clean on the secret/red-flag sweep; the guard's "only the verified shape" discipline (fall back to vLLM's hit on a third group kind) is the right conservatism. **concerns:** - [warn] `tools/pd-split/router/router.py:208` — the head CI run (11747, head 994d5719c4) is still `waiting`; the card A/B is unproven on this head. Per the standing rule the `human-approved` label is HELD until the head run lands green; re-dispatch after it does (the levers themselves approve as-is). - [warn] `tools/pd-split/router/router.py:145-195` — once merged with `--fill-url` set, fills permanently flow through the router's TT gate (`tt-max-inflight 1`, sjf); that is the point, but it makes the router's queue the critical path for every RTX connector fill. Keep the gate sizing in mind when the B8 TTFT queue is still 67% of TTFT (per the new walkthrough §9). - [nit] `docs/walkthroughs/2026-11-08-pd-delta-export.md:209` — the §9 TTFT table is a good addition but it re-baselines "today" at 4.6k tok/s effective; the calibrated 7.5k target should be tracked in the TT prefill lane so the walkthrough's claim doesn't silently go stale.
#375 review fixes: /pd/fill accepts only fill-shaped bodies (own broker target, aligned start, fill id; max_tokens forced 1); abandoned fills leave the TT gate; fill ids unique per attempt; .err verdicts kept >=10 min for every TP rank (periodic prune, no per-rank delete); consumed cleared on resend
All checks were successful
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 12m6s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 6m47s
tt-stack-ci / Report upstream drift (pull_request) Successful in 3m59s
cards-fresh cards: not needed (C1) fp=617283e09d4aa5be
e130fb57cb
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
orchestra changed title from WIP: P/D connector/router: fills through the TT gate, fill status cleanup, FA+GDN-only deeper-GDN rule (#368 review lows) to P/D connector/router: fills through the TT gate, fill status cleanup, FA+GDN-only deeper-GDN rule (#368 review lows) 2026-11-09 01:53:51 +01:00
Author
Member

Independent review: FIX (5 findings: open /pd/fill body, abandoned fills holding the TT gate, cross-rank .err race, reused fill ids, .err pile-up) -> all fixed in e130fb57 -> re-review APPROVE. Tests: router 179 passed / 1 skipped, transport 23 passed, connector test_cpu 13 passed (cfx-llm1). Code only; deploy in an RTX window (queued on #334 after the rtx-lane windows, ~07:00): broker + decode restart, decode.env fill_allow += http://127.0.0.1:8790, router --fill-url http://127.0.0.1:8790/pd/fill, smoke with a forced fill. Note: keep fill_timeout_s <= 600 (verdict prune age).

Independent review: FIX (5 findings: open /pd/fill body, abandoned fills holding the TT gate, cross-rank .err race, reused fill ids, .err pile-up) -> all fixed in e130fb57 -> re-review APPROVE. Tests: router 179 passed / 1 skipped, transport 23 passed, connector test_cpu 13 passed (cfx-llm1). Code only; deploy in an RTX window (queued on #334 after the rtx-lane windows, ~07:00): broker + decode restart, decode.env fill_allow += http://127.0.0.1:8790, router --fill-url http://127.0.0.1:8790/pd/fill, smoke with a forced fill. Note: keep fill_timeout_s <= 600 (verdict prune age).
pd broker: read-only op=inspect for the Inference-flow dashboard (nixos-llm #989)
Some checks failed
tt-stack-ci / Build simulators and check the host module (pull_request) Has been cancelled
tt-stack-ci / Report upstream drift (pull_request) Has been cancelled
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Has been cancelled
tt-stack-ci / Serialized card gate (pull_request) Has been cancelled
c2d5040ed1
Live handoffs (oldest first, <=64: state writing|ready|importing, tokens, bytes,
frames, first arena offset, age, t_open/t_ready/t_claim, export/wait/import s,
ranks released), cumulative totals (handoffs, bytes in/out, import ok/failed,
ended by reason), the last 32 finished handoffs with latencies, and the arena's
free-extent map (<=64 [off,len]). Snapshot under the receiver lock (median 23 us
held at 64 live), formatted outside it; arena read under its own lock after.
op=stats is unchanged (keys and values).

Also: a claimed handoff that is dropped or reaped no longer reads as
"consumed" (it was not imported); the fill grace probe no longer takes it as
success.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Author
Member

Added to this PR (one deploy, one broker + decode restart): read-only broker op=inspect for the nixos-llm #989 Inference-flow dashboard (c2d5040e, review lows 2nd commit).

  • Live handoffs (oldest first, <=64), totals (handoffs/bytes in/out, import ok/failed, ended by reason), last 32 finished with export/wait/import s, arena free-extent map (<=64 [off,len]).
  • op=stats unchanged (test compares full reply before/after).
  • Cost at 64 live x 256 frames, 32 recent, 65 extents (CPU, dev host): Receiver.inspect 216 us, receiver lock held 23 us median, broker round trip 1.2-1.4 ms incl. JSON, reply 30.8 KB. At 10 Hz: ~1.3% of one core, lock held 0.02% of the time.
  • Semantics fix: a claimed handoff that is dropped/reaped is no longer reported "consumed".
  • Tests: 4 new (shape/states/caps/counters, stats unchanged + read-only flags, concurrent writers + 2 readers with consistency checks, cost). transport+router 220 passed.
  • Independent review (Opus reviewer): LAND, no blocking findings; lows 1 (bytes_out double count on re-sent frames) and 3 (bool caps) fixed; full transport/connector/router 230 passed, 23 skipped.
Added to this PR (one deploy, one broker + decode restart): read-only broker `op=inspect` for the nixos-llm #989 Inference-flow dashboard (c2d5040e, review lows 2nd commit). - Live handoffs (oldest first, <=64), totals (handoffs/bytes in/out, import ok/failed, ended by reason), last 32 finished with export/wait/import s, arena free-extent map (<=64 [off,len]). - op=stats unchanged (test compares full reply before/after). - Cost at 64 live x 256 frames, 32 recent, 65 extents (CPU, dev host): Receiver.inspect 216 us, receiver lock held 23 us median, broker round trip 1.2-1.4 ms incl. JSON, reply 30.8 KB. At 10 Hz: ~1.3% of one core, lock held 0.02% of the time. - Semantics fix: a claimed handoff that is dropped/reaped is no longer reported "consumed". - Tests: 4 new (shape/states/caps/counters, stats unchanged + read-only flags, concurrent writers + 2 readers with consistency checks, cost). transport+router 220 passed. - Independent review (Opus reviewer): LAND, no blocking findings; lows 1 (bytes_out double count on re-sent frames) and 3 (bool caps) fixed; full transport/connector/router 230 passed, 23 skipped.
pd broker inspect review lows: bytes_out_total counts held frames (a re-sent frame once); bool caps ignored
All checks were successful
tt-stack-ci / Report upstream drift (pull_request) Successful in 1m24s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 8m37s
cards-fresh cards: not needed (C1) fp=617283e09d4aa5be
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 21m46s
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
b79e89bddc
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
orchestra merged commit f386d5cc22 into master 2026-11-09 14:05:46 +01:00
Owner

agent-gateway closeout (merged): cleared agent:* labels.
Hermes kanban card (if any) is left for Hermes to archive/complete.

agent-gateway closeout (merged): cleared `agent:*` labels. Hermes kanban card (if any) is left for Hermes to archive/complete.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitpartner/tt-stack!375
No description provided.