Task Monki Documentation
Date: 2026-08-30
This folder is the operating context for Task Monki development. It should help humans and AI agents understand what is current without reading stale planning snapshots.
Public Docs#
These docs are safe to keep in the repository because they describe current behavior and architecture, not private roadmap sequencing.
Workflow And Evidence#
docs/PRODUCT_WORKFLOW.md- Product model, board phases, action rules, and UI priority.
docs/workflows/PR_STATUS_CARD_FLOW.md- Current PR Status card behavior, GitHub evidence model, action pauses, render matrix, and merge/check completion coupling.
docs/workflows/AGENT_REVIEW_WORKFLOW_LIFECYCLE.md- Authoritative review workflow lifecycle. Read before touching review, follow-up, stale-review, or interrupt behavior.
docs/workflows/AGENT_PROGRESS_OVERVIEW.md- Authoritative Overview agent progress and activity model documentation: data flow, renderer behavior, evidence boundaries, and invariants.
docs/DEV_SEEDING.md- Deterministic local seed data for UI and workflow testing.
docs/workflows/GENERAL_AGENT_DISCOURSE_LIFECYCLE.md- Global technical conversations, Direct/Panel/Team policy, scoped runtime execution, context freshness, review/correction, cancellation, and recovery.
docs/PROVIDER_SMOKE_TESTING.md- Live provider/model verification through TaskManagerService in a clean, remote-free throwaway Git repository.
docs/testing-strategy/STRATEGY.md- Post-change agent testing workflow, layer boundaries, safety contract, measured timings, and exact usage.
docs/testing-strategy/RESEARCH.md- Repository audit, primary-source comparison, measurements, and evidence behind the selected testing workflow.
Architecture#
docs/architecture/PERSISTENCE_ARCHITECTURE.md- Current SQLite authority, managed-file and Design Git ownership, transactions, startup checks, schema upgrades, backup, restore, and corruption handling.
docs/architecture/CRASH_RECOVERY.md- Application-level startup ordering, authoritative recovery sources, no-replay rules, process ownership, and Git/GitHub adoption.
docs/architecture/AGENT_RUNTIME_ARCHITECTURE.md- Current multi-runtime registry, durable identity, routing, capability, security, recovery, and extension boundaries.
docs/architecture/PROVIDER_RUNTIME_COMPATIBILITY.md- Current support tiers, native and ACP runtime matrix, readiness conditions, provider-specific limits, and execution security boundaries.
docs/architecture/PREVIEW_ARCHITECTURE.md- Canonical Preview authority, lifecycle, native/Compose runtime, security, ownership, storage, shutdown, and recovery architecture.
docs/architecture/PREVIEW_RECIPE_GENERATION.md- Agent-assisted Preview recipe authoring, sanitized repository evidence, structured drafts, review UX, validation, and exact acceptance boundary.
docs/APP_SERVER_ARCHITECTURE.md- Current Codex App Server integration architecture and responsibility boundaries.
docs/architecture/CODEX_PROTOCOL_AND_COUPLING_NOTES.md- Protocol compatibility, generated bindings, and provider-coupling rules.
docs/architecture/ATTACHMENT_LIFECYCLE.md- Current restricted attachment formats (and explicitly unsupported generic files/PDFs), composer normalization, durable storage and retry rules, Codex delivery, HTTP/Electron trust boundaries, resource limits, portability, cleanup, and deletion semantics.
docs/architecture/MODULE_BOUNDARIES.md
- Current module ownership, dependency direction, test placement, and domain-specific verification commands for maintainers and agents.
User And Maintainer Docs#
docs/PREVIEW_GUIDE.md- Public Preview workflow, UI actions, recipe reference, native and Compose examples, private inputs, attachments, data effects, and troubleshooting.
docs/INSTALL.md- User-facing install, platform trust, and automatic-update instructions.
docs/RELEASING.md- Maintainer workflow for trusted cross-platform GitHub Releases.
docs/CUSTOM_AGENT_PROFILES.md- Profile library, assignment, saved instructions, runtime boundaries, and persistence.
Interface Design#
- Root
DESIGN.md- Current interface principles, CSS-token rules, component guidance, status semantics, accessibility expectations, and UI review checklist.
Window behavior is implemented in src/electron/main.ts,
src/electron/windowChrome.ts, and src/renderer/styles/app-shell.css (ordered
through src/renderer/styles.css). There is no separate window-chrome design
document.
For agent-specific working instructions, start at root AGENTS.md.
Private Or Ignored Docs#
Do not publish roadmap, competitive strategy, temporary status handoffs, generated mockups, screenshots, or broad opportunity lists. Keep those in one of:
docs/private/docs/plans/- an external private workspace
Documentation rules#
- Prefer one current source of truth over many dated phase notes.
- Keep active behavior docs in
docs/workflows/ordocs/architecture/. Historical research notes should not be used as the current source of truth. - When code changes alter workflow behavior, update the matching workflow doc in the same change.
- If a doc is a mockup export, temporary screenshot bundle, or old phase status, remove it once the durable decision has been captured in markdown.
- Do not let provider telemetry docs override Task Monki's local evidence model.
Core invariants#
- Task Monki is authoritative for tasks, workflow phase, worktrees, Git state, GitHub delivery, and acceptance.
- Each runtime is authoritative only for its own process, session, turn, item, approval, plan, model, settings, and usage events.
- Provider reports are useful context, not verified evidence.
- Git and GitHub evidence must be observed independently by Task Monki.
- An agent review is a check inside the Review phase; requested changes are implementation work and belong in In Progress while they run.
Useful commands#
npm run typecheck
npm run check:architecture
npm run test:focused
npm run test:integration
npm run test:system
npm run test:agent-workflow
npm test
npm run test:renderer:dom
npm run build
npm run check:codex-protocol
git diff --checknpm run test:renderer:dom mounts focused renderer interactions in JSDOM so
focus, events, effects, and cleanup are verified in addition to static markup.
npm run test:focused is the fast behavior loop. Integration and system tests
remain part of npm test; their separate commands make cost and ownership
visible without weakening the full gate.
npm run verify runs the repository-wide automated verification sequence.
For a safe real-process inner loop after Git, worktree, workflow, or runtime
changes, run npm run test:agent-workflow. Add -- --ui only when the
renderer itself needs semantic browser inspection; see
docs/testing-strategy/STRATEGY.md.
For bounded accumulated-history, concurrent-output, Preview, provider-loss,
and soak evidence, add -- --stress; combine --stress --ui for semantic
inspection of live concurrent output.
For deterministic UI and workflow testing, start from npm run dev:seed and the
generated .local/task-monki-dev-seed/manifest.json.
Run targeted tests when iterating, but use the full set above before merging workflow, storage, protocol, or renderer changes.