Guard task edits with optional versions #57
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 256 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.332
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #57"
general
weight: 0.35
emanuele-em
Stacked on #58: merge it after #58. Until then GitHub shows #58's commits here too; this PR's own are the last three: Guard task edits with optional versions, Store task versions as 64-bit integers and Cut the version guard's README section to two lines.
Two agents can read the same task and overwrite each other.
get_taskwithinclude_version: truenow adds the task's version;update_taskwithif_versionchecks it and writes in the same transaction. A stale edit changes nothing and asks the agent to reread. Calls without these fields, and their replies, are unchanged. Fixes #54.A version is the task's number and 64 random bits from SQLite, like
12.9c1f0a7e3b5d4268, in a smalltask_revstable that triggers keep up to date. So writes from the board, bulk edits and older Kanzo versions count too. It changes with the title, description, column, project, tags, url,human,escalatedand the task's ownwaits_onlist. Reordering, comments and a blocker finishing don't change it.With #58, a guarded handoff saves its comment only when the version holds. Its reply ends with the new version:
Updated api#1, todo -> review: …\nComment added as agent.\nversion: 1.….Migration 12 adds the table, after #58's 11.
schema.sqland the compatibility floor are unchanged, so older Kanzo versions keep opening the board.Since the review:
Tokens: the tool list grows by 224 bytes (
include_versionandif_version).cargo fmt --check,cargo clippy --all-targets -- -D warningsandcargo testpass (133 tests, with #58)