import type { CompositionProfile } from "./profile";

/**
 * Default composition profile (ADR 013).
 *
 * Generic, customer-free defaults. Boots without any customer-specific
 * env var, package, or asset (ADR 010 R5).
 *
 * This profile is the portability baseline: nothing under here may name a
 * specific customer, identity provider, observability vendor, or hosting
 * region. Customer-specific values live in their own profile file.
 */
const profile: CompositionProfile = {
  name: "default",
  description: "Generic OSS-style defaults. Used by free / starter editions and by every developer-mode boot.",
  productionReady: true,
  branding: {
    productName: "SupplierDev",
    logoAssetKey: "default/logo",
    paletteKey: "default",
  },
  features: {
    ownerConsole: true,
    strongAuth: false,
    demoSeeds: true,
    wertstrom: true,
    oee: true,
    lscWorkshop: true,
    workModeCapture: true,
    consultantLoadReport: true,
    // QVS-P7 (KAR-976, Kais-Go 2026-07-18): Flag-ON nach P6-Korpus-Validierung
    // (dev 91,2 %/validation 91,4 % parseOk, previewOk 100,0 % beide Splits,
    // 0 Mapper-Fehler — reports/qaf-value-stream-validation-results.md).
    // Rollback: docs/runbooks/qaf-value-stream-rollout.md.
    qafValueStream: true,
    qafSupplierBenchmark: true,
    // Demo-067 C (KAR-982): off by default — enabled per customer profile
    // that opts in (see the pilot customer's profile file).
    copilotExports: false,
    // Wertstrom P2+P5 (KAR-878/KAR-986, Kais-Go 2026-07-22 nach P0–P5-Merge
    // #351–#356): Szenarien, KPI-Delta-Vergleich, Abweichungs-Ansicht — ON in
    // diesem Profil; alle anderen Profile bleiben off. Rollback: Flag zurück
    // auf false (Persistenz/Szenario-Daten bleiben intakt).
    wertstromScenarios: true,
    // Wertstrom P3+P4 (KAR-878/KAR-986, Kais-Go 2026-07-22): Quick-Start-
    // Wizard/Auto-Layout/Timeline v2/Panel-Redesign/Tabellen-View — ON in
    // diesem Profil; alle anderen Profile bleiben off.
    wertstromUxV2: true,
    // Wertstrom P6 (KAR-878/KAR-986): SimVSM-Import-Adapter — Phasenplan-
    // Pflicht, off in every profile until this phase is rolled out. See
    // lib/simvsm-import/README.md.
    wertstromSimvsmImport: false,
    experimental: {},
  },
  integrations: {
    auth: "supabase",
    observability: "console",
    storage: "supabase-storage",
    queue: "none",
    email: "resend",
    support: "email-only",
    ai: "none",
    datastore: "supabase",
  },
};

export default profile;
