Repository navigation
1.8.5
Immutable
release. Only release title and notes can be modified.
π Cortex v1.8.5 β In Much the Same Way That Bricks Don't
"The ships hung in the sky in much the same way that bricks don't." β The Hitchhiker's Guide to the Galaxy
A named pipe where Cortex expected a file could make a command hang β for 30 seconds a question, or with no limit at all. This patch makes Cortex say what it found instead, and repairs, by itself, the store a user who is not root could not repair.
Nothing is added to the cortex command: no command, option, key or format.
The store repairs itself (#384)
- A stored version that holds less than its three trees is written again.
cortex sync,cortex initandcortex upgraderemove it, the waycortex pruneremoves a version, and write or download it again. The store is read-only, so the removal Cortex used to name failed for a user who is not root, and on Windows. That held for the store's refusal and forcortex validate'sLOCK_DIGESTalike. LOCK_DIGESTnames the sync alone βcortex sync --lockedduring a try β and never a removal, which a race withcortex prunecould make pointless.- A link or a file a user put at a version's name is refused and named, never followed or removed.
Named pipes, directories, and other files that are not files (#358)
- An ignore file above the project that is a named pipe β a
.gitignorehigher in the repository,.git/info/exclude,core.excludesFileβ made eachgit check-ignorewait 30 s: from about a minute to about 3 minutes for acortex sync, by mode, andcortex upgrade --branchand--commitfailed. Git is now asked once per repository and command. After a wait, the project's own.gitignorefiles answer.upgrade --commitstill waits ingit status, as git itself does (#386). - A named pipe at
.gitmodulesor at the instructions file (CLAUDE.md, β¦) no longer holdssync,validateorinit. Cortex says it is not a file. - A
cortex.toml, a lock or acortex.local.tomlthat is not a file is said to be one, with its remedy. It used to be called missing, or failed halfway through a write. - A directory at
.gitignoreno longer stopscortex inithalfway. Nothing is written to it, and the note says it is not a file. - A renamed team's folder that is a file, a pipe or a socket, or a link to one, is named as such, as the default
agentsis since 1.8.4. - The runtime logs a
cortex.local.tomlwhose kind it cannot tell, a loop of links for one, once per error. - A copy is no longer given the link's advice about the final slash.
Ignore files without git (#355)
- Without git, a folder's own
.gitignoreis read too. A.claude/.gitignoreholding!settings.local.jsonnow outranks the root's line, where Cortex used to take the root's word alone, and a name with no/matches at any depth below its.gitignore. Patterns, and a folder ignored whole, remain git's to tell (#391): without git, Cortex may add a line git would not need, never leave out one it needs. - With git,
/.cortex-sync-*is written again below a negation that takes back a real staging folder. Cortex used to ask git about a stand-in name, which the negation did not match.
ADR-008, ADR-010 and ADR-013 record these changes in their amendments.
Upgrading
cortex self-update, then cortex upgrade 1.8.5, or cortex upgrade --team 1.8.5 for a team's file. A project that stays on 1.8.4 keeps working.
Notes
- Size M, under the rules of 1.8.2 and 1.8.3: 3 review passes, 60 commits. #354, CommonMark in the changelog reader, was split off into 1.8.6.
- No file of the pipeline changes, so there is no release candidate (ADR-009 Β§3.7).
- Left for later: #386, four more paths of the same family, and
git statusinupgrade --commit.