Skip to content

Break the bootstrap cycle: deploying base must not require base #477

Open

Description

@David-Noble-at-work

Problem

On a machine with nothing installed, building devlore-cli from source cannot start. Its quality gate needs the base layer: the Makefile's powershell-lint finds it through writ repo list, or through BASE_LAYER set to a checkout of noblefactor-engprod (formerly noblefactor-ops), and stops with "no base layer" otherwise; and devlore-cli's scripts source Declare-BashScript from it. But the base layer is deployed by writ, which devlore-cli builds. Building needs the base layer, the base layer needs writ, and writ needs the build.

Solution, if known

Likely, though not yet proven on an empty machine: the first install takes writ from a release, through install.sh, which carries its own copies of the Declare-BashScript functions it uses rather than sourcing them; writ then registers and deploys the base layer; only then is devlore-cli built from source.

Outstanding questions

Evidence of completion

Evidence that the problem is solved, with test coverage:

  • a run on a machine with no layers deployed, such as a clean virtual machine or container, that follows the written order to a deployed base layer and a built devlore-cli; and
  • a test that walks that path, so that a change that brings the cycle back fails CI.

Before this issue closes, a comment on it links both.

Plan and design documents

Kind Document
Plan Not yet opened
Related #475, the base layer; #483 and #484, consumers stating the base-layer prerequisite

Activity

  1. changed the issue type fromtoon Nov 7, 2026
  2. David-Noble-at-work commented on Nov 7, 2026

    @David-Noble-at-work
    ContributorAuthor

    Made a bug on 2026-11-06, in the Area review of NobleFactor/noblefactor-engprod#452: it describes something that fails today, since on a new machine the build stops with "no base layer". Area Product, Severity Medium (only a new machine hits it), Priority Medium. What this body called its deliverable is its evidence of completion, what will be true when the bug is fixed, so that heading is renamed. Its parent, #475, has no Area yet; if it turns out Engineering, this bug cannot stay under it.

  3. David-Noble-at-work commented on Nov 7, 2026

    @David-Noble-at-work
    ContributorAuthor

    Moved on 2026-11-06 from #475, the base layer, which is Engineering, to #798, install.sh and install.ps1 install lore, star and writ and take the three layers without requiring them, which is Product: a product bug sits under a product feature, and its likely fix is the first install going through install.sh. In the Area review of NobleFactor/noblefactor-engprod#452.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions