mcp-gee-sweet 0.9.2.dev330__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.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/merge-pr.md +2 -2
  2. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/release.md +2 -2
  3. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/team-roles/dev.md +1 -1
  4. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/team-roles/kai.md +2 -0
  5. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/team-roles/qa.md +6 -4
  6. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/PKG-INFO +1 -1
  7. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-review-finding-ticket-bar.md +6 -2
  8. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/role-file-history.md +8 -0
  9. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/calendar.md +4 -0
  10. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/drive_transfer.md +25 -0
  11. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/roadmap.md +4 -3
  12. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/calendar.py +4 -15
  13. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/content.py +3 -2
  14. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/images.py +2 -1
  15. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/drive/files.py +4 -3
  16. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/drive/transfer.py +6 -14
  17. mcp_gee_sweet-0.9.2.dev338/src/mcp_gee_sweet/tools/http_errors.py +27 -0
  18. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/drive/test_transfer.py +56 -0
  19. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_calendar.py +0 -24
  20. mcp_gee_sweet-0.9.2.dev338/tests/test_http_errors.py +54 -0
  21. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/cleanup-worktrees.md +0 -0
  22. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/notify-kai.md +0 -0
  23. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/notify-partner.md +0 -0
  24. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/orchestrator.md +0 -0
  25. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/prep-for-pr.md +0 -0
  26. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/qa-kickoff.md +0 -0
  27. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/retro.md +0 -0
  28. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/roadmap-status.md +0 -0
  29. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/start-worktree.md +0 -0
  30. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/team-member.md +0 -0
  31. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/commands/verify-pr.md +0 -0
  32. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/settings.json +0 -0
  33. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/team-roles/amy.md +0 -0
  34. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/team-roles/aziz.md +0 -0
  35. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/team-roles/bob.md +0 -0
  36. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.claude/team-roles/joy.md +0 -0
  37. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.dockerignore +0 -0
  38. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  39. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  40. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  41. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.github/dependabot.yml +0 -0
  42. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.github/workflows/ci.yml +0 -0
  43. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.github/workflows/docs.yml +0 -0
  44. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.github/workflows/publish-dev.yml +0 -0
  45. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.github/workflows/release.yml +0 -0
  46. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.gitignore +0 -0
  47. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.pre-commit-config.yaml +0 -0
  48. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/.python-version +0 -0
  49. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/CHANGELOG.md +0 -0
  50. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/CLAUDE.md +0 -0
  51. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/CODE_OF_CONDUCT.md +0 -0
  52. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/CONTRIBUTING.md +0 -0
  53. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/Dockerfile +0 -0
  54. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/LICENSE +0 -0
  55. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/Makefile +0 -0
  56. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/README.md +0 -0
  57. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/SECURITY.md +0 -0
  58. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docker-compose.yml +0 -0
  59. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/assets/logo.png +0 -0
  60. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/auth.md +0 -0
  61. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/client-setup.md +0 -0
  62. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/configuration.md +0 -0
  63. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-async-tool-execution.md +0 -0
  64. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-auth-status-limitation-categories.md +0 -0
  65. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-cache-invalidation.md +0 -0
  66. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-chart-theming.md +0 -0
  67. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-comments-first-class.md +0 -0
  68. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-composite-tools.md +0 -0
  69. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-condition-type-docstring-generation.md +0 -0
  70. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-converted-doc-change-detection.md +0 -0
  71. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-dev-team.md +0 -0
  72. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-docs-formatting.md +0 -0
  73. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-fork.md +0 -0
  74. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-gmail-domain.md +0 -0
  75. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-grid-data-size-cap.md +0 -0
  76. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-local-fs-test-harness.md +0 -0
  77. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-mcp-v2-resource-context-access.md +0 -0
  78. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-pillow-image-dependency.md +0 -0
  79. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-prompt-qa-role.md +0 -0
  80. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-publishing.md +0 -0
  81. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-release-docs-roles.md +0 -0
  82. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-repositioning.md +0 -0
  83. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-response-size-cap-generalization.md +0 -0
  84. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-response-size-cap-reevaluation-519.md +0 -0
  85. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-supports-all-drives-lint-check.md +0 -0
  86. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-sync-folder-recursion.md +0 -0
  87. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-testing.md +0 -0
  88. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/decision-tool-error-visibility.md +0 -0
  89. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/decisions/index.md +0 -0
  90. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/design/blockquote-representation.md +0 -0
  91. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/design/borderless-table-columns.md +0 -0
  92. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/design/doc-revision-export.md +0 -0
  93. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/design/doc-to-markdown.md +0 -0
  94. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/design/docs-ast-pipeline.md +0 -0
  95. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/design/effectiveformat-spike.md +0 -0
  96. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/design/heading-anchor-resolution.md +0 -0
  97. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/design/image-conversion.md +0 -0
  98. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/design/index.md +0 -0
  99. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/design/local-file-access-policy.md +0 -0
  100. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/design/markdown-support.md +0 -0
  101. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/design/module-history.md +0 -0
  102. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/design/oauth-reauthorize-from-tool-call.md +0 -0
  103. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/design/phase3-theme-system.md +0 -0
  104. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/design/sse-consent-off-event-loop.md +0 -0
  105. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/design.md +0 -0
  106. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/index.md +0 -0
  107. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/known-limitations.md +0 -0
  108. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/notes-read.md +0 -0
  109. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/README.md +0 -0
  110. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/qa-fixture-pixel.png +0 -0
  111. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-d195-create-doc.md +0 -0
  112. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-d196-create-doc.html +0 -0
  113. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-d213-dollar-escape.md +0 -0
  114. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-d226-heading-table.md +0 -0
  115. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc102-image-conversion.html +0 -0
  116. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc103-image-conversion.md +0 -0
  117. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc104-nested-lists.html +0 -0
  118. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc105-nested-lists-gfm.md +0 -0
  119. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc106-nested-lists-4space.md +0 -0
  120. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc135-paragraph-boundary.md +0 -0
  121. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc136-interrupted-block-boundary.md +0 -0
  122. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc137-inline-hr-no-block-ancestor.html +0 -0
  123. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc138-nbsp-spacer-paragraph.md +0 -0
  124. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc141-mismatched-list-tags.html +0 -0
  125. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc142-heading-anchors.md +0 -0
  126. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc144-anchor-in-table-cell.md +0 -0
  127. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures/tc-doc145-anchor-on-first-element.md +0 -0
  128. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/fixtures.template.md +0 -0
  129. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/gmail-test-plan.md +0 -0
  130. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/operations.yaml +0 -0
  131. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/playwright_oauth.md +0 -0
  132. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/.gitkeep +0 -0
  133. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-06-02.md +0 -0
  134. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-06-14.md +0 -0
  135. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-06-17.md +0 -0
  136. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-06-18.md +0 -0
  137. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-06-21-drive-discovery.md +0 -0
  138. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-06-21-sheets-delete-clear.md +0 -0
  139. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-06-28.md +0 -0
  140. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-07-04-docs.md +0 -0
  141. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-07-04-drive-smoke.md +0 -0
  142. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-07-04-infra.md +0 -0
  143. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-07-04-sheets_read.md +0 -0
  144. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-07-04.md +0 -0
  145. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/results/2026-09-04.md +0 -0
  146. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/retro-v0.8.0.md +0 -0
  147. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/retro-v0.9.0.md +0 -0
  148. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/run.md +0 -0
  149. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/runs/README.md +0 -0
  150. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/runs/v0.8.0.md +0 -0
  151. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/runs/v0.8.1.md +0 -0
  152. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/runs/v0.9.0.md +0 -0
  153. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/setup.md +0 -0
  154. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/docs_content.md +0 -0
  155. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/docs_layout.md +0 -0
  156. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/docs_style.md +0 -0
  157. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/docs_tables.md +0 -0
  158. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/drive_activity.md +0 -0
  159. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/drive_files.md +0 -0
  160. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/drive_sharing.md +0 -0
  161. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/gmail.md +0 -0
  162. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/infra.md +0 -0
  163. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/sheets_charts.md +0 -0
  164. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/sheets_mgmt.md +0 -0
  165. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/sheets_read.md +0 -0
  166. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/qa/tests/sheets_write.md +0 -0
  167. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/style-guide.md +0 -0
  168. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/docs/tools.md +0 -0
  169. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/mkdocs.yml +0 -0
  170. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/pyproject.toml +0 -0
  171. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/pyrightconfig.json +0 -0
  172. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/scripts/check_supports_all_drives.py +0 -0
  173. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/scripts/gen_tool_docs.py +0 -0
  174. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/scripts/lane_context_hook.py +0 -0
  175. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/scripts/oauth_setup.py +0 -0
  176. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/scripts/qa_cancel_insert_local_images.py +0 -0
  177. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/scripts/qa_gmail_fixtures.py +0 -0
  178. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/scripts/setup_team.sh +0 -0
  179. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/scripts/write_team_mcp_configs.sh +0 -0
  180. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/server.json +0 -0
  181. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/.env.template +0 -0
  182. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/__init__.py +0 -0
  183. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/auth.py +0 -0
  184. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/cache.py +0 -0
  185. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/http_transport.py +0 -0
  186. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/reauth.py +0 -0
  187. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/server.py +0 -0
  188. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/sse_shutdown.py +0 -0
  189. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/__init__.py +0 -0
  190. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/atomic_write.py +0 -0
  191. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/cache.py +0 -0
  192. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/concurrency.py +0 -0
  193. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/__init__.py +0 -0
  194. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/anchors.py +0 -0
  195. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/ast.py +0 -0
  196. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/ast_to_markdown.py +0 -0
  197. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/comments.py +0 -0
  198. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/doc_to_ast.py +0 -0
  199. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/editing.py +0 -0
  200. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/emitter.py +0 -0
  201. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/html_parser.py +0 -0
  202. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/indices.py +0 -0
  203. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/layout.py +0 -0
  204. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/markdown_export.py +0 -0
  205. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/named_ranges.py +0 -0
  206. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/style.py +0 -0
  207. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/docs/tables.py +0 -0
  208. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/drive/__init__.py +0 -0
  209. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/drive/activity.py +0 -0
  210. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/drive/sharing.py +0 -0
  211. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/gmail.py +0 -0
  212. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/mime_types.py +0 -0
  213. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/pagination.py +0 -0
  214. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/response_limits.py +0 -0
  215. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/sheets/__init__.py +0 -0
  216. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/sheets/data.py +0 -0
  217. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/sheets/helpers.py +0 -0
  218. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/src/mcp_gee_sweet/tools/sheets/structure.py +0 -0
  219. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/__init__.py +0 -0
  220. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/conftest.py +0 -0
  221. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/drive/__init__.py +0 -0
  222. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/drive/test_activity.py +0 -0
  223. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/drive/test_files.py +0 -0
  224. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/drive/test_sharing.py +0 -0
  225. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/fakes.py +0 -0
  226. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/integration/__init__.py +0 -0
  227. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/integration/conftest.py +0 -0
  228. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/integration/test_local_fs_harness.py +0 -0
  229. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/sheets/__init__.py +0 -0
  230. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/sheets/test_data.py +0 -0
  231. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/sheets/test_helpers.py +0 -0
  232. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/sheets/test_structure.py +0 -0
  233. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_atomic_write.py +0 -0
  234. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_auth.py +0 -0
  235. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_cache.py +0 -0
  236. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_check_supports_all_drives.py +0 -0
  237. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_concurrency.py +0 -0
  238. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_anchors.py +0 -0
  239. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_comments.py +0 -0
  240. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_content.py +0 -0
  241. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_core.py +0 -0
  242. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_editing.py +0 -0
  243. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_images.py +0 -0
  244. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_indices.py +0 -0
  245. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_layout.py +0 -0
  246. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_markdown_export.py +0 -0
  247. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_named_ranges.py +0 -0
  248. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_revision_export.py +0 -0
  249. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_style.py +0 -0
  250. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_docs_tables.py +0 -0
  251. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_gen_tool_docs.py +0 -0
  252. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_gmail.py +0 -0
  253. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_lane_context_hook.py +0 -0
  254. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_mime_types.py +0 -0
  255. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_qa_gmail_fixtures.py +0 -0
  256. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_reauth.py +0 -0
  257. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_response_limits.py +0 -0
  258. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_server.py +0 -0
  259. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_server_json.py +0 -0
  260. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_sse_shutdown.py +0 -0
  261. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/tests/test_team_mcp_configs.py +0 -0
  262. {mcp_gee_sweet-0.9.2.dev330 → mcp_gee_sweet-0.9.2.dev338}/uv.lock +0 -0
