Skip to content

corecrew: adopt documents stage; real symlinks in Git Bash - #4

Merged
rstrlnkv merged 3 commits into
mainfrom
claude/youthful-mclaren-24cb98
Nov 13, 2026
Merged

rstrlnkv merged 3 commits into
mainfrom
claude/youthful-mclaren-24cb98

Conversation

@rstrlnkv

Copy link
Copy Markdown
Owner

Read CONTRIBUTING.md first: it has the rules, the tests and the release steps.

What and why

Fix (f30cc7b). On Windows Git Bash, ln -s copies unless MSYS has winsymlinks:nativestrict. That one cause produced three defects seen when DIIISPL was adopted:

  • CLAUDE.local.md and AGENTS.md were plain copies (in adopt, new-project and prepare).
  • adopt converted the wiki inside a copy of the staged folder, so docs/INDEX.md was lost.
  • adopt left <Core>/.adopt.<name>.* behind (rm: cannot remove ...: Is a directory).

What changed:

  • symlink() and symlinks_work() in lib-scaffold.sh: they make a real link or fail, never a copy.
  • adopt refuses before changing anything when no symlink can be made, and says to turn on Developer Mode.
  • The staged copy is now converted in place: wiki-migrate.sh gets the INDEX title from the new WIKI_MIGRATE_NAME. On Windows, even a native link to a folder broke mkdir through it.
  • New test part in test_adopt.sh: an ln stub 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.

  • Private pages: 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.
  • Read-only audit: the "How to check" commands of the Core standards, leftovers of older private setups, and files not in the project's language.
  • Rewrite: each item the user picks runs as its own /corecrew:task chain, 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.
    • Pass: task_skill, docs_paths, sizes, docs_claims, portability, no_personal, and the new adopt part.
    • adopt, lib_layout, prepare, scaffold and wiki_migrate already fail on Windows on main (172 failures there, 103 on this branch). The lines that differ come from the test fixtures' own dangling ln -s, which Git Bash cannot make.
    • wiki_texts fails because a test path contains |, which Windows does not allow.
  • claude plugin validate: not run here.
  • Portable bash (test_portability passes).
  • Commit subjects (scripts/commit-subjects.sh --range passes).
  • shellcheck: not installed here.

Release rule

  • corecrew lines under ## [Unreleased] in CHANGELOG.md.
  • No version bump or tag.

Follow-up: the hook hints in messages.sh tell users to run ln -s, which still copies in Git Bash.

🤖 Generated with Claude Code

rstrlnkv and others added 2 commits November 13, 2026 01:11
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]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T22:20:04.710591Z 284413d 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.

@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: 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".

Comment on lines +32 to +33
- **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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

@rstrlnkv
rstrlnkv merged commit 21473fc into main Nov 13, 2026
10 checks passed
@rstrlnkv
rstrlnkv deleted the claude/youthful-mclaren-24cb98 branch November 15, 2026 08:17
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