kimi-code/apps/vis
Haozhe a020946916
refactor(agent-core-v2): remove the staleGuard feature (#3517)
* refactor(agent-core-v2): remove the staleGuard feature

Drop the read-before-edit runtime guard: Edit/Write executions are no
longer vetoed when the target file was never read or its mtime changed
since the last read, and successful Read/Edit/Write no longer refresh a
recorded mtime. Removes the staleGuard replayable state key and the
staleGuard.recorded / staleGuard.cleared durable wire events; old wires
keep replaying through the unknown-type skip path. apps/vis keeps
projecting and rendering those historical records via locally declared
legacy record types.

* fix(agent-core-v2): skip retired wire record types silently during restore

Restore reports every journal record whose type has no registered event
class through onUnexpectedError. Sessions written before the staleGuard
removal can hold a staleGuard.recorded entry per successful
Read/Edit/Write, so loading one floods the log with WireError stacks.
Keep a retired-type list of record types that were once durable
vocabulary; restore skips them without reporting, while genuinely
unknown records stay on the error path.
2026-09-03 17:51:10 +08:00
..
scripts refactor(vis): rewrite for new agent-core protocol (#34) 2026-05-26 17:57:49 +08:00
server refactor(agent-core-v2): remove the staleGuard feature (#3517) 2026-09-03 17:51:10 +08:00
web refactor(vis): migrate vis from agent-core v1 to agent-core-v2 (#3438) 2026-09-02 00:00:29 +08:00
package.json refactor(vis): migrate vis from agent-core v1 to agent-core-v2 (#3438) 2026-09-02 00:00:29 +08:00