Repository navigation
1.8.0-rc.1
Pre-releaseWarning
A pre-release of 1.8.0, not for production. Nothing installs 1.8.0-rc.1 unless asked for it by its version, and it is never the latest release.
π Cortex v1.8.0 β Life, the Universe and Everything
"There is an art, it says, or rather, a knack to flying. The knack lies in learning how to throw yourself at the ground and miss." β Life, the Universe and Everything
A team whose workspace root is no repository could not pin its version:
cortex.tomlwas committed nowhere, and every developer moved their own. This release gives the team a file of its own, in its repository, that pins the version for everyone β and lets a developer try a higher one before proposing it. Every setting now says where it comes from.
The team pins its version (ADR-013)
- The team's file,
agents/cortex.team.toml, committed in the team's repository:version,theme,sync,claude_access, andlocked, the keys it imposes. Its lock,agents/cortex.team.lock, sits beside it. One commit there moves every teammate: their assistant syncs after the pull. A team's file that does not read β conflict markers a pull left β is refused, never read as pinning no version; onlycortex project listandcortex prunestill take it as pinning none (#349).cortex initnames it to fix, and a move from before 1.8.0 to 1.8.0 or later refuses it first, as the version it moves to would, naming its fix. - The highest version wins between the team's and the developer's.
cortex upgrade --local VERSIONwrites a try incortex.local.toml, read while it is above the team's, never locked, said at every sync; at or below the team's, it removes it; below a developer's own uncommittedcortex.toml, read over it, it is refused, naming the removal of that file's version, which reads it. During a try the sync leaves the team's lock tocortex upgradeat the team's version, which--lockedandcortex validatename with that version β and which only warns where the team's folder cannot be written. A committedcortex.tomlthat pins its own version wins over the team's file. cortex upgrade --team VERSIONmoves the team's file and its lock, checking the overlays of every project that follows it β at the pin, a lock missing or stale is written β with the file, when its version was moved there by hand, never with a developer's other edits alone;--branchand--commitact in the team's repository, and--commitcommits nothing where the file holds a change of yours besides its version β or, not committed yet, more than its version β and says so. In a project that follows the team's file β a workspace root that is no repository included β a plaincortex upgrade Xis refused, naming the commands that work β--teamto a release this cortex serves,--localfor a try above the team's version, or a developer's owncortex.toml's when higher β or, when neither does, why. A resume's--commitcommits nothing where the team's file was moved by hand and not committed. From a 1.8.0 release candidate, a project before 1.8.0 is moved to the candidate first. A bootstrap linked into the team's folder is named where it leads, to commit there.versionis never lockable, andclaude_accesslocks tofalseonly: a team may forbid a permission, never grant one on a developer's machine.- CI checks what the team committed:
cortex sync --lockedreads the team's version and lock, never a developer's try.
Where each setting comes from
cortex config [KEY] [--json] [--locked]prints each setting, its value and its origin β the environment,cortex.local.toml,cortex.toml, the team's file, the machine's file, or the default.--lockedshows what the team commits.- The machine's
~/.cortex/config.tomlholdsreleases_url,update_checkandregister;CORTEX_RELEASES_URL,CORTEX_NO_UPDATE_CHECKandCORTEX_NO_REGISTERstill go over it. A key it does not know, a value of the wrong type or a file that cannot be read only warns:cortex self-updateruns whatever the file holds. Areleases_urla download would refuse is refused naming the file, by the command that downloads;cortex configprints it, with a warning. - A version newer than this cortex is said as such, before any key is checked β no longer as an unknown key a later Cortex added β and before the name of a team's folder this version refuses, which a later one may read.
The team's folder may be renamed
agents = "team-agents", in a committed cortex.toml, renames the team's folder inside the workspace: the cascade's team tier, the team's context files, the overlays validate and upgrade check, the team's file and its lock, the themes, and what the runtime reads all follow it. Only agents itself is the default; a value that leads out of the workspace, names a service, or ends as Windows would read another name β a final dot or space, a : β is refused. Names compare decomposed, in one case a character at a time, composed again: two names a disk keeps apart may be one folder here, never the reverse. A service Agents/ on a disk that tells case is served, as in 1.7.0; one whose agents/ is a link to the team's folder is refused. A team's folder that is a symbolic link is read through it. The bootstrap reads the folder cortex sync recorded.
The bootstrap, format 3
The templates move to format 3. cortex sync records in cortex.local.toml the versions it read (synced), and the assistant compares each file's version with it β plain equality: nothing runs when the machine is in step, one sync when a version moved, cortex self-update when this cortex is too old β a release candidate or a development build of 1.8.0 is not β each command once, never a loop; when the self-update installed nothing, the assistant says so and stops. A contributor's checkout is left alone. The developer's own bootstrap β one git ignores, or at a root that is no repository β follows the version and theme this machine reads, a try included; the team's committed bootstrap follows the team's version, and one left behind is said.
The runtime
The runtime reads the team's version through synced, and answers 422 β run cortex sync when a file moved since, when cortex.toml names another team's folder than the one recorded, or when a 1.7.0 cortex.toml lacks only what the team's file beside it gives β committed, it is said to need it; a valid 1.7.0 cortex.toml reads no team's file; a theme the team's file locks wins over CORTEX_THEME.
Development builds (#342)
A build of Cortex that is no release takes the version it prepares, as a pre-release, read from its branch's CHANGELOG: patching 1.8.0 builds 1.8.1-dev, a feature 1.9.0-dev. A source checkout says X.Y.Z-dev; the binaries the CI builds say X.Y.Z-dev.N β on a pull request into main or a line's branch N.x, in the merge queue, on a release branch, or run by hand. A pre-release of a version has that version's features. No teammate can download one, so none is written where a teammate reads it: cortex upgrade --team refuses to move the team's file to it, and a plain move refuses it into a committed cortex.toml; an uncommitted one and a try take it with a warning, as cortex init warns when it pins it; a team's file that pins one already keeps it, and its lock. Nothing a run writes for such a version is said to commit: no commit it β nor of its lock by cortex sync --locked and cortex validate β --commit commits nothing and --branch makes no branch, and the run ends saying so. A refusal names only commands that work β a development version only for a try, each follower's own under --all --team; from a build that prepares 1.8.0, --team only after a self-update to a release that reads the team's file, for a pin too new, a pin of no release or its own version; beside a team's file this cortex refuses, none but its fix, or the update when a later release may take it; a try --local cannot remove β what is read without it being too new for this cortex, or no file pinning a version β named to remove by hand; this developer's cortex.toml, moved by hand β and, when none does, says why; a source checkout still names cortex self-update, which it refuses (#345); a release candidate is a release. CONTRIBUTING walks a first change through, from the clone to the pull request whose binaries the reviewer can try.
Fixes
cortex init --forcekeeps a workspace's layout without--workspace(#329), and takes the link it made for its own oncecortex.tomlis gone (#328).cortex sync,cortex upgradeandcortex validateno longer say to commit at a root that is no repository.- Git is asked about the project's own repository: a hook's
GIT_DIRno longer points Cortex's questions at another one, and the configuration its caller gives β a CI's identity, itssafe.directoryβ is kept. - Of another tool's file of the other layout,
cortex initnames--tool X --force, which keeps its team's part as.bak, never its removal; of a workspace's file--forcekeeps as one, it says how to write a single project's βcortex init --tool Xonce it is removed β and copy the team's part back. Every note that namescortex initnames the tool:--forcealone is refused where several instructions files are, and a project left with none writes Copilot's. cortex upgradeon the pinned version refuses acortex/the sync would refuse before it writes anything, as a move does, and sayscortex syncputs this machine back only when its sync moved it.cortex init --forcenames the backup it wrote,.bak.1included, and says git does not ignore it only when git says so; a.gitignoreread without git is never said to leave a file unignored, and the project's own.gitignore, a named pipe, a socket or a device, no longer hangs a command: Cortex says it is not a file.cortex validateof an emptycortex/, or of a copy whose marker is gone or does not read, says the version the project needs, as of a spec that is not there.- The workspace template's step 4.2 lists the services where they are declared.
Upgrading
- Update the binary:
cortex self-update. - Move your projects:
cortex upgrade --all --dry-run, thencortex upgrade --allβ orcortex upgradein one project. A bootstrap nobody changed is written again in format 3. - To pin the team's version at a workspace root that is no repository: in the team's repository (
agents/), writecortex.team.tomlwithversionandtheme, runcortex sync, and commit the file andcortex.team.lock. Announce the move inagents/project-context.md; each teammate runscortex self-updateonce if their cortex is older than 1.8.0, thencortex sync, and removesversionandthemefrom their owncortex.toml. - Commit
cortex.toml,cortex.lockand the bootstrap files written again β or let--commit --message MESSAGEdo it.
Nothing changes for a project that adopts none of this: everything new is optional, and a 1.7.0 project reads, syncs and validates as before.
Notes
- ADR-013 is implemented in this release β the first of #98's two records.
- A release candidate first: the CI's own builds now stamp a development version, so 1.8.0 is published after
1.8.0-rc.1. - Next: the IDE modes (#98, its second record), for 1.9.0, opened by the measures of #137 in Copilot, Cursor and Codex.