Skip to content

Document the architecture and the business of RimBank before Stage 2 - #138

Merged
KsiProgramming merged 2 commits into
mainfrom
docs/architecture-and-business
Nov 9, 2026
Merged

KsiProgramming merged 2 commits into
mainfrom
docs/architecture-and-business

Conversation

@KsiProgramming

@KsiProgramming KsiProgramming commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Roadmap phase

Phase: n/a (documentation before Stage 2, Product Directory)
Planning package: n/a

Summary

Adds the project's architecture and business documentation, indexed from docs/README.md and linked from the root README. The root README's status line now says Stages 0 and 1 are done.

Architecture (docs/architecture/, 9 documents): overview (drivers, quality priorities, styles, key decisions), C4 (context, containers, components, code), data model and ERD (logical, event, physical PostgreSQL, published language, read models), 10 sequence diagrams, logic flows and state machines (pipeline in the real check order, every decision tree with its error codes), data flow (data flow diagrams, personal-data classification, lineage), dependencies (project graph, dependency matrix, context map), deployment, security and operations (trust boundaries, STRIDE, runbooks), quality scenarios, risks and readiness for Stage 2.

Business (docs/business/, 5 documents): BIAN v14 positioning and capability map; a glossary of every Party field and value list with BIAN and ISO definitions; business ERD with worked examples; five value streams; eight banking use cases and a guide for systems that consume Party events.

Keeping the documents current: a new update-docs Claude Code skill (.claude/skills/update-docs/) maps any change to the documents and diagrams it affects, updates them, renders every diagram and checks every link. open-phase-pr runs it before every PR, plan-feature plans the documentation tasks with it, and the PR template gains a documentation item.

Items for reviewers:

  • BIAN value lists: BIAN gives no definitions for the relationship types, legal structures and document types. Those meanings are read from the names.
  • RimBank's own modelling: the value streams and the personal-data classes are RimBank's own, not BIAN's, and the documents say so.
  • Personal data in the event history: the documents flag that personal data in the event history conflicts with GDPR erasure (roadmap 7.2, needs an ADR).
  • Not built yet: the production deployment and the cross-context flows are marked (target).

Definition of done

Documentation only: no code, read model, BIAN operation or ADR changes. Code items are N/A.

  • GitHub Actions CI green

Validation

  • All 61 Mermaid diagrams rendered without errors with @mermaid-js/mermaid-cli 11.4.2.
  • Every relative link in the new and changed files resolves to an existing file.
  • Field names, events, routes, MCP tool names, error codes and storage names were checked against src/ and the ADRs.

🤖 Generated with Claude Code

… C4, ERD, sequences, flows, data flow, dependencies, security, value streams and the Party glossary

Adds docs/architecture (9 documents) and docs/business (5 documents) with
61 Mermaid diagrams, indexed from docs/README.md, and links them from the
root README, whose status line now says Stages 0 and 1 are done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@KsiProgramming KsiProgramming added documentation Improvements or additions to documentation type:docs Documentation, specs or the constitution area:architecture Architecture tests and dependency rules (ArchUnitNET) context:party Party / Party Reference Data Directory labels Nov 9, 2026
@KsiProgramming KsiProgramming self-assigned this Nov 9, 2026
…ocs skill, run by open-phase-pr and planned by plan-feature

The skill maps a change (service domain, operation, field, event, error,
table, dependency, security, deployment) to the architecture and business
documents it affects, updates them, renders every Mermaid diagram and checks
every link. The PR template gains a documentation item.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@KsiProgramming KsiProgramming added area:ci GitHub Actions, Dependabot, CodeQL, build governance and removed area:ci GitHub Actions, Dependabot, CodeQL, build governance labels Nov 9, 2026
@KsiProgramming
KsiProgramming merged commit f255a2f into main Nov 9, 2026
0 of 3 checks passed
@KsiProgramming
KsiProgramming deleted the docs/architecture-and-business branch November 10, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:architecture Architecture tests and dependency rules (ArchUnitNET) context:party Party / Party Reference Data Directory documentation Improvements or additions to documentation type:docs Documentation, specs or the constitution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant