You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3e55bef
Browse filesBrowse the repository at this point in the historyBrowse files
feat: Windows line-ending hardening — .gitattributes pins *.sh + .githooks/* to LF (v4.20.2)
A Copilot Windows-feasibility check confirmed the bootstrap works via Git Bash but missed the CRLF trap: with no .gitattributes, a Windows clone (core.autocrlf=true) rewrites *.sh + .githooks/* to CRLF and bash fails ('bad interpreter: /usr/bin/env bash^M'). Adds .gitattributes (root + templates/) + ENABLE Step 7b + a 4.20.1->4.20.2 rung to install/merge it additively. Makes the bootstrap + hooks robust on Windows (Git Bash / WSL).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -214,6 +214,7 @@ it in place** — additively, never destructively.
214
214
| 4.19.0 |**Vendor-neutral ritual triggers:** the after-session ritual no longer depends on the agent self-triggering (which failed in practice — skipped even with Claude; Copilot-only teams had no triggers). Enable installs a committed **`.githooks/post-commit`** (auto-stubs a session log when a commit does real work without one; re-syncs adapters) — **agent-activated** via `core.hooksPath`, zero manual user step — plus a **CI floor** (`.github/workflows/agent-memory.yml`: `memory-lint` + advisory session-log check on push/PR, zero per-user setup). Advisory by default (opt-in `AGENT_MEMORY_STRICT` gate); `no-build-step-agent-run` holds (git/CI invoke them; the tool runs nothing). Honest limit: git can't auto-run hooks on a bare clone → CI is the backstop. Design: `docs/DESIGN-ritual-triggers.md`|
215
215
| 4.20.0 |**First-run init for fresh clones:** a Copilot dogfood showed a fresh clone self-initializes the *memory* bootstrap but not the gitignored adapters or the (unactivated) hook. Adds **`.githooks/init.sh`** (one idempotent command: regenerate adapters + activate the hook) + an **`AGENTS.md` self-init note** so the agent does it on its first session — one step (or one human command) instead of two. CI stays the zero-config floor |
216
216
| 4.20.1 |**Self-init in `copilot-instructions.md`:** v4.20.0's self-init reached Claude but not Copilot CLI (its `start` front-loads `copilot-instructions.md` + summarizes). Folds the first-run init into the top of `copilot-instructions.md` so Copilot runs `bash .githooks/init.sh` before summarizing; the `init.sh` fallback + CI floor are unchanged |
217
+
| 4.20.2 |**Windows line-ending hardening:** a `.gitattributes` pins `*.sh` + `.githooks/*` to LF so Git for Windows (`core.autocrlf=true`) doesn't rewrite them to CRLF and break bash (`bad interpreter: …^M`). Installed/merged into targets additively. Makes the bootstrap + hooks robust on Windows (Git Bash / WSL), not luck-of-the-default. From a Copilot Windows-feasibility check |
217
218
218
219
219
220
When you "AI enable" a repo that's already on an older version, Mode B detects the
Copy file name to clipboardExpand all lines: UPGRADE.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,7 @@ The current tool version lives in the root **`VERSION`** file (semver):
65
65
| 4.19.0 |**Vendor-neutral ritual triggers (MINOR):** the after-session ritual no longer relies on the agent self-triggering. Enable installs a committed **`.githooks/post-commit`** (auto-stubs a session log when a commit does real work without one; re-syncs adapters), **agent-activated** via `git config core.hooksPath .githooks` (no manual user step), plus a **CI floor** (`.github/workflows/agent-memory.yml`: `memory-lint` + advisory session-log check on push/PR, zero per-user setup). Advisory by default (opt-in `AGENT_MEMORY_STRICT=1` gate); `no-build-step-agent-run` holds (git/CI invoke them; the tool runs nothing). Honest limit: git can't auto-run hooks on a bare clone → CI is the backstop. From real client-team pain (ritual not followed even with Claude; Copilot-only teams had no triggers) + the zero-manual/untrained-user constraint; design `docs/DESIGN-ritual-triggers.md`|
66
66
| 4.20.0 |**First-run init (MINOR):** closes the fresh-clone activation gap (Copilot dogfood: the memory bootstrap self-initializes, but a clone has the gitignored adapters **absent** + the hook **unactivated**). Adds **`.githooks/init.sh`** (one idempotent command: regenerate adapters + `git config core.hooksPath .githooks`) + an **`AGENTS.md` self-init note** so the agent does it on its first session. One agent-run step (or one human command) instead of two; CI stays the zero-config floor |
67
67
| 4.20.1 |**Self-init in `copilot-instructions.md` (PATCH):** v4.20.0's self-init reached Claude (acts on `AGENTS.md`) but **not Copilot CLI** (its `start` front-loads `copilot-instructions.md` + summarizes — so on a fresh clone the hook stayed inactive + adapters absent). Folds the first-run init into the **top of `copilot-instructions.md`** so Copilot runs `bash .githooks/init.sh` before summarizing. Re-sync that one file; the `init.sh` fallback + CI floor are unchanged |
68
+
| 4.20.2 |**Windows line-ending hardening (PATCH):** adds a **`.gitattributes`** pinning `*.sh` + `.githooks/*` to **LF**, so Git for Windows (`core.autocrlf=true`) doesn't rewrite them to CRLF on checkout (which breaks bash: `bad interpreter: /usr/bin/env bash^M`, silently disabling the hook + `init.sh`). Installed/merged into targets additively (like the `.gitignore` block). Makes the bootstrap + hooks robust on Windows (Git Bash / WSL), not luck-of-the-default. From a Copilot Windows-feasibility check |
68
69
69
70
70
71
Each enabled repo records what it is on in **`.agent/version.md`**:
@@ -1133,3 +1134,19 @@ acting on the AGENTS.md self-init (hook stayed inactive, adapters absent).
1133
1134
and `mode`.
1134
1135
3.**Report**: `copilot-instructions.md` now carries the first-run self-init (Copilot acts before
1135
1136
summarizing); the `bash .githooks/init.sh` fallback + CI floor are unchanged.
1137
+
1138
+
## Rung: 4.20.1 → 4.20.2 — Windows line-ending hardening (PATCH)
1139
+
1140
+
Additive: a `.gitattributes` that keeps the executable scripts + git hooks LF, so they run under bash on
1141
+
Windows. No memory-file shape change. Surfaced from a Copilot Windows-feasibility check — the bootstrap
1142
+
works via Git Bash, but with **no `.gitattributes`** a Windows clone (`core.autocrlf=true` by default)
1143
+
rewrites `*.sh` + `.githooks/*` to CRLF and bash fails (`bad interpreter: /usr/bin/env bash^M`).
1144
+
1145
+
1.**Install / merge `.gitattributes`** (per ENABLE Step 7b): if the target has none, copy
1146
+
`templates/.gitattributes` verbatim; if it has one, **add only** the LF rules not already present
1147
+
(`*.sh text eol=lf`, `.githooks/* text eol=lf`) — de-duplicate; never remove/reorder existing entries.
1148
+
Then `git add --renormalize .` (a no-op if the files are already LF).
0 commit comments