Repository navigation
Done
Labels
area/scaffoldArea: Install path — codev init/adopt/update/doctor, codev-skeleton, four-tier resolver
Description
Problem
codev update reports two conflicts on a project nobody has edited. Every adopter's update says ! 2 conflicts; without --agent it would start a merge session over nothing.
Found in project 1951's verify step by the builder; reproduced by the architect. It is not caused by that project: nothing between the previous installed build and the current one touches the templates, update.ts or managed-block.ts.
Reproduce
In an empty directory outside any repository:
codev init fresh --yes
cd fresh
codev update --dry-run
Output on a build from main at 6cb29ec8e:
! (conflict) CLAUDE.md
New version would be saved as: CLAUDE.md.codev-new
! (conflict) AGENTS.md
New version would be saved as: AGENTS.md.codev-new
+ (hot-tier) would create missing codev/resources/{arch,lessons}-critical.md
+ (cold-tier) would create missing codev/resources/{arch,lessons-learned}.md
~ (hot-tier) would refresh CLAUDE.md / AGENTS.md managed block
Summary:
! 2 conflicts
The project was initialized seconds earlier by the same build and nothing in it was changed.
What is wrong
- False conflicts.
CLAUDE.mdandAGENTS.mdare reported as conflicts. In a real run (codev update --agent), the builder saw.codev-newfiles written that are byte-identical to the files beside them (a diff of 0 lines). Likely cause, not proved: the comparison is made against the template before the hot-tier managed block is rendered into it, so a file thatinitwrote never matches. - Dry run disagrees with the real run.
--dry-runsays it would createcodev/resources/{arch,lessons}-critical.mdand{arch,lessons-learned}.md, whichinitalready wrote; the real run prints no such line.
Ask
- Find the cause; do not assume the one above.
- An unedited
CLAUDE.md/AGENTS.mdis reported up to date, with no.codev-new. A file the adopter really edited outside the managed block is still a conflict and still keeps the edit (that guard works today for skills and must keep working here). - A
.codev-newidentical to the file beside it is never written. --dry-runprints what the real run would do, no more and no less, for the hot-tier and cold-tier lines.- Tests: init then update on an untouched project gives zero conflicts and zero
.codev-new; the same after an edit outside the managed block gives one conflict with the edit kept; dry-run and real-run reports agree. - Verify with the three commands above on an installed build.
Metadata
Metadata
Assignees
Labels
area/scaffoldArea: Install path — codev init/adopt/update/doctor, codev-skeleton, four-tier resolver
Activity
waleedkadous commentedon Nov 25, 2026
On it! Working on a fix now.
[Bugfix #1982] Fix: codev update compares root docs with the template…
[Bugfix #1982] Test: init then update gives no root-doc conflicts; ed…
[Bugfix #1982] Thread: fix and verification notes
[Bugfix #1982] Fix: CMAP — any project name in the heading still matc…
[Bugfix #1982] Test: a renamed checkout is up to date; a resolved .co…
[Bugfix #1982] Fix: CMAP — a CRLF checkout still matches; a pending c…
[Bugfix #1982] Test: a CRLF checkout is up to date; a renamed checkou…
[Bugfix #1982] Thread: CMAP rounds and final verification
[Air #1985] feat: replace an unedited CLAUDE.md / AGENTS.md from an o…