Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:777genius Agent teams ai Kanban Task Management

From Leeroopedia
Knowledge Sources
Domains Task_Management, Team_Management
Last Updated 2026-10-22 00:00 GMT

Overview

A persisted kanban board system that tracks task status transitions (todo → review → approved) for AI agent teams with column ordering, reviewer assignment, and corrupt-state safety validation.

Description

Kanban Task Management persists the visual board state for agent teams as a `kanban-state.json` file. Each task has a column ('review' or 'approved'), a movedAt timestamp, and an optional reviewer. The system tolerates corrupt or partially written state by falling back to a default empty board, while a strict mode validates all fields and throws on corruption.

Key properties:

  • Tolerant projection: Invalid tasks are silently filtered out, allowing the board to render even after a partial write.
  • Strict validation: A `strict` mode enforces full schema validity for safety-critical operations.
  • Column ordering: Each column maintains an explicit task order array, enabling drag-and-drop reordering.
  • Size guard: A maximum file size (512 KB) prevents unbounded growth from corrupting reads.

Usage

Use this principle when implementing a persisted task board for autonomous agents that must survive process restarts and tolerate partial filesystem failures. Applicable to any kanban-style status tracking where data integrity is critical but availability should not be sacrificed for strictness.

Theoretical Basis

The kanban state follows a tolerant projection with strict fallback pattern:

# Abstract algorithm (NOT real implementation)
async def get_state(team_name, strict=False):
    try:
        raw = read_file(state_path)
        if file_size > MAX_BYTES:
            return default_state() if not strict else raise Error
        parsed = json.loads(raw)
    except NotFound:
        return default_state()

    if strict:
        validate_safety(parsed)  # Throws on any invalid field

    # Tolerant projection: keep only valid tasks
    tasks = {}
    for task_id, value in parsed.tasks.items():
        if valid_column(value.column) and valid_timestamp(value.movedAt):
            tasks[task_id] = value
    return { teamName: team_name, tasks: tasks }

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment