Archive a project instead of deleting it #96
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 492 lines diff across 6 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.371
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #96"
general
weight: 0.35
emanuele-em
Fixes #81
What this changes
You can archive a project when its work is done. An archived project keeps its tasks and comments. Delete project does not change.
list_projectsdoes not list a project that is out of sight. It adds one last line,(+N archived). Theone of: ...hints also leave out these projects. A lookup by slug or by linked repo still finds an archived project, socreate_taskwith its slug works.PATCH /api/projects/{slug}accepts{"archived": true}and{"archived": false}./api/boardsendsarchived_atfor each project.kanzo exportdoes not writearchived_at, so the export keeps the same keys.⌘1–⌘9count only the projects in sight. The Chinese text is 「封存」, 「取消封存」, and 「已封存」.projects.archived_at(TEXT). It is NULL for a project in use.Size
measure.pynow adds a project with 13 done tasks and archives it. Thus CI shows the effect onlist_projects. Release builds on macOS, 3000 tasks:| Measurement | Base | Head |
| --- | --- | --- |
|
list_projectsreply | 83 B | 73 B || Tool list (
tools_bytes) | 3855 B | 3855 B || Page | | +3196 B |
|
/api/board| | +75 B || Binary | | +16544 B |
The other MCP replies have the same size as before.
Tests
New tests:
src/store.rs:a_new_board_has_no_archived_project,archive_sets_archived_at_and_restore_clears_it,an_archived_project_without_open_tasks_is_out_of_sight,an_archived_project_with_an_open_task_shows_again,an_archived_project_stays_out_of_sight_when_it_gets_a_done_task,find_project_still_finds_an_archived_project,the_hint_tells_an_empty_board_from_one_where_every_project_is_archivedsrc/web.rs:patching_a_project_archives_and_restores_itsrc/export.rs:an_exported_project_has_no_archived_atChecks by hand
list_projectswith 0, 1, and 2 projects out of sight,create_taskin an archived project, and the hint for an unknown slug.archived_at= null. I archived and restored projects on it in a browser.Known limits
PATCHwith{"archived": true}also archives a project that has an open task. That project stays in sight until its open tasks are done. The board shows Archive only for a project with no open task.archived_at. A computer that joined that board does not show Archive or Restore for its projects.cargo fmt --check,cargo clippy --all-targets -- -D warningsandcargo testpass