lorenzo/start kw integration pr 4 - #202
Draft
lorenzoberts wants to merge 6 commits into
Draft
Conversation
lorenzoberts
force-pushed
the
lorenzo/start-kw-integration-pr-4
branch
from
August 20, 2026 21:01
3ed3b77 to
c997ae7
Compare
This commit introduces KwActor with the full message surface and the immediate-reply contract for Start requests. The skeleton refuses unimplemented starts instantly, exposes idle status over a watch channel, and already routes RecordApply and GetReadiness through the shared history store and probes. This commit is part of the kw integration's step 4. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit makes StartBuild accept a job without waiting for it to finish. A detached task owns the process, broadcasts Idle to a terminal status, and cancel or shutdown kill the process group so the actor never wedges on a live job. This commit is part of the kw integration's step 4. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit spawns KwActor at startup and moves apply-history writes onto KwHandle so recording serializes with job state inside the actor. The handle is optional because the process module is unix-only; non-unix builds keep writing the store directly. Shutdown follows InputActor so a running job's process group is killed before the runtime tears down. This commit is part of the kw integration's step 4. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit makes Shutdown wait until kill escalation finishes, so tearing down the runtime cannot orphan kw's process group. Cancel escalates from SIGTERM to SIGKILL, and a process that exits before the signal lands keeps its real outcome instead of being reported as cancelled. The pre-job branch is recorded at accept time so RestorePreviousBranch has a target. This commit is part of the kw integration's step 4. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
…spawn This commit maps a post-cancel reap by whether the process was signal-terminated, so a build that exits on its own keeps its real outcome. The pre-job branch probe moves above spawn so it records the branch from before the job starts, not from after the process is already running. This commit completes the kw integration's step 4. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit drops plan citations and comments about KwOps, checkout, and deploy that this skeleton does not implement. StartDeploy still replies NotImplemented; the comment now says that. This commit is part of the kw integration's step 4. Signed-off-by: lorenzoberts <lorenzobs@usp.br> Co-authored-by: Cursor <cursoragent@cursor.com>
lorenzoberts
force-pushed
the
lorenzo/start-kw-integration-pr-4
branch
from
August 24, 2026 17:27
c997ae7 to
39b9c3f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack created with GitHub Stacks CLI • Give Feedback 💬