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.6 KiB

ADDED Requirements

Requirement: Task generation

The system SHALL generate actionable tasks for users based on their roles and the current state of financial objects. Task types include: attest expense claims, attest inbound invoices, validate receipts, and approve payouts.

Scenario: Expense claim pending attestation

  • WHEN an expense claim is submitted against an account whose budget owner is User A
  • THEN a task "Attest expense claim #N" appears in User A's task list

Scenario: Inbound invoice pending attestation

  • WHEN an inbound invoice is registered against a budgeted account
  • THEN a task appears for the budget owner to attest it

Requirement: Task lifecycle

Each task SHALL have a creation timestamp and an optional expiry. Tasks are automatically resolved when the underlying action is completed (e.g., claim attested). Tasks that expire without action SHALL be visually flagged.

Scenario: Task auto-resolves

  • WHEN User A attests expense claim #N
  • THEN the corresponding task is removed from User A's task list

Scenario: Expired task

  • WHEN an attestation task exceeds its expiry period (14 days from claim creation)
  • THEN the task is flagged as overdue in the dashboard

Requirement: Task list API

The system SHALL expose a REST endpoint returning the current user's active tasks, grouped by type, with counts per group.

Scenario: Fetch task list

  • WHEN the frontend requests the current user's tasks
  • THEN the API returns tasks grouped by type (e.g., "Attest Expenses: 3", "Validate Receipts: 1") with individual task details