Skip to content

lorenzo/start kw integration pr 3 - #201

Draft
lorenzoberts wants to merge 9 commits into
lorenzo/start-kw-integration-pr-2from
lorenzo/start-kw-integration-pr-3
Draft

lorenzo/start kw integration pr 3#201
lorenzoberts wants to merge 9 commits into
lorenzo/start-kw-integration-pr-2from
lorenzo/start-kw-integration-pr-3

Conversation

@lorenzoberts

Copy link
Copy Markdown
Collaborator

Stack created with GitHub Stacks CLIGive Feedback 💬

@lorenzoberts
lorenzoberts force-pushed the lorenzo/start-kw-integration-pr-3 branch from 70722d1 to 26aa543 Compare August 20, 2026 21:01
lorenzoberts and others added 9 commits August 24, 2026 14:20
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
lorenzoberts force-pushed the lorenzo/start-kw-integration-pr-3 branch from 26aa543 to f80952c Compare August 24, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant