nitijo-save 0.1.0

Veto-based policy checks for protecting everyday life during change
Documentation
  • Coverage
  • 100%
    38 out of 38 items documented0 out of 21 items with examples
  • Size
  • Source code size: 16.8 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 442.1 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 18s Average build duration of successful builds.
  • all releases: 18s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • hidenoriuehara-art

nitijo-save

nitijo-save (日常を守る) is a dependency-free Rust policy library for reviewing changes that affect everyday life. It uses six explicit principles:

  • informed consent;
  • meaningful choice;
  • continuity of ordinary routines;
  • access to essential people, places, and services;
  • reversibility and a way back;
  • proportionate burden.

Each principle needs a finding and non-empty evidence. The decision model is veto-based: a known deprivation cannot be averaged away by stronger scores in other areas.

Decisions

  • Reject: at least one finding deprives everyday life;
  • NeedsEvidence: no known deprivation, but a principle is unassessed;
  • Revise: every principle is assessed, but at least one remains at risk;
  • Accept: every principle is explicitly protected.

Example

use nitijo_save::{
    ChangeProposal, EverydayPrinciple as P, Finding, ProtectionDecision,
    ProtectionPolicy,
};

let proposal = ChangeProposal::new("Neighborhood service move")?
    .assess(P::InformedConsent, Finding::Protected, "Residents approved the plan")?
    .assess(P::MeaningfulChoice, Finding::Protected, "Existing service remains available")?
    .assess(P::RoutineContinuity, Finding::AtRisk, "Opening hours may change")?
    .assess(P::EssentialAccess, Finding::Protected, "Step-free route verified")?
    .assess(P::Reversibility, Finding::Protected, "Three-month rollback window")?
    .assess(P::ProportionateBurden, Finding::Protected, "No added fee or travel time")?;

let report = ProtectionPolicy::evaluate(&proposal);
assert_eq!(report.decision(), ProtectionDecision::Revise);
assert_eq!(report.at_risk(), &[P::RoutineContinuity]);

# Ok::<(), nitijo_save::ProtectionError>(())

Run the bundled example:

cargo run --example review_change

Scope

This crate makes a decision rule inspectable; it cannot determine whether evidence is truthful or replace participation by affected people, legal review, accessibility expertise, or professional safeguarding judgment.

License

MIT