mcp-gee-sweet 0.9.2.dev335__tar.gz → 0.9.2.dev338__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/team-roles/dev.md +1 -1
  2. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/team-roles/kai.md +2 -0
  3. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/team-roles/qa.md +3 -3
  4. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/PKG-INFO +1 -1
  5. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-review-finding-ticket-bar.md +6 -2
  6. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/calendar.md +4 -0
  7. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/drive_transfer.md +2 -0
  8. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/roadmap.md +1 -1
  9. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/calendar.py +4 -15
  10. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/content.py +3 -2
  11. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/images.py +2 -1
  12. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/drive/files.py +4 -3
  13. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/drive/transfer.py +3 -13
  14. mcp_gee_sweet-0.9.2.dev338/src/mcp_gee_sweet/tools/http_errors.py +27 -0
  15. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_calendar.py +0 -24
  16. mcp_gee_sweet-0.9.2.dev338/tests/test_http_errors.py +54 -0
  17. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/cleanup-worktrees.md +0 -0
  18. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/merge-pr.md +0 -0
  19. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/notify-kai.md +0 -0
  20. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/notify-partner.md +0 -0
  21. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/orchestrator.md +0 -0
  22. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/prep-for-pr.md +0 -0
  23. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/qa-kickoff.md +0 -0
  24. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/release.md +0 -0
  25. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/retro.md +0 -0
  26. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/roadmap-status.md +0 -0
  27. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/start-worktree.md +0 -0
  28. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/team-member.md +0 -0
  29. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/verify-pr.md +0 -0
  30. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/settings.json +0 -0
  31. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/team-roles/amy.md +0 -0
  32. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/team-roles/aziz.md +0 -0
  33. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/team-roles/bob.md +0 -0
  34. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.claude/team-roles/joy.md +0 -0
  35. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.dockerignore +0 -0
  36. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  37. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  38. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  39. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.github/dependabot.yml +0 -0
  40. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.github/workflows/ci.yml +0 -0
  41. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.github/workflows/docs.yml +0 -0
  42. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.github/workflows/publish-dev.yml +0 -0
  43. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.github/workflows/release.yml +0 -0
  44. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.gitignore +0 -0
  45. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.pre-commit-config.yaml +0 -0
  46. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/.python-version +0 -0
  47. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/CHANGELOG.md +0 -0
  48. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/CLAUDE.md +0 -0
  49. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/CODE_OF_CONDUCT.md +0 -0
  50. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/CONTRIBUTING.md +0 -0
  51. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/Dockerfile +0 -0
  52. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/LICENSE +0 -0
  53. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/Makefile +0 -0
  54. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/README.md +0 -0
  55. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/SECURITY.md +0 -0
  56. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docker-compose.yml +0 -0
  57. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/assets/logo.png +0 -0
  58. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/auth.md +0 -0
  59. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/client-setup.md +0 -0
  60. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/configuration.md +0 -0
  61. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-async-tool-execution.md +0 -0
  62. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-auth-status-limitation-categories.md +0 -0
  63. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-cache-invalidation.md +0 -0
  64. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-chart-theming.md +0 -0
  65. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-comments-first-class.md +0 -0
  66. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-composite-tools.md +0 -0
  67. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-condition-type-docstring-generation.md +0 -0
  68. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-converted-doc-change-detection.md +0 -0
  69. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-dev-team.md +0 -0
  70. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-docs-formatting.md +0 -0
  71. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-fork.md +0 -0
  72. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-gmail-domain.md +0 -0
  73. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-grid-data-size-cap.md +0 -0
  74. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-local-fs-test-harness.md +0 -0
  75. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-mcp-v2-resource-context-access.md +0 -0
  76. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-pillow-image-dependency.md +0 -0
  77. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-prompt-qa-role.md +0 -0
  78. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-publishing.md +0 -0
  79. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-release-docs-roles.md +0 -0
  80. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-repositioning.md +0 -0
  81. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-response-size-cap-generalization.md +0 -0
  82. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-response-size-cap-reevaluation-519.md +0 -0
  83. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-supports-all-drives-lint-check.md +0 -0
  84. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-sync-folder-recursion.md +0 -0
  85. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-testing.md +0 -0
  86. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-tool-error-visibility.md +0 -0
  87. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/index.md +0 -0
  88. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/role-file-history.md +0 -0
  89. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/design/blockquote-representation.md +0 -0
  90. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/design/borderless-table-columns.md +0 -0
  91. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/design/doc-revision-export.md +0 -0
  92. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/design/doc-to-markdown.md +0 -0
  93. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/design/docs-ast-pipeline.md +0 -0
  94. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/design/effectiveformat-spike.md +0 -0
  95. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/design/heading-anchor-resolution.md +0 -0
  96. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/design/image-conversion.md +0 -0
  97. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/design/index.md +0 -0
  98. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/design/local-file-access-policy.md +0 -0
  99. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/design/markdown-support.md +0 -0
  100. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/design/module-history.md +0 -0
  101. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/design/oauth-reauthorize-from-tool-call.md +0 -0
  102. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/design/phase3-theme-system.md +0 -0
  103. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/design/sse-consent-off-event-loop.md +0 -0
  104. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/design.md +0 -0
  105. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/index.md +0 -0
  106. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/known-limitations.md +0 -0
  107. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/notes-read.md +0 -0
  108. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/README.md +0 -0
  109. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/qa-fixture-pixel.png +0 -0
  110. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-d195-create-doc.md +0 -0
  111. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-d196-create-doc.html +0 -0
  112. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-d213-dollar-escape.md +0 -0
  113. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-d226-heading-table.md +0 -0
  114. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc102-image-conversion.html +0 -0
  115. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc103-image-conversion.md +0 -0
  116. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc104-nested-lists.html +0 -0
  117. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc105-nested-lists-gfm.md +0 -0
  118. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc106-nested-lists-4space.md +0 -0
  119. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc135-paragraph-boundary.md +0 -0
  120. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc136-interrupted-block-boundary.md +0 -0
  121. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc137-inline-hr-no-block-ancestor.html +0 -0
  122. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc138-nbsp-spacer-paragraph.md +0 -0
  123. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc141-mismatched-list-tags.html +0 -0
  124. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc142-heading-anchors.md +0 -0
  125. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc144-anchor-in-table-cell.md +0 -0
  126. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc145-anchor-on-first-element.md +0 -0
  127. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures.template.md +0 -0
  128. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/gmail-test-plan.md +0 -0
  129. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/operations.yaml +0 -0
  130. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/playwright_oauth.md +0 -0
  131. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/.gitkeep +0 -0
  132. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-06-02.md +0 -0
  133. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-06-14.md +0 -0
  134. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-06-17.md +0 -0
  135. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-06-18.md +0 -0
  136. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-06-21-drive-discovery.md +0 -0
  137. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-06-21-sheets-delete-clear.md +0 -0
  138. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-06-28.md +0 -0
  139. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-07-04-docs.md +0 -0
  140. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-07-04-drive-smoke.md +0 -0
  141. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-07-04-infra.md +0 -0
  142. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-07-04-sheets_read.md +0 -0
  143. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-07-04.md +0 -0
  144. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-09-04.md +0 -0
  145. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/retro-v0.8.0.md +0 -0
  146. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/retro-v0.9.0.md +0 -0
  147. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/run.md +0 -0
  148. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/runs/README.md +0 -0
  149. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/runs/v0.8.0.md +0 -0
  150. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/runs/v0.8.1.md +0 -0
  151. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/runs/v0.9.0.md +0 -0
  152. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/setup.md +0 -0
  153. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/docs_content.md +0 -0
  154. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/docs_layout.md +0 -0
  155. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/docs_style.md +0 -0
  156. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/docs_tables.md +0 -0
  157. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/drive_activity.md +0 -0
  158. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/drive_files.md +0 -0
  159. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/drive_sharing.md +0 -0
  160. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/gmail.md +0 -0
  161. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/infra.md +0 -0
  162. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/sheets_charts.md +0 -0
  163. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/sheets_mgmt.md +0 -0
  164. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/sheets_read.md +0 -0
  165. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/sheets_write.md +0 -0
  166. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/style-guide.md +0 -0
  167. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/docs/tools.md +0 -0
  168. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/mkdocs.yml +0 -0
  169. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/pyproject.toml +0 -0
  170. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/pyrightconfig.json +0 -0
  171. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/scripts/check_supports_all_drives.py +0 -0
  172. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/scripts/gen_tool_docs.py +0 -0
  173. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/scripts/lane_context_hook.py +0 -0
  174. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/scripts/oauth_setup.py +0 -0
  175. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/scripts/qa_cancel_insert_local_images.py +0 -0
  176. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/scripts/qa_gmail_fixtures.py +0 -0
  177. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/scripts/setup_team.sh +0 -0
  178. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/scripts/write_team_mcp_configs.sh +0 -0
  179. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/server.json +0 -0
  180. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/.env.template +0 -0
  181. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/__init__.py +0 -0
  182. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/auth.py +0 -0
  183. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/cache.py +0 -0
  184. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/http_transport.py +0 -0
  185. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/reauth.py +0 -0
  186. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/server.py +0 -0
  187. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/sse_shutdown.py +0 -0
  188. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/__init__.py +0 -0
  189. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/atomic_write.py +0 -0
  190. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/cache.py +0 -0
  191. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/concurrency.py +0 -0
  192. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/__init__.py +0 -0
  193. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/anchors.py +0 -0
  194. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/ast.py +0 -0
  195. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/ast_to_markdown.py +0 -0
  196. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/comments.py +0 -0
  197. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/doc_to_ast.py +0 -0
  198. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/editing.py +0 -0
  199. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/emitter.py +0 -0
  200. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/html_parser.py +0 -0
  201. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/indices.py +0 -0
  202. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/layout.py +0 -0
  203. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/markdown_export.py +0 -0
  204. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/named_ranges.py +0 -0
  205. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/style.py +0 -0
  206. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/tables.py +0 -0
  207. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/drive/__init__.py +0 -0
  208. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/drive/activity.py +0 -0
  209. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/drive/sharing.py +0 -0
  210. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/gmail.py +0 -0
  211. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/mime_types.py +0 -0
  212. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/pagination.py +0 -0
  213. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/response_limits.py +0 -0
  214. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/sheets/__init__.py +0 -0
  215. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/sheets/data.py +0 -0
  216. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/sheets/helpers.py +0 -0
  217. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/sheets/structure.py +0 -0
  218. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/__init__.py +0 -0
  219. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/conftest.py +0 -0
  220. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/drive/__init__.py +0 -0
  221. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/drive/test_activity.py +0 -0
  222. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/drive/test_files.py +0 -0
  223. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/drive/test_sharing.py +0 -0
  224. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/drive/test_transfer.py +0 -0
  225. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/fakes.py +0 -0
  226. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/integration/__init__.py +0 -0
  227. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/integration/conftest.py +0 -0
  228. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/integration/test_local_fs_harness.py +0 -0
  229. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/sheets/__init__.py +0 -0
  230. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/sheets/test_data.py +0 -0
  231. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/sheets/test_helpers.py +0 -0
  232. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/sheets/test_structure.py +0 -0
  233. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_atomic_write.py +0 -0
  234. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_auth.py +0 -0
  235. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_cache.py +0 -0
  236. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_check_supports_all_drives.py +0 -0
  237. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_concurrency.py +0 -0
  238. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_anchors.py +0 -0
  239. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_comments.py +0 -0
  240. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_content.py +0 -0
  241. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_core.py +0 -0
  242. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_editing.py +0 -0
  243. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_images.py +0 -0
  244. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_indices.py +0 -0
  245. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_layout.py +0 -0
  246. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_markdown_export.py +0 -0
  247. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_named_ranges.py +0 -0
  248. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_revision_export.py +0 -0
  249. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_style.py +0 -0
  250. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_tables.py +0 -0
  251. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_gen_tool_docs.py +0 -0
  252. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_gmail.py +0 -0
  253. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_lane_context_hook.py +0 -0
  254. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_mime_types.py +0 -0
  255. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_qa_gmail_fixtures.py +0 -0
  256. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_reauth.py +0 -0
  257. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_response_limits.py +0 -0
  258. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_server.py +0 -0
  259. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_server_json.py +0 -0
  260. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_sse_shutdown.py +0 -0
  261. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/tests/test_team_mcp_configs.py +0 -0
  262. {mcp_gee_sweet-0.9.2.dev335 → mcp_gee_sweet-0.9.2.dev338}/uv.lock +0 -0
