<feed xmlns='http://www.w3.org/2005/Atom'>
<title>superpowers.git/tests/brainstorm-server, branch dev</title>
<subtitle>Agentic skills framework and development workflow
</subtitle>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/'/>
<entry>
<title>test(brainstorm-server): drain the socket before counting reloads</title>
<updated>2026-11-03T02:51:38+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@fsck.com</email>
</author>
<published>2026-11-03T02:51:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=78c867996a73b86cd356431346af304a0d76afa6'/>
<id>78c867996a73b86cd356431346af304a0d76afa6</id>
<content type='text'>
The two "does NOT send reload" tests waited for the barrier file's
screen-added line on stdout, then counted reloads on the WebSocket. The
server logs and broadcasts in the same tick, but stdout and the socket
are separate channels, and on Linux stdout usually won: the socket had
0 reloads when the barrier fired and 1 reload 300ms later, so the tests
failed in 8 of 10 runs.

They now ping the server after the barrier and wait for the pong. The
server writes it on the same socket after the reload, so every reload
sent before it has arrived. 30 consecutive clean runs; with the server's
.html filter removed, both tests still fail.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The two "does NOT send reload" tests waited for the barrier file's
screen-added line on stdout, then counted reloads on the WebSocket. The
server logs and broadcasts in the same tick, but stdout and the socket
are separate channels, and on Linux stdout usually won: the socket had
0 reloads when the barrier fired and 1 reload 300ms later, so the tests
failed in 8 of 10 runs.

They now ping the server after the barrier and wait for the pong. The
server writes it on the same socket after the reload, so every reload
sent before it has arrived. 30 consecutive clean runs; with the server's
.html filter removed, both tests still fail.
</pre>
</div>
</content>
</entry>
<entry>
<title>brainstorming: resolve a relative --project-dir before start-server.sh cds</title>
<updated>2026-10-23T03:38:19+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@fsck.com</email>
</author>
<published>2026-10-22T22:17:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=fa50d836bf7b0e2f08f493839dc2211ed6fb3bb9'/>
<id>fa50d836bf7b0e2f08f493839dc2211ed6fb3bb9</id>
<content type='text'>
start-server.sh built SESSION_DIR, PID_FILE, LOG_FILE and BRAINSTORM_DIR
from --project-dir as given, then ran `cd "$SCRIPT_DIR"` before using
them. A relative project dir like `.` was re-rooted at the scripts
directory, so the log and pid redirects failed and the server never
reported server-started: "Server failed to start within 5 seconds".

Resolve the project dir to an absolute path with `mkdir -p` + `cd &amp;&amp; pwd`
right before deriving the session paths. mkdir -p keeps the existing
behavior of creating a project dir that doesn't exist yet (the Windows
lifecycle test relies on it), CDPATH is cleared so a relative name can't
resolve to some other directory, and `--` covers names starting with a
dash. Works on bash 3.2 without realpath or readlink -f.

Fixes #2524.

Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
start-server.sh built SESSION_DIR, PID_FILE, LOG_FILE and BRAINSTORM_DIR
from --project-dir as given, then ran `cd "$SCRIPT_DIR"` before using
them. A relative project dir like `.` was re-rooted at the scripts
directory, so the log and pid redirects failed and the server never
reported server-started: "Server failed to start within 5 seconds".

Resolve the project dir to an absolute path with `mkdir -p` + `cd &amp;&amp; pwd`
right before deriving the session paths. mkdir -p keeps the existing
behavior of creating a project dir that doesn't exist yet (the Windows
lifecycle test relies on it), CDPATH is cleared so a relative name can't
resolve to some other directory, and `--` covers names starting with a
dash. Works on bash 3.2 without realpath or readlink -f.

Fixes #2524.

Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
</pre>
</div>
</content>
</entry>
<entry>
<title>test(brainstorm-server): wait for file events instead of sleeping</title>
<updated>2026-10-21T20:12:44+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@fsck.com</email>
</author>
<published>2026-10-21T20:12:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=e8d28a06aa8d1fe7d46057ee804b1e2385e836df'/>
<id>e8d28a06aa8d1fe7d46057ee804b1e2385e836df</id>
<content type='text'>
On macOS, fs.watch (FSEvents) delivered events anywhere from ~100ms to
2.4s after the write on Node 26.10 / Darwin 27, and sometimes held an
event back to deliver it in a batch with a later one. The file-watching
tests slept a fixed 500ms, so they failed when an event came late, and a
late event from one test could trigger a reload or clear state/events
during another. Six tests failed on v7.0.0 and on dev, a different six
each run.

The tests now poll for the outcome with a 5s timeout, wait until the
server logs the exact screen event they caused, and drain in-flight
events with a barrier file before asserting that nothing reloaded or
that state/events survived. 15 consecutive runs pass; dropping the
server's .html/dotfile filter still fails both negative tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On macOS, fs.watch (FSEvents) delivered events anywhere from ~100ms to
2.4s after the write on Node 26.10 / Darwin 27, and sometimes held an
event back to deliver it in a batch with a later one. The file-watching
tests slept a fixed 500ms, so they failed when an event came late, and a
late event from one test could trigger a reload or clear state/events
during another. Six tests failed on v7.0.0 and on dev, a different six
each run.

The tests now poll for the outcome with a 5s timeout, wait until the
server logs the exact screen event they caused, and drain in-flight
events with a barrier file before asserting that nothing reloaded or
that state/events survived. 15 consecutive runs pass; dropping the
server's .html/dotfile filter still fails both negative tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>test(brainstorm-server): run shell helpers without a login shell</title>
<updated>2026-09-27T02:28:19+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@primeradiant.com</email>
</author>
<published>2026-09-27T02:28:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=a0415daa1f33b00f3fe300f5c250a5beefafce4d'/>
<id>a0415daa1f33b00f3fe300f5c250a5beefafce4d</id>
<content type='text'>
The lifecycle tests ran their helpers with `bash -lc`, so anything a
login profile prints landed in captured output (a path from mktemp,
the newest session dir) and broke the test. Plain `bash -c` keeps the
helpers independent of the user's shell setup. Fixes #2190.

From #2192 by @tugrulguner.

Co-authored-by: tugrulguner &lt;47668043+tugrulguner@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The lifecycle tests ran their helpers with `bash -lc`, so anything a
login profile prints landed in captured output (a path from mktemp,
the newest session dir) and broke the test. Plain `bash -c` keeps the
helpers independent of the user's shell setup. Fixes #2190.

From #2192 by @tugrulguner.

Co-authored-by: tugrulguner &lt;47668043+tugrulguner@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>test(brainstorm-server): stop orphaning the server when a test fails</title>
<updated>2026-09-26T19:32:23+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@primeradiant.com</email>
</author>
<published>2026-09-26T19:32:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=bccb109316827b98f7c8676db1140cedbc207394'/>
<id>bccb109316827b98f7c8676db1140cedbc207394</id>
<content type='text'>
process.exit(1) ran inside the try, so the finally that kills the
spawned server never ran. The leftover server held port 3334 and the
next run died with 'preferred port is in use'. Set process.exitCode
instead so teardown runs.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
process.exit(1) ran inside the try, so the finally that kills the
spawned server never ran. The leftover server held port 3334 and the
next run died with 'preferred port is in use'. Set process.exitCode
instead so teardown runs.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(brainstorming): preserve literal content replacement tokens (#2364)</title>
<updated>2026-09-26T19:28:21+00:00</updated>
<author>
<name>落尘</name>
<email>cuidong111@gmail.com</email>
</author>
<published>2026-09-26T19:28:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=ddd35ab181073c792781bcdfd646d73cf48e4d44'/>
<id>ddd35ab181073c792781bcdfd646d73cf48e4d44</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test(deps): bump ws to ^8.21.0 in brainstorm-server tests</title>
<updated>2026-06-18T22:44:22+00:00</updated>
<author>
<name>Jesse Vincent</name>
<email>jesse@primeradiant.com</email>
</author>
<published>2026-06-18T21:57:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=549dee6f6440c790ba2c63ac9b826d9705128cd0'/>
<id>549dee6f6440c790ba2c63ac9b826d9705128cd0</id>
<content type='text'>
Clears two dependabot alerts on the test harness's ws dependency:
GHSA-96hv-2xvq-fx4p (high, memory-exhaustion DoS, fixed 8.21.0) and
GHSA-58qx-3vcg-4xpx (medium, uninitialized memory disclosure, fixed
8.20.1). Test-only — the shipped brainstorm server hand-rolls its
WebSocket framing and does not depend on ws. Suite passes (57/57).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Clears two dependabot alerts on the test harness's ws dependency:
GHSA-96hv-2xvq-fx4p (high, memory-exhaustion DoS, fixed 8.21.0) and
GHSA-58qx-3vcg-4xpx (medium, uninitialized memory disclosure, fixed
8.20.1). Test-only — the shipped brainstorm server hand-rolls its
WebSocket framing and does not depend on ws. Suite passes (57/57).
</pre>
</div>
</content>
</entry>
<entry>
<title>fix: read Codex plugin version from manifest (PRI-2240)</title>
<updated>2026-06-17T00:02:33+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-06-16T19:13:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=29c0b1b7db4b8ab488c7ef99bef93068576a60fa'/>
<id>29c0b1b7db4b8ab488c7ef99bef93068576a60fa</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add visual companion Prime Radiant branding</title>
<updated>2026-06-16T17:09:47+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-06-15T23:32:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=b3ee712d3a68b604b3f36d872c7ec91501197dcb'/>
<id>b3ee712d3a68b604b3f36d872c7ec91501197dcb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix companion stop metadata and token permissions</title>
<updated>2026-06-16T17:09:46+00:00</updated>
<author>
<name>Drew Ritter</name>
<email>drew@primeradiant.com</email>
</author>
<published>2026-06-11T17:25:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.1991861.xyz/superpowers.git/commit/?id=3a907d6a0a033eee1f6a3abce27fe97dbc2133e4'/>
<id>3a907d6a0a033eee1f6a3abce27fe97dbc2133e4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
