Repository navigation
corecrew: adopt documents stage; real symlinks in Git Bash - #4
Conversation
On Windows Git Bash, ln -s copies unless MSYS has winsymlinks:nativestrict. So adopt, new-project and prepare made CLAUDE.local.md and AGENTS.md plain copies, and adopt converted the wiki inside a copy of the staged folder: the staged docs/INDEX.md was lost, and the non-recursive rm of that copy left <Core>/.adopt.<name>.* behind. - lib-scaffold.sh: symlink() sets winsymlinks:nativestrict and fails rather than copy; symlinks_work() probes it. link_file_to_claude uses it. - adopt.sh: refuses up front when no symlink can be made (Developer Mode); the staged copy is converted in place, with the INDEX title from WIKI_MIGRATE_NAME instead of a link named after the project. - test_adopt.sh: an ln stub that copies the way Git Bash does. Co-Authored-By: Claude Opus 5.5 <[email protected]>
New references/adopt-docs.md, step 9 of adopt.md: the private CLAUDE.md, brief, architecture and ADR 001 are filled in from the repo (engineer, then verifier; nothing invented); the public side is audited against the Core standards, for leftovers of older private setups and for files not in the project's language; each item the user picks runs as its own task chain. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 284413d490
ℹ️ 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".
| - **Commit** the Core only: `"<scripts>/save" "Fill <name> pages from the repo"` (release.md | ||
| postconditions 5–7 for this one commit). Show the user what was filled and the `TODO` list. |
There was a problem hiding this comment.
Check for unrelated Core changes before filling private pages
When the Core already contains uncommitted changes under shared paths such as knowledge/ or standards/, this new save call commits those unrelated files along with the adopted project's pages. Adopt explicitly skips Start's clean-tree check, and adopt.sh checks only the source repository's status; its own Core commit leaves unrelated shared changes untouched. However, save stages all paths returned by core_paths, not just <name>/. Reproducing this with an untracked knowledge/unrelated.md includes that file in the “Fill … pages” commit. Require the normal Core clean-tree preflight before the engineer starts, or use a commit operation restricted to the adopted project's files.
Useful? React with 👍 / 👎.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Read CONTRIBUTING.md first: it has the rules, the tests and the release steps.
What and why
Fix (f30cc7b). On Windows Git Bash,
ln -scopies unlessMSYShaswinsymlinks:nativestrict. That one cause produced three defects seen when DIIISPL was adopted:CLAUDE.local.mdandAGENTS.mdwere plain copies (in adopt, new-project and prepare).docs/INDEX.mdwas lost.<Core>/.adopt.<name>.*behind (rm: cannot remove ...: Is a directory).What changed:
symlink()andsymlinks_work()inlib-scaffold.sh: they make a real link or fail, never a copy.wiki-migrate.shgets the INDEX title from the newWIKI_MIGRATE_NAME. On Windows, even a native link to a folder brokemkdirthrough it.test_adopt.sh: anlnstub that copies the way Git Bash does. It had 10 failures before the fix; all 12 checks pass after it.Feature (284413d). adopt step 9 and the new
references/adopt-docs.md. The owner agreed the scope beforehand.CLAUDE.md(Stack, Commands,check:), brief, architecture and ADR 001 are filled in from the repo. engineer writes them, then verifier checks every sentence has a source; nothing is invented./corecrew:taskchain, with its own commit.Checks
bash tests/run.sh: not run in full. It was run on Windows Git Bash only; CI is the gate.main(172 failures there, 103 on this branch). The lines that differ come from the test fixtures' own danglingln -s, which Git Bash cannot make.|, which Windows does not allow.claude plugin validate: not run here.scripts/commit-subjects.sh --rangepasses).Release rule
## [Unreleased]in CHANGELOG.md.Follow-up: the hook hints in
messages.shtell users to runln -s, which still copies in Git Bash.🤖 Generated with Claude Code