@@ -6,10 +6,10 @@ Merge the current branch's PR and clean up its worktree. Uses `--admin` only to
6
6
  - `state` must be `OPEN`.
7
7
  - Every check in `statusCheckRollup` must show success. If anything is failing or still pending, stop and report which — do not merge, and do not wait/poll.
8
8
  - **Exception for a transient re-run:** a `qa-approved` PR often arrives with CI mid-run because the QA agent's own TC-Result-entry commit (pushed at or just before approval, per `qa.md`) retriggered the workflow. If this session is a *background* Kai woken specifically to merge this PR (e.g. via `notify-kai`) **and** every not-yet-green check is `IN_PROGRESS` (none `FAILURE`/`ERROR`, and `Lint and test` present per the next bullet), you may arm a single `Monitor` on `gh pr checks <n>` that exits once every check reaches a terminal state, then re-run this whole step from the top against fresh JSON before merging. That's a scheduled re-check, not polling inside the synchronous flow. An *interactive* Kai still just reports the mid-run state and lets the user re-invoke. A `FAILURE`, `ERROR`, or an absent `Lint and test` is never waited out — report it. (Confirmed 2026-09-09: PR #712 arrived with 6 checks `IN_PROGRESS` from Kit's Result-entry push; monitored to green, re-verified, merged.)
9
- - Specifically confirm a `"name": "Lint and test"` entry is *present* in `statusCheckRollup` with `"conclusion": "SUCCESS"` — don't just scan for failures. This check has been observed missing entirely from the rollup (not failing, not pending — absent) on a PR's first push, while CodeQL's checks still populated normally; a rollup with zero failing entries can still mean the actual test suite never ran. If it's absent, don't treat that as a pass — push a trivial commit (or `gh workflow run ci.yml --ref <branch>` if available) to retrigger it and wait for a real result before merging.
9
+ - Specifically confirm all four `Lint and test (Python 3.10)` … `(Python 3.13)` entries are *present* in `statusCheckRollup`, each with `"conclusion": "SUCCESS"` — don't just scan for failures. CI runs `Lint and test` as a matrix (`.github/workflows/ci.yml`), so no entry is named exactly `Lint and test`; match the prefix and count the versions. This check has been observed missing entirely from the rollup (not failing, not pending — absent) on a PR's first push, while CodeQL's checks still populated normally; a rollup with zero failing entries can still mean the actual test suite never ran. If it's absent, don't treat that as a pass — push a trivial commit (or `gh workflow run ci.yml --ref <branch>` if available) to retrigger it and wait for a real result before merging.
10
10
  - `mergeable` must not be `CONFLICTING`. `UNKNOWN` is not a block — GitHub computes this asynchronously and it can lag briefly right after a label change or a fresh push (confirmed on PR #324); re-run `gh pr view <number> --json mergeable` once after a few seconds and it should resolve to `MERGEABLE` or `CONFLICTING`.
11
11
  - If the branch's second `/`-separated segment is one of the four dev-lane slot names (`ash`, `sky`, `jay`, `kit` — the type prefix in front varies, `feat`/`fix`/`chore`/etc., don't assume `feat`), it must carry the `qa-approved` label (check `gh pr view <number> --json labels`). If it doesn't, stop — that means the paired QA agent (`/team-member`) hasn't signed off yet; don't merge and don't review it yourself here. This check deliberately stays scoped to the four dev-lane names — Aziz's branch (`team/aziz`) isn't part of any Dev/QA pairing and goes through normal review instead.
12
- - **Exception — prompt-file-only PRs (checked first, before the QA-slot exception below):** if every path in `gh pr view <number> --json files` is `.claude/team-roles/*.md`, `.claude/commands/*.md`, or root `CLAUDE.md`, read the file list itself, not the branch prefix. For those PRs the required label is `prompt-qa-approved` instead of `qa-approved`, and only Bob merges them (`bob.md` step 4). If this session isn't Bob, stop and leave it for Bob. A PR that touches even one other file still needs `qa-approved`, plus `prompt-qa-approved` for its prompt-file changes. (Added 2026-09-25: PR #804, `doc/jay/claude-md-560`, was a `CLAUDE.md`-only edit, and this check would otherwise have blocked it for lacking `qa-approved`.)
12
+ - **Exception — prompt PRs (checked first, before the QA-slot exception below):** read the file list (`gh pr view <number> --json files`), not the branch prefix. If at least one path is a prompt file (`.claude/team-roles/*.md`, `.claude/commands/*.md`, or root `CLAUDE.md`) and every other path is under `docs/`, the required label is `prompt-qa-approved` instead of `qa-approved`, and only Bob merges it (`bob.md` step 4). If this session isn't Bob, stop and leave it for Bob. A PR that also touches anything outside `docs/` and the prompt files (`src/`, `tests/`, `scripts/`, `.github/`, `pyproject.toml`, …) needs `qa-approved`, plus `prompt-qa-approved` for its prompt-file changes. (Widened 2026-10-12, PR #1005: retros record incidents in `docs/decisions/role-file-history.md` per `bob.md`, so a prompt-files-only allowlist blocked every retro PR, e.g. #1004.) (Added 2026-09-25: PR #804, `doc/jay/claude-md-560`, was a `CLAUDE.md`-only edit, and this check would otherwise have blocked it for lacking `qa-approved`.)
13
13
  - **Exception:** a QA-named slot (`sky`/`kit`) authoring its own process/meta PR (e.g. `chore/sky/...`) has no natural QA partner to self-approve — the Dev/QA pairing only exists for the *other* lane's ticket work. There's no label path for this case; stop and ask the user directly whether it's safe to merge without one, same as any missing-label PR. If they confirm (e.g. because it's a prompting/process change with no application-code risk), proceed — that confirmation stands in for the label for this PR only, it doesn't waive the check generally.
