{
  "schemaVersion": "1.0",
  "product": "Kwantu",
  "version": "1.0.0.1",
  "generatedAt": "2026-09-23T22:01:32.216Z",
  "source": {
    "gitCommit": "cb351d4880e4f662c960ef385449c349aa36b1f5",
    "branch": "candidate/1.0.0.1",
    "trackedFiles": 794,
    "trackedTextFilesMeasured": 730
  },
  "repository": {
    "measuredFiles": 730,
    "physicalLines": 143101,
    "categories": {
      "bedrock_correction_candidate": {
        "files": 98,
        "physicalLines": 48433,
        "bytes": 2268608
      },
      "certification_publication": {
        "files": 14,
        "physicalLines": 2399,
        "bytes": 150160
      },
      "configuration": {
        "files": 18,
        "physicalLines": 464,
        "bytes": 20736
      },
      "contracts_and_registries": {
        "files": 7,
        "physicalLines": 9159,
        "bytes": 321096
      },
      "documentation": {
        "files": 259,
        "physicalLines": 53550,
        "bytes": 2387471
      },
      "generated_bedrock_types": {
        "files": 1,
        "physicalLines": 14376,
        "bytes": 501831
      },
      "implementation": {
        "files": 124,
        "physicalLines": 3265,
        "bytes": 382524
      },
      "integration": {
        "files": 13,
        "physicalLines": 410,
        "bytes": 39473
      },
      "migrations": {
        "files": 12,
        "physicalLines": 544,
        "bytes": 22467
      },
      "other": {
        "files": 4,
        "physicalLines": 45,
        "bytes": 1043
      },
      "scripts": {
        "files": 135,
        "physicalLines": 8340,
        "bytes": 1133865
      },
      "tests": {
        "files": 45,
        "physicalLines": 2116,
        "bytes": 208534
      }
    },
    "partsCount": 12
  },
  "application": {
    "pages": 8,
    "pageRoutes": [
      "/account",
      "/organizations",
      "/",
      "/workspace/[organizationId]/[context]/earnings",
      "/workspace/[organizationId]/[context]/finance",
      "/workspace/[organizationId]/[context]/operate",
      "/workspace/[organizationId]/[context]",
      "/workspace/[organizationId]/setup"
    ],
    "components": 14,
    "apiRoutes": 61,
    "apiOperations": 66,
    "apiOperationList": [
      "POST /api/account/transaction-pin",
      "POST /api/auth/login",
      "POST /api/auth/logout",
      "POST /api/auth/password",
      "POST /api/auth/preview",
      "POST /api/auth/register",
      "GET /api/context",
      "GET /api/health",
      "POST /api/integrations/[adapterId]/callback",
      "POST /api/invitations/accept",
      "GET /api/openapi",
      "POST /api/organizations/[organizationId]/access/invitations/[invitationId]/revoke",
      "POST /api/organizations/[organizationId]/access/invitations",
      "POST /api/organizations/[organizationId]/access/members/[userId]/revoke",
      "GET /api/organizations/[organizationId]/access",
      "GET /api/organizations/[organizationId]/catalog/[type]/[id]",
      "GET /api/organizations/[organizationId]/configuration/draft",
      "PUT /api/organizations/[organizationId]/configuration/draft",
      "POST /api/organizations/[organizationId]/configuration/publish",
      "GET /api/organizations/[organizationId]/configuration",
      "GET /api/organizations/[organizationId]/documents",
      "GET /api/organizations/[organizationId]/economics/close/[closeId]",
      "POST /api/organizations/[organizationId]/economics/close/adjust",
      "GET /api/organizations/[organizationId]/economics/close/qualify",
      "POST /api/organizations/[organizationId]/economics/close/reopen",
      "GET /api/organizations/[organizationId]/economics/close",
      "POST /api/organizations/[organizationId]/economics/close",
      "GET /api/organizations/[organizationId]/economics/consequences",
      "GET /api/organizations/[organizationId]/economics/earnings",
      "POST /api/organizations/[organizationId]/economics/evaluate",
      "POST /api/organizations/[organizationId]/economics/findings/[findingId]",
      "POST /api/organizations/[organizationId]/economics/lines/[lineId]/contest",
      "POST /api/organizations/[organizationId]/economics/lines/[lineId]/resolve",
      "POST /api/organizations/[organizationId]/economics/payments",
      "GET /api/organizations/[organizationId]/economics/policy",
      "PUT /api/organizations/[organizationId]/economics/policy",
      "GET /api/organizations/[organizationId]/economics/positions",
      "GET /api/organizations/[organizationId]/economics/provenance/[provenanceId]",
      "POST /api/organizations/[organizationId]/economics/reconcile",
      "POST /api/organizations/[organizationId]/economics/reversals",
      "POST /api/organizations/[organizationId]/economics/statements/[statementId]/approve",
      "GET /api/organizations/[organizationId]/economics/statements/[statementId]/document",
      "POST /api/organizations/[organizationId]/economics/statements/[statementId]/pay",
      "GET /api/organizations/[organizationId]/economics/statements",
      "POST /api/organizations/[organizationId]/operations/appointments/[appointmentId]/cancel",
      "POST /api/organizations/[organizationId]/operations/appointments/[appointmentId]/reschedule",
      "GET /api/organizations/[organizationId]/operations/appointments/[appointmentId]",
      "GET /api/organizations/[organizationId]/operations/appointments",
      "POST /api/organizations/[organizationId]/operations/commitments",
      "POST /api/organizations/[organizationId]/operations/executions",
      "GET /api/organizations/[organizationId]/operations/facts",
      "POST /api/organizations/[organizationId]/operations/holds",
      "POST /api/organizations/[organizationId]/operations/no-show",
      "POST /api/organizations/[organizationId]/operations/search",
      "POST /api/organizations/[organizationId]/operations/tasks/[taskId]",
      "GET /api/organizations/[organizationId]/operations/tasks",
      "POST /api/organizations/[organizationId]/operations/tasks",
      "GET /api/organizations/[organizationId]/ports/contributions",
      "POST /api/organizations/[organizationId]/ports/dispatch",
      "POST /api/organizations/[organizationId]/ports/manual",
      "GET /api/organizations/[organizationId]/ports",
      "POST /api/organizations/[organizationId]/ports",
      "GET /api/organizations",
      "GET /api/personal",
      "GET /api/readiness",
      "GET /api/workspaces/[organizationId]"
    ],
    "authSessionEndpoints": 5,
    "integrationEndpoints": 6,
    "accessEndpoints": 5,
    "adminOperationScripts": 148,
    "publicCertificationRoutes": [
      "certification.kwantu.com.br/",
      "/0.1.0/",
      "/0.1.0/certification.json",
      "/latest/"
    ]
  },
  "api": {
    "kwantuOwnedOperations": 66,
    "bedrockDependencyOperationsInContract": 99,
    "note": "Kwantu-owned API (this Solution) is distinct from the Bedrock dependency API it consumes"
  },
  "database": [
    {
      "technology": "Cloudflare D1 (SQLite)",
      "role": "Solution-owned state: identity references, configuration drafts, operational commands, economics, access records",
      "binding": "DB",
      "migrationCount": 12,
      "migrationVersion": "0012",
      "tableCount": 39,
      "tables": [
        "configuration_drafts",
        "personal_reminders",
        "idempotency_records",
        "policy_versions",
        "close_snapshots",
        "auth_users",
        "auth_sessions",
        "auth_rate_limits",
        "auth_party_links",
        "auth_grant_references",
        "guided_configuration_progress",
        "search_sessions",
        "hold_links",
        "commitments",
        "commitment_appointments",
        "tasks",
        "executions",
        "facts",
        "port_registrations",
        "integration_events",
        "guided_publications",
        "economic_policies",
        "economic_consequences",
        "receivables",
        "money_trail",
        "payment_matches",
        "callback_provenance",
        "remuneration_lines",
        "remuneration_statements",
        "transaction_pins",
        "reconciliation_findings",
        "period_closes",
        "period_locks",
        "adjustments",
        "appointment_facts",
        "org_invitations",
        "org_memberships",
        "operational_datasets",
        "auth_entitlement_references"
      ],
      "indexCount": 13,
      "triggerCount": 11,
      "foreignKeyCount": 22,
      "viewCount": 0,
      "dataClassification": "synthetic (demo/test fixtures); no real persons",
      "sizeAndRowCounts": "NOT_MEASURED_IN_THIS_RUN: requires a live database session",
      "backupStatus": "NOT_MEASURED_IN_THIS_RUN",
      "restoreProofStatus": "NOT_PROVEN"
    }
  ],
  "bedrock": {
    "runtimeVersion": "1.0.0.6",
    "publicContractVersion": "1.0.0.4",
    "contractLockSha256": "d309fd50034d9fde088092321e7f7a2558ff8f2f0ca734b834c6c58fd939f5f3",
    "certificationSha256": "799049d77ae04dd0fa31ca81e30cd52a1e7afb9193b770e959138fdb81f4304a",
    "runtimeImageDigest": "sha256:6a15c1db6e6947940ee6da9730ce6e27313c36d24a3743868bcf3b83ac3f9c5a",
    "publicPathsInContract": 98,
    "publicOperationsInContract": 99,
    "pathsConsumedByKwantu": 30,
    "consumedPaths": [
      "/v1/access-grants",
      "/v1/access-grants/{accessGrantId}/revoke",
      "/v1/configuration-assignments",
      "/v1/organizations",
      "/v1/units",
      "/v1/parties",
      "/v1/services",
      "/v1/services/{serviceId}/resource-requirements",
      "/v1/resources",
      "/v1/capacity-rules",
      "/v1/availability-rules",
      "/v1/availability-exceptions",
      "/v1/holds",
      "/v1/holds/{holdId}/release",
      "/v1/appointments",
      "/v1/appointments/{appointmentId}/reschedule",
      "/v1/appointments/{appointmentId}/cancel",
      "/v1/payments",
      "/v1/payments/{paymentId}/confirm",
      "/v1/payments/{paymentId}/reversals",
      "/v1/file-artifacts",
      "/v1/documents",
      "/v1/resources/{resourceTypeCode}/{resourceId}",
      "/v1/search/{searchCapabilityCode}",
      "/v1/resolutions/consumer-context",
      "/v1/resolutions/available-capacity-window",
      "/v1/resolutions/scheduling-slots",
      "/v1/entitlements",
      "/v1/financial-accounts",
      "/v1/entitlements/{entitlementId}/revoke"
    ],
    "generatedTypeLines": 14376,
    "correctionCandidate": {
      "classification": "historical Bedrock engineering effort, not current Kwantu source",
      "files": 98,
      "physicalLines": 48433
    },
    "historicalResolvedGaps": [
      {
        "gap": "no Entitlement-creation operation in Public Contract 1.0.0.2 (GrantAccess requires one)",
        "resolvedBy": "EnsureEntitlement in Public Contract 1.0.0.4 (Bedrock 1.0.0.5/1.0.0.6, PARECER_39/46); consumed by the invitation acceptance since STEP 4"
      }
    ],
    "knownGaps": [
      "financial definitions (economic unit, financial account type, payment method, allocation type) have no public command; payments are recorded in the product and Bedrock materialization is NOT_MATERIALIZED_NO_FINANCIAL_DEFINITIONS unless they are created outside the contract"
    ],
    "dependencyHealth": "MEASURED: /api/readiness 200 — Bedrock 1.0.0.6 certificate and OpenAPI pinned by hash, consumer-context resolved; D1 probed"
  },
  "scripts": {
    "preparationBootstrap": 16,
    "validation": 20,
    "evidence": 13,
    "releaseOperation": 93,
    "certificationPublication": 8,
    "migration": 12
  },
  "tests": {
    "unit": {
      "files": 40,
      "caseDefinitions": 186,
      "note": "caseDefinitions counts it()/test() calls in source; parameterized cases expand at run time — see executedInThisRun for executed counts"
    },
    "browserE2E": {
      "files": 4,
      "caseDefinitions": 9,
      "viewports": [
        "desktop 1440x1000",
        "mobile iPhone 13"
      ],
      "note": "each definition runs once per viewport project"
    },
    "accessibility": {
      "tool": "@axe-core/playwright",
      "tags": [
        "wcag2a",
        "wcag2aa",
        "wcag21aa"
      ],
      "scannedInE2E": 3
    },
    "ktrace": {
      "registry": "contracts/ktrace-release.registry.json",
      "note": "historical inherited evidence unless re-executed in this certification"
    },
    "inheritedEvidence": [
      "KTRACE 30/30",
      "Stress",
      "EXT-RDY-001..010",
      "INT-RDY-001..010",
      "W0→W4 waves"
    ],
    "executedInThisRun": {
      "vitest": {
        "files": 40,
        "cases": 258,
        "passed": 258,
        "failed": 0
      },
      "typecheck": "PASS",
      "browser": {
        "status": "PASS",
        "surfaces": 26,
        "channel": "bundled chromium",
        "axe": {
          "tool": "@axe-core/playwright",
          "tags": [
            "wcag2a",
            "wcag2aa",
            "wcag22aa"
          ],
          "criterion": "0 critical, 0 serious on every surface"
        },
        "violations": 0
      },
      "productionAcceptanceCompletion": {
        "items": 36,
        "pass": 35,
        "fail": 0,
        "declared": 0,
        "measured": 1
      },
      "functionalSmoke": {
        "status": "PASS",
        "checks": 53,
        "declared": [
          "D15c-canonical-payment",
          "D36-no-show"
        ]
      },
      "readOnly": {
        "status": "PASS",
        "items": 19
      },
      "rateLimit": {
        "status": "PASS"
      },
      "commit": "d6b404060055e5a620c80eb5eeed7306d50e1ae5"
    }
  },
  "security": {
    "authMethod": "EMAIL_PASSWORD_D1_WITH_CANONICAL_REFERENCE_RESOLVER",
    "sessionModel": "opaque D1 session, TTL 28800s, idle 1800s, HttpOnly/Secure/SameSite=Strict cookie",
    "passwordStorage": "scrypt-N32768-r8-p3",
    "registration": "EXPLICIT_ENV_OPT_IN",
    "organizationIsolation": "explicit per-Organization grants re-resolved per request; no wildcard; Owner is per-Organization",
    "permissionModel": "flat permissions + invitation profiles (OWNER, OPERATOR, FINANCE, READ_ONLY) + separate sensitive-read add-ons",
    "csrf": "same-origin assertion on every cookie-authenticated mutation (Origin + Sec-Fetch-Site)",
    "csp": "MEASURED on the production origin: default-src 'self'; script-src 'self' 'nonce-5TlBsHbQEaSTf3q8H9D6dQ==' 'strict-dynamic'; style-src 'self' 'unsafe-inline'; img-src 'self' blob: data:; font-src 'self'; connect-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests",
    "hsts": "MEASURED on the production origin: max-age=31536000; includeSubDomains",
    "posture": "GREEN",
    "postureRule": "GREEN when CSP (scripts under nonce + strict-dynamic) and HSTS are measured present, npm audit (prod) has 0 findings, the bundle secret scan passes and the rate limit is proven on the origin; AMBER when any is absent but declared; RED when a finding is unresolved",
    "tls": "Cloudflare edge TLS",
    "secretScans": "scripts/scan-secrets.mjs over evidence roots",
    "negativeSecurityTests": "cross-org, forged tokens, CSRF, escalation via invitation, token misuse",
    "stepUp": "transaction PIN for sensitive commands (account/transaction-pin)",
    "rateLimits": "auth global 150/15min, per-credential 10, password change 5",
    "credentialRotation": "credential_version invalidates sessions"
  },
  "health": {
    "liveness": "/api/health",
    "readiness": "/api/readiness",
    "dependencyHealth": "MEASURED: /api/readiness 200 — Bedrock 1.0.0.6 certificate and OpenAPI pinned by hash, consumer-context resolved; D1 probed",
    "buildVersion": "reported by /api/health solutionIdentity()",
    "measured": {
      "solution": "kwantu",
      "release": "1.0.0.1",
      "buildId": "rc3-8fd08bd72ced",
      "sourceSha256": "8fd08bd72ced99953f329e4840b32b8991c55d5897b8b98527e3ef755417e6f4",
      "runId": "S3-20260923T1826Z",
      "ready": true,
      "status": "BUSINESS_OPERATIONS_READY",
      "scope": "BUSINESS_OPERATIONS",
      "businessOperationsReady": true,
      "operationalDataset": {
        "organizations": 9,
        "withActiveDataset": 9,
        "financeOrganizations": 6,
        "withActivePolicy": 6,
        "datasetVersion": "KWANTU-PROD-DEMO-DATASET-v1",
        "datasetSha256": "2afc39968fffca1e5806c9e0064b9a3bcc5a00a96d76421d52d352e832bcdd14",
        "missing": []
      },
      "bedrockRelease": "1.0.0.6"
    },
    "businessOperationsReady": true,
    "scope": "BUSINESS_OPERATIONS",
    "operationalDataset": {
      "organizations": 9,
      "withActiveDataset": 9,
      "financeOrganizations": 6,
      "withActivePolicy": 6,
      "datasetVersion": "KWANTU-PROD-DEMO-DATASET-v1",
      "datasetSha256": "2afc39968fffca1e5806c9e0064b9a3bcc5a00a96d76421d52d352e832bcdd14",
      "missing": []
    },
    "healthScore": "NOT_COMPUTED: no declared formula in this run"
  },
  "performance": {
    "p50Ms": 745,
    "p95Ms": 1530,
    "maxMs": 4320,
    "sampleCount": 160,
    "measurementWindow": "2026-09-23T18:32:07.591Z from the implementation's host (Brazil), sequential, cold starts included (first sample per route)",
    "routeGroup": "public + authenticated API routes (pages excluded from the SLO figure)",
    "warmCold": "mixed; warm p50/p95 reported per route",
    "status": "MEASURED_ABOVE_TARGET",
    "provenance": "AUTHORIZATION_PERFORMANCE_AFTER.json — measured in STAGING (kwantu-staging.corussmkt.workers.dev) on the same bundle rc3 that production serves; n=20 per route, one sequential client; no performance series in production this cycle (PARECER_62 P1-PL-02)",
    "targetMs": 1500,
    "routeGroups": {
      "public": {
        "n": 40,
        "p50Ms": 86,
        "p95Ms": 449,
        "maxMs": 721
      },
      "public-page": {
        "n": 20,
        "p50Ms": 63,
        "p95Ms": 89,
        "maxMs": 437
      },
      "authenticated-read": {
        "n": 60,
        "p50Ms": 678,
        "p95Ms": 1151,
        "maxMs": 4320
      },
      "authenticated-finance": {
        "n": 40,
        "p50Ms": 1274,
        "p95Ms": 1758,
        "maxMs": 2685
      },
      "authenticated-operation": {
        "n": 20,
        "p50Ms": 859,
        "p95Ms": 1203,
        "maxMs": 1221
      },
      "authenticated-page": {
        "n": 20,
        "p50Ms": 869,
        "p95Ms": 1847,
        "maxMs": 1950
      }
    },
    "before": {
      "p50Ms": 1207,
      "p95Ms": 1905,
      "maxMs": 3609,
      "source": "AUTHORIZATION_PERFORMANCE_BEFORE.json (rc1 = 1.0.0.0 code + instrumentation, same method)"
    },
    "sloStatement": "p95 1530 ms is ABOVE the 1500 ms target (improved -19.7% from 1905 ms); the MAXIMUM got WORSE: 3609 → 4320 ms (+19.7%); p50 1207 → 745 ms (-38.3%)"
  },
  "methodology": {
    "lineType": "physical",
    "includesBlankLines": true,
    "includesComments": true,
    "fileSource": "git ls-files",
    "exclusions": [
      "/^node_modules\\//",
      "/^\\.next\\//",
      "/^\\.open-next\\//",
      "/^dist\\//",
      "/^build\\//",
      "/^coverage\\//",
      "/^vendor\\//",
      "/^\\.git\\//",
      "/^\\.wrangler\\//",
      "/^\\.cache\\//",
      "/^tmp\\//",
      "/^temp\\//",
      "/^KWANTU_DEVELOPER_HANDOFF_/",
      "/^docs\\/audit\\/intake\\//",
      "/^evidence\\//",
      "/^\\.kwantu\\//",
      "/^package-lock\\.json$/",
      "/^tsconfig\\.tsbuildinfo$/"
    ],
    "classification": "path-prefix rules in scripts/certification-metrics.mjs",
    "disclaimer": "Physical LOC measures repository size. It does not, by itself, measure complexity, productivity, effort or business value."
  },
  "inventorySha256": "73aa2904081ec2780ec50e6941664318e8ee6a9a7c44575d1efa7268ed25bdad",
  "passportRevision": {
    "revision": 2,
    "reason": "recalculated from the final 1.0.0.1 candidate (P.O. §12: numbers of 1.0.0.0 are not reused without re-measurement)"
  },
  "certification": {
    "state": "KWANTU 1.0.0.1 — PRODUCTION CERTIFIED (PARECER_68, record 44847c92c2f5…) — Independent Final Audit PASS_WITH_DECLARED_LIMITATIONS (PARECER_67)",
    "environment": "production: app.kwantu.com.br (Worker kwantu-production, D1 kwantu-production) on Bedrock 1.0.0.6 / contract 1.0.0.4, Solution KWANTU-PRODUCTION",
    "revision": "passport r2, 2026-09-23",
    "auditId": 67,
    "auditOpinionSha256": "13c8246d8202660314ad0404b865f7f2ed11b47416396cc57b06ef2cdf195a63",
    "certificationRecordSha256": "44847c92c2f5f0429206e247f16eb59bfca5e7ad9671301231466b307c3f1566"
  },
  "identities": {
    "servedBuild": {
      "buildId": "rc3-8fd08bd72ced",
      "release": "1.0.0.1",
      "sourceSha256_v3": "8fd08bd72ced99953f329e4840b32b8991c55d5897b8b98527e3ef755417e6f4",
      "commit": "2b2ffdd",
      "workerVersion": "a8dcf920-9f61-4c0c-825b-00678ebcbcec",
      "bundleSha256": "9275f505a2fa87c89878d0f7fb856fbb3dd0fa15e11a835d97b7dbf7b4de541a"
    },
    "promotion": {
      "record": "docs/bedrock-release/PRODUCTION_PROMOTION_rc3_2026-09-23.json",
      "sha256": "c410b38c9a36144b50b2ae983bd0f5a23ab277ce08d3dbcaadcb1e63d7974b7b",
      "status": "PASS"
    },
    "pipeline": {
      "record": "docs/bedrock-release/PRODUCTION_DELIVERY_PIPELINE_V1_RESULT.json",
      "sha256": "6cf23f343a13e7a57686ef24e70eeeacb73e39f1351a76d08041c10bd0cea6d0",
      "status": "PASS_WITH_UNOBSERVED_CARRIERS"
    },
    "rollbackTarget": "1.0.0.0 — build r2l-4fe69a7d8d1a (commit 90a3675), Worker version 90c362c2…"
  },
  "dataset": {
    "organizations": 9,
    "withActiveDataset": 9,
    "financeOrganizations": 6,
    "withActivePolicy": 6,
    "datasetVersion": "KWANTU-PROD-DEMO-DATASET-v1",
    "datasetSha256": "2afc39968fffca1e5806c9e0064b9a3bcc5a00a96d76421d52d352e832bcdd14",
    "missing": [],
    "readinessStatus": "BUSINESS_OPERATIONS_READY"
  },
  "robustness": {
    "functionalSmoke": "PASS",
    "readOnly": "PASS",
    "backupRestore": "PASS",
    "residueClosure": {
      "temporaryActiveAuthority": 0,
      "mode": "inventory"
    },
    "datasetVersion": "KWANTU-PROD-DEMO-DATASET-v1",
    "provenance": {
      "functionalSmoke": "STAGING_FUNCTIONAL_SMOKE_RESULT.json",
      "readOnly": "PRODUCTION_1_0_0_1_READ_ONLY_RESULT.json",
      "browser": "STAGING_BROWSER_AXE_RESULT.json",
      "rateLimit": "STAGING_RATE_LIMIT_RESULT.json",
      "performance": "AUTHORIZATION_PERFORMANCE_AFTER.json",
      "backupRestore": "PRODUCTION_BACKUP_RESTORE_RESULT.json",
      "residue": "PRODUCTION_1_0_0_1_RESIDUE_INVENTORY.json",
      "dataset": "PRODUCTION_DEMO_DATASET_RESULT.json"
    },
    "postDeploySmoke": "PASS",
    "transactionalSmokeInProduction": "FAIL at D17 — refused by the period lock of 2026-09 (PARECER_67 §3); chain proven on the same bundle in staging",
    "browser": {
      "status": "PASS",
      "surfaces": 26,
      "channel": "bundled chromium",
      "axe": {
        "tool": "@axe-core/playwright",
        "tags": [
          "wcag2a",
          "wcag2aa",
          "wcag22aa"
        ],
        "criterion": "0 critical, 0 serious on every surface"
      },
      "violations": 0
    },
    "rateLimit": {
      "status": "PASS"
    },
    "backupRestoreNote": "not re-run in 1.0.0.1; the 1.0.0.0 record is carried"
  },
  "deltaA": {
    "record": "docs/bedrock-release/AUTHORIZATION_PERFORMANCE_DELTA.json",
    "sha256": "61ea7db9f9933f6e45e0fdd8125f48938e99696280e53122bfacca6ed9bfb7e2",
    "summary": {
      "p50Ms": {
        "before": 1207,
        "after": 745,
        "changePct": -38.3
      },
      "p95Ms": {
        "before": 1905,
        "after": 1530,
        "changePct": -19.7
      },
      "maxMs": {
        "before": 3609,
        "after": 4320,
        "changePct": 19.7
      },
      "sloMs": 1500,
      "apiP95WithinSlo": {
        "before": false,
        "after": false
      },
      "sameNPerRoute": true,
      "authenticatedRoutes": {
        "count": 6,
        "authReadsPerRequest": {
          "before": 100,
          "after": 14
        },
        "everyRouteFewerReadsAndLowerP95": true
      }
    },
    "environment": "staging, same bundle, n=20 per route, one sequential client"
  },
  "changes": [
    "DELTA-A — authorization resolution batched through ExecuteSearch of the public contract (100 → 14 canonical reads per authenticated request); identity + references in one D1 batch; request-scoped memo; Bedrock remains canonical authority, nothing cached across requests",
    "AUTHORITY EXPANSION — the technical principal of each Solution can now ENUMERATE Scopes, Permissions and AccessGrants inside its own Solution (ExecuteSearch permission + grant + three search capability definitions); no wildcard; confined to the Solution by the runtime (PARECER_65 §3)",
    "Production Delivery Pipeline v1 — separate staging (own Worker, D1, Entra app/principal, Solution, dataset); one build promoted unchanged (bundle identity); carrier preflight; post-deploy smoke",
    "Migration 0012 auth_entitlement_references (additive, reference only)",
    "HSTS and CSP served on the public origin (the 1.0.0.0 AMBER posture no longer holds; style-src unsafe-inline remains)"
  ],
  "limitations": [
    "p95 de API 1530 ms contra SLO de 1500 ms (staging, n=160, cliente sequencial), com o máximo 19,7% pior na mesma série",
    "sem série de desempenho em produção neste ciclo; a regressão de health p50 38→53 ms segue sem causa identificada e sem recheque em produção",
    "KWANTU_CANONICAL_ACCESS_IDS é var de deploy em produção, não observável pelo preflight, provada por comportamento a cada deploy (READ_ONLY E3)",
    "resíduo em produção da tentativa transacional: Hold 46c003ab…, Appointment 3b120718… (CONFIRMED), Fact 97f6c8c7…, MoneyTrail IN 100.00 a30ac28d… em Fábio Hiro, este dentro do período fechado 2026-09",
    "a prova pós-deploy em produção é não invasiva; a cadeia transacional completa é provada em staging sobre o mesmo bundle e não pode sê-lo em produção sem reabrir período",
    "ampliação de autoridade do principal técnico de produção (enumerar dentro da própria Solution) — entra entre as MUDANÇAS do certificado",
    "herdadas da 1.0.0.0: pagamento não materializado canonicamente (D15c); no-show não exercitado (D36); CSP com style-src 'unsafe-inline'; artefatos inertes de Party/Entitlement",
    "a prova de promoção do Pipeline v1 começa em rc3; rc1/rc2 não eram neutros de ambiente (PARECER_66 §3)"
  ]
}
