src.core.assignment_reconciliation module#

Assignment reconciliation for Marcus.

This module handles reconciling persisted assignments with the actual kanban board state on startup or after connectivity issues.

class src.core.assignment_reconciliation.ReconciliationResults[source]#

Bases: TypedDict

Type definition for reconciliation results.

assignments_verified: int#
assignments_restored: int#
assignments_removed: int#
orphaned_tasks: List[Dict[str, Any]]#
errors: List[str]#
class src.core.assignment_reconciliation.AssignmentHealth[source]#

Bases: TypedDict

Type definition for assignment health status.

persisted_count: int#
kanban_assigned_count: int#
mismatches: List[Dict[str, Any]]#
healthy: bool#
error: str#
class src.core.assignment_reconciliation.AssignmentReconciler[source]#

Bases: object

Reconciles persisted assignments with kanban board state.

__init__(persistence, kanban_client)[source]#

Initialize the reconciler.

Parameters:
async reconcile_assignments()[source]#

Reconcile persisted assignments with kanban board state.

Return type:

ReconciliationResults

Returns:

Dictionary with reconciliation results

async get_assignment_health()[source]#

Get health status of assignment tracking.

Return type:

AssignmentHealth

Returns:

Dictionary with health metrics