Skip to content

fushinryu-model

fushinryu-model is a Python library providing the domain entities for the Fūshinryū (風心流) development projects management methodology.

It models the core requirement artefacts — scopes, user stories, acceptance criteria, and validation records — as immutable, mergeable Pydantic models.

Key features

  • Structured requirementsScope, UserStory, and AcceptanceCriterion form a clear hierarchy that maps directly to standard agile practices.
  • Immutable validation recordsManualValidation and AutomatedValidation are frozen models; once recorded, evidence cannot be silently mutated.
  • Merge semantics — every entity supports controlled merging where child values override parent values, enabling scope inheritance without data loss.
  • DAG scope hierarchyScope instances can declare ordered parent scopes and collapse() the full ancestry into a single flat scope.
  • Rule categoriesCategory, Commandment, and Suggestion model the hatto (法度): scoped policy rule sets that merge hierarchically by tree position.
  • Pydantic v2 — full static typing, field validators, and discriminated unions throughout.