caelum0x 91fe8978d8 feat: enterprise + evidence depth — living evidence, verdict fragility, gated audit export, DSAR + legal hold
Evidence:
- Living Evidence Monitoring: deterministic cumulative meta-analysis (re-pool in time order, first-significant
  + would-a-new-study-flip); monitors + events (0069); backend/engines/pyalex citation-velocity (in-place);
  /api/evidence/living(+/assess) + /console/living-evidence
- Verdict Fragility: Walsh Fragility Index (exhaustive Fisher-exact reassignment) + meta leave-one-out
  robustness + required-information-size; /api/evidence/fragility + /console/fragility

Enterprise:
- Immutable audit export (Enterprise-tier gated): verifyChain + per-entry integrity proofs + export_hash;
  FIRST real requireFeature enforcement -> UpgradeRequired 402 with upgrade CTA; /api/enterprise/audit-export
- Data governance: legal holds (block retention purge) + DSAR export (no secrets/hashes) (0070);
  /api/governance/legal-hold + /api/governance/dsar + /console/governance/data

All numeric/verdict paths deterministic (no LLM); org-scoped; tsc + build green; 0069/0070 applied to Neon.
2026-07-11 03:25:07 +03:00

32 lines
1.2 KiB
TypeScript

"use client";
import { ModuleHeader } from "../../claims/_components/ModuleHeader";
import { LegalHolds } from "./_components/LegalHolds";
import { DsarPanel } from "./_components/DsarPanel";
// Data-governance console: the two compliance surfaces an enterprise admin needs.
//
// * Legal holds — preserve a data subject against retention purge during
// litigation / regulatory obligations. An active hold is the fail-closed input
// the retention worker consults before deleting or anonymizing any subject.
// * DSAR — assemble, org-scoped, everything PaperTrail holds about a data subject
// (counts + non-secret records) for a right-of-access request, downloadable as
// a JSON package.
//
// Both surfaces are admin-only server-side (withOrg + requireRole 'admin'); this
// page renders them for org admins and surfaces honest empty/error states.
export default function DataGovernancePage() {
return (
<div className="space-y-6">
<ModuleHeader
title="Data governance"
subtitle="Legal holds and Data Subject Access Requests — the preservation and right-of-access controls that keep PaperTrail defensible under GDPR/CCPA-style regimes."
/>
<DsarPanel />
<LegalHolds />
</div>
);
}