Projects: classes as entities, and the sidebar fits short windows
check / check (push) Canceled after 0s

A project is a class with facts (description, status, kind, party,
dates, links, notes) in one project.set event behind the format
feature projects. Four tools (books.add_project, update_project,
projects, project); documents and decisions link to projects; B-37:
on-spec costs are expensed as incurred, repayment is revenue, and the
unrecovered cost is never below zero (Kani). Viewer: a Projects list
and a project page with its figures, by month and by account. The
sidebar measures its footer instead of reserving a fixed 172 px.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T3gXMVt7XJPi6ens1or9Dj
This commit is contained in:
swaitsandClaude Opus 5.5 committed 2026-10-22 03:50:52 -06:00
1 parent 0495726001
commit 321b94562a
71 files changed
+7446 -217

No files matched your search

+4
View File
@@ -273,6 +273,8 @@ pub struct NewDecision {
pub supersedes: Option<u64>,
/// The rule or document it rests on, if any.
pub citation: Option<String>,
/// The projects (classes) it is about, if any (rules.md B-37).
pub projects: Vec<crate::ClassId>,
}
/// A decision as the journal holds it.
@@ -794,6 +796,7 @@ pub fn check_decision(d: &NewDecision) -> Result<NewDecision, String> {
.as_deref()
.map(|c| long_text("citation", c, MAX_LONG_TEXT))
.transpose()?,
projects: d.projects.clone(),
})
}
@@ -982,6 +985,7 @@ mod tests {
evidence_attachment: None,
supersedes: None,
citation: None,
projects: vec![],
};
assert!(c.apply_decision(2, d.clone(), 1).is_err());
c.apply_decision(1, d.clone(), 1).unwrap();