lorenzo/start kw integration pr 3 - #201
Draft
lorenzoberts wants to merge 9 commits into
Draft
Conversation
lorenzoberts
force-pushed
the
lorenzo/start-kw-integration-pr-3
branch
from
August 20, 2026 21:01
70722d1 to
26aa543
Compare
This commit extends the file-system abstraction with directory listing so callers can discover kernel images under arch boot directories. Entry kind stays on the existing is_dir/is_file methods, keeping the new surface minimal. This commit is part of the kw integration's step 3. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit adds the first tree-side readiness probes: a parser for kw's key=value config files, an is_kernel_root check matching kw's own file set, and a build-arch reader that returns the literal arch= value. An unset arch maps to None so callers glob rather than guess an architecture. This commit is part of the kw integration's step 3. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit adds env-aware image discovery. The active kw env's O= path is resolved from .kw/env.current using kw's cache layout, and the newest *Image under the matching arch boot directory is selected. Trees without an arch= line glob every arch boot dir so they are not false-negative. This commit is part of the kw integration's step 3. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit extends the history store with one build record per tree and branch, including failed attempts. A failed build on one branch does not clobber another branch's successful record, and a stored failure can be distinguished from having no record at all. This commit is part of the kw integration's step 3. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit composes the tree, image, history, and kw-binary probes into a single readiness snapshot. The version floor is advisory because kw's shipped VERSION file is stale; deploy-alone refuses unless a successful build record still matches the current tree, HEAD, env, and image. This commit is part of the kw integration's step 3. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit adds a soft startup warning when kw is missing or its version cannot be confirmed as recent enough. Lore review still works without kw; the check never blocks launch, matching the advisory version policy. This commit is part of the kw integration's step 3. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit fixes env output-dir resolution when XDG_CACHE_HOME is set but empty, which previously produced a cwd-relative path and poisoned the following probes. Deploy-alone now also requires the tree to still be ready, and the snapshot carries the latest build across branches. This commit is part of the kw integration's step 3. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit loads kw_build_history.json once when composing a readiness snapshot, then derives the branch-matched and latest-across-branches records from that load, so the file is not parsed twice per snapshot. This commit completes the kw integration's step 3. Signed-off-by: lorenzoberts <lorenzobs@usp.br>
This commit drops plan section numbers, KwOps, and "later step" comments. The dead_code allowances stay where this change still has no production caller; the comments around them now describe the code as it is. This commit is part of the kw integration's step 3. Signed-off-by: lorenzoberts <lorenzobs@usp.br> Co-authored-by: Cursor <cursoragent@cursor.com>
lorenzoberts
force-pushed
the
lorenzo/start-kw-integration-pr-3
branch
from
August 24, 2026 17:27
26aa543 to
f80952c
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 💬