Builds the four-seam, three-write-path reference demo backend: case-framework (seam D stand-in), legacy-backend/frontend (SQL Server, seams A/B/C targets), and new-backend (Domain/Application/Infrastructure.*/Api implementing the source resolver, take/release-ownership, write-through translator, and owned assessment flow), wired together via docker-compose with a plain placeholder frontend standing in for the Angular portal until Session 2. All 11 Architecture.Tests pass and scripts/smoke.sh passes end-to-end against a fresh `docker compose up`, covering acceptance criteria 1-3 and 7-22. Fixes two real domain bugs found only once the stack ran for real: the BSN eleven-proof checksum trivially passes all-zero digits, and the adoption mapper silently treated a partial legacy address as absent instead of failing loudly. Also fixes several environment-specific integration issues (rootless Podman/SELinux bind-mount permissions, a buildah NuGet layer-caching bug, SqlClient's invariant-globalization incompatibility, and an nginx path-prefix mismatch for the legacy frontend). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1.5 KiB
1.5 KiB
Sync: documented, not implemented
In production, a one-way sync would propagate data the new system owns back
to the legacy store, so legacy-side readers (reports, other integrations that
still query legacy-db directly) keep seeing current data for adopted cases.
- Direction: new → old only. Never the reverse — once a case is owned, the new domain is the sole authority on it (ADR-003), so nothing should flow back to overwrite the new aggregate.
- Shrinks over time: as more capabilities are taken into ownership (and, eventually, as legacy readers are themselves retired or redirected), the set of fields this sync needs to cover shrinks. It does not grow.
This demo deliberately does not implement it. Its absence has two visible consequences, both intentional:
- The legacy UI shows adopted cases as stale-and-locked, not updated.
/legacyrenders amigrated=truerow greyed out with actions disabled and a link back to the new portal — it does not show the new system's edits, because nothing pushes them there. That greyed-out treatment is the honest substitute for a sync that does not exist. - Ownership release is blocked once edits exist.
DELETE /api/worklist/owned/{id}/ownershipreturns409once `domain_writes_since0
(§7.6) — releasing would silently discard those edits, since there is no sync to have propagated them back to legacy first. The409` is the cost of the missing sync made visible, rather than a data-loss bug made invisible.