Text chat 41: fluxer-devserver channel types #326

Closed
opened 2026-11-12 18:16:20 +00:00 by charles · 0 comments
Owner

Plan: docs/superpowers/plans/2026-11-12-textchat.md, section "Task 41". Spec: §18 of docs/superpowers/specs/2026-11-12-fluxer-native-textchat-design.md (channel types, added 2026-11-12 when Charles overruled #286 Q4).

Task 41: fluxer-devserver channel types

Issue: (to be created)

Files:

  • Create: crates/fluxer-devserver/src/forums.rs, fixtures/textchat/{forum_posts.json,media_posts.json,channel_types.json}
  • Modify: fixtures/scenarios/textchat.toml, fixtures/gateway/textchat_ready.json, crates/fluxer-devserver/src/{chat.rs,http.rs,gateway.rs,scenario.rs,search.rs,lib.rs}, README
  • Test: crates/fluxer-devserver/tests/channel_types.rs

Interfaces:

  • Consumes: Text chat 20 (the textchat scenario), 36.

  • Produces: spec §18.6: the channels and data listed there (ids appended to textchat_ready.json; the forum and media channels and the private/announcement threads appear only via THREAD_LIST_SYNC, the joined ones also in READY's threads); op 14 threads: true → THREAD_LIST_SYNC of the whole guild, thread_member_lists → THREAD_MEMBER_LIST_UPDATE; op 28 → FORUM_UNREADS; REST: GET /channels/{id}, POST /channels/{forum}/threads (JSON and multipart; validation of tags, moderated tags, REQUIRE_TAG, 5 tags, name length; starter id = post id; THREAD_CREATE with newly_created then MESSAGE_CREATE), GET …/threads/search (202 not-ready on the first call per channel, then filtered/sorted/paged results with first_messages), POST …/post-data, the archived lists, PATCH /channels/{thread} (+ THREAD_UPDATE), DELETE /channels/{thread} (+ THREAD_DELETE), thread members (+ THREAD_MEMBERS_UPDATE/THREAD_MEMBER_UPDATE), thread member settings, crosspost (+ MESSAGE_UPDATE with CROSSPOSTED), crosspost-source, followers (+ a CHANNEL_FOLLOW_ADD system message in the target), notes purge; every thread/forum route 404 without X-Fluxer-Features: channel_threads; scenario flag thread_search = false makes search 404 like a disabled backend.

  • Step 1: Write failing tests: ready_lists_only_joined_threads, op14_threads_true_syncs_all_threads, op14_member_list_update, op28_forum_unreads, create_post_json_events_order_and_ids, create_post_multipart, create_post_tag_rules, thread_search_202_then_results_paged, thread_search_disabled_flag, post_data_owner_and_first_message, archived_public_paging, edit_and_delete_thread_events, crosspost_sets_flag, follow_creates_system_message, purge_only_own_notes, thread_routes_404_without_feature_header, channel_type_fixtures_parse_with_proto_types.

  • Step 2–5: FAIL → implement → PASS → commit feat(devserver): forum, media, announcement, link and notes channels.

🤖 Generated with Claude Code

Plan: `docs/superpowers/plans/2026-11-12-textchat.md`, section "Task 41". Spec: §18 of `docs/superpowers/specs/2026-11-12-fluxer-native-textchat-design.md` (channel types, added 2026-11-12 when Charles overruled #286 Q4). ### Task 41: `fluxer-devserver` channel types **Issue:** (to be created) **Files:** - Create: `crates/fluxer-devserver/src/forums.rs`, `fixtures/textchat/{forum_posts.json,media_posts.json,channel_types.json}` - Modify: `fixtures/scenarios/textchat.toml`, `fixtures/gateway/textchat_ready.json`, `crates/fluxer-devserver/src/{chat.rs,http.rs,gateway.rs,scenario.rs,search.rs,lib.rs}`, README - Test: `crates/fluxer-devserver/tests/channel_types.rs` **Interfaces:** - Consumes: Text chat 20 (the `textchat` scenario), 36. - Produces: spec §18.6: the channels and data listed there (ids appended to `textchat_ready.json`; the forum and media channels and the private/announcement threads appear only via `THREAD_LIST_SYNC`, the joined ones also in READY's `threads`); op 14 `threads: true` → `THREAD_LIST_SYNC` of the whole guild, `thread_member_lists` → `THREAD_MEMBER_LIST_UPDATE`; op 28 → `FORUM_UNREADS`; REST: `GET /channels/{id}`, `POST /channels/{forum}/threads` (JSON and multipart; validation of tags, moderated tags, `REQUIRE_TAG`, 5 tags, name length; starter id = post id; `THREAD_CREATE` with `newly_created` then `MESSAGE_CREATE`), `GET …/threads/search` (202 not-ready on the first call per channel, then filtered/sorted/paged results with `first_messages`), `POST …/post-data`, the archived lists, `PATCH /channels/{thread}` (+ `THREAD_UPDATE`), `DELETE /channels/{thread}` (+ `THREAD_DELETE`), thread members (+ `THREAD_MEMBERS_UPDATE`/`THREAD_MEMBER_UPDATE`), thread member settings, crosspost (+ `MESSAGE_UPDATE` with `CROSSPOSTED`), crosspost-source, followers (+ a `CHANNEL_FOLLOW_ADD` system message in the target), notes purge; every thread/forum route 404 without `X-Fluxer-Features: channel_threads`; scenario flag `thread_search = false` makes search 404 like a disabled backend. - [ ] **Step 1: Write failing tests**: `ready_lists_only_joined_threads`, `op14_threads_true_syncs_all_threads`, `op14_member_list_update`, `op28_forum_unreads`, `create_post_json_events_order_and_ids`, `create_post_multipart`, `create_post_tag_rules`, `thread_search_202_then_results_paged`, `thread_search_disabled_flag`, `post_data_owner_and_first_message`, `archived_public_paging`, `edit_and_delete_thread_events`, `crosspost_sets_flag`, `follow_creates_system_message`, `purge_only_own_notes`, `thread_routes_404_without_feature_header`, `channel_type_fixtures_parse_with_proto_types`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(devserver): forum, media, announcement, link and notes channels`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
charles added this to the Text chat milestone 2026-11-12 18:16:20 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#326
No description provided.