Skip to content

docs(state): say when the legacy-state warning appears; point at the migrate dry run - #305

Open
lidge-jun wants to merge 1 commit into
devfrom
docs/state-legacy-warning-scope
Open

lidge-jun wants to merge 1 commit into
devfrom
docs/state-legacy-warning-scope

Conversation

@lidge-jun

Copy link
Copy Markdown
Owner

Codex review on #304 (#304 (comment)) pointed out that structure/80_state_layout.md overstated the legacy-state warning. It said cxc state path and cxc plan init warn about any state left in the checkout. In fact resolveStateRoot warns only when .codexclaw/ledger.jsonl or .codexclaw/goalplans/ exists. A checkout that holds only devlog/, evidence or interview ledgers gets no warning, so a user could wrongly conclude nothing needs migrating.

This change describes exactly when the warning appears and tells users to run the cxc state migrate dry run to see everything that would move. I left the detection itself unchanged because many repos track their own devlog/, and a warning keyed on it would fire for every checkout.

Docs-only change. npm run gate passes.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 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-19T23:58:26.248201Z 5496119 PR opened
ℹ️ 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.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 19, 2026

This branch has not been deployed

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

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant