Skip to content

docs(operations): record the north entrance list incident and policy - #174

Merged
TN019 merged 9 commits into
mainfrom
docs/north-entrance-list-policy
Dec 1, 2026
Merged

TN019 merged 9 commits into
mainfrom
docs/north-entrance-list-policy

Conversation

@TN019

@TN019 TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Why

The north entrance incident exposed gaps between connectivity, successful writes, installed list versions and operational visibility.

What changed

  • Add the blameless incident review and ADR 0020 covering path-MTU feedback, shared active lists, per-gate versions and bounded TLS status workers.
  • Clarify incomplete-response accounting and when STALL_EXTRA is needed; retain open work for background downloads, fetch timing and the serial staff listener.

How to verify

From the repository root:

cat docs/postmortems/2026-10-24-north-entrance-ticket-list.md docs/postmortems/2026-10-24-north-entrance-ticket-list.zh-CN.md
cat docs/adr/0020-keep-path-mtu-feedback-and-check-each-gate-list.md docs/adr/0020-keep-path-mtu-feedback-and-check-each-gate-list.zh-CN.md

Cross-check the two language versions, dashboard explanations and stall-script guidance. Separate venue impact from measured lab timings and retain the 300 ms gate-fetch limitation.


背景

北入口事件暴露了连通、写入成功、票单实际安装及现场可见性之间的差距。

改动

  • 加入无责复盘和 ADR 0020,涵盖路径 MTU 反馈、统一当前票单、逐闸机版本与有界 TLS 状态 worker。
  • 澄清不完整响应计数及何时需要 STALL_EXTRA,保留后台下载、刷新时机和员工侧串行监听器的待办。

怎么验证

从仓库根目录运行:

cat docs/postmortems/2026-10-24-north-entrance-ticket-list.md docs/postmortems/2026-10-24-north-entrance-ticket-list.zh-CN.md
cat docs/adr/0020-keep-path-mtu-feedback-and-check-each-gate-list.md docs/adr/0020-keep-path-mtu-feedback-and-check-each-gate-list.zh-CN.md

核对双语版本、仪表盘解释及停滞脚本说明,区分现场影响与实验耗时,保留闸机下载限时 300 毫秒的限制。

Noah Williams and others added 9 commits October 30, 2026 12:30
After the hub fix, the hub takes its season list from the data centre and serves the verified in-memory list. Drills that rewrote the hub start file and restarted it now publish their extra tickets from the data centre. The drills wait for installation and restore the previous publication during cleanup.
…LS status port

With the season list at about 3.5 MB, a north gate whose download is lost in a path-MTU black hole keeps the hub's single TLS status listener busy for about six seconds once per 20-second fetch cycle. Venue gates that ask during that time give up after 300 ms. The drill fails until 8444 serves more than one connection at a time.
… every gate

Port 8444 serves one connection at a time, so a client that asks for /tickets and stops reading makes every other gate wait seconds for /status. A connection beyond the work queue should be closed at once and counted.
…ist-version test

If the gate fetches the new list after the hub installs it and before the test reads the metrics, the assertion that the gate became stale does not hold. Pausing the gate while the hub changes its list removes that window.
Port 8444 served one connection at a time, so one client that stopped reading held /status and ticket fetches for every gate for seconds. It now hands accepted connections to a bounded queue of 16 served by four workers, closes and counts a connection when the queue is full, and keeps the 2 s step and 10 s connection deadlines. Port 8081 stays one thread for staff. The TLS slow-reader check in the status deadline test described the one-thread behaviour: status waited until the slow reader was cut; it now requires an answer within 1 s.
The hub now mails when the data centre is unreachable or the uplink watcher stops.
This review covers the north entrance ticket list failure, the lab reproductions, recovery work, and remaining limitations.
Clarify when extra tickets are needed to reproduce the sender hold.
This decision preserves path-MTU feedback and makes each gate's installed list visible. It also aligns the hub's served and decision lists and bounds the TLS status listener.

Co-authored-by: Yuki Tanaka <yuki.tanaka@elsworne.example>
@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Mateo Rossi · reviewer

Can an HTTP 200 and an online gate close the investigation?


HTTP 200 加闸机在线,是否就足以结束调查?

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Ingrid Larsen · author

No. Kernel buffering can complete a write before delivery, and small scans can succeed while a list download fails. The policy requires the gate’s installed version as separate evidence.


不够。内核缓冲可能让写入先于实际送达完成,小扫描也可能成功而票单下载失败。策略要求单独核对闸机已安装版本。

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Mateo Rossi · reviewer

The 300 ms download limit is listed as a known limit, not a decision. Is moving the download out of the scan loop scheduled?


300 毫秒的下载限时写成了已知限制,而不是决定。把下载移出扫描循环排期了吗?

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Ingrid Larsen · author

Not yet. The ADR records it as limit 3, with the roughly 93 Mbit/s a 3,488,890-byte list needs within 300 ms, and the review keeps it as your open, unscheduled action.


还没有。ADR 把它列为第 3 条限制,并写明 3,488,890 字节的票单要在 300 毫秒内收完,约需 93 Mbit/s;复盘把它列为你名下尚未排期的待办。

@TN019
TN019 merged commit 2f5c850 into main Dec 1, 2026
8 of 10 checks passed
@TN019
TN019 deleted the docs/north-entrance-list-policy branch December 1, 2026 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant