mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
`normalizeAgent` rewrote the first `model:` frontmatter line when one was present, so an agent that pins a model in one toolchain and omits it in another normalized to different text and looked like body drift. The bug is latent here rather than firing: every agent whose `.claude` copy omits `model:` currently has a `.cursor` copy that omits it too. Pinning a Cursor-only model on any of them turns the gate red for a non-reason — reproduced by adding `model: composer-2.5-fast` to `.cursor/agents/code-quality.md`, which fails before this change and passes after it. The same defect was failing on seedit's master, where those Cursor copies do pin a model. Strip the frontmatter `model:` line instead of rewriting it. Scoping the strip to the leading frontmatter block keeps a body line that begins with "model:" comparable, so it is still reported as drift. Verified that injected body drift is still caught.