Skip to content

VM_CONTACT: accept the preserved workspace root in U4 - #89

Merged
erinepshovel-code merged 4 commits into
mainfrom
runbook/u4-preserved-root-guard
Oct 17, 2026
Merged

erinepshovel-code merged 4 commits into
mainfrom
runbook/u4-preserved-root-guard

Conversation

@erinepshovel-code

Copy link
Copy Markdown
Contributor

U4's workspace guard refused an upgrade whose preserved root exists but is empty. Now:

  • the preserved (inventoried) root, derived from the U1 service-user home, must exist and be a directory, empty or not;
  • only a root changed in target.json must also be nonempty.

Docs only. Not for merge without Erin.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T17:43:56.830786Z 338a316 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 84b23b4a07

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

# A preserved root (the inventoried one) may be empty; a newly chosen root must hold data.
preserved = root == pathlib.Path(state['home']).parent.resolve()
require(root.is_dir(), 'workspace must exist and be a directory')
require(preserved or any((p.name != '.vm-mcp-home' for p in root.iterdir())), 'a changed workspace root must exist and be nonempty')

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Make U5 accept the preserved empty workspace

When the inventoried root is empty or contains only .vm-mcp-home, this new condition lets U4 stop the services and run the installer, but the mandatory U5 preservation block still unconditionally fails its workspace not empty check at line 531. Consequently, the exact upgrade scenario this change intends to support cannot complete acceptance and fails only after the deployment has already been modified; U5 needs the same preserved-root exception.

Useful? React with 👍 / 👎.

@erinepshovel-code
erinepshovel-code merged commit 3d74cf1 into main Oct 17, 2026
5 checks passed
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