Skip to content

fix(ci): nest the registry checkout inside devlore-cli so the target is in-tree - #78

Merged
David-Noble-at-work merged 1 commit into
developfrom
fix/validate-target-layout
Aug 27, 2026
Merged

David-Noble-at-work merged 1 commit into
developfrom
fix/validate-target-layout

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

Unfreezes this repository. validate-yaml-schemas has been red for months; with noblefactor-ops'
stale star out of the way (#77), the real cause showed up in one line:

Error in file.is_dir: statat ..: path escapes from parent

Two constraints, pulling opposite ways

  • star resolves its extensions relative to the working directory — so the commands must run
    from devlore-cli, the only place com.noblefactor.devlore.* exists.
  • fsroot confinement refuses a target outside that working directory — and the registry sat
    beside devlore-cli, so --target had to climb out through ...

Checking this repository out inside devlore-cli satisfies both at once:

devlore-cli/                     <- working directory; extensions resolve here
  devlore-registry/              <- target, now in-tree

Order is load-bearing: devlore-cli is checked out first, or its checkout cleans away the nested one.

Verified before pushing

A real star, built from devlore-cli's develop, run against this repository's actual content:

devlore package validate   -> Validated 10 files across 1 types
devlore knowledge validate -> Validated 6 files across 1 types

The schemas were never the problem.

No devlore-cli change is required

Shipping star as a release artifact is still worth doing — star self install, and validating a
sync against the exact binary that generated it — but it was never the blocker it appeared to be.
That work stays in devlore-cli's docs/plans/goreleaser-ship-star.md, now as an improvement rather
than a prerequisite.

Still failing after this

update-indexes gets the same layout and its commit step gains a working-directory, but it will
continue to fail: it pushes directly into the protected branch that triggered it, which the ruleset
refuses. That is #75, untouched here. It is push-only and reports on no pull request, so it gates
nothing.

…is in-tree

validate-yaml-schemas has been red for months. With noblefactor-ops' stale star
out of the way (#77) the real cause was visible in one line:

    Error in file.is_dir: statat ..: path escapes from parent

Two constraints were pulling in opposite directions. star resolves its extensions
relative to the working directory, so the commands have to run from devlore-cli --
that is the only place com.noblefactor.devlore.* exists. But fsroot confinement
refuses a target outside that working directory, and the registry sat beside it,
so --target had to climb out through `..`.

Checking this repository out INSIDE devlore-cli satisfies both at once: the
working directory still finds the extensions, and the target is in-tree. Order
matters -- devlore-cli is checked out first, because its checkout would otherwise
clean away the nested one.

Verified before pushing, with a real star built from devlore-cli's develop against
this repository's actual content:

    devlore package validate   -> Validated 10 files across 1 types
    devlore knowledge validate -> Validated 6 files across 1 types

update-indexes gets the same layout, and its commit step gains a
working-directory, having previously run at the workspace root that was the
registry checkout.

No devlore-cli change is required. Shipping star as a release artifact remains
worth doing -- self-install, and validating a sync against the binary that
generated it -- but it was never the blocker it appeared to be.

update-indexes will still fail: it pushes directly into the protected branch that
triggered it, which the ruleset refuses. That is #75, untouched here.
@David-Noble-at-work
David-Noble-at-work merged commit 09b9b3b into develop Aug 27, 2026
2 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the fix/validate-target-layout branch August 27, 2026 23:11
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