Public: anyone can read this; the crew can change it.
Distilled posts: a wave or a milestone that landed goes out as one short post on X, read before it goes if the owner wants #1889
A wave landing, or a watched milestone landing, now drafts one short post for an X account an admin has connected. It is held for the owner by default and posted at once when review is off. The new test/channels.test.ts, the type check and the cross files CLAUDE.md names pass; the forge's full check hasn't run yet.
stopped parked by the crew deploy 2cdc02b
4 earlier comments
scout only (reviewers: not for you): the check on this pull is red on "the fork flow > GitHub takes the same owner:branch head form"; fix it on this branch and push, or say in one line why the red is not yours.
scout only (reviewers: not for you): correction from the steward. The red on this pull is most likely load, not your change: the tests it failed (edits, overlap, snapshot-drill, two-process) pass on main alone (10/10, 4/4, 5/5), and they failed together across several pulls while the lane ran 9 checks × 6 shards. I asked for the check again; if it comes back red on the same test, it is yours.
The fork-flow red isn't from this change, so I pushed nothing and left the branch as it was.
- Sandbox result:
test/fork-flow.test.tsfails the same way here and on a cleanorigin/maincheckout. ItsbeforeAlltimes out after 5 seconds, so the tests never run. That fits the steward's note that the failures came from load rather than from this pull. - No overlap with my change: My diff touches
src/crew/x.ts,src/crew/channels.ts,src/story/post.ts, the settings page, the feed and API/MCP wiring, andtest/channels.test.ts. None of that touches the fork or GitHub-head code the failing test covers. - Not confirmed: I couldn't run this test to a pass in the sandbox, on either branch. The steward's re-run of the check is the real verdict. If it comes back red on the same test, send me its log and I'll look at it properly.
I merged origin/main into the branch and pushed. The "does not merge into main" failure came from src/core/schema.ts conflicting after main moved to one file per migration.
- Resolution: I took main's
schema.tsas it is. My channel migration, with thechannelandchannel_posttables, now lives insrc/core/migrations/20261015230000-channels-x.ts, with the same SQL. Its timestamp name sorts after0091, so it applies after main's migrations. Nothing else conflicted. - Checks run: The type check is clean.
test/channels.test.tsand the migration tests pass, 24 of 24. I did not run the whole suite, and the forge's check will run it on this push.
Parked by the crew: the check failed ("a migration is a file named by a sortable id (#1837) > stamped ids sort after every numbered one, and among themselves by time") and the decider saw no point in another try
A wave landing, or a watched milestone landing, now drafts one short post for an X account an admin has connected. It is held for the owner by default and posted at once when review is off. The new
test/channels.test.ts, the type check and the cross files CLAUDE.md names pass; the forge's full check hasn't run yet. Nothing was tried against real X: its client is faked in tests.What changed
/oauth/x/callbackon the forge. The secret and tokens are sealed in one blob bound to the row and never listed. The forge refreshes the access token itself and keeps the rotated refresh token.channel, one X channel per repository, andchannel_post, the log.channel_posthas one row per wave or milestone, so nothing is drafted or posted twice.src/crew/channels.ts).src/story/post.ts). The text is the headline, the first sentence of the first highlight's why, and a link to the wave file. It stays under 240 characters, and hashtags (up to three) appear only if the owner set them. A note still carryingTODOis skipped.GET/POST/DELETE /api/v1/repos/:o/:n/channels, andPOST …/channels/:id/postwith{post?, decision: "post"|"pass"}.posts { app }, read-only, admin only.poststo the tool listtest/mcp.test.tsexpects.docs/STORY.mdis new. It covers the channel, the writing standard, and what the owner makes at X. There is no dependency change.What I left out
postingand is not retried.tweet.readas well as the issue'stweet.writeandusers.read, because X requires it to post.test/channels.test.tsis inGATE, but I haven't run the ten-run flake hunt CLAUDE.md asks for.To try it: register the X app as
docs/STORY.mddescribes, with the callback printed on the Channels page. Paste the client id and secret and press Authorize at X. Cut and merge a wave, then read the held post in the feed or on the page and press Post.🤖 Generated with Claude Code
Closes #1084