Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release Notes

## [Unreleased](https://github.com/Refactor-Circus/Cortex/commits/main)
## [Unreleased](https://github.com/Refactor-Circus/Cortex/compare/v0.1.0...main)

## [v0.1.0](https://github.com/Refactor-Circus/Cortex/commits/v0.1.0) - 2026-10-30

### Upgrade notes (security-relevant)

Expand Down Expand Up @@ -329,8 +331,3 @@
- New migration `2026_10_12_000001_add_cortex_performance_indexes` indexes the sub-agent pivot's `sub_agent_id`. Run `php artisan migrate` after updating (publish it first with `cortex-migrations` if you published the migrations).
- The global search checks concrete agent results against their overrides in one query, and the settings panel counts MCP servers without resolving them.
- On Redis, a publish can take up to `cortex.cache.fresh` seconds to reach every worker; the config file and README now say so.


## [v0.1.0](https://github.com/Refactor-Circus/Cortex/compare/...v0.1.0) - 202x-xx-xx

Initial pre-release.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"require": {
"php": "^8.5",
"refactor-circus/keystone": "dev-main",
"refactor-circus/keystone": "^0.1",
"laravel/ai": "^1.2",
"laravel/framework": "^13.35",
"laravel/mcp": "^1.0.1"
Expand All @@ -32,9 +32,9 @@
"pestphp/pest-plugin-laravel": "^5.0.1",
"pestphp/pest-plugin-type-coverage": "^5.0.3",
"phpstan/extension-installer": "^1.4.3",
"refactor-circus/atrium": "dev-main",
"refactor-circus/keen": "dev-main",
"refactor-circus/pennantplus": "dev-main",
"refactor-circus/atrium": "^0.1",
"refactor-circus/keen": "^0.1",
"refactor-circus/pennantplus": "^0.1",
"refactor-circus/ringside": "dev-main",
"refactor-circus/standards": "dev-main"
},
Expand Down
19 changes: 10 additions & 9 deletions tests/Feature/DocsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ function packageDocument(string $path): string
}

/**
* The CHANGELOG's Unreleased section, up to the next release heading.
* The CHANGELOG's v0.1.0 section, which carries these upgrade notes, up to
* the next release heading.
*/
function unreleasedChangelog(): string
function releaseChangelog(): string
{
$changelog = packageDocument('CHANGELOG.md');

expect(preg_match('/^## \[Unreleased\].*?(?=^## \[)/ms', $changelog, $matches))->toBe(1, 'CHANGELOG.md has no Unreleased section.');
expect(preg_match('/^## \[v0\.1\.0\].*?(?=^## \[|\z)/ms', $changelog, $matches))->toBe(1, 'CHANGELOG.md has no v0.1.0 section.');

return $matches[0];
}
Expand Down Expand Up @@ -172,8 +173,8 @@ function configBanner(string $key): string
});

describe('CHANGELOG', function (): void {
it('keeps the upgrade keywords in the Unreleased section', function (string $keyword): void {
expect(unreleasedChangelog())->toContain($keyword);
it('keeps the upgrade keywords in the v0.1.0 section', function (string $keyword): void {
expect(releaseChangelog())->toContain($keyword);
})->with([
'optimized autoloader' => ['dump-autoload -o'],
'publish the migrations' => ['vendor:publish'],
Expand All @@ -182,8 +183,8 @@ function configBanner(string $key): string
'restart workers' => ['restart'],
]);

it('opens the Unreleased section with the updateTools upgrade note', function (): void {
expect(preg_match('/^### .*?(?=^### )/ms', unreleasedChangelog(), $first))->toBe(1)
it('opens the v0.1.0 section with the updateTools upgrade note', function (): void {
expect(preg_match('/^### .*?(?=^### )/ms', releaseChangelog(), $first))->toBe(1)
->and($first[0])->toContain('updateTools')
->toContain('/cortex/servers/{server}/tools');
});
Expand All @@ -193,7 +194,7 @@ function configBanner(string $key): string
* domains names each of its seven topics, and the Atrium conflict.
*/
it('carries the Atrium screens and owned redirect domains upgrade note', function (string $keyword): void {
expect(markdownSection(unreleasedChangelog(), 'Upgrade notes (Atrium screens and owned redirect domains)'))->toContain($keyword);
expect(markdownSection(releaseChangelog(), 'Upgrade notes (Atrium screens and owned redirect domains)'))->toContain($keyword);
})->with([
'Atrium suggested' => ['suggest'],
'the new config key' => ['redirect_domains'],
Expand All @@ -206,7 +207,7 @@ function configBanner(string $key): string
]);

it('states the Atrium conflict constraint composer.json declares in the upgrade note', function (): void {
expect(markdownSection(unreleasedChangelog(), 'Upgrade notes (Atrium screens and owned redirect domains)'))
expect(markdownSection(releaseChangelog(), 'Upgrade notes (Atrium screens and owned redirect domains)'))
->toContain('`'.atriumConflictConstraint().'`');
});
});
Expand Down
Loading