Forum graph features and large-load optimization

Status: historical six-feature graph workload. The full original 300,000-user baseline completed, and the app-only optimization qualified on Small. Its final large candidate run was stopped when the user expanded the application with private communication, profiles and stable text. Continue with the community study; unmeasured optimization claims do not carry forward. The Small packet and failed/partial alternatives retain their original scope.

Thirty proposed business features

Three independent agents proposed ten social, ten knowledge/navigation and ten operations features. Some share graph primitives; the selected six represent separate customer actions rather than counting shared plumbing as a feature. Candidates were judged by practical forum utility, complementary read/write patterns, useful returned IDs, bounded implementation and fit with existing owners. These are engineering choices, not measured performance scores.

ID Proposal Selection
S1 Public follows, follower pages and a following feed F1
S2 Reply-parent and branching conversation navigation F6
S3 Related discussion navigation and backlinks F4: shared-tag variant
S4 People suggestions with mutual-connection explanations F2
S5 Shareable personal reading collections Deferred
S6 Current mentions inbox Deferred
S7 Public interest circles and pinned discussions Deferred
S8 Interest feed from followed tags Deferred
S9 Opt-in volunteer expertise directory Deferred
S10 Private author/topic/tag mute preferences Deferred
K1 Exact topic tags and combined-tag browsing F3
K2 Explicit post citations and backlinks F5
K3 Ordered curated reading guides Deferred
K4 Reusable accepted answers across discussions Deferred
K5 Moderator-confirmed duplicate-topic destinations Deferred
K6 Prerequisite discussions and learning context Deferred
K7 Hierarchical tag vocabulary navigation Deferred
K8 Superseded-answer replacement trails Deferred
K9 External resource discussion hubs Deferred
K10 Glossary concepts, definitions and examples Deferred
O1 Canonical support-question and accepted-answer resolution Deferred
O2 Moderator conversation context across split threads Related alternative
O3 Available qualified support-helper assignment Deferred
O4 Moderation case evidence workspaces Deferred
O5 Private group task boards with blocker explanations Deferred
O6 RFC reviewer sign-off and missing-reviewer views Deferred
O7 Answer review inbox after referenced material changes Deferred
O8 Conflict-aware moderator assignments and recusals Deferred
O9 Private group access with granting-path explanations Deferred
O10 Appeal and superseding-decision trails Deferred

Selected six

Feature Business result Storage
F1: follow and following feed Change own public follows; browse followers; see visible posts from followed authors in declared order with safe continuation NyxusGraph network
F2: people suggestions Actual candidate user IDs, bounded-window scores and concrete intermediary IDs explaining each suggestion Same NyxusGraph network
F3: tags and combined-tag browsing Author-assigned topic tags, moderator vocabulary, exact one/two-tag navigation returning visible topic IDs Minima PagedGraph taxonomy
F4: related discussions Candidate topic IDs, shared tag IDs/reasons and exact scores within an explicit examined window Same PagedGraph taxonomy
F5: citations and backlinks Author-managed explicit post references and visible incoming/outgoing post links PagedGraph conversations
F6: reply and conversation context Reply to a particular post, direct replies, ancestors and bounded contextual relationships with actual post IDs Same PagedGraph conversations

F4 combines S3 navigation with K1 tag memberships; it returns shared-tag reasons rather than adding a second manually curated topic-link system.

PagedGraph is selected from the measured mutable Minima alternatives. Nyxus is chosen for hot native social adjacency, not from an unsupported cross-engine speed ratio. Native diagnostic reductions do not return business result lists; these features must enumerate or visit actual neighbor IDs.

Each new owner has private memory/{mod.rs,v1.rs}, service, Wire DTOs, endpoints and behavior tests. Root remains attachments/startup wiring only. Forum composes public owner selectors and passes accepted scalar facts; graph owners never open sibling memory. Hidden/unavailable content must be filtered before exposure or traversal. Business rejection precedes mutation; unexpected persistent failures trap and use IC rollback. No undo layer, legacy layouts or prototype migrations.

Population and comparison

The baseline population has completed: 300,000 users, 64 categories, 100,000 topics, 1,000,000 posts and 3,000,000 exact likes. Relationships contain 2,375,264 follows, 400,000 tag assignments, 900,000 reply-parent edges and 400,000 citations, with community clustering, bridges, isolated records and large incoming hubs. Bounded seed calls have exact receipts. The complete original endpoint, accuracy and recovery protocol passed at this scale. The later optimized large candidate was stopped before full population; that partial run does not qualify its endpoint performance.

Keep all original sketch/event ingestion. Seed earlier, warm once per measured sequence, use widely distributed meaningful users/keys including the 65,535 / 65,536 boundary, and compare complete instruction costs including protocol, scratch, reply and page fees. Query-cache avoidance and physical execution counts are mandatory. Small correctness runs precede the large fixture. Profile bounded slices rather than keeping a full detailed trace of the population.

Both comparison arms use the same fixed effective SDK snapshot and recorded PocketIC PIN360; historical PIN2e results remain separate. Main's 47 unrelated SDK working changes are frozen locally for matched builds and preserved in Main. Their raw source overlays and archives stay local; publication may retain hashes, commands and results. Baseline graph features must all exist before optimizing those features. Native/Nyxus engine changes are not the starting scope.

After the baseline, competing app and Minima collection/engine hypotheses run in separate worktrees. Keep equivalent business behavior and report instruction, latency, memory, accuracy and population tradeoffs. Qualify Nyxus RRT and Hylix RRts on the same effective SDK; reuse unchanged exact artifacts only with complete closure/hash proof. Shared Minima changes also need matching controls across existing collection families. Snapshots may repeat one artifact's state; they do not replace KEEP/rollback or make different layouts interchangeable.

Recorded outcome

The baseline completed its full populated-scale protocol and recovery checks. The app-only projection change was merged with 21 cheaper/64 tied Small primary rows. Batch, scoped-binding and prefix candidates passed correctness but were not selected: batch tradeoffs were mixed, binding opened an additional static-data region, and prefix savings were too small for the added layout complexity. The app-only large candidate run is explicitly incomplete, superseded after partial user population; it establishes no large speedup. New private/stable-text app qualification uses a new feature set and server identity.

Experiment branches

All candidates start from the same six-feature baseline and fixed effective SDK. They remain independent until their actual-canister screens select a combination.

Candidate Mechanism Qualification so far
App projections Borrow owner state once, project only needed account/post fields, avoid tiny temporary allocations and redundant ranking work Merged as b3f634d8; 110 native tests and complete Small protocol pass; no SDK/layout change
Paged batch mutations Group a bounded, input-order mutation sequence by adjacency while preserving previous values, revisions and reverse edges 106 forum and 438 Minima native tests pass; mixed Small costs, not selected
Scoped collection reads Validate a collection once per synchronous read scope and reuse its internal memory loan Native/Wasm correctness passes; Small costs regress, not selected
Filtered prefix reads Conservative relation floor permits one useful node-prefix fetch instead of reading unused leaf bytes Native/Wasm correctness passes; sub-0.3% Small gains, not selected
Unfiltered-only prefix Optimize only calls without a relation filter Rejected for this forum: its actual graph routes filter relations, so this narrower path would not help them

Independent final feature review found no additional concrete authorization, visibility, pagination or ownership defects after the two initial fixes. All candidates retain business results and the full pre-existing analytics work.