Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
feat: add POST rhetoric practice
[._.]/ Adam Eivy1833c7c3838b
diff --git a/client/src/components/meatspace/post/RhetoricTrainer.jsx b/client/src/components/meatspace/post/RhetoricTrainer.jsxindex c62bcb43de..0618ccf061 100644--- a/client/src/components/meatspace/post/RhetoricTrainer.jsx+++ b/client/src/components/meatspace/post/RhetoricTrainer.jsx@@ -1,5 +1,5 @@import { useEffect, useMemo, useRef, useState } from 'react';-import { ArrowLeft, CheckCircle, ChevronRight, Feather, Lightbulb, RotateCcw, Timer } from 'lucide-react';+import { ArrowLeft, CheckCircle, ChevronRight, Feather, Lightbulb, Repeat2, RotateCcw, Timer } from 'lucide-react';import { submitTrainingEntry } from '../../../services/api';const TRAINING_MODULE = 'rhetoric';@@ -7,6 +7,7 @@ const ROUND_SIZE = 5;const TRAINING_TYPES = {meter: 'rhetoric-meter',diacope: 'rhetoric-diacope',+ chiasmus: 'rhetoric-chiasmus',progressia: 'rhetoric-progressia',brainstorm: 'rhetoric-brainstorm',};@@ -38,6 +39,19 @@ export const RHETORIC_MODES = [],checklist: ['the repeated word is exact or intentionally varied', 'a meaningful gap separates the repetitions', 'the repetition adds urgency or emphasis'],},+ {+ id: 'chiasmus', label: 'Chiasmus', icon: Repeat2, color: 'text-rose-400', bgColor: 'bg-rose-500/20',+ description: 'Cross a phrase’s terms or structure so the second half mirrors the first in reverse.',+ example: 'We shape our tools, and thereafter our tools shape us.',+ prompts: [+ 'Write a line about learning that reverses its key terms.',+ 'Turn a choice between freedom and safety into a crossed sentence.',+ 'Write a compact chiasmus about listening and speaking.',+ 'Use a reversal to show a friendship changing over time.',+ 'Write a comic chiasmus about making plans and plans making trouble.',+ ],+ checklist: ['two paired terms or structures appear in reverse order', 'the reversal changes or sharpens the thought', 'the syntax stays clear when read aloud'],+ },{id: 'progressia', label: 'Progressia', icon: ChevronRight, color: 'text-purple-400', bgColor: 'bg-purple-500/20',description: 'Build an idea step by step until the final phrase lands harder.',diff --git a/client/src/components/meatspace/post/RhetoricTrainer.test.jsx b/client/src/components/meatspace/post/RhetoricTrainer.test.jsxindex 9d8d0fd923..c480665b3b 100644--- a/client/src/components/meatspace/post/RhetoricTrainer.test.jsx+++ b/client/src/components/meatspace/post/RhetoricTrainer.test.jsx@@ -13,6 +13,7 @@ describe('RhetoricTrainer', () => {render(<RhetoricTrainer {...props} />);expect(screen.getByText('Iambic Pentameter')).toBeInTheDocument();expect(screen.getByText('Diacope')).toBeInTheDocument();+ expect(screen.getByText('Chiasmus')).toBeInTheDocument();expect(screen.getByText('Progressia')).toBeInTheDocument();expect(screen.getByText('Rhetorical Brainstorm')).toBeInTheDocument();});@@ -27,4 +28,11 @@ describe('RhetoricTrainer', () => {fireEvent.click(save);expect(screen.getByText('Prompt 2')).toBeInTheDocument();});++ it('offers a chiasmus prompt and craft checklist', () => {+ render(<RhetoricTrainer {...props} mode="chiasmus" />);+ expect(screen.getByText('Chiasmus')).toBeInTheDocument();+ expect(screen.getByText(/reverses its key terms/i)).toBeInTheDocument();+ expect(screen.getByText(/reverse order/i)).toBeInTheDocument();+ });});diff --git a/server/lib/navManifest.js b/server/lib/navManifest.jsindex ab1a005b26..08b1546e54 100644--- a/server/lib/navManifest.js+++ b/server/lib/navManifest.js@@ -210,7 +210,7 @@ export const NAV_COMMANDS = [{ id: 'nav.post.morse.length', path: '/post/morse?ref=length', label: 'Morse Length', section: 'POST', aliases: ['morse-length', 'morse length', 'morse-by-length'], keywords: ['cw', 'reference', 'symbol length', 'chart'] },{ id: 'nav.post.morse.list', path: '/post/morse?ref=list', label: 'Morse List', section: 'POST', aliases: ['morse-list', 'morse list', 'morse-table', 'morse-alphabet'], keywords: ['cw', 'reference', 'alphabet', 'table', 'chart'] },{ id: 'nav.post.progress', path: '/post/progress', label: 'Progress', section: 'POST', aliases: ['post-progress', 'progress'], keywords: ['trends', 'stats', 'streak', 'dashboard', 'time in training', 'accuracy', 'speed'] },- { id: 'nav.post.rhetoric', path: '/post/rhetoric', label: 'Rhetoric', section: 'POST', aliases: ['post-rhetoric', 'rhetoric', 'rhetorical practice'], keywords: ['writing', 'brainstorming', 'iambic pentameter', 'diacope', 'progressia', 'figures of speech'] },+ { id: 'nav.post.rhetoric', path: '/post/rhetoric', label: 'Rhetoric', section: 'POST', aliases: ['post-rhetoric', 'rhetoric', 'rhetorical practice'], keywords: ['writing', 'brainstorming', 'iambic pentameter', 'diacope', 'chiasmus', 'progressia', 'figures of speech'] },{ id: 'nav.post.wordplay', path: '/post/wordplay', label: 'Wordplay', section: 'POST', aliases: ['post-wordplay'] },{ id: 'nav.settings.ai-assignments', path: '/settings/ai-assignments', label: 'AI Assignments', section: 'Settings', aliases: ['ai-assignments', 'assignments', 'settings-ai-assignments', 'ai-inventory'], keywords: ['provider', 'model', 'pin', 'inventory', 'migration', 'llm'] },diff --git a/server/lib/postValidation.js b/server/lib/postValidation.jsindex 1673646c90..f099ce9ffd 100644--- a/server/lib/postValidation.js+++ b/server/lib/postValidation.js@@ -106,7 +106,7 @@ const MORSE_DRILL_TYPES = ['morse-copy', 'morse-head-copy', 'morse-send'];// Rhetoric is a standalone, self-assessed training surface. It never enters a// scored POST session or calls an LLM, but its rounds still use the shared// training log endpoint for streaks and progress reporting.-const RHETORIC_DRILL_TYPES = ['rhetoric-meter', 'rhetoric-diacope', 'rhetoric-progressia', 'rhetoric-brainstorm'];+const RHETORIC_DRILL_TYPES = ['rhetoric-meter', 'rhetoric-diacope', 'rhetoric-chiasmus', 'rhetoric-progressia', 'rhetoric-brainstorm'];const drillTypeConfigSchema = z.object({enabled: z.boolean().optional(),diff --git a/server/lib/postValidation.test.js b/server/lib/postValidation.test.jsindex 464c962dde..b8b3d84eec 100644--- a/server/lib/postValidation.test.js+++ b/server/lib/postValidation.test.js@@ -104,7 +104,7 @@ describe('Morse drill types stay scoped to the training log', () => {describe('Rhetoric drill types stay scoped to the training log', () => {it('accepts each standalone rhetoric exercise without making it a generatable POST drill', () => {- for (const drillType of ['rhetoric-meter', 'rhetoric-diacope', 'rhetoric-progressia', 'rhetoric-brainstorm']) {+ for (const drillType of ['rhetoric-meter', 'rhetoric-diacope', 'rhetoric-chiasmus', 'rhetoric-progressia', 'rhetoric-brainstorm']) {const parsed = trainingEntrySchema.parse({module: 'rhetoric', drillType, questionCount: 5, correctCount: 4, totalMs: 60000,});