CyberStrikeAI/internal
Sycun 9c6928074d fix: a rollback keeps the operator's edits, and a retry really compiles
The review found two failure paths that reported success for work the engine had
not done.

Rollback: it refused only when *non-protected* source files were modified, and
then ran `git reset --hard` to the previous commit - which discards every local
change to tracked files, not just the update's. Edits to roles/skills/tools (the
update itself keeps those via its own stash) and edits made after the update
were silently wiped, while Result said nothing: deployment.md's promise that
"work done afterwards is not swept away" did not hold. Rollback now copies every
protected file that differs right now into `.update-backup/rollback_<ts>/`
before the reset, sets the copies back after it, re-applies hand deletions, and
names what it kept in Result.KeptContent like an update does.

Retry: Apply merges and writes the state file before it builds, so a failed (or
toolchain-less) build leaves HEAD on the new commit with the old binary still in
place. The retry then took the `!snap.UpdateAvailable` no-op branch, aligned the
version and returned err=nil - the job was recorded as succeeded, the page said
"update finished", the CLI printed that source and binary were in place, and the
old executable kept running. The tree now carries a `.update-build-pending`
marker, written the moment the merge lands (and when an adoption commits to its
work tree) and cleared only after the new binary is in place. The no-op branch
reads it: with a toolchain it compiles and reports the build (commits=0,
binaryBuilt=true); without one it keeps refusing exactly like the first attempt,
so "install go and click again" is now a real instruction. The console stops
treating "nothing to pull" as "nothing to do" (the retry button stays live, the
confirm dialog and the done toast say the build is what will happen), and the
CLI's printResult no longer swallows the build-only result.

Both paths are covered by regression tests that fail on the pre-fix tree: two
rollback scenarios driven through real git (edit before and after the update, a
hand deletion), and four retry scenarios driven through a scripted go on PATH
(failed build, state-write failure, an adoption's failed build retried by the
next update, and no toolchain then toolchain).
2026-10-08 16:16:07 +08:00
..
agent fix: respect limited scan goals and retain asset completion instructions 2026-10-06 03:26:31 +08:00
agentfinalizer Fix finalization cleanup for pending tool executions 2026-08-23 19:57:17 +08:00
agents Add files via upload 2026-08-18 20:31:48 +08:00
app feat: make a restart part of the one-click update, and recover the page by itself 2026-10-07 22:53:32 +08:00
attackchain Add files via upload 2026-08-18 20:36:34 +08:00
audit Add files via upload 2026-08-18 20:36:34 +08:00
authctx Add files via upload 2026-08-18 20:17:38 +08:00
c2 fix: close expired offline commands and serialize TCP dispatch 2026-10-06 03:41:37 +08:00
config feat: carry the release version across an update, so the header matches the code 2026-10-08 13:57:11 +08:00
database fix: authenticate individual HTTP sessions for tasks and files 2026-10-06 03:37:39 +08:00
einomcp Add files via upload 2026-08-18 20:36:34 +08:00
einoobserve Add files via upload 2026-08-18 20:36:34 +08:00
handler feat: make the update source one repository address, the official repo by default 2026-10-08 13:46:14 +08:00
hitl feat: add TypeSafe Jev as HITL audit backend 2026-09-22 21:15:53 +08:00
knowledge Add files via upload 2026-08-18 20:31:48 +08:00
llm Add files via upload 2026-08-18 20:34:53 +08:00
logger feat: persist diagnostic logs with daily rotation and retention 2026-09-08 14:41:46 +08:00
mcp fix: enforce configured workflow tool execution timeouts 2026-10-06 03:24:14 +08:00
monitor Add files via upload 2026-08-18 20:17:38 +08:00
multiagent fix: avoid duplicate summarization token limits 2026-09-23 18:02:00 +08:00
openai fix: normalize SSE error responses for Eino models 2026-09-14 16:34:22 +08:00
processguard feat: manage task process lifetimes and preserve turn history 2026-09-16 17:52:58 +08:00
project Add files via upload 2026-08-18 20:34:53 +08:00
projectprompt Add files via upload 2026-08-18 20:36:34 +08:00
reasoning Respect OpenAI reasoning profile for DeepSeek-named models 2026-08-24 13:55:07 +08:00
robot Add files via upload 2026-08-18 20:17:38 +08:00
runlease feat: manage task process lifetimes and preserve turn history 2026-09-16 17:52:58 +08:00
security feat: update this installation's own source in one action 2026-10-07 12:07:26 +08:00
skillpackage Add files via upload 2026-08-18 20:31:48 +08:00
storage feat: add runtime storage cleanup with per-category retention (#310) (#313) 2026-09-25 14:46:23 +08:00
termout fix: startup banner hardcodes 127.0.0.1 regardless of server.host (#307) 2026-09-13 15:27:38 +08:00
toolguard feat: add configurable tool call blocking and monitoring 2026-09-08 09:44:32 +08:00
tooloutput Add files via upload 2026-08-18 20:36:34 +08:00
typesafe feat: add TypeSafe Jev as HITL audit backend 2026-09-22 21:15:53 +08:00
update fix: a rollback keeps the operator's edits, and a retry really compiles 2026-10-08 16:16:07 +08:00
vision Add files via upload 2026-08-18 20:36:34 +08:00
workflow fix: enforce configured workflow tool execution timeouts 2026-10-06 03:24:14 +08:00