Skip to content

docs(troubleshooting): explain job/registered history load failure on pre-0.2.1-alpha.3 hosts - #20

Merged
cherrchen merged 1 commit into
mainfrom
fix/session-log-job-registered-0.2.0-rc.2
Oct 18, 2026
Merged

cherrchen merged 1 commit into
mainfrom
fix/session-log-job-registered-0.2.0-rc.2

Conversation

@cherrchen

@cherrchen cherrchen commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Document the reported 0.2.0-rc.2 failure "历史加载失败: failed to observe session ... contains event type "job/registered" (seq 24) unknown to this harness" as an upstream forward-compatibility guard, not a plugin defect.
  • Verified evidence: job/registered / job/settled entered KNOWN_SESSION_EVENT_TYPES in f899e87a1e (first shipped in dsh-v0.2.1-alpha.3); they are written as required events with no ignorable marker (confirmed in the real session.v4.jsonl.zstd at seq 24, kind:"bash"). 0.2.0-rc.2, 0.2.1-alpha.1, and alpha.2 lack both types, so validateStoredEvents throws SessionFormatUnsupportedError → SESSION_QUERY_PERSISTENCE_FAILED → gateway/internal → chat history load error. SESSION_FORMAT_VERSION is 4 on both sides; the failure is in event admission, not the version check.
  • Adds the bilingual troubleshooting entry docs/troubleshooting/session-log-newer-harness.{md,en.md}, README index links, and a "session log read-back boundary" section in docs/reference/dsh-compatibility.md clarifying that the declared 0.2.0-rc.2 support does not cover logs written by newer harnesses.
  • Resolution for users: open affected sessions on a host >= 0.2.1-alpha.3; no plugin-side fix is possible or safe.

Test plan

  • pnpm docs:check passes (52 files, 502 links)
  • pnpm compat:check passes — supported list, peer ORs, dev pins and installed packages agree
  • Verified claims against upstream tags: job/* absent from KNOWN_SESSION_EVENT_TYPES on dsh-v0.2.0-rc.2 / dsh-v0.2.1-alpha.1 / alpha.2, present on dsh-v0.2.1-alpha.3
  • Verified against the reported real session log (job/registered at seq 24, no ignorable)
  • No code change — runtime matrix intentionally not re-run (docs-only diff)

… pre-0.2.1-alpha.3 hosts

Sessions written by a >= 0.2.1-alpha.3 host contain required job/registered
and job/settled events that older persistence readers refuse as unknown,
surfacing as a gateway/internal history-load error. This is the upstream
forward-compatibility guard, not a plugin defect — record the diagnosis and
the verified remedies so the 0.2.0-rc.2 support claim is not mistaken for
coverage of newer-written logs.
@cherrchen
cherrchen marked this pull request as ready for review October 18, 2026 06:51
@cherrchen
cherrchen merged commit 14dc070 into main Oct 18, 2026
18 checks passed
@cherrchen
cherrchen deleted the fix/session-log-job-registered-0.2.0-rc.2 branch October 18, 2026 06:52
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