14
14
  - If the branch's second segment is `amy` (`docs/amy/issue-<n>`), it must carry the `docs-qa-approved` label instead — a parallel track, started 2026-08-02 (first case: PR #482), for docs PRs reviewed for product/tone accuracy. As of that date it's applied directly by the user rather than by an automated QA partner (Amy has no dedicated QA pairing the way Ash/Jay do), so treat its presence the same as any other approval label — sufficient to merge, no need to re-review — but if it's missing, stop and ask rather than merging or reviewing the PR yourself.
15
15
  - **Review-finding ticket check (dev-lane branches: `ash`/`sky`/`jay`/`kit`).** Read the QA comments and the PR body (`gh pr view <number> --json body,comments,createdAt`) and list every issue `gh issue list --state all --search "<number> in:body created:>=<createdAt date>"` returns. Don't filter by label: the check exists for tickets that skipped the rule, and those skip the `from-review` label too. Skip roadmap bundles and other issues that only reference the PR. Every remaining hit filed from this PR's review or by its Dev must appear as `ticket — bar N: <reason> (#<issue>)` in a QA comment's finding list (`qa.md` step 3) or in the PR body's follow-up list (`dev.md` step 6), and carry `from-review`. A bar-2 ticket must name a behavior impact (bar 2's value test); a refactor or dedup reason doesn't fit bar 2. Stop and don't merge if any filed ticket has no `bar N:` reason, if a comment still files findings under a "non-blocking"/"not blocking" heading, or if a `dropped:` reason describes size or priority instead of why the finding is wrong ("outside this diff, no behavior impact" is a valid drop). Tell the user which line, and send the PR back to whoever wrote that list (the QA partner or the Dev) to redo it. If a bar is named but the reason plainly doesn't fit it (e.g. bar 1 for a choice between implementation options), don't decide alone: name it to the user before merging. You check that a fitting reason is given; you don't redo the review. Background: `docs/decisions/decision-review-finding-ticket-bar.md`.
@@ -5,12 +5,12 @@ Cut a stable release: merge `develop` → `main`, tag, publish to PyPI via a Git
5
5
  1. **Determine the version.** Check `docs/roadmap.md`'s Release Cadence table for the target version, and confirm it against the last tag (`git tag --sort=-creatordate | head -1`) so the bump direction (patch/minor/major) makes sense. Confirm the exact version string with the user before proceeding if there's any ambiguity.
6
6
  2. **Bump the MCP registry manifest (`server.json`) to the new version, before merging to `main`.** `pyproject.toml`'s version is dynamic (`uv-dynamic-versioning`, derived from the git tag) and needs no manual edit — `server.json` is the one file in this repo that does.
7
7
  - Branch off `develop` (e.g. `chore/release/server-json-vX.Y.Z`). Set both `version` (top-level) and `packages[].version` in `server.json` to the exact version string from step 1 — they must match each other (`tests/test_server_json.py::test_pypi_package_version_matches_top_level_version` enforces this).
8
- - Open a PR, wait for "Lint and test" to pass, merge with `gh pr merge <number> --admin --squash` — `develop` requires 1 approving review a solo maintainer can't get natively, same reason step 3 below uses `--admin` for the `main` merge.
8
+ - Open a PR, wait for every `Lint and test (Python 3.x)` check to pass, merge with `gh pr merge <number> --admin --squash` — `develop` requires 1 approving review a solo maintainer can't get natively, same reason step 3 below uses `--admin` for the `main` merge.
9
9
  - `git checkout develop && git pull` so the local checkout has the bump before continuing.
10
10
  - This lands *before* the develop→main PR (step 3) so the version bump ships in the same release rather than trailing it.
11
11
  3. **Merge `develop` → `main`.**
12
12
  - Check for an existing PR first (`gh pr list --base main --head develop`); open one if it doesn't exist (`gh pr create --base main --head develop --title "Release vX.Y.Z" --body ...`).
13
- - Wait for the "Lint and test" check to pass — do not merge on a failing or pending check.
13
+ - Wait for every `Lint and test (Python 3.x)` check (one per Python version in `ci.yml`'s matrix) to pass — do not merge on a failing, pending, or missing one.
14
14
  - Merge with `gh pr merge <number> --admin --merge` — a real merge commit, **not** `--squash`. This repo's existing `main` history is a chain of "Merge pull request #NNN from khuisman/develop" merge commits (see `git log origin/main`), not squashed releases; squashing here would collapse that convention. `--admin` is required the same way it is in `/merge-pr`: `main` requires 1 approving review that will never come from a solo maintainer, and `enforce_admins` is `false` specifically so this bypass is allowed — it must never be used to skip the "Lint and test" check itself.
15
15
  4. **Tag the merge commit.**
16
16
  - `git fetch origin main`
@@ -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,22 +21,24 @@ 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
+
36
+ **Check other open PRs before suggesting a fix outside this PR's diff.** A suggested fix that edits, moves, or consolidates code the PR doesn't already change can collide with another lane's PR. Before writing one, run `gh pr list --state open --json number,headRefName,files` and check whether any other open PR changes the same file. If one does, keep the send-back but suggest a fix confined to this PR's own files. Leave the consolidation for later: if it has behavior impact, file it under bar 2 to do after that PR merges; if not, it's `dropped: … — outside this diff, no behavior impact (revisit after #<other> merges)`. Name the other PR in the finding so the Dev doesn't rediscover it. The Dev decides how to fix a send-back; this only keeps QA's suggestion from creating the collision (PR #1000).
35
37
  4. Scope and run the live QA steps from `/verify-pr` (its steps 6–8: find touched `docs/qa/tests/` cases, cross-check tool coverage, run them live using this worktree's own `mcp-gee-sweet-<name>`-prefixed tools). A changed tool with no QA test case at all blocks the pass; handle it here, not in a retro. Before the first `**Playwright: required**` case, run `docs/qa/run.md` §"Verifying Playwright is signed into the right account" — this slot's browser profile is its own and can be signed into the wrong Google account; on a fail, stop and ask the user to sign it in, don't silently verify via API only.
36
38
  5. Record `**Result**` entries for every case actually run.
37
39
  6. Before pushing (either outcome below): `git fetch origin <headRefName>`. If it moved since step 1 (the Dev pushed again while this QA pass was running — a real, observed race, not just theoretical), `git rebase origin/<headRefName>` first; only if that has real conflicts (not just "the tip moved") stop and ask the user how to reconcile. Never force-push over the Dev's new commits.
38
40
  7. If anything failed: push the recorded results (`git push origin HEAD:<headRefName>`, with confirmation), comment on the PR summarizing what failed, including step 3's finding list. The comment's first line must be exactly `## QA round <N> (<Name>) @ <short-sha>: sent back`, where `<N>` is 1 on this PR's first pass and goes up by 1 for each re-verification round on the same PR, `<Name>` is this role's name (`Sky` or `Kit`), and `<short-sha>` is the PR head commit this round verified (the commit step 1 reset to, not the commit that pushes your Result entries). The verdict is the literal text `sent back`, with no bold or other wording (not `send back`, not `changes requested`). Then run `/notify-partner` (`.claude/commands/notify-partner.md`) to wake the Dev partner directly if they're live, and stop — tell the user regardless that it goes back to the Dev agent, since automating the agent-to-agent handoff doesn't replace keeping the user informed.
39
- 8. If everything passed: push the results, then comment on the PR naming which test cases were run and passed, plus step 3's finding list (every line `ticket — bar N:` or `dropped:`; any `send-back` means step 7, not this step). The comment's first line must be exactly `## QA round <N> (<Name>) @ <short-sha>: approved`, with `<N>`, `<Name>`, and `<short-sha>` as defined in step 7 and the verdict the literal text `approved` (not `pass`). Then `gh pr edit <number> --add-label qa-approved`, run `/notify-kai` (`.claude/commands/notify-kai.md`) to wake Kai directly if it's live, and report to the user that it's ready for Kai to run `/merge-pr`. A bare label with no accompanying comment is itself a signal to distrust, not evidence of review — GitHub attribution can't prove who applied it (see `decision-prompt-qa-role.md`'s label-attribution addendum).
41
+ 8. If everything passed: push the results, then wait for CI on the PR's new head (`gh pr checks <number> --watch`; your Result-entry push retriggers it). Every check must pass, and all four `Lint and test (Python 3.x)` jobs must be present and passing. "No failures" isn't enough, because the rollup can leave a check out entirely (`merge-pr.md` step 2). If a check fails, this round is sent back: go to step 7 with the failure as a `send-back:` line. If `Lint and test` is absent, retrigger it the way `merge-pr.md` step 2 says and wait again. Only then comment on the PR naming which test cases were run and passed, plus step 3's finding list (every line `ticket — bar N:` or `dropped:`; any `send-back` means step 7, not this step). The comment's first line must be exactly `## QA round <N> (<Name>) @ <short-sha>: approved`, with `<N>`, `<Name>`, and `<short-sha>` as defined in step 7 and the verdict the literal text `approved` (not `pass`). Then `gh pr edit <number> --add-label qa-approved`, run `/notify-kai` (`.claude/commands/notify-kai.md`) to wake Kai directly if it's live, and report to the user that it's ready for Kai to run `/merge-pr`. A bare label with no accompanying comment is itself a signal to distrust, not evidence of review — GitHub attribution can't prove who applied it (see `decision-prompt-qa-role.md`'s label-attribution addendum).
40
42
 
41
43
  ## Retro
42
44
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: mcp-gee-sweet
3
- Version: 0.9.2.dev330
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.
@@ -266,6 +266,14 @@ Addendum, PR #414 (issue #211) round 3: the fix targeted exactly two named findi
266
266
 
267
267
  - **A race repro must keep the stale operation in flight across the event, or it proves nothing.** PR #867 round 4: Sky's first success-side race repro started B only after A's consent had finished, which can't be told apart from a legitimate new consent; Ash caught it. Command decision: the technique is now a bullet in `docs/qa/run.md` §"Running server-startup and CLI cases" ("Race and hang repros").
268
268
 
269
+ ### Check other open PRs before suggesting a fix outside this PR's diff
270
+
271
+ PR #1000 (#990, lane B) originally changed only `response_limits.py`. Its round 1 code review noted that the new guard duplicated `drive/transfer.py`'s `_validate_local_destination`, and Kit's send-back suggested moving that helper into `response_limits.py`. Nobody checked for other open PRs. PR #1001 (#874/#887, lane A), opened 11 seconds after #1000, was rewriting that same function. Jay caught the overlap before pushing and recommended waiting for #1001. #1000 then took in `develop` and moved #1001's rewritten validator, growing from one helper to every capped tool's `local_path` (11 docstrings). The `develop` merge forced a full `/code-review`, which reviewed the larger scope and found five more send-backs. Two of them were pre-existing defects the move exposed (sheet-name path traversal, the joined-file symlink), not new ones. The PR took four rounds, and the user called the cycle "a hot mess." The scheduling was not the cause: #990's own fix touched no file #1001 did. The fix in round 1 should have stayed in `response_limits.py`, with the consolidation filed for after #1001 merged.
272
+
273
+ ### CI must be green before `qa-approved`
274
+
275
+ Round 3 of PR #1000 (`290f5bc`) got `qa-approved` while `Lint and test` was failing on every Python version: two non-raw `match=` patterns tripped ruff RUF043. Kai caught it at `/merge-pr`. Step 8 had no CI check, and QA's local checks didn't catch it, because pre-commit's ruff hook is pinned at v0.11.9, where RUF043 is preview-only, while CI runs 0.16.x (#974 tracks that version skew). Step 8 now waits for CI on the head SHA after QA's Result-entry push and before the `approved` comment. Every check must pass, with all four `Lint and test` jobs present and passing. A failure sends the round back through step 7, and an absent check is retriggered per `merge-pr.md` step 2.
276
+
269
277
  ## `aziz.md`
270
278
 
271
279
  ### Server slots during a release pass
@@ -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
@@ -2603,3 +2605,26 @@ Trash `{FOLDER_ID}` and its contents. Remove `/tmp/qa-273/`.
2603
2605
  - Call 2: `conflicts == ["g.md"]`, and `x.md` was in `skipped`, even though `g.md` had also drifted.
2604
2606
  - Call 3: `modified_time` was still `03:45:36.140Z`, not reset. `g.md` carried `geeSweetImportRevision: "1"`.
2605
2607
  - Call 4: `uploaded == ["x.md"]`, and `get_doc_content` contained "appended within 5s". An immediate extra resync left `x.md` in `skipped` (no repeat upload), and `g.md` stayed in `conflicts`.
2608
+
2609
+ ### TC-D289: `sync_folder` — `size_bytes` counts uploaded bytes, on both the create and update paths (issue #1003) ⚠️ destructive ⚠️ local-filesystem
2610
+
2611
+ **Background:** `size_bytes` is documented as bytes transferred, but `sync_folder` added only downloaded bytes to it. An upload-only sync always returned `size_bytes: 0`, whether the file was new (`create()`) or a re-upload (`update()`). Found live in PR #1002's QA.
2612
+
2613
+ **Setup**
2614
+ Create a scratch Drive folder `{FOLDER_ID}` and `/tmp/qa-289/` containing `a.txt` (exactly 28 bytes) and a subfolder `sub/` containing `b.txt` (exactly 7 bytes).
2615
+
2616
+ **Tool calls**
2617
+ 1. `sync_folder(folder_id={FOLDER_ID}, local_path="/tmp/qa-289/", direction="upload", recursive=True)`
2618
+ 2. Overwrite `/tmp/qa-289/a.txt` with exactly 40 bytes. Then read the Drive copy's `modified_time` with `get_file_metadata` and set the local file's mtime to that value plus at least 60 s (scratch script: `os.utime`). An mtime within `_SYNC_MTIME_TOLERANCE` (5 s) of Drive's would make the size change a `conflict` rather than an upload. Then repeat call 1.
2619
+
2620
+ **Checks**
2621
+ - Call 1: `uploaded` contains `a.txt` and `sub/b.txt`, and `size_bytes == 35`.
2622
+ - Call 2: `uploaded == ["a.txt"]`, `sub/b.txt` is in `skipped`, and `size_bytes == 40`. `list_files(folder_id={FOLDER_ID})` shows a single `a.txt`, with the same file ID as after call 1 (the `update()` path, not a new file), and `get_file_metadata` on it shows `size` `"40"`.
2623
+
2624
+ **Teardown**
2625
+ Trash `{FOLDER_ID}` and its contents. Remove `/tmp/qa-289/`.
2626
+
2627
+ **Result** (2026-10-12, Sky, PR #1007 round 1 at `10dfb80`, `mcp-gee-sweet-sky` reconnected after reset, OAuth, Shared Drive): ✅ **PASS**.
2628
+ - Call 1: `uploaded == ["a.txt", "sub/b.txt"]`, `size_bytes == 35`.
2629
+ - Call 2 (local mtime set to now + 120 s): `uploaded == ["a.txt"]`, `skipped == ["sub/b.txt"]`, `size_bytes == 40`. `list_files` showed a single `a.txt` with the same file ID as after call 1, and `get_file_metadata` showed `size` `"40"`.
2630
+ - Side probes, not part of the checks: a `convert_markdown=True` upload of a new 17-byte `c.md` returned `uploaded == ["c.md"]`, `size_bytes == 17`. A bidirectional call that downloaded `sub/b.txt` (7 bytes, after deleting it locally) and uploaded a new `d.txt` (5 bytes) returned `size_bytes == 12`.
@@ -225,7 +225,7 @@ Same shape as v0.8.1 — stabilize on defects that surfaced since v0.9.0 shipped
225
225
  - [x] `_parse_a1_notation` hardening: one compiled grammar, index bounds, validate before the sheet-ID fetch. #931 review follow-ups, no behavior change for valid input — lane A, after #954 (same A1 area); its QA also runs #953's live checks for #931 (folded in) (PR #986) ([#955](https://github.com/khuisman/mcp-gee-sweet/issues/955))
226
226
  - [x] Write side drops image links: `[![alt](src)](url)` (or `<a href><img></a>`) imports through `create_doc`/`create_doc_from_file`/`write_doc_content` without its URL, so it doesn't round-trip with #951's export. Found in PR #976 — lane A, after #955 (PR #992) ([#977](https://github.com/khuisman/mcp-gee-sweet/issues/977))
227
227
  - [x] Comment quoted text comes back HTML-escaped (`Caf&#233;`) from `add_doc_comment`, `list_doc_comments`, and `get_doc_as_markdown(include_comments=True)`: `comments.py` passes Drive's escaped `quotedFileContent.value` through unchanged. Found reviewing #958 — lane B, after #959 (defect, next pick) (PR #991) ([#984](https://github.com/khuisman/mcp-gee-sweet/issues/984))
228
- - [ ] `write_capped_result_to_disk` writes `dir/` as a file when the directory doesn't exist: a trailing separator should mean "directory" (create it, append `default_filename`). Shared by every `local_path` writer. Found in PR #988 — lane B, after #984 (defect) ([#990](https://github.com/khuisman/mcp-gee-sweet/issues/990))
228
+ - [x] `write_capped_result_to_disk` writes `dir/` as a file when the directory doesn't exist: a trailing separator should mean "directory" (create it, append `default_filename`). Shared by every `local_path` writer. Found in PR #988 — lane B, after #984 (defect) (PR #1000) ([#990](https://github.com/khuisman/mcp-gee-sweet/issues/990))
229
229
 
230
230
  **Sheets hardening** _(triaged out of `backlog` 2026-09-11 — see the "Backlog triage" note below)_
231
231
  - [x] `update_sheet_properties`/dimension-tool hardening + dedup follow-ups from PR #321's review ([#323](https://github.com/khuisman/mcp-gee-sweet/issues/323)) (PR #734)
@@ -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)_
@@ -298,7 +298,8 @@ Same shape as v0.8.1 — stabilize on defects that surfaced since v0.9.0 shipped
298
298
  **Infrastructure**
299
299
  - [ ] Interaction-log middleware for tool calls — structured, append-only JSONL log per call (inputs, duration, cache hit, error), opt-in ID redaction, swappable backend ([#646](https://github.com/khuisman/mcp-gee-sweet/issues/646))
300
300
  - [ ] Automated tooling for dependency-bump security review — today's manual skim can miss a well-disguised supply-chain compromise ([#520](https://github.com/khuisman/mcp-gee-sweet/issues/520))
301
- - [ ] **Bundle:** CI tidy (on deck, no lane), one PR closing [#536](https://github.com/khuisman/mcp-gee-sweet/issues/536), [#619](https://github.com/khuisman/mcp-gee-sweet/issues/619), [#308](https://github.com/khuisman/mcp-gee-sweet/issues/308), [#708](https://github.com/khuisman/mcp-gee-sweet/issues/708), [#974](https://github.com/khuisman/mcp-gee-sweet/issues/974) ([#897](https://github.com/khuisman/mcp-gee-sweet/issues/897))
301
+ - [ ] **Bundle:** CI tidy (on deck, no lane), one PR closing [#536](https://github.com/khuisman/mcp-gee-sweet/issues/536), [#619](https://github.com/khuisman/mcp-gee-sweet/issues/619), [#308](https://github.com/khuisman/mcp-gee-sweet/issues/308), [#708](https://github.com/khuisman/mcp-gee-sweet/issues/708) ([#897](https://github.com/khuisman/mcp-gee-sweet/issues/897))
302
+ - [ ] pre-commit's `ruff` hook pins v0.11.9 while CI runs the project's locked 0.16.x, so a commit can pass a lint CI rejects. Seen live on PR #1000 (RUF043, three red CI runs). Moved out of the #897 bundle 2026-10-12 — lane B, after #989 ([#974](https://github.com/khuisman/mcp-gee-sweet/issues/974))
302
303
  - [ ] Automate the mechanical `release.md` steps as GitHub Actions ([#660](https://github.com/khuisman/mcp-gee-sweet/issues/660))
303
304
  - [x] `/release` + `prep-for-pr` backstop checks for README render breakage on PyPI — the human-facing companion to #708's CI guard, routed to Bob ([#709](https://github.com/khuisman/mcp-gee-sweet/issues/709)) (PR #967)
304
305
  - [x] `supportsAllDrives=True` is hand-inlined at ~58 Drive call sites — retrofitted twice now (#687 plus its own original miss); wants a shared wrapper or lint guard so a new call site can't omit it ([#696](https://github.com/khuisman/mcp-gee-sweet/issues/696)) (PR #784)
@@ -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]:
@@ -2077,6 +2067,7 @@ async def _sync_level(
2077
2067
  conflicts.append(rel_name)
2078
2068
  elif kind == "upload_ok":
2079
2069
  uploaded.append(rel_name)
2070
+ total_bytes += o["bytes"]
2080
2071
  level_changed = True
2081
2072
  elif kind == "download_ok":
2082
2073
  downloaded.append(rel_name)
@@ -2680,7 +2671,7 @@ def register(tool):
2680
2671
  drive_service,
2681
2672
  )
2682
2673
  except HttpError as e:
2683
- if _is_quota_error(e):
2674
+ if is_storage_quota_error(e):
2684
2675
  return {"error": _SA_QUOTA_ERROR}
2685
2676
  raise
2686
2677
 
@@ -3573,7 +3564,8 @@ def register(tool):
3573
3564
  just the filename at the top level, 'subdir/name' for nested matches when
3574
3565
  recursive descends; always empty when dry_run=True, see the dry_run
3575
3566
  section above), 'folders_skipped' (relative subfolder paths not entered —
3576
- always empty when recursive=False), size_bytes transferred, dry_run flag,
3567
+ always empty when recursive=False), size_bytes transferred (uploaded plus
3568
+ downloaded), dry_run flag,
3577
3569
  and — when dry_run=True — an 'actions' list with {name, action, reason}
3578
3570
  for every file considered at every level visited. A '.gee-sweet-partial-*'
3579
3571
  temp file an interrupted download left locally is never synced; it's
@@ -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")
@@ -2015,6 +2015,62 @@ class TestSyncFolderUploadMimetype:
2015
2015
  }
2016
2016
 
2017
2017
 
2018
+ class TestSyncFolderSizeBytesCountsUploads:
2019
+ """#1003: size_bytes ("bytes transferred") counted only downloads, so an
2020
+ upload-only sync always reported 0."""
2021
+
2022
+ def _ctx(self, fs: _FakeDriveFS):
2023
+ ctx = MagicMock()
2024
+ ctx.request_context.lifespan_context.drive_service = fs.svc
2025
+ ctx.request_context.lifespan_context.drive_folder_cache = MagicMock()
2026
+ ctx.report_progress = AsyncMock()
2027
+ return ctx
2028
+
2029
+ async def test_create_path_counts_uploaded_bytes(self, tmp_path):
2030
+ (tmp_path / "a.txt").write_bytes(b"x" * 28)
2031
+ (tmp_path / "b.txt").write_bytes(b"y" * 5)
2032
+ fs = _FakeDriveFS({"root": []})
2033
+
2034
+ result = await _transfer_tools["sync_folder"](
2035
+ folder_id="root", local_path=str(tmp_path), direction="upload", ctx=self._ctx(fs)
2036
+ )
2037
+
2038
+ assert sorted(result["uploaded"]) == ["a.txt", "b.txt"]
2039
+ assert result["size_bytes"] == 33
2040
+
2041
+ async def test_update_path_counts_uploaded_bytes(self, tmp_path):
2042
+ # Drive copy is far older than the local file, so the plan re-uploads
2043
+ # it through update() rather than create().
2044
+ (tmp_path / "a.txt").write_bytes(b"x" * 28)
2045
+ fs = _FakeDriveFS({"root": [_drive_file("a.txt", "f1", mtime="2020-01-01T00:00:00.000Z")]})
2046
+
2047
+ result = await _transfer_tools["sync_folder"](
2048
+ folder_id="root", local_path=str(tmp_path), direction="upload", ctx=self._ctx(fs)
2049
+ )
2050
+
2051
+ assert result["uploaded"] == ["a.txt"]
2052
+ assert [u["fileId"] for u in fs.updated_files] == ["f1"]
2053
+ assert fs.created_files == []
2054
+ assert result["size_bytes"] == 28
2055
+
2056
+ async def test_recursive_upload_sums_bytes_across_levels(self, tmp_path):
2057
+ (tmp_path / "top.txt").write_bytes(b"x" * 3)
2058
+ (tmp_path / "sub").mkdir()
2059
+ (tmp_path / "sub" / "nested.txt").write_bytes(b"y" * 7)
2060
+ fs = _FakeDriveFS({"root": []})
2061
+
2062
+ result = await _transfer_tools["sync_folder"](
2063
+ folder_id="root",
2064
+ local_path=str(tmp_path),
2065
+ direction="upload",
2066
+ recursive=True,
2067
+ ctx=self._ctx(fs),
2068
+ )
2069
+
2070
+ assert sorted(result["uploaded"]) == ["sub/nested.txt", "top.txt"]
2071
+ assert result["size_bytes"] == 10
2072
+
2073
+
2018
2074
  class TestSyncFolderRecursive:
2019
2075
  """Issue #315: sync_folder silently ignored every subfolder, one level deep,
2020
2076
  reporting a clean 'in sync' result instead of surfacing the gap. `recursive=True`
@@ -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