@@ -25,7 +25,7 @@ Branch naming for this slot always puts `<name>` as the **second** `/`-separated
25
25
  - On every open PR touching the file: `gh pr list --state open --json number,headRefName,files --jq '.[] | select(any(.files[]; .path == "<test-file>")) | "\(.number) \(.headRefName)"'`, then for each branch `git fetch origin <branch> && git show origin/<branch>:<test-file> | grep -oE "^### <PREFIX>[0-9]+" | sort -V | tail -1`.
26
26
  - If an open PR reserved the ID for the *same* case you're writing (e.g. a known-defect placeholder your fix supersedes), take its number rather than a fresh one, and say in your PR which version should win when the second one merges.
27
27
  - If a reviewer catches a collision later (`gh pr view` shows `mergeable: CONFLICTING`): rebase onto `origin/develop`, resolve by hand rather than taking one side, renumber consistently across every cross-reference in the file, force-push with `--force-with-lease`, and reply on the PR stating exactly what changed. Full playbook: `.claude/team-roles/aziz.md`'s "Ad-hoc deep-dive QA" section.
28
- 6. Commit and push (with confirmation, per this repo's normal rule), open a PR referencing the issue (`Closes #<n>`) targeting `develop`. **Follow-ups you found while implementing get the same triage as a review finding** (`qa.md` step 3: its four bars, bar 2's value test, and the search before filing). Fix anything inside this diff in this PR. Open the PR first. Then file a ticket only for a finding that clears a bar: label it `from-review`, cite this PR's number in its body, and edit the PR body to list it as `ticket — bar N: <reason> (#<issue>)`. A ticket filed before the PR exists can't cite it, so Kai's merge-check search won't find it. A sibling function with the same defect as the one you fixed is a fair bar-2 ticket (#904); a cleanup idea with no behavior impact is not. List each finding you didn't file in the PR body as `dropped: <finding> — <reason>`, with the same drop reasons as `qa.md` step 3. Findings inside this diff are fixed, not listed.
28
+ 6. Commit and push (with confirmation, per this repo's normal rule), open a PR referencing the issue (`Closes #<n>`) targeting `develop`. **Follow-ups you found while implementing get the same triage as a review finding** (`qa.md` step 3: its four bars, bar 2's value test, and the search before filing). Fix anything inside this diff in this PR, where "inside" is `qa.md` bar 2's definition: every file the diff modifies, plus every function your new or changed code calls directly. Open the PR first. Then file a ticket only for a finding that clears a bar: label it `from-review`, cite this PR's number in its body, and edit the PR body to list it as `ticket — bar N: <reason> (#<issue>)`. A ticket filed before the PR exists can't cite it, so Kai's merge-check search won't find it. A sibling function with the same defect, in a file this PR doesn't modify or call into, is a fair bar-2 ticket (#904); a cleanup idea with no behavior impact is not. List each finding you didn't file in the PR body as `dropped: <finding> — <reason>`, with the same drop reasons as `qa.md` step 3. Findings inside this diff are fixed, not listed.
29
29
  7. Remove the `ready-for-development` label once the PR is open.
30
30
  8. Run `/notify-partner` (`.claude/commands/notify-partner.md`), first-pass case — wakes the QA partner directly if one is already running as a live agent; a silent no-op otherwise.
31
31
  9. Report the PR URL. Leave the branch checked out — don't return to `team/<name>` until the ticket is fully merged (see `/merge-pr`'s team-slot reset step).
@@ -41,6 +41,8 @@ The incidents behind the rules in this file are in [`docs/decisions/role-file-hi
41
41
 
42
42
  **A role-routed label (`joy`/`bob`/`aziz`) and a version label are not mutually exclusive — don't let one imply the absence of the other.** They answer different questions: who scopes/does the work, versus whether a release actually depends on it landing. Apply the same release-gate test used for every other ticket: does the *next* targeted release actually need this to ship cleanly? If yes — e.g. a release-process fix Bob owns that the next `/release` run would visibly break without — it gets the version label alongside the person label. If the work is genuinely open-ended with no release tie, it stays version-less regardless of who it's routed to (#602). One past role-routed ticket correctly staying version-less is not a rule that they all do.
43
43
 
44
+ **A `from-review` ticket gets the in-flight release's version label only if it meets one of two conditions.** Either (a) its defect is new in this release, meaning a commit after the last stable tag introduced it, or (b) a failure was actually observed: wrong output, a crash, or a data exposure. A concrete path to one that nobody has observed isn't (b). Name which condition applies on the ticket's `docs/roadmap.md` line. Every other `from-review` ticket gets the next version's label, not the in-flight one's. Don't label a review ticket for the in-flight release just because the PR that produced it ships there (#987 and #994 were, and had to be moved to v0.9.3; #995).
45
+
44
46
  ## Community intake
45
47
 
46
48
  **Community intake: apply labels to outside-contributor PRs and issues, and do nothing else with them.** An outside contributor is any author except the maintainer accounts `khuisman` and `kh-kev` and bots (`is_bot: true`, e.g. `app/dependabot`). Decide by login, not by GitHub's `authorAssociation`, which reports `kh-kev` as `NONE`. For each open PR or issue from an outside contributor that has no `community` label:
@@ -21,15 +21,15 @@ Find the partner Dev's open PR by matching the branch's second `/`-separated seg
21
21
  **Triage every finding before you write a verdict.** Each code-review or live-QA finding goes in this round's PR comment as exactly one of these lines:
22
22
  - `send-back: <finding>` — the default. The Dev fixes it in this branch, this round. A `send-back` counts as a failure for step 7.
23
23
  - `ticket — bar N: <one line on why this finding clears bar N> (#<issue>)` — only when one of the four bars below applies. Search first (below), then file it with the `from-review` label.
24
- - `dropped: <finding> — <why it isn't a real defect>` — a false positive, not reproducible, the current behavior is intended, or an outside-the-diff finding with no behavior impact (bar 2's value test). No ticket. A real finding that's merely small or low priority is a `send-back`, not a drop.
24
+ - `dropped: <finding> — <why it isn't a real defect>` — a false positive, not reproducible, the current behavior is intended, or a finding outside the functions the diff changes that has no behavior impact (bar 2). No ticket. A real finding that's merely small or low priority is a `send-back`, not a drop.
25
25
 
26
26
  There is no "non-blocking" heading. "Small," "narrow," "low priority," and "doesn't block `qa-approved`" describe a `send-back`; they aren't reasons to file. Kai's `/merge-pr` step 2 reads this list and won't merge a PR whose comments file a ticket without a `bar N:` reason, or drop a finding for its size or priority.
27
27
 
28
28
  The four bars:
29
29
  1. **Maintainer/product decision.** A real design or scope call the Dev can't make: it changes user-facing behavior, trades off cost or risk only the maintainer can accept, or sets precedent beyond this PR. Test: if you sent it back now, could the Dev pick a reasonable option and ship it? If yes, it isn't bar 1. Several valid ways to implement a fix is not a bar-1 reason.
30
- 2. **Outside this PR's diff.** The finding is in a function the diff doesn't touch, or needs a sweep across call sites the diff doesn't touch (e.g. #737's 6+ untouched call sites). When the same pattern also appears elsewhere, only the elsewhere part qualifies; the copy inside the diff is a `send-back`. **Value test:** being outside the diff is why it can't be fixed now, not why it deserves a ticket. File only if it has behavior impact, meaning an observed failure or a concrete path to wrong output, a crash, a hang, a leak, or misleading output. A refactor, deduplication, or readability finding with no behavior impact is `dropped: … — outside this diff, no behavior impact` (#908 was this case).
30
+ 2. **Outside this PR's diff.** For this triage, "inside the diff" means every file the diff modifies, plus every function that code the diff adds or changes calls directly (name the call in the finding). A finding inside the diff is a `send-back` unless bar 1, 3, or 4 applies. That includes a function the diff doesn't touch, as long as the finding has behavior impact (the value test below); one in an untouched function with no behavior impact is `dropped: … — no behavior impact outside the changed functions`. #993, #994, and #990 were filed under bar 2 and should have been send-backs. Bar 2 covers only the rest: a file the diff doesn't modify and the PR's code doesn't call (e.g. #904), a sweep across call sites outside those files (e.g. #737's 6+ untouched call sites), or a fix that "Check other open PRs" below defers because another open PR changes the same file. When the same pattern also appears elsewhere, only the elsewhere part qualifies. **Value test:** being outside the diff is why it can't be fixed now, not why it deserves a ticket. File only if it has behavior impact, meaning an observed failure or a concrete path to wrong output, a crash, a hang, a leak, or misleading output. A refactor, deduplication, or readability finding with no behavior impact is `dropped: … — outside this diff, no behavior impact` (#908 was this case).
31
31
  3. **Needs infrastructure or access** this pass doesn't have.
32
- 4. **A pre-existing defect inside a function this diff modifies, whose fix would move code to another thread or change what awaits what.** A short fix like that opens new races for the next round to find (PR #867). A pre-existing defect whose fix doesn't change threading or await order is a `send-back`.
32
+ 4. **A pre-existing defect inside the diff (as bar 2 defines it), whose fix would move code to another thread or change what awaits what.** A short fix like that opens new races for the next round to find (PR #867). A pre-existing defect whose fix doesn't change threading or await order is a `send-back`.
33
33
 
34
34
  **Search before filing.** Run `gh issue list --state open --search "<function or file name> <symptom>"` right before `gh issue create`. If an open issue already describes the same defect (same code path and same failure, not just a shared keyword), comment the new evidence there instead of filing. Do the same when an open issue's planned fix would also fix this finding, even if it describes a different symptom: read the design or "possible fix" section of every hit, not just its title (#906 was already covered by #873's design and was closed into it). Put the issue you commented on in the finding line: `ticket — bar N: <reason> (commented on #<issue>)`. Classify a filed ticket `enhancement` (or `defect` only if a failure was actually observed). History of this rule: `docs/decisions/decision-review-finding-ticket-bar.md`.
35
35
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: mcp-gee-sweet
3
- Version: 0.9.2.dev335
3
+ Version: 0.9.2.dev338
4
4
  Summary: MCP server for Google Workspace — Sheets, Drive, Docs (HTML or Markdown), and Calendar.
5
5
  Project-URL: Homepage, https://github.com/khuisman/mcp-gee-sweet
6
6
  Project-URL: Bug Tracker, https://github.com/khuisman/mcp-gee-sweet/issues
@@ -21,13 +21,16 @@ A PR's code review or live QA turns up findings. Each one can go back to the Dev
21
21
 
22
22
  1. **The rule moves into the procedure.** `qa.md` step 3 requires a finding list in the PR comment. Every finding is `send-back`, `ticket — bar N: <reason> (#issue)`, or `dropped: <why it isn't a real defect>`. No "non-blocking" category exists. A drop is only for a false positive, a non-reproducible finding, or intended behavior; otherwise it would become the next escape hatch once filing costs a named bar (Bob's round-1 review of PR #889). A `send-back` routes the round to step 7.
23
23
  2. **Kai enforces it at merge.** `merge-pr.md` step 2 reads the QA comments. A filed ticket with no `bar N:` reason, or a drop justified by size or priority, blocks the merge and goes back to QA. The ticket query doesn't filter on `from-review`: a ticket that skipped the bar skips the label too (#887 has neither). Kai is a second agent with no stake in the PR. A bar that's named but plainly doesn't fit goes to the user rather than being decided by Kai alone.
24
- 3. **Bar 2 is restated as "outside this PR's diff."** The rationale is loaded context. A finding in a function the diff doesn't touch is a fair ticket, because the Dev has no context for it either (#876 is that case). The copy of a pattern inside the diff is still a `send-back`.
24
+ 3. **Bar 2 is restated as "outside this PR's diff."** The rationale is loaded context. A finding in a function the diff doesn't touch is a fair ticket, because the Dev has no context for it either (#876 is that case). The copy of a pattern inside the diff is still a `send-back`. Narrowed by decision 9: the boundary is now the file or directly called function, not the function.
25
25
  4. **Retro tickets use the same bars.** `retro.md`'s Ticket category points to them. One exception: once the PR has merged there's no send-back left, so an observed failure is filed as `defect` with `from-review` and "merged" as its reason; anything else that clears no bar is recorded in the retro's report, not filed (Bob's round-1 review of PR #889, user decision 2026-10-04).
26
- 5. **Measured.** Every ticket filed under a bar gets the `from-review` label. Check the rate two weeks out (around 2026-10-18): `gh issue list --label from-review --state all --search "created:>=2026-10-04"`, compared with the number of merged lane PRs.
26
+ 5. **Measured.** Every ticket filed under a bar gets the `from-review` label. Check the rate two weeks out (around 2026-10-18): `gh issue list --label from-review --state all --search "created:>=2026-10-04"`, compared with the number of merged lane PRs. That checkpoint also covers decisions 9 and 10: count how many `from-review` tickets were filed for findings in a file the PR modified or a function its code called, and how many went into the in-flight release's label.
27
27
  6. **Bar 2 gets a value test (2026-10-04, after PRs #903 and #905).** Being outside the diff explains why a finding can't be fixed now. It doesn't show the finding is worth tracking. A bar-2 ticket needs behavior impact: an observed failure, or a concrete path to wrong output, a crash, a hang, a leak, or misleading output. A refactor or dedup finding with no behavior impact is dropped, and "outside this diff, no behavior impact" is a valid drop reason.
28
28
  7. **Search covers planned fixes, not only matching defects.** An open issue whose design would also fix the finding absorbs it as a comment, even when its title describes a different symptom.
29
29
  8. **Dev-filed follow-ups use the same bars.** `dev.md` step 6 applies `qa.md` step 3's triage to findings a Dev makes while implementing. The Dev files any ticket after opening the PR, cites the PR number in it, and lists it in the PR body as a `ticket — bar N:` line; unfiled findings go in as `dropped:` lines. Filing after the PR matters because Kai's merge-check search only finds tickets created after the PR that cite its number (Bob's round-1 review of PR #910). Kai's merge check reads the PR body as well as QA's comments.
30
30
 
31
+ 9. **Bar 2 is measured per file or called function, not per function (2026-10-12, #995).** "Inside the diff" now means every file the diff modifies plus every function the diff's new or changed code calls directly. A finding there with behavior impact is a `send-back` unless bar 1, 3, or 4 applies. Bar 4 uses the same boundary. Decision 3's loaded-context argument holds less well than it looked: a Dev changing a file has its neighbors loaded, and a helper on the PR's new path is where the PR's own QA sees the failure. A finding in an untouched function with no behavior impact is dropped, so the wider boundary doesn't pull refactors into the PR. No size limit was added (#995 proposed "a few lines plus a unit test"): size is the kind of description decision 1 already rejects as a reason, and bar 4 covers the fixes that actually grow a PR.
32
+ 10. **Review tickets aren't labeled for the in-flight release by default (2026-10-12, #995).** `kai.md`'s triage section gives a `from-review` ticket the in-flight release's label only if a commit after the last stable tag introduced the defect, or a failure was actually observed (wrong output, a crash, a data exposure). Everything else goes to the next version.
33
+
31
34
  ## History (moved from `qa.md`'s Retro section, 2026-10-04)
32
35
 
33
36
  - **Raise the bar on what counts as non-blocking — if a finding is worth writing up, it's worth sending back to the Dev to fix now, in the same pass, using the context already loaded — not filing a ticket that discards it.** A code-review or live-QA finding defaults to *blocking*: comment on the PR and send it back to the Dev in the same branch, the same pass — input-validation gaps, duplicated helpers, a style inconsistency the new code merely repeats from an existing convention, a docstring the PR's own diff made inaccurate. The old default (label these "minor/systemic," approve anyway, file a ticket) was generating far more tickets than the team could close — a single PR's review routinely spun off 1-2 backlog issues nobody would revisit, all describing something that was, by definition, already fully understood and small enough to fix in the moment; filing a ticket for it just discards that context so someone has to re-derive it later. Every new ticket cycle is new context a Dev has to reconstruct from scratch (re-open the file, re-derive the finding, re-load the surrounding code) — a cost paid in tokens and turnaround that a same-round send-back skips entirely, since the Dev already has the file and the finding loaded right now. Optimize for that: fixing it now, in the branch already open, is strictly cheaper than fixing it later in a new one.
@@ -49,3 +52,4 @@ A PR's code review or live QA turns up findings. Each one can go back to the Dev
49
52
  - **Search open issues before filing any ticket, not just fixture-pollution ones.** PR #800, 2026-09-24: round 2 filed #806 five minutes after #805 covered the same gap, and Kai closed #806 as a duplicate. Nothing required searching outside the fixture case. Command decision: the search-before-filing step in the ticket-exception block above.
50
53
  - **A one-line fix for a pre-existing defect cost three extra rounds.** PR #867 (#833) round 1: the code review also flagged that the token refresh ran on the event loop. That was already true on `develop`, and #833 (moving the consent wait off the loop) didn't cover it. Sky sent it back as blocking under "Raise the bar." The fix moved the token load onto a thread. That changed when the lifespan raises relative to the SSE `endpoint` event, which caused round 2's intermittent SIGTERM hang (python-sdk#3616). It also opened a stale-read window between the thread's "consent needed" decision and the event loop, which caused the CI-flake race (failure side) and round 4's race (success side). Five rounds in total, three of them from this one send-back. Command decision: bar 4 under "Raise the bar." The user chose it over broadening the pre-existing carve-out to every defect.
51
54
  - **The rule worked as written, and two of four follow-up tickets still shouldn't have existed, while a third skipped the rule.** 2026-10-04, first PRs reviewed under decisions 1–5 (#905 for #872, #903 for #883). Round 1 sent back 7 findings on #905 and 2 on #903, all fixed in-branch, which is the behavior decision 1 asked for. Every filed ticket named a bar, and the merge check passed them. But of the four tickets the two PRs produced, two shouldn't have been filed. #908 (bar 2) was a dedup refactor: it fit "outside this diff" but had no behavior impact. #906 (bar 2) was already covered by #873's planned design, which the same-defect search didn't look for. #907 (bar 4: a real pre-existing defect whose fix changes await order) was needed. #904 was filed by the Dev at PR creation with no bar named. It does clear bar 2 (a sibling function with the same cancel race), but nothing checked it. #906 was closed into #873, and #904/#907/#908 were folded into bundle #909. User's read: "we tweaked the criteria and immediately have four new tickets." Command decision: decisions 6–8 above. Each tightening so far has closed one gap and exposed the next layer down. Decision 5's two-week measurement should count Dev-filed tickets too.
55
+ - **A followed rule still produced a ticket per merged PR (2026-10-11, #995).** 7 of the 8 issues opened that day came from PR reviews. Since 2026-10-04, 22 of 45 new tickets were `from-review` (10 bundle tickets not counted). Every ticket named a bar that fit as written, so compliance wasn't the problem; bar 2's per-function boundary was. #993 (`_render_block`, the module and escaping helper PR #991 changed) was filed and then fixed inside #991 anyway. #994 (`handle_endtag` in `html_parser.py`, which PR #992 modifies) was the same bug QA sent back in the PR's new code that round. #990 (`write_capped_result_to_disk`, the helper PR #988's new `local_path` path writes through) was observed in that PR's own QA. Separately, Kai labeled every review ticket for v0.9.2, and #987 (docstring only) and #994 (pre-existing, only on invalid nested HTML) were moved to v0.9.3 afterward. Command decision: decisions 9 and 10.
@@ -424,6 +424,8 @@ remove_calendar_from_list invalid ID -> {"error":"<HttpError 404 ... notFound ..
424
424
  **Result (2026-09-04) ✅ PASS**
425
425
  remove_calendar_from_list on SA-owned MINCAL -> {"error":"Google does not allow removing a calendar you own from your own calendar list (reason: cannotUnsubscribeFromOwnedCalendar). Use delete_calendar instead to permanently delete it."} — friendly, actionable, names delete_calendar.
426
426
 
427
+ **Result (2026-10-12) ✅ PASS** (PR #1011 round 1, Sky, against `1a8053e` after a fresh reconnect). Regression check after `remove_calendar_from_list` moved onto the shared `http_error_has_reason` in `tools/http_errors.py` (#916). On a freshly created owned calendar it still returns the `cannotUnsubscribeFromOwnedCalendar` message naming `delete_calendar`.
428
+
427
429
  ---
428
430
 
429
431
  ## `list_calendar_acl`
@@ -1096,6 +1098,8 @@ Before #459 both tools returned the raw `HttpError` string; they now return a me
1096
1098
 
1097
1099
  Cleanup done.
1098
1100
 
1101
+ **Result (2026-10-12) ✅ PASS** (PR #1011 round 1, Sky, against `1a8053e` after a fresh reconnect). Regression check after the reason check moved to the shared `tools/http_errors.py` (#916). On a fresh `QA-OwnerAcl` calendar every check returns exactly the documented string: primary-owner remove (`cannotChangeOwnerAcl`, names `delete_calendar`) and add (change message, no `delete_calendar`); own-rule remove and add (`cannotChangeOwnAcl`); a follow-up `list_calendar_acl` still shows both rules as `owner`; `totally-invalid-rule-id` passes through as raw `HttpError 400`. Cleanup done.
1102
+
1099
1103
  ---
1100
1104
 
1101
1105
  ### TC-CAL80: `list_calendar_acl` returns a complete list with no partial marker on a normal calendar (issue #615)
@@ -1729,6 +1729,8 @@ Remove `/tmp/qa-239/`.
1729
1729
 
1730
1730
  **Result (2026-09-08) ✅ PASS** — verified via `mcp-gee-sweet-kit`. Unit-test-only per the case's stated live-repro constraint (quota errors aren't forceable against the real Drive API — same as TC-D249–TC-D251); no live tool call applicable. `test_upload_create_quota_failure_uses_friendly_message` passes by name, along with all three cited regression tests for the folded sites (`TestUploadLocalFileCore::test_quota_exceeded_returns_friendly_error_dict`, `TestUploadFile::test_quota_exceeded_returns_friendly_error_dict`, `TestSyncFolderConvertMarkdown::test_restamp_quota_failure_uses_friendly_message`). Full `tests/drive/test_transfer.py` green (120 passed); full suite green (1329 passed, 3 skipped) — no regression from the `_is_quota_error` / `_quota_error_detail` consolidation. `/code-review high origin/develop...HEAD` clean across all 8 angles: the two new helpers are module-private, `_is_quota_error` short-circuits on `isinstance(exc, HttpError)` so no AttributeError on non-`HttpError` input, and all four folded call sites (`_restamp_failure_result`, `_upload_local_file`'s `except HttpError`, `_sync_level._run_one`'s outer catch-all, `upload_file`'s `convert_to_doc` `except HttpError`) are behaviorally identical to the inline checks they replaced. Closes the last un-fixed quota-render site flagged in TC-D251's round-1 Result.
1731
1731
 
1732
+ **Result (2026-10-12) ✅ PASS** (PR #1011 round 1, Sky). Regression check after #916 replaced `_is_quota_error` with the shared `is_storage_quota_error` (`tools/http_errors.py`), which `_quota_error_detail` and `upload_file`'s `convert_to_doc` `except HttpError` now call. Unit-test-only, as before (the `mcp-gee-sweet-sky` server runs OAuth with personal-Drive quota, so a quota error isn't forceable live). All four cited tests pass by name; `pytest -k quota` across the suite is green (25 passed). The shared check matches the quoted `"storageQuotaExceeded"` JSON token rather than a bare substring, which is the form every Drive error body uses.
1733
+
1732
1734
  ---
1733
1735
 
1734
1736
  ### TC-D253: `sync_folder` — equal mtimes but differing byte sizes report a `conflict`, never a silent skip or an overwrite (issue #659) ⚠️ destructive ⚠️ local-filesystem
@@ -283,7 +283,7 @@ Same shape as v0.8.1 — stabilize on defects that surfaced since v0.9.0 shipped
283
283
  - [x] `sync_folder`: a failed mid-stream download leaves a truncated local file with a fresh mtime, which the next sync uploads over the intact Drive copy — download to a temp file and `os.replace` on success; check `download_file`/`download_folder` too. Found by code review, not yet observed live (lane-a, after #814 since both touch `_run_one`) ([#844](https://github.com/khuisman/mcp-gee-sweet/issues/844)) (PR #884)
284
284
  - [x] **Bundle:** Drive transfer follow-ups (`download_file` preflight + `_write_atomically`), one PR closing [#874](https://github.com/khuisman/mcp-gee-sweet/issues/874), [#887](https://github.com/khuisman/mcp-gee-sweet/issues/887) — lane A (PR #1001) ([#895](https://github.com/khuisman/mcp-gee-sweet/issues/895))
285
285
  - [x] `upload_local_file`/`sync_folder`: compressed files upload with the inner MIME type (`x.csv.gz` → `text/csv`). Lane A, after #895 (both touch `transfer.py` uploads); community PR #934 closed unmerged 2026-10-10 (PR #1002) ([#930](https://github.com/khuisman/mcp-gee-sweet/issues/930))
286
- - [ ] `sync_folder`: `size_bytes` never counts uploaded bytes, so an upload-only sync reports 0 (found in PR #1002's QA, observed live). Lane A, after #930 ([#1003](https://github.com/khuisman/mcp-gee-sweet/issues/1003))
286
+ - [x] `sync_folder`: `size_bytes` never counts uploaded bytes, so an upload-only sync reports 0 (found in PR #1002's QA, observed live). Lane A, after #930 (PR #1007) ([#1003](https://github.com/khuisman/mcp-gee-sweet/issues/1003))
287
287
  - [ ] Share one HttpError reason-check helper across the `storageQuotaExceeded` sites. Lane A, after #1003; community PR #921 closed unmerged 2026-10-10 ([#916](https://github.com/khuisman/mcp-gee-sweet/issues/916))
288
288
 
289
289
  **Calendar hardening** _(triaged out of `backlog` 2026-09-11)_
@@ -5,11 +5,11 @@ import weakref
5
5
  from datetime import datetime, timezone
6
6
  from typing import Any
7
7
 
8
- from googleapiclient.errors import HttpError
9
8
  from mcp.server.mcpserver import Context
10
9
  from mcp.types import ToolAnnotations
11
10
 
12
11
  from ..auth import execute_in_thread
12
+ from .http_errors import http_error_has_reason
13
13
  from .pagination import iter_pages
14
14
  from .response_limits import clamp_max_results, enforce_response_size_cap
15
15
 
@@ -80,24 +80,13 @@ def _list_all_events_semaphore() -> asyncio.Semaphore:
80
80
  return semaphore
81
81
 
82
82
 
83
- def _http_error_has_reason(e: BaseException, status: int, reason: str) -> bool:
84
- """Whether `e` is an HttpError with this status whose body names this reason.
85
- The reason is matched as a quoted JSON string, so one reason that's a prefix
86
- of another (cannotChangeOwnAcl / cannotChangeOwnerAcl) can't false-match."""
87
- return (
88
- isinstance(e, HttpError)
89
- and e.resp.status == status
90
- and f'"{reason}"'.encode() in (e.content or b"")
91
- )
92
-
93
-
94
83
  def _acl_error(e: Exception, *, removing: bool) -> dict[str, str]:
95
84
  """{"error": ...} for a failed add_calendar_acl (removing=False) or
96
85
  remove_calendar_acl (removing=True) call, rewriting Google's two
97
86
  unchangeable-rule 403s into messages naming the restriction (#459)."""
98
- if _http_error_has_reason(e, 403, "cannotChangeOwnAcl"):
87
+ if http_error_has_reason(e, 403, "cannotChangeOwnAcl"):
99
88
  return {"error": _CANNOT_CHANGE_OWN_ACL_ERROR}
100
- if _http_error_has_reason(e, 403, "cannotChangeOwnerAcl"):
89
+ if http_error_has_reason(e, 403, "cannotChangeOwnerAcl"):
101
90
  return {
102
91
  "error": _CANNOT_REMOVE_OWNER_ACL_ERROR if removing else _CANNOT_CHANGE_OWNER_ACL_ERROR
103
92
  }
@@ -471,7 +460,7 @@ def register(tool):
471
460
  lc.calendar_service,
472
461
  )
473
462
  except Exception as e:
474
- if _http_error_has_reason(e, 403, "cannotUnsubscribeFromOwnedCalendar"):
463
+ if http_error_has_reason(e, 403, "cannotUnsubscribeFromOwnedCalendar"):
475
464
  return {"error": _CANNOT_UNSUBSCRIBE_OWNED_ERROR}
476
465
  return {"error": str(e)}
477
466
 
@@ -17,6 +17,7 @@ from ...auth import SpreadsheetContext, execute_in_thread
17
17
  from ...cache import CACHE_VALIDATE_MODIFIED_TIME
18
18
  from ..drive import _SA_QUOTA_ERROR
19
19
  from ..drive.transfer import _GOOGLE_DOC_MIME
20
+ from ..http_errors import is_storage_quota_error
20
21
  from ..response_limits import enforce_response_size_cap, write_capped_result_to_disk
21
22
  from .anchors import compute_scheme_slugs, resolve_heading_anchor
22
23
  from .ast import Run, Table
@@ -977,7 +978,7 @@ def register(tool):
977
978
  drive_service,
978
979
  )
979
980
  except HttpError as e:
980
- if e.resp.status == 403 and b"storageQuotaExceeded" in (e.content or b""):
981
+ if is_storage_quota_error(e):
981
982
  return {"error": _SA_QUOTA_ERROR}
982
983
  raise
983
984
 
@@ -1106,7 +1107,7 @@ def register(tool):
1106
1107
  drive_service,
1107
1108
  )
1108
1109
  except HttpError as e:
1109
- if e.resp.status == 403 and b"storageQuotaExceeded" in (e.content or b""):
1110
+ if is_storage_quota_error(e):
1110
1111
  return {"error": _SA_QUOTA_ERROR}
1111
1112
  raise
1112
1113
 
@@ -50,6 +50,7 @@ from PIL import Image
50
50
  from ...auth import execute_in_thread, thread_http
51
51
  from ..drive import _SA_QUOTA_ERROR
52
52
  from ..drive.transfer import _upload_local_file
53
+ from ..http_errors import is_storage_quota_error
53
54
  from .indices import _collect_doc_paragraphs, utf16_len
54
55
 
55
56
  logger = logging.getLogger(__name__)
@@ -455,7 +456,7 @@ async def upload_and_share_image(
455
456
  drive_service,
456
457
  )
457
458
  except HttpError as e:
458
- if e.resp.status == 403 and b"storageQuotaExceeded" in (e.content or b""):
459
+ if is_storage_quota_error(e):
459
460
  return {"error": _SA_QUOTA_ERROR}
460
461
  return {"error": f"failed to upload resized image: {e}"}
461
462
  except Exception as e:
@@ -12,6 +12,7 @@ from mcp.types import ToolAnnotations
12
12
 
13
13
  from ...auth import execute_in_thread
14
14
  from ..concurrency import gather_with_fallback, report_progress_safe
15
+ from ..http_errors import is_storage_quota_error
15
16
  from ..pagination import iter_pages
16
17
  from ..response_limits import clamp_max_results
17
18
  from ..sheets.helpers import _quote_sheet_name
@@ -108,7 +109,7 @@ def register(tool):
108
109
  drive_service,
109
110
  )
110
111
  except HttpError as e:
111
- if e.resp.status == 403 and b"storageQuotaExceeded" in (e.content or b""):
112
+ if is_storage_quota_error(e):
112
113
  return {"error": _SA_QUOTA_ERROR}
113
114
  raise
114
115
 
@@ -209,7 +210,7 @@ def register(tool):
209
210
  drive_service,
210
211
  )
211
212
  except HttpError as e:
212
- if e.resp.status == 403 and b"storageQuotaExceeded" in (e.content or b""):
213
+ if is_storage_quota_error(e):
213
214
  return {"error": _SA_QUOTA_ERROR}
214
215
  raise
215
216
 
@@ -977,7 +978,7 @@ def register(tool):
977
978
  drive_service,
978
979
  )
979
980
  except HttpError as e:
980
- if e.resp.status == 403 and b"storageQuotaExceeded" in (e.content or b""):
981
+ if is_storage_quota_error(e):
981
982
  return {"error": _SA_QUOTA_ERROR}
982
983
  raise
983
984
 
@@ -18,6 +18,7 @@ from mcp.types import ToolAnnotations
18
18
 
19
19
  from ...auth import execute_in_thread, thread_http
20
20
  from ..atomic_write import _check_destination, _is_partial_download, _write_atomically
21
+ from ..http_errors import is_storage_quota_error
21
22
  from ..mime_types import guess_mime_type
22
23
  from ..pagination import iter_pages
23
24
  from ..response_limits import (
@@ -240,24 +241,13 @@ def _is_workspace_entry(f: dict) -> bool:
240
241
  return f["mimeType"].startswith("application/vnd.google-apps.")
241
242
 
242
243
 
243
- def _is_quota_error(exc: Exception) -> bool:
244
- """True for Drive's storageQuotaExceeded HttpError (403) — the "this identity
245
- has no personal storage" failure a service account hits on a non-Shared-Drive
246
- target, which the shared _SA_QUOTA_ERROR text explains."""
247
- return (
248
- isinstance(exc, HttpError)
249
- and exc.resp.status == 403
250
- and b"storageQuotaExceeded" in (exc.content or b"")
251
- )
252
-
253
-
254
244
  def _quota_error_detail(exc: Exception) -> str:
255
245
  """Render an exception as a user-facing 'error' string: the friendly
256
246
  _SA_QUOTA_ERROR text for a storageQuotaExceeded HttpError, else str(exc).
257
247
  Keeps every quota-error site in this file rendering the same way — including
258
248
  catch-all `except Exception` handlers where a bare `except HttpError` quota
259
249
  check would otherwise be skipped and leak the raw error blob (#670)."""
260
- return _SA_QUOTA_ERROR if _is_quota_error(exc) else str(exc)
250
+ return _SA_QUOTA_ERROR if is_storage_quota_error(exc) else str(exc)
261
251
 
262
252
 
263
253
  def _restamp_failure_result(file_id: str, exc: Exception) -> dict[str, Any]:
@@ -2681,7 +2671,7 @@ def register(tool):
2681
2671
  drive_service,
2682
2672
  )
2683
2673
  except HttpError as e:
2684
- if _is_quota_error(e):
2674
+ if is_storage_quota_error(e):
2685
2675
  return {"error": _SA_QUOTA_ERROR}
2686
2676
  raise
2687
2677
 
@@ -0,0 +1,27 @@
1
+ """Shared HttpError classification.
2
+
3
+ Every check of a Google API error's `reason` goes through `http_error_has_reason`,
4
+ so the matching logic lives in one place. It matches the reason as a quoted
5
+ JSON string in the raw body; switching to parsing the structured
6
+ `error.errors[].reason` field would happen here.
7
+ """
8
+
9
+ from googleapiclient.errors import HttpError
10
+
11
+
12
+ def http_error_has_reason(e: BaseException, status: int, reason: str) -> bool:
13
+ """Whether `e` is an HttpError with this status whose body names this reason.
14
+ The reason is matched as a quoted JSON string, so one reason that's a prefix
15
+ of another (cannotChangeOwnAcl / cannotChangeOwnerAcl) can't false-match."""
16
+ return (
17
+ isinstance(e, HttpError)
18
+ and e.resp.status == status
19
+ and f'"{reason}"'.encode() in (e.content or b"")
20
+ )
21
+
22
+
23
+ def is_storage_quota_error(e: BaseException) -> bool:
24
+ """True for Drive's storageQuotaExceeded HttpError (403): the "this identity
25
+ has no personal storage" failure a service account hits on a non-Shared-Drive
26
+ target, which the shared `_SA_QUOTA_ERROR` text explains."""
27
+ return http_error_has_reason(e, 403, "storageQuotaExceeded")
@@ -891,30 +891,6 @@ class TestRemoveCalendarAcl:
891
891
  assert result["error"].startswith("<HttpError 404")
892
892
 
893
893
 
894
- class TestHttpErrorHasReason:
895
- """The shared reason check behind every calendar 403 rewrite (#890 QA round 1)."""
896
-
897
- def test_owner_reason_does_not_match_own_reason(self):
898
- """cannotChangeOwnAcl and cannotChangeOwnerAcl must not cross-match."""
899
- own = _cannot_change_own_acl_error()
900
- owner = _cannot_change_owner_acl_error()
901
-
902
- assert calendar_module._http_error_has_reason(own, 403, "cannotChangeOwnAcl")
903
- assert not calendar_module._http_error_has_reason(own, 403, "cannotChangeOwnerAcl")
904
- assert calendar_module._http_error_has_reason(owner, 403, "cannotChangeOwnerAcl")
905
- assert not calendar_module._http_error_has_reason(owner, 403, "cannotChangeOwnAcl")
906
-
907
- def test_status_must_match(self):
908
- assert not calendar_module._http_error_has_reason(
909
- _cannot_change_owner_acl_error(), 404, "cannotChangeOwnerAcl"
910
- )
911
-
912
- def test_non_http_error_never_matches(self):
913
- assert not calendar_module._http_error_has_reason(
914
- Exception('"cannotChangeOwnerAcl"'), 403, "cannotChangeOwnerAcl"
915
- )
916
-
917
-
918
894
  class TestCreateEvent:
919
895
  """create_event detects all-day events, passes attendees, and invalidates the cache."""
920
896
 
@@ -0,0 +1,54 @@
1
+ """Tests for the shared HttpError reason check (tools/http_errors.py, #916)."""
2
+
3
+ from unittest.mock import MagicMock
4
+
5
+ from googleapiclient.errors import HttpError
6
+
7
+ from mcp_gee_sweet.tools.http_errors import http_error_has_reason, is_storage_quota_error
8
+
9
+
10
+ def _http_error(status: int, reason: str | None = None, content: bytes | None = None):
11
+ resp = MagicMock()
12
+ resp.status = status
13
+ if content is None and reason is not None:
14
+ content = f'{{"error": {{"errors": [{{"reason": "{reason}"}}]}}}}'.encode()
15
+ return HttpError(resp=resp, content=content)
16
+
17
+
18
+ class TestHttpErrorHasReason:
19
+ def test_prefix_reasons_do_not_cross_match(self):
20
+ """cannotChangeOwnAcl and cannotChangeOwnerAcl must not cross-match (#890)."""
21
+ own = _http_error(403, "cannotChangeOwnAcl")
22
+ owner = _http_error(403, "cannotChangeOwnerAcl")
23
+
24
+ assert http_error_has_reason(own, 403, "cannotChangeOwnAcl")
25
+ assert not http_error_has_reason(own, 403, "cannotChangeOwnerAcl")
26
+ assert http_error_has_reason(owner, 403, "cannotChangeOwnerAcl")
27
+ assert not http_error_has_reason(owner, 403, "cannotChangeOwnAcl")
28
+
29
+ def test_status_must_match(self):
30
+ assert not http_error_has_reason(
31
+ _http_error(403, "cannotChangeOwnerAcl"), 404, "cannotChangeOwnerAcl"
32
+ )
33
+
34
+ def test_non_http_error_never_matches(self):
35
+ assert not http_error_has_reason(
36
+ Exception('"cannotChangeOwnerAcl"'), 403, "cannotChangeOwnerAcl"
37
+ )
38
+
39
+ def test_empty_content_does_not_match(self):
40
+ assert not http_error_has_reason(_http_error(403, content=b""), 403, "anyReason")
41
+
42
+
43
+ class TestIsStorageQuotaError:
44
+ def test_quota_403_matches(self):
45
+ assert is_storage_quota_error(_http_error(403, "storageQuotaExceeded"))
46
+
47
+ def test_other_403_reason_does_not_match(self):
48
+ assert not is_storage_quota_error(_http_error(403, "insufficientPermissions"))
49
+
50
+ def test_quota_reason_on_other_status_does_not_match(self):
51
+ assert not is_storage_quota_error(_http_error(500, "storageQuotaExceeded"))
52
+
53
+ def test_non_http_error_does_not_match(self):
54
+ assert not is_storage_quota_error(ValueError("storageQuotaExceeded"))