-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.py
More file actions
65 lines (50 loc) · 1.54 KB
/
Copy pathmodels.py
File metadata and controls
65 lines (50 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
from dataclasses import dataclass, field
from datetime import datetime, date
from typing import List, Optional, Dict, Any
@dataclass
class Task:
"""A single unit of work the engine can prioritize."""
id: str
title: str
description: str = ""
importance: int = 3
urgency: int = 3
effort_estimate: float = 1.0 # in hours
stress_impact: str = "MEDIUM" # LOW | MEDIUM | HIGH
due_date: Optional[date] = None
time_window: Optional[str] = None # free text for now
category: Optional[str] = None
meta: Dict[str, Any] = field(default_factory=dict)
@dataclass
class ProfileConfig:
"""Configuration that tunes how the engine behaves for a user or context."""
name: str
daily_effort_budget_hours: float = 6.0
max_big_focus: int = 3
weights: Dict[str, float] = field(default_factory=dict)
max_stress_load: float = 1.0 # 0–1 scale
@dataclass
class ScoredTask:
"""Wrapper around a Task with a computed score and explanation."""
task: Task
score: float
breakdown: Dict[str, float]
@dataclass
class Plan:
"""Engine output for a single run."""
profile_name: str
timestamp: datetime
big_focus: List[Task]
support_tasks: List[Task]
parked_tasks: List[Task]
decision_summary: str
engine_version: str = "0.1.0"
@dataclass
class RunLog:
"""Minimal structured log record, suitable for AINet / ledger export."""
timestamp: datetime
profile_name: str
input_task_count: int
big_focus_ids: List[str]
engine_version: str
decision_summary: str