Files
rick 212f19ac19 Add v6-rewrite OpenSpec: proposal, design, specs, and tasks
Complete specification for rewriting Swarmops v5 as using.cash v6:
- Proposal: scope buckets (Working Rewrite / First Beyond Working / Maybe),
  non-goals (governance, geography, memberships permanently cut)
- Design: 18 architectural decisions including preserved patterns
  (Basic/Logic, stored procs, credential split), new patterns (repository
  classes, chain abstraction, rate providers), and operational concerns
  (Galera awareness, continuation transactions, VAT booking, OOD
  denormalization)
- Specs: 17 capability specifications with SHALL/MUST requirements and
  WHEN/THEN scenarios, covering accounting core, AP/AR, crypto treasury,
  exchange rates, organizations, users/auth, documents, comms, dashboard,
  end-of-month, backend worker, event bus, data migration, API layer,
  frontend app, and CI/packaging
- Tasks: 145 implementation tasks grouped by subsystem, ordered by
  dependency (migration gates API/frontend work)

Two rounds of adversarial review incorporated.

Made-with: Cursor
2026-04-08 16:02:58 +02:00

1.9 KiB

ADDED Requirements

Requirement: Multi-tenant organization model

The system SHALL support multiple organizations on a single instance. Each organization is a flat entity (no tree hierarchy) with its own financial accounts, transactions, users, and settings. All data queries are scoped to the active organization.

Scenario: Create organization

  • WHEN a system administrator creates a new organization with a name and default currency
  • THEN the organization is created with a standard chart of accounts and ready for use

Scenario: Data isolation

  • WHEN a user queries financial data while working in Organization A
  • THEN only Organization A's accounts, transactions, and documents are visible

Requirement: Organization settings

Each organization SHALL have configurable settings including: name, default currency, closed-through year, organization logo, VAT enabled flag, default VAT rate (percentage for outbound invoice pre-fill), VAT report frequency, economy enabled flag, first fiscal year, government registration ID, tax authority, tax account, and financial mail name/address. These are denormalized from v5 ObjectOptionalData into first-class columns.

Scenario: Update organization name

  • WHEN an authorized user changes the organization name
  • THEN the new name is reflected across the UI

Scenario: View closed-through year

  • WHEN a user views organization settings
  • THEN the current closed-through fiscal year is displayed

Requirement: Organization switching

A user with access to multiple organizations SHALL be able to switch between them. The active organization determines the scope of all subsequent operations.

Scenario: Switch organization

  • WHEN a user with access to organizations A and B switches from A to B
  • THEN all subsequent data views and operations are scoped to organization B