Skip to content

fix(#301): host bootstrap canonical filename + smoke test stability - #319

Merged
joelteply merged 1 commit into
canaryfrom
fix-301-host-bootstrap-canonical-filename
Apr 29, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix-301-host-bootstrap-canonical-filename

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Host gist seed filename now matches channel_gist.create_new (airc-room-<channel>.json). Pairs with #297 to close the heartbeat-fails-and-evicts loop. Smoke tests stabilized (wait for channel_gists population, not just 'Hosting as' log line).

…ename

Pre-fix the host bootstrap in cmd_connect created the room gist with
a random temp basename (mktemp -t airc-invite.XXXXXX). Heartbeat (#297)
then tried to update airc-room-<channel>.json which didn't exist, gh
'gist edit' silently failed, host self-evicted on 3 consecutive
heartbeat-failures, gist deleted mid-conversation. continuum + ideem
flagged this convergence; #297 fixed the heartbeat side, this fixes
the create side.

Solution: bootstrap writes a temp dir + names the file
airc-room-<channel>.json (matching channel_gist.create_new's seed
filename) so subsequent gh edits via basename match work. Description
stays 'airc mesh' for the moment because joiner discovery uses
_mesh_find which matches that literal — full migration to
'airc room: #<channel>' description as a follow-up.

Also: spawn_real in test/integration_smoke.sh now waits for
channel_gists to actually be populated in config.json after starting
a host, not just for 'Hosting as' to appear in stdout. The latter
fires before the gist is published, so the next peer spawned right
after raced and saw no mesh on the account → bootstrapped as its own
host of the same room → test failed flakily. Fixed.

Smoke tests: 4/4 pass against real gh substrate.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@joelteply
joelteply merged commit 5df79a3 into canary Apr 29, 2026
1 check passed
@joelteply
joelteply deleted the fix-301-host-bootstrap-canonical-filename branch April 29, 2026 15:56
joelteply added a commit that referenced this pull request Apr 29, 2026
…ixes

canary → main: morning fixes (#316 pidfile, #317 ping, #318 input-validation, #319 host bootstrap)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant