{
  "baseCommit": "91deee704e8af24a555684d7faf3d75495b1ae06",
  "debtMetadata": {
    "internal/store/app": {
      "acceptedReason": "The parent still owns cross-capability App transactions and compatibility seams while capability-local persistence is extracted incrementally. The #t2771 collaborator-request approval-subject service reads approval state through this owner, adding one external production importer; the ratchet ceiling was raised for that reviewed scope.",
      "owner": "internal/store/app and its registry, installation, runtime, and webhooks capability packages",
      "retirementCondition": "Move capability-local behavior to the existing child owners without facades, lower every reduced metric in the same change, and retire the parent when only cross-capability transaction coordination remains."
    },
    "internal/store/message": {
      "acceptedReason": "Message persistence and its shared write/read invariants were consolidated under one semantic owner; size alone does not justify recreating retired helper subpackages. The reviewed #t2886 Task parent-authority cutover adds the canonical parent/readable SQL surface and owner-private routing fences within that owner.",
      "owner": "internal/store/message",
      "retirementCondition": "Reduce the tracked surface through deletion or a separately approved capability boundary, while keeping retired diagnostics, readstate, and search helper paths absent."
    },
    "internal/store/organization": {
      "acceptedReason": "Organization persistence still contains directory-provider compatibility and synchronization seams that are being isolated behind the Feishu capability owner. Retiring the root store forwarding facade also made the existing dependency on AgentTeam proxy provider-ID semantics explicit by importing its real owner directly instead of copying the prefix rule.",
      "owner": "internal/store/organization and internal/store/organization/feishu; internal/store/agent owns AgentTeam proxy provider-ID semantics",
      "retirementCondition": "Keep provider transport and synchronization state in the Feishu owner, remove parent compatibility seams as callers migrate, and move the cross-domain provider-ID semantics to an existing or future neutral provider contract before lowering organization sibling_store_imports from 4 to 3. Do not copy the prefix rule into organization."
    },
    "internal/store/privateagent": {
      "acceptedReason": "The package remains the owner of the owner-private projection and participant lifecycle while projection, wake-state, and task-target ownership are clarified.",
      "owner": "internal/store/privateagent",
      "retirementCondition": "Clarify those invariants before any split, then reduce or retire the debt without introducing pass-through child packages."
    },
    "internal/store/taskboard": {
      "acceptedReason": "Taskboard remains a high-change persistence owner whose discussion, collaboration, and context boundaries have not yet proved facade-free dependency cuts. The #t2771 collaborator-request flow added durable request state, its owning api/service importers, and associated tests; the reviewed #t2886 Task parent-authority cutover adds recursive task/read lifecycle fences and associated production paths; the ratchet ceiling was raised for those reviewed scopes.",
      "owner": "internal/store/taskboard",
      "retirementCondition": "Approve only child boundaries with independent invariants and no parent facade or import cycle, and lower every reduced parent metric in the same change."
    }
  },
  "existingChildPackages": {
    "internal/store/app": [
      "internal/store/app/installation",
      "internal/store/app/registry",
      "internal/store/app/runtime",
      "internal/store/app/webhooks"
    ],
    "internal/store/message": [
      "internal/store/message/testdelivery"
    ],
    "internal/store/organization": [
      "internal/store/organization/feishu",
      "internal/store/organization/schema"
    ],
    "internal/store/privateagent": [],
    "internal/store/taskboard": []
  },
  "forbiddenStoreImportFiles": [],
  "forbiddenStorePaths": [],
  "genericChildPackages": [],
  "plannedChildPackages": [],
  "productionStoreToServiceEdges": [],
  "schemaVersion": 2,
  "targets": {
    "internal/store/app": {
      "exported_methods": 420,
      "exported_symbols": 744,
      "external_prod_import_files": 60,
      "go_files": 212,
      "loc": 68092,
      "sibling_store_imports": 24,
      "test_files": 147,
      "test_loc": 49972
    },
    "internal/store/message": {
      "exported_methods": 221,
      "exported_symbols": 1599,
      "external_prod_import_files": 214,
      "go_files": 91,
      "loc": 35414,
      "sibling_store_imports": 7,
      "test_files": 78,
      "test_loc": 24148
    },
    "internal/store/organization": {
      "exported_methods": 234,
      "exported_symbols": 357,
      "external_prod_import_files": 31,
      "go_files": 40,
      "loc": 17484,
      "sibling_store_imports": 4,
      "test_files": 20,
      "test_loc": 4008
    },
    "internal/store/privateagent": {
      "exported_methods": 44,
      "exported_symbols": 54,
      "external_prod_import_files": 6,
      "go_files": 12,
      "loc": 3624,
      "sibling_store_imports": 4,
      "test_files": 4,
      "test_loc": 702
    },
    "internal/store/taskboard": {
      "exported_methods": 168,
      "exported_symbols": 413,
      "external_prod_import_files": 38,
      "go_files": 70,
      "loc": 22226,
      "sibling_store_imports": 8,
      "test_files": 56,
      "test_loc": 14888
    }
  }
}
