341 sessions of building VPC-ECM taught the lessons that let its sibling, NimbusVault, move fast. Both are in active development; focus moves between them.

Documentum semantics on a stack you own.

Cabinets, folders, typed objects, ACLs, versions, holds, retention and audit — on Java, Spring Boot and PostgreSQL. Every repository gets its own database, and the records rules are enforced by the database itself, not only by the API.

vpc-ecm · REST API1 / 4

What a person can do in it today

Measured in its own session records and walked through in the running app by its builder.

Content

  • Cabinets, folders and documents with versions
  • Check-in, check-out, move and download
  • Move folders with everything inside them
  • Recycle bin and restore
  • Custom object types managed in the UI, with safe rules for types already in use

Records and security

  • Grant-only permissions with inheritance and cumulative levels
  • An access explanation: who can open this, and why
  • Privilege roles granted only through group membership
  • Legal holds with hold types
  • Retention policies with a required rationale, based on Library and Archives Canada rules

Search, audit and process

  • Permission-trimmed keyword and metadata search
  • Semantic search over pgvector that falls back to keywords, saying why
  • An audit row for every change, always naming who did it
  • Sequential approval workflow and lifecycle states
  • Users, groups, sessions, storage quotas — all administered in the UI

One database per repository

HR, Legal, Finance and General each live in their own PostgreSQL database. A query cannot reach another repository’s data, even by mistake — there is no shared data path to make the mistake on.

HTTP filter: repository in URL = repository in token
Per-request repository context, cleared after the response
Separate jOOQ connection per database
ecm_hrHR
ecm_legalLegal
ecm_financeFinance
ecm_generalGeneral
  1. The token and the URL must agree. A request for /legal/… with an HR token is refused before any controller runs.
  2. The context dies with the request. Background work falls back to a test repository, never to the last caller’s.
  3. No shared connection. Each repository has its own connection pool; the platform database holds logins and the registry, never content.

Rules the database enforces

Records rules that live only in an API endpoint get bypassed by the next endpoint. In VPC-ECM they hold even against raw SQL.

Every change is audited

One trigger function writes an audit row for every insert, update and delete. The actor is a mandatory parameter — an audit row without a named person cannot exist.

ADR-053 · ADR-079

Retained content cannot be deleted

An object under a hold or a retention policy is refused deletion, including through cascades. Holds win over retention.

ADR-055 · ADR-076

Type changes never rewrite tables

Typed tables per base type with JSONB custom attributes. A type that is in use accepts additive changes only.

ADR-003 · ADR-075

The explanation is the enforcer

“Who can open this, and why” is computed by the same code that grants or refuses access, so the explanation cannot disagree with reality.

ADR-062 – 064
“Done” means the builder used it in the running app and it worked. Tests passing is never enough.

The name says who built it: Veljko Pesut and Claude, Anthropic’s AI, working as a pair across 341 sessions — Veljko deciding, Claude designing, coding and testing alongside. Its most transferable result is its method. Every number in its README names the session that measured it. Counts come from test report files, not console output. When planning outgrew building, a written scope freeze cut the core to fifteen capabilities and made the rest unreachable instead of deleting it.

Live use found the worst defects again and again — a lesson its sibling now builds into every slice.

5,349backend tests, 0 failures
1,659frontend tests
341recorded working sessions
475commits, Jan – Oct 2026
75architecture decision records
57REST controllers, four modules

Two siblings, different bets

NimbusVault (Nimbus ECM) is the cloud-native sibling. It moved fast because it reuses VPC-ECM’s hard-won lessons — JSONB custom attributes, local stand-ins for AI services, live testing — not its code.

VPC-ECMNimbusVault
DeploymentSelf-hosted, single process; Kubernetes topology designedAWS-first managed services, same code locally
IsolationOne database per repositoryTenants with row-level security, repositories inside
PermissionsGrant-only, cumulativeNamed ACLs, deny overrides grant
AuditDatabase triggers, actor never nullPer-object hash chain, externally anchored
StackSpring Boot, jOOQ, Lit web componentsMicronaut, jOOQ, React

Paths forward, not yet decided:

  • a self-hosted, isolation-first edition for buyers who cannot use a public cloud;
  • a source of tested rules — Canadian retention sources, type-change safety, roles by membership — that flow into NimbusVault, and back;
  • one shared demo script run on both, with the comparison published as evidence.

Interested in a self-hosted ECM?

Organizations that need hard per-department isolation and Documentum-style records control on their own infrastructure are exactly who this was built for.

vpesut@gmail.com