Skip to content

Probe and offer Visual evidence host tool installation in Setup - #2286

Merged
JacobStephens2 merged 4 commits into
issue-2023from
issue-2283
Nov 19, 2026
Merged

JacobStephens2 merged 4 commits into
issue-2023from
issue-2283

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

Setup answers
  save User config and any Credentials
  probe gh >= 2.103.2, ffmpeg, Playwright Chromium
    PASS → no install question
    WARN → show exact OS repair commands
      terminal + y → foreground installation → probe again
      N / Enter / no terminal → leave host unchanged
  retain saved files on installer failure or interruption

Updates the user manual, generated manual and hand-written Setup introductions. Probes and installers cross Setup's Outside effects interface; deterministic tests use fake host tools and package managers.

Closes #2283

Evidence

Execution evidence

Seams: Setup through Outside; compiled thirdshift setup through Scenario, including a real PTY and fake host executables.

  • Before: cargo test --test setup visual_evidence_without_a_terminal_warns_after_saving_and_never_installs failed: 0 passed; 1 failed; stderr only reported thirdshift: wrote the User config ... without the required Visual evidence status.
    After: the same command passed: 1 passed; 0 failed.
  • Before: cargo test --test setup visual_evidence_installer_stops_for_a_signal_sent_only_to_setup failed with the terminal command did not exit after signaling Setup during installation.
    After: the Visual evidence integration run passed this regression, including terminal restoration and saved settings.
  • Before: review regression cargo test --test setup visual_evidence_accepts_existing_playwright_headless_shell -- --exact failed with Visual evidence: WARN (need Playwright Chromium executable).
    After: the identical command passed: 1 passed; 0 failed. The retained regression covers the Spec finding.
  • Setup unit tests: 54 passed; 0 failed. Visual evidence integration tests cover unattended status, the gh version threshold, cache executables, default-No consent after saving Credentials, foreground installation and re-probing, installer failure, Ctrl-C, and signaling Setup alone.
  • npm run docs:check --prefix site: passed. npm test --prefix site: passed.
  • scripts/affected-tests refs/remotes/origin/issue-2023: site checks passed. Its local Rust run had compiled the PTY fixtures before their final prompt-answer updates and stopped at the unanswered install prompt. Rebuilt the final fixtures and ran cargo test --test setup --test muse_sessions --test opencode_sessions --test setup_lifetime --test setup_offer: 85 passed, 0 failed. Full Rust coverage passed in CI for 694c0479; reused that result instead of repeating a full run on an already covered head. The local full run also passed all 1,976 active unit tests before reaching the stale fixture.

Visual evidence

Paired captures of the manual, homepage Setup introduction and How it works Setup introduction, at matching desktop and mobile viewports. Published as GitHub attachments per ADR 0034.

Before — User manual Setup, desktop 1440×900

Before User manual Setup at desktop 1440×900

After — User manual Setup, desktop 1440×900

After User manual Setup at desktop 1440×900

Before — User manual Setup, mobile 390×844

Before User manual Setup at mobile 390×844

After — User manual Setup, mobile 390×844

After User manual Setup at mobile 390×844

Before — Homepage Setup, desktop 1440×900

Before Homepage Setup at desktop 1440×900

After — Homepage Setup, desktop 1440×900

After Homepage Setup at desktop 1440×900

Before — Homepage Setup, mobile 390×844

Before Homepage Setup at mobile 390×844

After — Homepage Setup, mobile 390×844

After Homepage Setup at mobile 390×844

Before — How it works Setup, desktop 1440×900

Before How it works Setup at desktop 1440×900

After — How it works Setup, desktop 1440×900

After How it works Setup at desktop 1440×900

Before — How it works Setup, mobile 390×844

Before How it works Setup at mobile 390×844

After — How it works Setup, mobile 390×844

After How it works Setup at mobile 390×844

Review coverage

Independent Standards and Spec reviewers compared against refs/remotes/origin/issue-2023 (6d8afeee51f1af1e142f00d52c2783f479bb512e) and inspected the follow-up fix. Standards: 0 findings. Spec: 1 finding, reproduced with its exact regression command and fixed; no additional findings.

Both axes read all eleven changed files: src/setup.rs, src/setup/visual_evidence.rs, tests/setup.rs, tests/muse_sessions.rs, tests/opencode_sessions.rs, tests/setup_lifetime.rs, tests/setup_offer.rs, docs/guide.md, site/docs/index.html, site/index.html, and site/how-it-works/index.html. The four additional PTY fixtures explicitly decline the new install offer. No changed file was left unread. No generated output was excluded; the generated manual hunk was read. Reports and final files-read lists are retained in .thirdshift-review-qeh6ft/standards.md and .thirdshift-review-qeh6ft/spec.md, with counts in summary.json.

Unaddressed findings

Standards

None.

Spec

None. The existing Playwright headless-shell layout finding was fixed and its regression retained.

Security

None. The working-directory .npmrc and node_modules npx hijack finding in visual_evidence::install was fixed in an isolated 0700 directory under home/.thirdshift, and its regression tests in tests/setup.rs were retained.

Security review outcome

No unaddressed introduced findings.

Merge Danger

Door: two-way

Setup changes can be reverted. An opted-in installation changes host packages and GitHub's apt repository configuration; Setup prints those commands before consent.

Blast Radius: Setup

Host installation is opt-in on a terminal. Tests run stand-ins, without live package-manager or browser downloads.

Built with codex codex-cli 0.167.2 · gpt-6.1-sol · xhigh

@JacobStephens2 JacobStephens2 added the in-progress A Claim: thirdshift has taken this issue label Nov 18, 2026
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