Skip to content

feat(setup): add versioned TUI engine artifacts - #224

Merged
ss-o merged 3 commits into
mainfrom
feature-222
Sep 20, 2026
Merged

ss-o merged 3 commits into
mainfrom
feature-222

Conversation

@ss-o

@ss-o ss-o commented Sep 20, 2026

Copy link
Copy Markdown
Member

The guided setup planner currently requires clients to understand human output, internal paths, plan hashes, and partial failure behavior. This adds a versioned machine interface so a future TUI can discover the environment, review an exact plan, and report phase results without duplicating installer logic.

Changes

  • add bounded describe --output DIR discovery with atomic directory artifacts
  • expose stable operations and warnings in deterministic plan artifacts
  • add optional apply --result DIR artifacts with stable error codes and exit statuses
  • preserve zunit only as a compatibility profile for existing installations
  • document the engine contract and future Go TUI boundary
  • cover discovery, plan identity, drift, locking, network failures, symlink refusal, and legacy migration
  • synchronize with the installer consumer contract introduced on main
  • publish and pin the canonical organization skill through docs(zi-install): document machine setup interface .github#651 at ce74af22db3af827eed9558596275cdf3fb07505

Installer contract impact

[installer-impact:cli-profile-behavior] updated here: discovery offers loader and annex; detected zunit remains compatibility-only.
[installer-impact:output-status-messages] acknowledged: human-readable output remains available but is outside the machine contract.
[installer-impact:zshrc-setup-entrypoint] acknowledged: the generated entrypoint and managed block remain engine-owned.
[installer-impact:companion-asset-checksum] updated here: the checksum records the changed verified setup.sh asset.
[installer-impact:plan-apply-receipts] updated here: plans expose operations and warnings, and apply can publish phase results.
[installer-impact:configuration-targets] acknowledged: target resolution and mutation remain owned by the existing engine.

The Wiki, organization install skill, and Zi README consumers were re-read against the changed surfaces. Their exact reviewed revisions are recorded in the v2 contract manifest. Internal consumers were refreshed in this pull request.

Validation

  • sh ./tests/installers.sh
  • zsh tests/installer-contract-impact.zsh
  • zsh scripts/installer-contract-evidence.zsh
  • trunk check public/sh/setup.sh tests/installers.sh public/checksum.txt docs/zi-setup-tui-contract.md docs/README.md
  • sha256sum -c public/checksum.txt
  • sh -n public/sh/setup.sh
  • sh -n tests/installers.sh
  • git diff --check

Part of #222.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 20, 2026

Copy link
Copy Markdown

Deploying src with  Cloudflare Pages  Cloudflare Pages

Latest commit: 70944a8
Status: ✅  Deploy successful!
Preview URL: https://c3f1f12e.zi-src.pages.dev
Branch Preview URL: https://feature-222.zi-src.pages.dev

View logs

@ss-o
ss-o merged commit 8da1876 into main Sep 20, 2026
16 checks passed
@ss-o
ss-o deleted the feature-222 branch September 20, 2026 14:30
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