Lukas May
771cd71c1e
feat: Validate default branch exists in repo when setting project defaultBranch
...
registerProject and updateProject now verify via remoteBranchExists that the
specified branch actually exists in the cloned repository before saving.
2026-02-10 11:46:00 +01:00
Lukas May
a8d3f52d09
feat: Re-add initiative branch field and add projects settings page
...
Allow users to specify a custom branch when creating initiatives
(auto-generated if left blank). Add updateProject tRPC procedure
and /settings/projects page with inline-editable defaultBranch.
2026-02-10 11:19:48 +01:00
Lukas May
fc3039a147
fix(dispatch): Filter planning-category tasks from dispatch pipeline and agent context
...
Planning tasks (research, discuss, plan, detail, refine) have their own
architect flow and should never enter the dispatch pipeline or clutter
agent context. Three changes:
1. Phase auto-queue skips planning-category tasks
2. Safety net in getNextDispatchable() skips planning tasks
3. gatherInitiativeContext() filters to execution tasks only
2026-02-10 11:18:17 +01:00
Lukas May
0407f05332
refactor: Rename agent modes breakdown→plan, decompose→detail
...
Full rename across the codebase for clarity:
- breakdown (initiative→phases) is now "plan"
- decompose (phase→tasks) is now "detail"
Updates schema enums, TypeScript types, events, prompts, output handler,
tRPC procedures, CLI commands, frontend components, tests, and docs.
Also fixes 0022 migration multi-statement issue (adds statement-breakpoint markers).
2026-02-10 10:51:42 +01:00
Lukas May
bf898cb86e
feat(agent): Enrich breakdown/decompose agent input with full initiative context
...
Breakdown and decompose agents now receive all existing phases, tasks,
and pages as read-only context so they can plan with awareness of what
already exists instead of operating in a vacuum.
2026-02-10 10:18:55 +01:00
Lukas May
9d418a0076
docs(agent): Update agent documentation
...
Update agent.md with latest implementation details.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
2026-02-10 09:52:46 +01:00
Lukas May
34d780b4d0
docs: Update CLI docs for --token flag in account register
...
Updated cli-config.md to document the new --token option for
account registration command.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
2026-02-10 09:52:19 +01:00
Lukas May
342b490fe7
feat: Task decomposition for Tailwind/Radix/shadcn foundation setup
...
Decomposed "Foundation Setup - Install Dependencies & Configure Tailwind"
phase into 6 executable tasks:
1. Install Tailwind CSS, PostCSS & Autoprefixer
2. Map MUI theme to Tailwind design tokens
3. Setup CSS variables for dynamic theming
4. Install Radix UI primitives
5. Initialize shadcn/ui and setup component directory
6. Move MUI to devDependencies and verify setup
Tasks follow logical dependency chain with final human verification
checkpoint before proceeding with component migration.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
2026-02-10 09:48:51 +01:00
Lukas May
fab7706f5c
feat: Phase schema refactor, agent lifecycle module, and log chunks
...
Phase model changes:
- Drop `number` column (ordering now by createdAt + dependency DAG)
- Replace `description` (plain text) with `content` (Tiptap JSON)
- Add `approved` status as dispatch gate
- Add phase dependency management (list, remove, dependents)
- Approval gate in PhaseDispatchManager.queuePhase()
Agent log chunks:
- New `agent_log_chunks` table for DB-first output persistence
- LogChunkRepository port + DrizzleLogChunkRepository adapter
- FileTailer onRawContent callback streams chunks to DB
- getAgentOutput reads from DB first, falls back to file
Agent lifecycle module (src/agent/lifecycle/):
- SignalManager: atomic signal.json read/write/wait operations
- RetryPolicy: exponential backoff with error-specific strategies
- ErrorAnalyzer: pattern-based error classification
- CleanupStrategy: debug archival vs production cleanup
- AgentLifecycleController: orchestrates retry/recovery flow
- Missing signal recovery with instruction injection
Completion detection fixes:
- Read signal.json file instead of parsing stdout as JSON
- Cancellable pollForCompletion with { cancel } handle
- Centralized state cleanup via cleanupAgentState()
- Credential handler consolidation (prepareProcessEnv)
Prompts refactor:
- Split monolithic prompts.ts into per-mode modules
- Add workspace layout section to agent prompts
- Fix markdown-to-tiptap double-serialization
Server/tRPC:
- Subscription heartbeat (30s) and bounded queue (1000 max)
- Phase CRUD: approvePhase, deletePhase, dependency queries
- Page: findByIds, getPageUpdatedAtMap
- Wire new repositories through container and context
2026-02-09 22:33:28 +01:00
Lukas May
2877484012
Add userDismissedAt field to agents schema
2026-02-07 00:33:12 +01:00
Lukas May
1156933a8e
fix(15-02): remove Plan layer from UI hierarchy
...
Simplified to Initiative → Phase → Task (no intermediate Plan layer).
Removed PlanTree component, tasks now directly under PhaseAccordion.
2026-02-02 15:48:52 +01:00
Lukas May
c1386ed227
docs(15-02): create initiative detail wireframe with hierarchical breakdown
...
- ASCII wireframe showing phase -> plan -> task hierarchy
- Status indicators: DONE, IN PROGRESS, PENDING, BLOCKED
- Agent assignments shown inline with tasks
- Dependency visualization with ^ indicators
- Component specs: PhaseAccordion, PlanTree, TaskRow, DependencyIndicator, DecisionList
- Interaction notes for click actions, modals, and spawn dialog
2026-02-02 14:58:06 +01:00
Lukas May
95c3f5f6b8
docs(15-03): create agent inbox wireframe
...
- ASCII wireframes for inbox list and message detail views
- Multi-question Q&A layout with radio/checkbox variants
- Component specifications: InboxList, MessageCard, MessageDetail, QuestionForm, OptionGroup, FreeTextInput
- Interaction flow for answer submission and real-time updates
- Filter/sort options for message management
2026-02-02 14:58:01 +01:00
Lukas May
31bb8c7758
docs(15-01): create initiative dashboard wireframe
...
- ASCII wireframe showing initiative list with status, progress, actions
- Empty state wireframe for no initiatives
- Component specs: InitiativeCard, ProgressBar, StatusBadge, ActionMenu, SpawnArchitectDropdown
- Interaction notes for navigation, spawning architects, filtering
- Data requirements and responsive behavior documentation
2026-02-02 14:57:42 +01:00