Answer principles round 1: 2 🔴, 9 🟡 (0 misread); explicit record versions in place of the Confluence store's hidden state, the routing ruling filed as item 393 for 0.12.0, rule-hook catching heavy runs through uv, poetry, sudo and doas, one unreleased heading, one owner of the no-item message, typed Jira issues, a turn that gives its failure as a value, outcome tests for the Atlassian client, an Emptied reason type, an injected clock and git in touch-predictions, and paired record names

This commit is contained in:
2026-11-16 16:12:36 +01:00
parent a60bfdbc1c
commit ba21a1efcd
41 changed files with 406 additions and 280 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
import dataclasses
from plan_store.markdown_edits import bold_cell, plain
from plan_store.plans import cells, Plan, Written
from plan_store.plans import cells, no_item, Plan, Written
from failure import Failure
from plan.todo_table import Item, parse_row, SHAPE, Table
@@ -30,7 +30,7 @@ class MemoryPlan:
def edit(self, id_: int, fields: dict[str, str], detail: str | None, comment: str | None = None) -> Written | Failure:
if id_ not in self.rows:
return Failure(f"{self.label} holds no item {id_}")
return Failure(no_item(self.label, id_))
written = self.put(id_, self.rows[id_] | cells(fields), self.details.get(id_, "") if detail is None else detail)
if comment is not None and isinstance(written, Written):
self.comments.setdefault(id_, []).append(comment)
@@ -38,7 +38,7 @@ class MemoryPlan:
def finish(self, id_: int) -> Written | Failure:
if self.fails or id_ not in self.rows:
return Failure(self.fails or f"{self.label} holds no item {id_}")
return Failure(self.fails or no_item(self.label, id_))
del self.rows[id_]
self.details.pop(id_, None)
return Written(id_)