{
  "stage": "order-p2-insights",
  "date": "2026-10-27",
  "provider": "SQLite",
  "scope": {
    "casesPerLanguage": 17,
    "totalCases": 119,
    "newCases": [
      "retained-id-pages",
      "order-analytics"
    ],
    "newLanguageCaseCells": 14,
    "databaseCheckpointsPerLanguage": 106,
    "totalDatabaseCheckpoints": 742,
    "retainedSequences": 6,
    "summaryProbes": 5
  },
  "localEvidence": {
    "userChoice": "Only use locally saved evidence",
    "modelUnchanged": true,
    "modelSha256": "889a3da34df2edaf359ff169ec5dc8c146acbdd79297ed08cdeda3205e0397b4",
    "evaluation": "Exact-model retained successful evaluation: zero errors, one warning, two suggestions; no fresh successful online evaluation.",
    "discovery": "Local generator rendered and tested 20 model-aware Assist scopes per runtime (140 total). Existing generated domain libraries were not read for API discovery or hand-edited.",
    "networkHistory": "Initial model-evaluation command failed DNS; automatic approval review rejected escalation because destination/payload authorization was required. User then selected local evidence only. No subsequent model transmission or online Assist.",
    "dependencies": "Reused recorded archives and local caches; rebuilt .NET packages locally for the condition-key repair. npm cache entries were copied locally, with no registry fetch."
  },
  "qualification": {
    "published": [
      "java",
      "swift"
    ],
    "workspacePendingRelease": [
      "go",
      "typescript",
      "rust",
      "python",
      "dotnet"
    ],
    "generatorPendingDeployment": "Existing nullable generation, console guides and pagination/other Assist supplements remain qualified. Locally rendered Assist is not a production deployment claim.",
    "dotnet": "New compound-condition key repair is additional to the retained School pagination repair; source, patch, initial failure and 17 passing runtime tests are recorded in discovery/dotnet-repair.json."
  },
  "storeOwnership": {
    "java": "Observed wrapper delegates to runtime InMemoryIdSetStore.",
    "rust": "Observed wrapper delegates to runtime InMemoryIdSetStore.",
    "python": "Observed wrapper delegates to runtime InMemoryIdSetStore.",
    "go": "Observed wrapper delegates to runtime InMemoryIDSetStore.",
    "dotnet": "Observed wrapper delegates to runtime InMemoryIdSetStore.",
    "typescript": "Application-owned implementation of public IdSetPaginationStore protocol with bounded fixture, TTL and invalidation; native query plans and SQL remain runtime-owned.",
    "swift": "Application-owned key/delegate adapter delegates build/hit/TTL to native InMemoryIdSetStore; explicit invalidation removes the delegate for the observed key because the public protocol has no invalidate method."
  },
  "repairs": [
    {
      "layer": "application",
      "languages": [
        "go",
        "swift"
      ],
      "detail": "Localized compiler adaptations: Go Offset uses uint64; Swift SmartList converted to Array for existing report helper."
    },
    {
      "layer": "application",
      "languages": [
        "typescript",
        "python",
        "dotnet",
        "swift"
      ],
      "detail": "Use native unaliased status grouping and normalize actual orderStatus/order_status fields into statusId in report; provider performs COUNT/SUM, no application recomputation."
    },
    {
      "layer": "harness",
      "detail": "An empty retained-ID tail may perform zero SQL. Require the page marker and native/store HIT but require identity IN SQL only for nonempty hit pages."
    },
    {
      "layer": "runtime",
      "language": "dotnet",
      "detail": "Compound predicate ToString lost list operands, colliding export/control buyer keys. Replaced with structured typed AST serialization, preserving nested conditions, list values and AND/OR distinction; shares repair with continuous cursor keys."
    },
    {
      "layer": "environment",
      "detail": "Initial npm/node-gyp cache writes, missing offline registry metadata, .NET restore and Swift compile failures are retained. Final builds reuse local caches and archives. Initial .NET test platform was blocked by sandbox localhost IPC; approved local-only test run completed 17/17 without model transmission."
    },
    {
      "layer": "build-integrity",
      "detail": "Runner inputs changed to support repaired .NET packaging during verification; Swift verification rejected the stale build. All seven final builds were regenerated against final runner/helper hashes before final verification."
    },
    {
      "layer": "application-harness",
      "language": "swift",
      "detail": "One complete regression encountered an empty readiness file before the barrier snapshot. Final example writes/closes JSON to a temporary sibling and publishes it with POSIX rename, so existence cannot expose a partial record. Earlier receipt sources remain unchanged; failed run retained."
    }
  ],
  "acceptance": {
    "retained": "Sorted full IDs, random jumps, empty set, capacity overflow with lower bound 5 and independently exact total 8, query-key isolation, real 1.3-second TTL wait and explicit observed-key invalidation. No partial overflow set retained.",
    "summary": "Same buyer/currency/minimum predicate for provider status aggregates, overall COUNT/SUM, facets and bounded parent/child previews. Empty SUM remains null; all buckets contain zeros, matched buckets omit them.",
    "database": "Independent mode=ro SQLite oracle and full snapshots after all read sequences. No writes or changed timestamps allowed."
  },
  "historicalEvidence": "All School receipts and 56/56,77/77,91/91,105/105 Order receipts and their bound sources remain unchanged; the new receipt references the complete chain.",
  "limits": [
    "Fixed small datasets; no concurrent-writer snapshot consistency or performance claim.",
    "Buyer/currency predicates are fixture controls, not authorization or tenancy.",
    "No cross-currency aggregation/conversion.",
    "HTTP, browser/TFP, ecosystem integrations, tenant/stock extensions, provider/cancellation faults and sustained stress remain separate.",
    "Native offline reproduction requires existing generated workspace and recorded local dependency artifacts; static receipt replay can run from the site evidence."
  ],
  "requirement": "Complete Order P2 retained ID-set pages and summaries in seven languages; retain School, previous Order receipts and pending releases.",
  "model": "Existing Order v1: service order-workflow-service, commerce_platform root, customer_order/order_item business objects and order_status constants; no model changes.",
  "queryAndWritePolicy": "New native queries include comment and purpose; fixture creation uses audited generated saves. Exact per-execution policy coverage counts are not reported.",
  "mechanicalReview": "Source/runtime artifact binding, native plan/store evidence, independent SQLite results, complete immutable read snapshots and historical receipt integrity are checked mechanically.",
  "humanReviewFocus": "Product choices around retention lifetime and invalidation policy, accepted nullable-note warning, status/amount semantics and future authorization/tenant policy.",
  "telemetry": {
    "tokenUsage": "not reported",
    "estimatedContextAvoided": "not measured",
    "fullModelingRuleCatalogLoads": 0,
    "freshSuccessfulOnlineEvaluationRounds": 0
  }
}
