Skip to content

Phase 0 — Stabilize architecture (remove self-HTTP, EF migrations, kill hash chip)#10

Merged
xt0n1-t3ch merged 2 commits into
mainfrom
feat/reve-overhaul
Jun 13, 2026
Merged

Phase 0 — Stabilize architecture (remove self-HTTP, EF migrations, kill hash chip)#10
xt0n1-t3ch merged 2 commits into
mainfrom
feat/reve-overhaul

Conversation

@xt0n1-t3ch

Copy link
Copy Markdown
Owner

Phase 0 of the Reve Intelligence overhaul. Closes #1.

What changed

  • Removed the self-HTTP anti-pattern. Blazor components no longer build a static HttpClient and POST to their own Minimal API. Home and Review now call IDocumentWorkflow directly via DI. Uploads are buffered once and handed straight to the workflow.
  • EF migrations. Replaced EnsureCreatedAsync() with MigrateAsync() + an InitialCreate migration; added a design-time RevaDbContextFactory and a local dotnet-ef tool manifest under .config/.
  • Query split. AsSplitQuery() on the multi-collection document loads (kills the EF single-query warning).
  • Security. Pinned System.Security.Cryptography.Xml 10.0.9 (EF Design pulled a vulnerable 9.0.0 flagged by NuGetAudit).
  • UX. Removed the raw SHA-256 hash chip from the review header (the meaningless bf53… string). Hash stays in audit/export metadata only.

DocumentEndpoints is kept for the external API and export download URLs (the UI no longer depends on it).

Proof

  • dotnet build — 0 warnings, 0 errors.
  • dotnet test — unit 2/2, integration 5/5 green.
  • dotnet format --verify-no-changes — clean.
  • Browser: dashboard + review render via direct DI; review header no longer shows the hash chip; fresh DB created by the migration.

Not in this phase (tracked separately)

Flat/fake confidence, classifier mislabel, real OCR/LLM, and the reference-grade UI land in #2#7.

Pre-existing uncommitted cockpit styling/nav tweaks present in the working
tree before the overhaul branch. Committed as-is to preserve them; the cockpit
is rebuilt cleanly in a later overhaul phase.
…d EF migrations

Phase 0 of the Reve Intelligence overhaul (#1).

- Remove DocumentApiClient; Home and Review call IDocumentWorkflow via DI
  instead of the component posting to its own Minimal API over HTTP.
- Buffer each upload once and hand it to the workflow directly (no self re-POST).
- Replace EnsureCreated with EF migrations (InitialCreate) + MigrateAsync; add a
  design-time DbContext factory and a local dotnet-ef tool manifest.
- Add AsSplitQuery to the multi-collection document loads.
- Pin System.Security.Cryptography.Xml 10.0.9 (EF Design pulled a vulnerable 9.0.0).
- Remove the raw SHA-256 hash chip from the review header.

DocumentEndpoints stays for the external API and export download URLs.
Build 0 warnings; unit 2/2 and integration 5/5 green; format clean.

Refs #1
@xt0n1-t3ch xt0n1-t3ch merged commit 53872a9 into main Jun 13, 2026
1 check passed
@xt0n1-t3ch xt0n1-t3ch deleted the feat/reve-overhaul branch June 13, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Phase 0 — Stabilize architecture (remove self-HTTP, EF migrations, kill hash chip)

1 participant