[Bug] AttributeError: 'list' object has no attribute 'strip' in _wm_enforce_open_issues_resolved → archive_summary step of session_commit fails
Issue Origin
Observed in a real local deployment (OpenViking v0.4.22, macOS), 2026-09-30 16:05 CST, during session_commit Phase 2.
Bug Description
_run_archive_summary crashed → Phase 2 step archive_summary failed → the whole commit task failed:
2026-09-30 16:05:41,916 - openviking.session.session - ERROR - Phase 2 step archive_summary failed: 'list' object has no attribute 'strip'
Traceback (most recent call last):
File ".../openviking/session/session.py", line 2598, in _run_archive_summary
generated = await self._generate_archive_summary_with_batching(...)
File ".../openviking/session/session.py", line 4341, in _generate_archive_summary_with_batching
generated = await self._generate_archive_summary_async(...)
File ".../openviking/session/session.py", line 4613, in _generate_archive_summary_async
overview = self._merge_wm_sections(latest_archive_overview, ops)
File ".../openviking/session/session.py", line 5356, in _merge_wm_sections
op = Session._wm_enforce_open_issues_resolved(op, old_content)
File ".../openviking/session/session.py", line 5282, in _wm_enforce_open_issues_resolved
new_content = (op.get("content") or "").strip()
AttributeError: 'list' object has no attribute 'strip'Root Cause (analysis)
In _wm_enforce_open_issues_resolved, the WM guard assumes op["content"] is a string. When the model emits an UPDATE op whose content is a list, (list and not empty) or "" evaluates to the list itself (truthy), then .strip() raises. There is no type validation/coercion before the call.
Suggested fix directions:
- Coerce defensively:
content = op.get("content"); if isinstance(content, list): content = "\n".join(map(str, content))(or skip guard when not a str), and/or - Validate the op schema (expect
content: str) before_wm_enforce_open_issues_resolved.
Impact
One session-commit failure observed (the crash also cascades — a long_term timeout followed in the same run). Given the guard is meant to protect WM merges, a malformed model output currently fails the entire commit instead of degrading safely.
Ask
- Confirm intended type of
op["content"]for WM UPDATE ops, and whether the guard should tolerate list-valued content. - Happy to provide fuller candidate evidence on request (session content redacted).
Source: volcengine/OpenViking