车东 Che, Dong

Tue 11 August, 2026

09:42 tools: 将当前执行节点纳入 mesh 测速 » Recent Commits to phpman:master
tools: 将当前执行节点纳入 mesh 测速

- 用 status 首行识别本机(LOCAL_HOST),无需 .ssh/config 别名也强制收编
- 新增 run_on() 辅助:本机用 sh -c 本地执行,其他节点走 ssh
- 替换 Phase2/3/4 及 get_iperf_path 的 ssh 调用点为 run_on
- 修复:当前节点(mbairm2dong)不再因无 config 别名被排除

Co-Authored-By: Claude Code / deepseek-v4-flash / auto
01:26 tools: 使 mesh 测速脚本支持本地 status、config 收编节点、无参数显示 help » Recent Commits to phpman:master
tools: 使 mesh 测速脚本支持本地 status、config 收编节点、无参数显示 help

- 无参数时显示 help 而非静默以 macminidong 运行
- 优先用本机 tailscale status 发现节点,失败才回退 control 节点
- 去掉 chedong@ 账号硬编码,改为 ~/.ssh/config 能把主机名解析为 Host 别名即收编
  (liyangche@ 的 mbprolia 等亦可),并把完整域名归一化为 config 短别名

Co-Authored-By: Claude Code / deepseek-v4-flash / auto

Sat 08 August, 2026

03:07 v4.10: remove LLM enhancement — batch-enhance, callLLM, enhanceManPage » Recent Commits to phpman:master
v4.10: remove LLM enhancement — batch-enhance, callLLM, enhanceManPage

Delete (6 files):
  cli/batch-enhance.php — batch LLM enhancement CLI
  start-enhance-all.sh — batch launcher
  src/enhance.php — callLLM(), callLLMEndpoint(), enhanceManPage(), cleanEmojiHtml()
  test/unit/test_enhance.php — LLM tests
  docs/llm-gateway-failure-analysis.md — LLM failure analysis

Cleanup (5 files):
  src/bootstrap.php — remove require 'enhance.php'
  src/config.php — remove LLM_API_KEY/URL/MODEL/MAX_TOKENS
  src/web_footer.php — remove 'Enhanced by LLM' footer credit
  src/format_html.php — remove batch-enhance CLI examples
  phpMan.php — serve emoji_html from cache (no cleanEmojiHtml pass)

Keep: CACHE_FORMAT_EMOJI_MD/HTML — existing ~69% enhanced pages
continue to render from cache. No new enhancement generation possible.

Rationale: STRATEGY.md §5.2 — AI bots (Meta 9K/day, ClaudeBot 0.9K/day)
prefer raw markdown/json/mcp. Emoji adds no value for agent consumption.

Co-Authored-By: Claude Code deepseek-v4-pro <noreply@taotoken.net>

Fri 07 August, 2026

01:56 feat: add --help / -h to tailscale-mesh-bench.sh » Recent Commits to phpman:master
feat: add --help / -h to tailscale-mesh-bench.sh

Shows usage, options, examples, and node labels.

Thu 06 August, 2026

23:05 feat: Tailscale mesh iperf3 bandwidth benchmark script » Recent Commits to phpman:master
feat: Tailscale mesh iperf3 bandwidth benchmark script

tools/tailscale-mesh-bench.sh — auto-discovers Tailscale nodes,
starts iperf3 servers, runs full mesh bandwidth tests, outputs
matrix table + optional JSON report.

Usage: ./tools/tailscale-mesh-bench.sh [control_node] [options]
  --port=N       iperf3 port (default 5201)
  --duration=N   test duration in seconds (default 4)
  --json         output machines.json
  --skip=hosts   comma-separated hosts to skip
  --only=hosts   comma-separated hosts to test only

Co-Authored-By: Claude Code deepseek-v4-pro <noreply@taotoken.net>

Fri 31 July, 2026

04:15 fix: emoji cache entries never expire (7d TTL caused mass data loss) » Recent Commits to phpman:master
fix: emoji cache entries never expire (7d TTL caused mass data loss)

The default 7-day cache TTL was silently deleting ~12K emoji entries
after they turned 7 days old. Each batch enhance run costs ~¥2K in LLM
API calls — losing the results after a week is unacceptable.

Set emoji_md/emoji_html TTL to 0 (never expire). HTML content cache
and search results still use the standard TTL.

Root cause: July 23-enhanced entries expired July 30, causing total
emoji_html to drop from 17,751 (65.4%) to 5,049 (18.1%) overnight.

Co-Authored-By: Claude <noreply@taotoken.net>

Fri 24 July, 2026

03:22 fix: PageCache::set() guards against overwriting valid content with e… » Recent Commits to phpman:master
fix: PageCache::set() guards against overwriting valid content with empty not_found

Prevents WAL-mode stale reads from causing batch-enhance to destroy
existing valid emoji data when LLM calls fail. Before writing a
not_found entry, check if valid (non-empty, status=found) content
already exists — if so, skip the overwrite.

Fixes the man -139 entry and info -21 entry data loss observed during
the batch enhance monitoring loop.

Co-Authored-By: Claude <noreply@taotoken.net>
02:12 feat: generate compressed sitemap during reindex » Recent Commits to phpman:master
feat: generate compressed sitemap during reindex

Tue 21 July, 2026

23:21 Docs: CSP nonce + strict-dynamic strategy (#158) + v4.9 PLANDOC entry » Recent Commits to phpman:master
Docs: CSP nonce + strict-dynamic strategy (#158) + v4.9 PLANDOC entry

- docs/01-PRODUCT.md: new §3.2 CSP Strategy — current state, target state,
  transition plan (3-phase), implementation note for nonce sharing
- docs/05-PLAN.md: v4.9 CSP nonce + strict-dynamic entry

Co-Authored-By: Claude Code deepseek-v4-pro <noreply@taotoken.net>

Mon 20 July, 2026

06:46 fix: --status query excludes NOT_FOUND entries from emoji counts » Recent Commits to phpman:master
fix: --status query excludes NOT_FOUND entries from emoji counts

Failed enhancements are now cached as status='not_found' to prevent
retries. The --status count query must filter status='found' to avoid
counting failures as completed enhancements.

Co-Authored-By: Claude <noreply@taotoken.net>
06:36 fix: cache NOT_FOUND on LLM failure to prevent repeated retries » Recent Commits to phpman:master
01:42 fix: preg_match_all called before empty() check in splitHtmlIntoSections » Recent Commits to phpman:master
01:22 fix: man page heading detection in splitHtmlIntoSections » Recent Commits to phpman:master
00:39 fix: wire chunked enhancement into batch-enhance.php HTML path » Recent Commits to phpman:master

Sun 19 July, 2026

22:45 feat: chunked LLM enhancement for large man pages (>200KB) » Recent Commits to phpman:master
16:57 docs: add architectural paradox — data sources are already CLI tools » Recent Commits to phpman:master
16:43 docs: strategic review — phpMan value in the LLM era (GEO/MCP/SEO ana… » Recent Commits to phpman:master

Wed 15 July, 2026

09:27 fix: deterministic PID file naming for multi-mode parallel batch-enhance » Recent Commits to phpman:master
05:03 docs: add batch-enhance.php CLI reference with --status to §2.12.1 » Recent Commits to phpman:master

Tue 14 July, 2026

00:24 docs: extract LLM enhancement + GA analytics to external projects » Recent Commits to phpman:master