Atomic Knowledge Publishing MCP and Life Restart Sessions
The local stdio MCP now atomically publishes trilingual knowledge articles, publishes Markdown files, performs CAS updates and confirmed deletes, and also runs reproducible Life Restart sessions. Writes require separately administrator-approved scopes.
# Atomic Knowledge Publishing MCP and Life Restart Sessions
Phase seven of the AI capability layer prioritizes knowledge-base management in the local stdio MCP while integrating Life Restart with shared `lusu game` sessions.
## Atomic knowledge publishing
- `article_publish` writes article metadata, zh/en/ja bodies, an audit event, and an idempotency receipt in one atomic operation. If any step fails, no partially published article remains.
- `article_publish_files` reads only real, non-symlink, valid UTF-8 Markdown files beneath an MCP-configured allow-root. Local absolute paths are never sent to the site API.
- `article_update` requires `expectedUpdatedAt` CAS. `article_delete` also requires CAS and an explicit `confirm: true`. Writes and deletes require the separately administrator-approved `content:write` and `content:delete` scopes.
- General article tools reject the protected `site-updates`, `daily-ai-news`, and `tool-radar` categories, so they cannot bypass public-update or dedicated delivery rules.
## Life Restart semantic sessions
In an isolated session, an AI can select three talents, allocate charm, intelligence, strength, and money points, advance one year at a time, and start another life with an eligible inherited talent. Versioned random state, revision CAS, and clientActionId make the same initial state and action sequence reproducible and safely retryable. Inputs accept only those structured semantic actions, never selectors, scripts, URLs, arbitrary keys, or raw saves. Version one supports Custom mode and the pinned-hash Chinese story dataset.
## Current boundary
Knowledge writes are available only through the local CLI/stdio MCP and the administrator-authorized site API. The separate remote MCP Worker remains undeployed and does not expose these write tools. Life Restart sessions remain isolated from the browser page and cloud saves; both `browserBridge` and `browserPairing` are false, so they do not watch or take over an open game.