mcp-gee-sweet 0.9.2.dev349__tar.gz → 0.9.2.dev361__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 (268) hide show
  1. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/commands/merge-pr.md +1 -1
  2. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/commands/retro.md +1 -1
  3. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/team-roles/bob.md +1 -1
  4. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/team-roles/dev.md +4 -2
  5. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/team-roles/joy.md +2 -0
  6. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/team-roles/kai.md +27 -2
  7. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/team-roles/qa.md +18 -5
  8. mcp_gee_sweet-0.9.2.dev361/.pre-commit-config.yaml +45 -0
  9. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/CLAUDE.md +1 -0
  10. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/PKG-INFO +1 -1
  11. mcp_gee_sweet-0.9.2.dev361/docs/decisions/decision-impact-reach-triage.md +39 -0
  12. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-review-finding-ticket-bar.md +4 -2
  13. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/index.md +1 -0
  14. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/role-file-history.md +12 -0
  15. mcp_gee_sweet-0.9.2.dev361/docs/design/doc-replace-backup.md +86 -0
  16. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/design/index.md +1 -0
  17. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/run.md +22 -0
  18. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/tests/docs_content.md +80 -0
  19. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/tests/drive_transfer.md +149 -0
  20. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/roadmap.md +29 -27
  21. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/style-guide.md +5 -4
  22. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/docs/content.py +245 -36
  23. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/docs/markdown_export.py +6 -6
  24. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/drive/transfer.py +62 -29
  25. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/drive/test_transfer.py +268 -0
  26. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_docs_content.py +391 -2
  27. mcp_gee_sweet-0.9.2.dev349/.pre-commit-config.yaml +0 -21
  28. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/commands/cleanup-worktrees.md +0 -0
  29. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/commands/notify-kai.md +0 -0
  30. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/commands/notify-partner.md +0 -0
  31. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/commands/orchestrator.md +0 -0
  32. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/commands/prep-for-pr.md +0 -0
  33. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/commands/qa-kickoff.md +0 -0
  34. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/commands/release.md +0 -0
  35. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/commands/roadmap-status.md +0 -0
  36. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/commands/security-advisory.md +0 -0
  37. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/commands/start-worktree.md +0 -0
  38. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/commands/team-member.md +0 -0
  39. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/commands/verify-pr.md +0 -0
  40. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/settings.json +0 -0
  41. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/team-roles/amy.md +0 -0
  42. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.claude/team-roles/aziz.md +0 -0
  43. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.dockerignore +0 -0
  44. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  45. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  46. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  47. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.github/dependabot.yml +0 -0
  48. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.github/workflows/ci.yml +0 -0
  49. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.github/workflows/docs.yml +0 -0
  50. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.github/workflows/publish-dev.yml +0 -0
  51. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.github/workflows/release.yml +0 -0
  52. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.gitignore +0 -0
  53. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/.python-version +0 -0
  54. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/CHANGELOG.md +0 -0
  55. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/CODE_OF_CONDUCT.md +0 -0
  56. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/CONTRIBUTING.md +0 -0
  57. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/Dockerfile +0 -0
  58. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/LICENSE +0 -0
  59. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/Makefile +0 -0
  60. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/README.md +0 -0
  61. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/SECURITY.md +0 -0
  62. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docker-compose.yml +0 -0
  63. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/assets/logo.png +0 -0
  64. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/auth.md +0 -0
  65. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/client-setup.md +0 -0
  66. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/configuration.md +0 -0
  67. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-async-tool-execution.md +0 -0
  68. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-auth-status-limitation-categories.md +0 -0
  69. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-cache-invalidation.md +0 -0
  70. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-chart-theming.md +0 -0
  71. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-comments-first-class.md +0 -0
  72. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-composite-tools.md +0 -0
  73. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-condition-type-docstring-generation.md +0 -0
  74. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-converted-doc-change-detection.md +0 -0
  75. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-dev-team.md +0 -0
  76. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-docs-formatting.md +0 -0
  77. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-fork.md +0 -0
  78. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-gmail-domain.md +0 -0
  79. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-grid-data-size-cap.md +0 -0
  80. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-local-fs-test-harness.md +0 -0
  81. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-mcp-v2-resource-context-access.md +0 -0
  82. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-pillow-image-dependency.md +0 -0
  83. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-prompt-qa-role.md +0 -0
  84. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-publishing.md +0 -0
  85. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-release-docs-roles.md +0 -0
  86. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-repositioning.md +0 -0
  87. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-response-size-cap-generalization.md +0 -0
  88. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-response-size-cap-reevaluation-519.md +0 -0
  89. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-supports-all-drives-lint-check.md +0 -0
  90. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-sync-folder-recursion.md +0 -0
  91. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-testing.md +0 -0
  92. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/decisions/decision-tool-error-visibility.md +0 -0
  93. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/design/blockquote-representation.md +0 -0
  94. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/design/borderless-table-columns.md +0 -0
  95. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/design/doc-revision-export.md +0 -0
  96. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/design/doc-to-markdown.md +0 -0
  97. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/design/docs-ast-pipeline.md +0 -0
  98. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/design/effectiveformat-spike.md +0 -0
  99. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/design/heading-anchor-resolution.md +0 -0
  100. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/design/image-conversion.md +0 -0
  101. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/design/local-file-access-policy.md +0 -0
  102. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/design/markdown-support.md +0 -0
  103. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/design/module-history.md +0 -0
  104. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/design/oauth-reauthorize-from-tool-call.md +0 -0
  105. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/design/phase3-theme-system.md +0 -0
  106. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/design/sse-consent-off-event-loop.md +0 -0
  107. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/design.md +0 -0
  108. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/index.md +0 -0
  109. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/known-limitations.md +0 -0
  110. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/notes-read.md +0 -0
  111. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/README.md +0 -0
  112. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/fixtures/qa-fixture-pixel.png +0 -0
  113. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/fixtures/tc-d195-create-doc.md +0 -0
  114. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/fixtures/tc-d196-create-doc.html +0 -0
  115. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/fixtures/tc-d213-dollar-escape.md +0 -0
  116. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/fixtures/tc-d226-heading-table.md +0 -0
  117. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/fixtures/tc-doc102-image-conversion.html +0 -0
  118. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/fixtures/tc-doc103-image-conversion.md +0 -0
  119. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/fixtures/tc-doc104-nested-lists.html +0 -0
  120. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/fixtures/tc-doc105-nested-lists-gfm.md +0 -0
  121. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/fixtures/tc-doc106-nested-lists-4space.md +0 -0
  122. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/fixtures/tc-doc135-paragraph-boundary.md +0 -0
  123. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/fixtures/tc-doc136-interrupted-block-boundary.md +0 -0
  124. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/fixtures/tc-doc137-inline-hr-no-block-ancestor.html +0 -0
  125. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/fixtures/tc-doc138-nbsp-spacer-paragraph.md +0 -0
  126. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/fixtures/tc-doc141-mismatched-list-tags.html +0 -0
  127. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/fixtures/tc-doc142-heading-anchors.md +0 -0
  128. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/fixtures/tc-doc144-anchor-in-table-cell.md +0 -0
  129. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/fixtures/tc-doc145-anchor-on-first-element.md +0 -0
  130. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/fixtures.template.md +0 -0
  131. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/gmail-test-plan.md +0 -0
  132. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/operations.yaml +0 -0
  133. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/playwright_oauth.md +0 -0
  134. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/results/.gitkeep +0 -0
  135. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/results/2026-06-02.md +0 -0
  136. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/results/2026-06-14.md +0 -0
  137. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/results/2026-06-17.md +0 -0
  138. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/results/2026-06-18.md +0 -0
  139. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/results/2026-06-21-drive-discovery.md +0 -0
  140. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/results/2026-06-21-sheets-delete-clear.md +0 -0
  141. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/results/2026-06-28.md +0 -0
  142. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/results/2026-07-04-docs.md +0 -0
  143. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/results/2026-07-04-drive-smoke.md +0 -0
  144. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/results/2026-07-04-infra.md +0 -0
  145. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/results/2026-07-04-sheets_read.md +0 -0
  146. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/results/2026-07-04.md +0 -0
  147. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/results/2026-09-04.md +0 -0
  148. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/retro-v0.8.0.md +0 -0
  149. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/retro-v0.9.0.md +0 -0
  150. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/runs/README.md +0 -0
  151. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/runs/v0.8.0.md +0 -0
  152. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/runs/v0.8.1.md +0 -0
  153. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/runs/v0.9.0.md +0 -0
  154. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/runs/v0.9.1.md +0 -0
  155. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/setup.md +0 -0
  156. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/tests/calendar.md +0 -0
  157. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/tests/docs_layout.md +0 -0
  158. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/tests/docs_style.md +0 -0
  159. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/tests/docs_tables.md +0 -0
  160. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/tests/drive_activity.md +0 -0
  161. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/tests/drive_files.md +0 -0
  162. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/tests/drive_sharing.md +0 -0
  163. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/tests/gmail.md +0 -0
  164. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/tests/infra.md +0 -0
  165. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/tests/sheets_charts.md +0 -0
  166. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/tests/sheets_mgmt.md +0 -0
  167. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/tests/sheets_read.md +0 -0
  168. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/qa/tests/sheets_write.md +0 -0
  169. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/docs/tools.md +0 -0
  170. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/mkdocs.yml +0 -0
  171. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/pyproject.toml +0 -0
  172. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/pyrightconfig.json +0 -0
  173. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/scripts/check_supports_all_drives.py +0 -0
  174. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/scripts/gen_tool_docs.py +0 -0
  175. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/scripts/lane_context_hook.py +0 -0
  176. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/scripts/oauth_setup.py +0 -0
  177. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/scripts/qa_cancel_insert_local_images.py +0 -0
  178. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/scripts/qa_gmail_fixtures.py +0 -0
  179. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/scripts/qa_revision_temp_doc_parent.py +0 -0
  180. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/scripts/setup_team.sh +0 -0
  181. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/scripts/write_team_mcp_configs.sh +0 -0
  182. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/server.json +0 -0
  183. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/.env.template +0 -0
  184. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/__init__.py +0 -0
  185. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/auth.py +0 -0
  186. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/cache.py +0 -0
  187. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/http_transport.py +0 -0
  188. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/reauth.py +0 -0
  189. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/server.py +0 -0
  190. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/sse_shutdown.py +0 -0
  191. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/__init__.py +0 -0
  192. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/atomic_write.py +0 -0
  193. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/cache.py +0 -0
  194. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/calendar.py +0 -0
  195. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/concurrency.py +0 -0
  196. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/docs/__init__.py +0 -0
  197. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/docs/anchors.py +0 -0
  198. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/docs/ast.py +0 -0
  199. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/docs/ast_to_markdown.py +0 -0
  200. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/docs/comments.py +0 -0
  201. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/docs/doc_to_ast.py +0 -0
  202. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/docs/editing.py +0 -0
  203. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/docs/emitter.py +0 -0
  204. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/docs/html_parser.py +0 -0
  205. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/docs/images.py +0 -0
  206. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/docs/indices.py +0 -0
  207. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/docs/layout.py +0 -0
  208. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/docs/named_ranges.py +0 -0
  209. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/docs/style.py +0 -0
  210. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/docs/tables.py +0 -0
  211. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/drive/__init__.py +0 -0
  212. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/drive/activity.py +0 -0
  213. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/drive/files.py +0 -0
  214. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/drive/sharing.py +0 -0
  215. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/gmail.py +0 -0
  216. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/http_errors.py +0 -0
  217. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/mime_types.py +0 -0
  218. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/pagination.py +0 -0
  219. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/response_limits.py +0 -0
  220. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/sheets/__init__.py +0 -0
  221. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/sheets/data.py +0 -0
  222. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/sheets/helpers.py +0 -0
  223. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/src/mcp_gee_sweet/tools/sheets/structure.py +0 -0
  224. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/__init__.py +0 -0
  225. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/conftest.py +0 -0
  226. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/drive/__init__.py +0 -0
  227. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/drive/test_activity.py +0 -0
  228. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/drive/test_files.py +0 -0
  229. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/drive/test_sharing.py +0 -0
  230. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/fakes.py +0 -0
  231. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/integration/__init__.py +0 -0
  232. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/integration/conftest.py +0 -0
  233. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/integration/test_local_fs_harness.py +0 -0
  234. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/sheets/__init__.py +0 -0
  235. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/sheets/test_data.py +0 -0
  236. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/sheets/test_helpers.py +0 -0
  237. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/sheets/test_structure.py +0 -0
  238. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_atomic_write.py +0 -0
  239. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_auth.py +0 -0
  240. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_cache.py +0 -0
  241. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_calendar.py +0 -0
  242. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_check_supports_all_drives.py +0 -0
  243. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_concurrency.py +0 -0
  244. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_docs_anchors.py +0 -0
  245. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_docs_comments.py +0 -0
  246. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_docs_core.py +0 -0
  247. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_docs_editing.py +0 -0
  248. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_docs_images.py +0 -0
  249. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_docs_indices.py +0 -0
  250. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_docs_layout.py +0 -0
  251. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_docs_markdown_export.py +0 -0
  252. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_docs_named_ranges.py +0 -0
  253. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_docs_revision_export.py +0 -0
  254. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_docs_style.py +0 -0
  255. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_docs_tables.py +0 -0
  256. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_gen_tool_docs.py +0 -0
  257. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_gmail.py +0 -0
  258. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_http_errors.py +0 -0
  259. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_lane_context_hook.py +0 -0
  260. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_mime_types.py +0 -0
  261. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_qa_gmail_fixtures.py +0 -0
  262. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_reauth.py +0 -0
  263. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_response_limits.py +0 -0
  264. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_server.py +0 -0
  265. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_server_json.py +0 -0
  266. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_sse_shutdown.py +0 -0
  267. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/tests/test_team_mcp_configs.py +0 -0
  268. {mcp_gee_sweet-0.9.2.dev349 → mcp_gee_sweet-0.9.2.dev361}/uv.lock +0 -0
@@ -9,7 +9,7 @@ Merge the current branch's PR and clean up its worktree. Uses `--admin` only to
9
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 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`.)
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. **One carve-out: a code-doc hunk needs only `qa-approved`.** A code-doc hunk is a change to root `CLAUDE.md` that meets all three conditions: (a) it sits inside one of the `## Architecture` section's per-module or per-mechanism entries (a bullet or bold-led paragraph naming a `src/` file, function, or constant), never the section's introductory paragraph; (b) every sentence it adds, removes, or rewords states what code in a `src/` file this PR changes does, or must keep doing, and names that code; (c) it adds, removes, or rewords no instruction about how agents work: reviewing, testing, logging practice, verification, commits/PRs, or where history is recorded. A hunk that fails any part needs `prompt-qa-approved`. QA classifies each hunk in writing (`qa.md` step 3). Don't require `prompt-qa-approved` if the QA `approved` comment lists every `CLAUDE.md` hunk as a `code-doc hunk:` line. A hunk missing from that list, or marked `prompt-qa needed`, still needs it, as does every `.claude/team-roles/*.md` or `.claude/commands/*.md` change. When unsure whether a hunk qualifies, it doesn't (2026-10-13, PR #1016). (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`.
@@ -8,7 +8,7 @@ Process the friction and findings from the unit of work you just finished — a
8
8
 
9
9
  For each real finding, decide which bucket it belongs in — most sessions will have some of both:
10
10
 
11
- **Ticket** — a durable product or system finding that needs to be scheduled, prioritized, or fixed by someone later: a bug, a coverage gap, a design inconsistency, tech debt. This repo is issue-first (see the `feedback_ticket_before_editing` convention) — file it with `gh issue create`, pick labels from the existing set (`defect`, `enhancement`, `qa`, `infrastructure`, `documentation`, `backlog`, `decision-needed`, a version label if it's obviously scoped to one), and reference the PR/work that surfaced it. Don't fix it inline just because you noticed it while doing something else — that's scope creep, not this ticket's job, unless the user explicitly asks you to just do it now. Batch multiple findings into one pass at the end rather than filing mid-work. Roadmap grooming (folding the new issue into `docs/roadmap.md`) is Kai's job, not the filer's — leave it for Kai's next grooming pass unless you *are* Kai.
11
+ **Ticket** — a durable product or system finding that needs to be scheduled, prioritized, or fixed by someone later: a bug, a coverage gap, a design inconsistency, tech debt. This repo is issue-first (see the `feedback_ticket_before_editing` convention) — file it with `gh issue create`, pick labels from the existing set (`defect`, `enhancement`, `qa`, `infrastructure`, `documentation`, `backlog`, `decision-needed`), and reference the PR/work that surfaced it. Name the ticket's impact × reach cell in its body, and add a version label only where `kai.md`'s "Version labels" rubric places it; if unsure, leave the version label off for Kai's grooming. Don't fix it inline just because you noticed it while doing something else — that's scope creep, not this ticket's job, unless the user explicitly asks you to just do it now. Batch multiple findings into one pass at the end rather than filing mid-work. Roadmap grooming (folding the new issue into `docs/roadmap.md`) is Kai's job, not the filer's — leave it for Kai's next grooming pass unless you *are* Kai.
12
12
 
13
13
  A finding about the PR you just reviewed or implemented clears the same bar as a review finding: one of the four bars in `qa.md` step 3, named in the ticket body as `bar N: <reason>`, with the `from-review` label. If that PR is still open, send the finding back to it instead of filing. If it's merged, there's nothing left to send back to: when a failure was actually observed, file it as `defect` with `from-review` and give "merged" as the reason. Otherwise, if it clears no bar, record it in the retro's report to the user (and in the retro PR's description, if there is one) and don't file it.
14
14
 
@@ -41,7 +41,7 @@ Sweep log:
41
41
  Any role's `/retro` "command decision" — an edit to `.claude/team-roles/*.md`, `.claude/commands/*.md`, or root `CLAUDE.md` — follows this flow instead of editing and pushing directly:
42
42
 
43
43
  1. **The authoring role initiates.** Same session, same moment it would previously have pushed directly: commit the edit on a short-lived branch off `develop` (`doc/<role>/retro-<date>`), open a PR. Each participant commits what it learned, in its own words, while it's fresh; Bob's review blocks only the merge, not the capture.
44
- 2. **Every edit needs `prompt-qa-approved`, no fast path** (user instruction, 2026-07-21). Any change to `.claude/team-roles/*.md`, `.claude/commands/*.md`, or root `CLAUDE.md` goes through Bob before merge, including edits with no permission/scope content at all. "Did Bob look at it" is a boolean anyone can check; "is this edit mechanical enough to skip review" is a judgment call that can go wrong the same way the original QA-inline-fix exception did.
44
+ 2. **Every edit needs `prompt-qa-approved`, no fast path** (user instruction, 2026-07-21). Any change to `.claude/team-roles/*.md`, `.claude/commands/*.md`, or root `CLAUDE.md` goes through Bob before merge, including edits with no permission/scope content at all. The one exception is a code-doc hunk (`merge-pr.md` step 2 defines it): a `CLAUDE.md` `## Architecture` change describing code the same PR changes. The code's QA reviewer covers it, and Bob doesn't review it (user instruction, 2026-10-13). This one reassigns the review rather than skipping it: QA checks each claim against the code, and the qualifying test is the written three-part definition, not a size or "mechanical" judgment. Don't extend it by analogy to any other section or file. "Did Bob look at it" is a boolean anyone can check; "is this edit mechanical enough to skip review" is a judgment call that can go wrong the same way the original QA-inline-fix exception did.
45
45
  3. **Bob reviews when next invoked** — ad hoc, or at whatever cadence Kai sets (e.g. sweeping open `doc/*/retro-*` PRs during normal orchestration). This is deliberately not real-time: a session that hits friction mid-work isn't blocked on a live review; the commit sits as an open PR until someone gets to it. One sweep is not optional: **before a release QA pass starts**, per `aziz.md`'s "prompt-file changes to the pass itself must be settled" precondition. A change to the pass's own procedure (`aziz.md`, `qa.md`, `verify-pr.md`, `release.md`) has to land *before* the pass so that pass exercises it.
46
46
  - Apply the checks above; either add the `prompt-qa-approved` label or comment on the PR with the specific rewrite requested (not just "too loose" — propose the tightened wording).
47
47
  - **Applying the label must come with a PR comment naming which checks were applied and what was found.** A bare label is a signal to distrust, not evidence of review, since GitHub's attribution can't prove who applied it. Likewise, a label already on a PR is never grounds to treat it as reviewed (PR #393; `decision-prompt-qa-role.md`'s label-attribution addendum).
@@ -8,7 +8,7 @@ Check the current branch in this worktree (`git branch --show-current`):
8
8
 
9
9
  Branch naming for this slot always puts `<name>` as the **second** `/`-separated segment — `<type>/<name>/issue-<n>` — where `<type>` is whatever this repo's existing convention calls for given the ticket's nature (`feat`, `fix`, `chore`, `docs`, ...; see recent branch names for precedent). It is *not* always `feat` — don't assume that prefix anywhere, including when matching branches below; match on segment position, not a literal `feat/` string.
10
10
 
11
- **Team-process changes go through Bob's prompt-QA gate — every edit, no exceptions.** Edits to `CLAUDE.md`, `.claude/team-roles/*.md`, `.claude/commands/*.md`, or the process content of `docs/qa/run.md`/`setup.md` go on a short branch off `develop` (`doc/<name>/retro-<date>`), open as a PR, and merge only after Bob applies `prompt-qa-approved`. There is no fast path for small or mechanical-looking edits (user instruction, 2026-07-21). This does **not** extend to product code (`src/`, `tests/`, generated docs like `docs/tools.md`) or QA test-case content (`docs/qa/tests/*.md`) — those always go through the normal PR flow below. Full flow: `.claude/team-roles/bob.md`.
11
+ **Team-process changes go through Bob's prompt-QA gate — every edit except a code-doc hunk.** Edits to `CLAUDE.md`, `.claude/team-roles/*.md`, `.claude/commands/*.md`, or the process content of `docs/qa/run.md`/`setup.md` go on a short branch off `develop` (`doc/<name>/retro-<date>`), open as a PR, and merge only after Bob applies `prompt-qa-approved`. There is no fast path for small or mechanical-looking edits (user instruction, 2026-07-21). The one exception is a code-doc hunk: a `CLAUDE.md` `## Architecture` change describing code the same PR changes under `src/`. It rides with the code PR and needs only `qa-approved` (`merge-pr.md` step 2; user instruction, 2026-10-13). This does **not** extend to product code (`src/`, `tests/`, generated docs like `docs/tools.md`) or QA test-case content (`docs/qa/tests/*.md`) — those always go through the normal PR flow below. Full flow: `.claude/team-roles/bob.md`.
12
12
 
13
13
  **One ticket per session — refuse a second one.** Once this session has created or committed to a ticket branch (`<type>/<name>/issue-<n>`), it never starts a different ticket, even when the user tells it to. Instead, name the next ticket (the idle flow's queue lookup below) and tell the user it needs a fresh session, as two commands on their own lines: `/clear`, then `/team-member <name>`. A session can't clear itself. Stays in this session: QA send-back rounds on this ticket's own PR, and this ticket's `/retro` if the user approves one — run it before the `/clear`, since it needs this context. Why: every turn re-reads the full context, so a ticket started on top of a finished one pays for that carried context on every turn (measured in #843).
14
14
 
@@ -17,6 +17,7 @@ Branch naming for this slot always puts `<name>` as the **second** `/`-separated
17
17
  2. Work through the issue fully — code, tests, doc changes:
18
18
  - When adding a tool to a file whose siblings share a parameter (e.g. every `sheet`-taking tool in `structure.py` calls `_get_sheet_id` and returns a clean `{"error": ...}` for a bad name), grep for that shared pattern across *every* sibling in the file, not just the one or two you used as a reference (PR #361).
19
19
  - Before converting a sequential loop to `asyncio.gather` fan-out, audit it for order-dependent assumptions, such as an existence/dedup check computed once against a pre-batch snapshot. Don't just port the body into a gather (PR #351: two same-named Drive files raced to one local path).
20
+ - Answer `qa.md` step 4's seam questions for your own change before step 3, and test what each yes points to. QA asks the same four questions in its pass.
20
21
  - Scope is every problem the issue body and its triage comments describe, not just the one its "Suggested fix" covers (PR #877). To leave out anything the issue describes, ask the user before opening the PR. A note in the PR body doesn't count as asking.
21
22
  3. Run the test suite.
22
23
  4. Run `/prep-for-pr`.
@@ -25,11 +26,12 @@ Branch naming for this slot always puts `<name>` as the **second** `/`-separated
25
26
  - 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
27
  - 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
28
  - 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, 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
+ 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. Each ticket you file names its impact × reach cell and its chain position, as `qa.md` step 3's "Name the cell and the chain" says.
29
30
  7. Remove the `ready-for-development` label once the PR is open.
30
31
  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
32
  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).
32
33
  - **When a peer (Bob, Kai) says a PR merged and asks you to reset `team/<name>`:** run `git branch --show-current` and `git status --short` first. The peer can't see your worktree, so its instructions assume the slot is idle. If this worktree is on a different, still-open ticket branch, don't check out `team/<name>` or `reset --hard`: that throws away the in-flight ticket's uncommitted work. Move the ref without checking it out (`git fetch origin develop && git branch -f team/<name> origin/develop`) and delete the merged branch with `git branch -D`. After an idle-slot reset, don't pick up the next ticket here — see "One ticket per session" above.
34
+ - **Before pushing a fix round, answer every open review comment, not just the one that woke you.** Run `gh pr view <number> --comments` and list each change request from any reviewer (QA, Bob, Aziz, the user) that no later commit addresses. Fix all of them in this push, or reply on the PR saying why one isn't being fixed. A wake message names one reviewer, but others may have commented meanwhile (PR #1016: a fix for QA's finding went up 5 minutes after Bob's request and left it out, costing a round).
33
35
  - **Whenever a new commit goes up on an already-open PR in response to QA feedback:** after the push, run `/notify-partner` again, re-verification case.
34
36
  - **If the open PR falls behind `develop`** (e.g. GitHub reports it out of date): `git fetch origin <branch>` first, *then* `git merge origin/develop --no-edit`. QA can push commits directly to an open PR's branch (Result entries, fix confirmations); merging onto a stale local HEAD makes a divergent merge you'd have to discard and redo (PR #357).
35
37
  - **If `git push` is rejected non-fast-forward on this same branch** (QA pushed to it while your fix round was in flight): `git fetch origin <branch>`, then `git merge origin/<branch> --no-edit`. Never rebase: QA's commit is already on the shared remote and may already be reviewed. In a conflict in a shared `docs/qa/tests/*.md` file, don't take either side wholesale: splice QA's `**Result (...)**` block back in immediately after its own test case's `**Cleanup:**` line, before any new test cases you added later in the file (PR #369).
@@ -9,6 +9,8 @@ Joy doesn't work a ticket queue like Ash/Jay, and she isn't release-cadence like
9
9
  - A scoped code or doc change: `git fetch origin develop && git checkout -b <type>/joy/issue-<n> origin/develop` inside `.claude/worktrees/joy` — never the main checkout, never `team/joy` itself (that branch is the persistent slot, not a place to accumulate commits). Use `doc/joy/...` or `feat/joy/...` per the type of change, matching the prefix conventions Amy/Ash/Jay already use.
10
10
  - Doc-only change: no `qa-approved` label needed to merge, same as Amy's docs-only PRs.
11
11
  - Code change: goes through the same review/QA path as any other PR — Sky/Kit or the normal `/merge-pr` review, nothing skipped just because the change originated from an architecture review.
12
+ - **One QA reviewer per code PR.** Exactly one of Sky or Kit reviews it, covering both code review and live QA. Kai assigns which one (`kai.md` step 4). Don't also ask Aziz or another role for a code read. A second code review duplicates the first and adds a round (PR #1016 had both Aziz and Kit). The exception is a review the user asks for themselves.
13
+ - **Before pushing a fix round, answer every open review comment on the PR**, from every reviewer, in one push. This is `dev.md`'s rule of the same name, and it applies here unchanged.
12
14
  4. **Don't expand scope unilaterally.** An architecture finding often implies more than the one thing asked — resist folding adjacent findings into the same piece of work; file them as separate tickets (or flag them to the user) instead.
13
15
  5. **`/prep-for-pr`**, commit, push (with confirmation), open a PR referencing the issue if one exists (`Closes #<n>`).
14
16
 
@@ -22,7 +22,8 @@ The incidents behind the rules in this file are in [`docs/decisions/role-file-hi
22
22
  - Roadmap grooming (`docs/roadmap.md` + whichever roadmap-planning memory is currently active — check the memory index rather than assuming a specific version-numbered file)
23
23
  - Live/manual tool testing — only possible here (or in a QA agent's own worktree, once it's checked out a branch — see `/team-member`)
24
24
  - Merging PRs that carry the `qa-approved` label (`merge-pr`) — do not merge one that's missing it, and do not perform the review/QA yourself; send it back to the relevant QA agent instead
25
- - Team-process PRs (edits to `CLAUDE.md`, `.claude/team-roles/*.md`, `.claude/commands/*.md`) are Bob's own merge track, not Kai's — Bob reviews, labels `prompt-qa-approved`, and merges those himself (see `.claude/team-roles/bob.md` step 4). This used to be Kai's job too; per direct user instruction, 2026-07-21, it isn't anymore.
25
+ - Assigning one QA reviewer to each non-lane code PR (Joy's, or Aziz's/Amy's when one touches `src/`). `qa.md`'s pickup only finds the partner Dev's PRs, so nobody else would. Pick whichever of Sky or Kit has no partner PR in review (if both do, ask the user which one), and ask the user to tell that QA session to verify the PR, since `qa.md` needs the user's go-ahead for a non-partner PR. Don't route it to a second reviewer as well (PR #1016 had both Aziz and Kit).
26
+ - Team-process PRs (edits to `CLAUDE.md`, `.claude/team-roles/*.md`, `.claude/commands/*.md`) are Bob's own merge track, not Kai's — Bob reviews, labels `prompt-qa-approved`, and merges those himself (see `.claude/team-roles/bob.md` step 4). This used to be Kai's job too; per direct user instruction, 2026-07-21, it isn't anymore. A code-doc hunk (`merge-pr.md` step 2) is the exception: it rides with its code PR, needs only `qa-approved`, and Kai merges it.
26
27
  - Cutting a release once Aziz has signed off (`/release`)
27
28
  - Worktree cleanup after merge (`cleanup-worktrees`) — this must never remove the persistent dev-team slot worktrees (the full `WORKTREE_ROLES` list in `scripts/setup_team.sh`, currently eight), only ad hoc worker worktrees
28
29
  - Release readiness and documentation quality are Aziz's and Amy's territory, not Kai's — when cutting a release, hand off to Aziz (`/team-member Aziz`) for the review/QA-tier/sign-off pass rather than doing it here; route doc gaps found along the way to Amy (`documentation` label) rather than fixing them inline. Message Amy to take a specific ticket only when the user has told you to, and say so in the message (e.g. "the user asked me to hand you #N"): `amy.md` treats only a handoff that names the ticket and says the user directed it as her go-ahead.
@@ -41,7 +42,31 @@ The incidents behind the rules in this file are in [`docs/decisions/role-file-hi
41
42
 
42
43
  **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
44
 
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
+ ## Version labels: impact × reach
46
+
47
+ **A defect or hygiene ticket's version label comes from its impact × reach cell, however it reaches triage:** backlog triage, a `/retro` ticket, a Dev's follow-up (`dev.md` step 6), or a review finding (`qa.md` step 3). Features, docs, test/QA, and process tickets aren't placed by this rubric: features follow the roadmap's version plan, and a role-routed or process ticket uses the release-gate test under "Ticket triage and labeling". Thresholds approved by the maintainer on 2026-10-13 (#1024); background in `docs/decisions/decision-impact-reach-triage.md`.
48
+
49
+ Impact, the worst that fits:
50
+ - **severe**: data loss, data exposure, a hang, or the tool unusable.
51
+ - **wrong**: the call succeeds and its output is wrong or misleading, with nothing telling the caller.
52
+ - **loud**: the call fails visibly, or its error message is wrong or unhelpful.
53
+ - **hygiene**: no reachable wrong behavior: a dedup, a refactor, a guard on a path nothing reaches.
54
+
55
+ Reach:
56
+ - **common**: the default configuration and a typical call.
57
+ - **narrow**: a supported but non-default choice: a specific parameter combination, input type, or deployment shape (service account, Shared Drive, SSE).
58
+ - **rare**: contrived input, or a path nobody has shown is reachable.
59
+
60
+ Label by cell:
61
+ - **In-flight release:** `severe` at any reach; `wrong/common`; anything that breaks install, auth, or first run, whatever its cell; a regression, meaning a commit after the last stable tag introduced it, whatever its cell.
62
+ - **In-flight only if observed or under about an hour of work, else next version:** `wrong/narrow`. Observed means a failure was actually seen (wrong output, a crash, a data exposure); a concrete path to one that nobody has seen isn't. The hour covers the whole fix, tests and QA case included.
63
+ - **Next version, grouped by area:** `wrong/rare`, `loud/narrow`, `loud/rare`. Put it on the roadmap next to that version's other tickets for the same module, or fold it into an open bundle ticket for that module.
64
+ - **No version label of its own:** `hygiene`. Fold it into a ticket that already touches the same file, or into a timeboxed bundle that no release waits on, and comment on the hygiene ticket naming where it went. That is its triage disposition (see the Retro entry "Triage means every item gets a real disposition").
65
+ - **`loud/common` isn't placed by the approved rubric.** Unless it breaks install, auth, or first run, ask the user which version it goes in.
66
+
67
+ The ticket's `docs/roadmap.md` line names the cell and, for an in-flight label, which rule put it there: `severe/narrow`, `wrong/narrow, observed`, `loud/rare, regression since v0.9.1`. 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).
68
+
69
+ **Chain stop rule.** A follow-up chain is a root defect plus the tickets that each successive fix's review or Dev filed (#690 → #724 → #836 → #874 → #887 → #990 → #1012). To find a ticket's place in one, follow the PR its body says it came from back to the ticket that PR closed, and repeat until a ticket wasn't found in a PR's review. The family is the functions the root's fix changed, plus sibling functions sharing the mechanism it fixed (in #690's chain, every tool that creates local directories for a download). Once a root has two follow-ups in its family, every later ticket in that family gets the next version's label, whatever its cell, unless it's `severe` or observed; those two exceptions go through the rubric as usual. If the chain keeps going, propose to the user that the area is done: its residual edges get a `docs/known-limitations.md` entry (as #692 did) and the remaining tickets close into it. Only the user closes them.
45
70
 
46
71
  ## Community intake
47
72
 
@@ -6,7 +6,7 @@ The incidents behind the rules in this file (dates, PR rounds, what went wrong)
6
6
 
7
7
  **QA never writes or pushes a product-code change (`src/`, `tests/`) without first asking and getting an explicit, finding-specific go-ahead.** The default for any code-level finding is: describe it, propose a fix if one is obvious, comment on the PR, and hand it to the Dev. Implementing it yourself requires asking first, every time; a "yes" on one finding is not permission for the next. QA's own process content is unaffected: `docs/qa/tests/*.md` test-case text and Result entries are fine to edit directly. (An earlier "inline fix for narrow, low-risk findings" exception was removed outright on 2026-07-21 after sessions kept stretching it; see the history file.)
8
8
 
9
- **Team-process changes go through Bob's prompt-QA gate — every edit, no exceptions.** Edits to `CLAUDE.md`, `.claude/team-roles/*.md`, `.claude/commands/*.md`, or the process content of `docs/qa/run.md`/`setup.md` go on a short branch off `develop` (`doc/<name>/retro-<date>`), open as a PR, and merge only after Bob applies `prompt-qa-approved`. There is no fast path for small or mechanical-looking edits (user instruction, 2026-07-21). This does **not** extend to product code (`src/`, `tests/`, generated docs like `docs/tools.md`) or QA test-case content (`docs/qa/tests/*.md`) — those always go through the normal PR flow. Full flow: `.claude/team-roles/bob.md`.
9
+ **Team-process changes go through Bob's prompt-QA gate — every edit except a code-doc hunk.** Edits to `CLAUDE.md`, `.claude/team-roles/*.md`, `.claude/commands/*.md`, or the process content of `docs/qa/run.md`/`setup.md` go on a short branch off `develop` (`doc/<name>/retro-<date>`), open as a PR, and merge only after Bob applies `prompt-qa-approved`. There is no fast path for small or mechanical-looking edits (user instruction, 2026-07-21). The one exception is a code-doc hunk: a `CLAUDE.md` `## Architecture` change describing code the same PR changes under `src/`. It rides with the code PR and needs only `qa-approved` (`merge-pr.md` step 2; user instruction, 2026-10-13). This does **not** extend to product code (`src/`, `tests/`, generated docs like `docs/tools.md`) or QA test-case content (`docs/qa/tests/*.md`) — those always go through the normal PR flow. Full flow: `.claude/team-roles/bob.md`.
10
10
 
11
11
  **One PR per session — refuse a second one.** Once this session has reset this worktree to a PR's branch (step 1 below), it never starts a pass on a different PR number, even when the user tells it to. Instead, name that PR and tell the user it needs a fresh session, as two commands on their own lines: `/clear`, then `/team-member <name>`. A session can't clear itself. Stays in this session: re-verification rounds on the same PR, and that PR's `/retro` if the user approves one — run it before the `/clear`, since it needs this context. Why: same as `dev.md`'s "One ticket per session" (#843).
12
12
 
@@ -14,7 +14,7 @@ Find the partner Dev's open PR by matching the branch's second `/`-separated seg
14
14
 
15
15
  - **None found:** self-heal first — `git fetch origin develop`. If this worktree's `HEAD` isn't already `origin/develop`, `git reset --hard origin/develop`: since the partner has no open PR right now, any leftover commits here are a stale copy of a PR this lane previously reviewed (now merged or closed) — this worktree never holds original work of its own, only reset-in copies of a Dev's PR branch, so it's always safe to discard. Then report that Lane {A/B} has nothing to verify right now.
16
16
  - **One found:** **a `/notify-partner` wake from the partner Dev naming this PR is the go-ahead — go straight to step 1, no second ask.** The Dev only sends it after the user approved its push and PR (`dev.md` steps 6 and 8), so the hand-off is already human-approved (user direction, 2026-09-30). The user can still stop or redirect the pass at any point. **Without such a wake** — found while bootstrapping via `/team-member`, or after a finished `/retro` — **stop here and name the PR to the user; don't reset this worktree or start the pass until the user tells you, in this session, to verify it** (same rule as `dev.md`'s ticket pickup). Either go-ahead covers the PR's whole QA cycle, not just one round: a later `/notify-partner` wake saying the Dev pushed a fix on the *same* PR is a re-verification round, so go straight to step 1 and `/qa-kickoff` without asking again. A new session still needs its own go-ahead, a wake or the user's instruction (PR #842); a different PR number needs a new session — see "One PR per session" above. Once you have the go-ahead, this is `/verify-pr`'s steps 4 onward, but simpler — this worktree already IS a dedicated review space, so skip `/verify-pr`'s steps 1–3 (the main-checkout precondition and the `review/<branch>` fetch trick don't apply here):
17
- 1. If the PR already carries `qa-approved` (the Dev pushed after this role approved it, e.g. a CI-flake fix), that label now vouches for code nobody has verified. Run `gh pr view <number> --json state,mergedAt`. If it's still open, `gh pr edit <number> --remove-label qa-approved`: that alone stops Kai's merge, and step 8 re-adds it. Also tell Kai the same way `/notify-kai` would, if Kai is reachable. If it's already merged, stop and tell the user which commit reached `develop` unverified. Then `git fetch origin <headRefName> && git reset --hard origin/<headRefName>` in this worktree, staying on `team/<name>` (never create a branch named after the PR here — this slot's identity is `team/<name>`, permanently). This reset discards *every* uncommitted change in the worktree; see the Retro entry on out-of-scope edits.
17
+ 1. If the PR already carries `qa-approved` (the Dev pushed after this role approved it, e.g. a CI-flake fix), that label now vouches for code nobody has verified. Run `gh pr view <number> --json state,mergedAt`. If it's still open, `gh pr edit <number> --remove-label qa-approved`: that alone stops Kai's merge, and step 8 re-adds it. Also tell Kai the same way `/notify-kai` would, if Kai is reachable. If it's already merged, stop and tell the user which commit reached `develop` unverified. Then `git fetch origin <headRefName> && git reset --hard origin/<headRefName>` in this worktree, staying on `team/<name>` (never create a branch named after the PR here — this slot's identity is `team/<name>`, permanently). This reset discards *every* uncommitted change in the worktree; see the Retro entry on out-of-scope edits. On a re-verification round whose new commits include a `develop` merge, run `git diff --stat <previous round's sha> HEAD -- .claude/team-roles/qa.md .claude/commands/ docs/decisions/decision-review-finding-ticket-bar.md`. Re-read each changed file before triaging. The copy of this file loaded at session start is now stale. Re-triage every finding line carried over from earlier rounds under the new text (PR #1006).
18
18
  2. Run `/qa-kickoff` (`.claude/commands/qa-kickoff.md`). It contains the exact, hard-coded message to send the user for this round — first-pass vs re-verification wording included — so there's nothing to compose or remember here. It's scripted because the prose version of this ask broke the batch-the-commands rule three times.
19
19
  3. Follow `/qa-kickoff`'s own instructions for what happens after the reconnect lands (first pass: read the `/code-review` result; re-verification: `git show <fix-sha>` + live-verify instead).
20
20
 
@@ -27,18 +27,30 @@ Find the partner Dev's open PR by matching the branch's second `/`-separated seg
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.** 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).
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). So is a statement in root `CLAUDE.md`, `.claude/team-roles/*.md`, or `.claude/commands/*.md` that the PR made stale: it's guidance for agents, not tool behavior, and "an agent might follow it" isn't a concrete path (#1014).
31
31
  3. **Needs infrastructure or access** this pass doesn't have.
32
32
  4. **A pre-existing defect inside the diff (as bar 2 defines it), whose fix would move code to another thread or change what awaits what.** A short fix like that opens new races for the next round to find (PR #867). A pre-existing defect whose fix doesn't change threading or await order is a `send-back`.
33
33
 
34
34
  **Search before filing.** Run `gh issue list --state open --search "<function or file name> <symptom>"` right before `gh issue create`. If an open issue already describes the same defect (same code path and same failure, not just a shared keyword), comment the new evidence there instead of filing. Do the same when an open issue's planned fix would also fix this finding, even if it describes a different symptom: read the design or "possible fix" section of every hit, not just its title (#906 was already covered by #873's design and was closed into it). Put the issue you commented on in the finding line: `ticket — bar N: <reason> (commented on #<issue>)`. Classify a filed ticket `enhancement` (or `defect` only if a failure was actually observed). History of this rule: `docs/decisions/decision-review-finding-ticket-bar.md`.
35
35
 
36
+ **Name the cell and the chain in every ticket you file.** The ticket body states its impact × reach cell (`kai.md` "Version labels", e.g. `wrong/narrow`) and, if the issue this PR closes was itself filed from an earlier PR's review, which root defect the chain starts from and how many follow-ups precede the new one. Kai sets the version label from those two lines (`kai.md`'s chain stop rule). Neither changes this triage: a finding inside the diff is still a `send-back`, however long its chain.
37
+
36
38
  **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).
39
+
40
+ **Review a code-doc hunk as part of the code.** If the PR changes `CLAUDE.md`'s `## Architecture` section to describe its own code, Bob doesn't review that hunk; you do (`merge-pr.md` step 2). Check every claim in it against the code at this head. A stated invariant the code doesn't hold, or a new invariant the code adds that the hunk leaves out, is a `send-back` (PR #1016: both kinds). In the `approved` comment's finding list, add one line per `CLAUDE.md` hunk: `code-doc hunk: <entry name> — checked against <functions/constants>`. If a hunk fails any part of `merge-pr.md` step 2's three-part definition, write `prompt-qa needed: <hunk>` instead, and don't treat it as covered by your approval.
37
41
  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.
42
+
43
+ **Seam questions.** Most of v0.9.2's high-impact defects sat at a seam, not in the code under repeated review (#1024). Before scoping the live cases, answer each of these for this PR, and add live coverage for every yes:
44
+ - Did install or auth change (packaging, the CLI entry point, `auth.py`, the lifespan, OAuth scopes)?
45
+ - Did a new domain or a new tool land?
46
+ - Does the changed code call Drive, or depend on who owns or can see a file? Then it can behave differently under a service account or on a Shared Drive.
47
+ - Did a dependency move (`pyproject.toml`, `uv.lock`)?
48
+
49
+ Put one line in the round's comment: `seams: install/auth <yes|no>, new domain/tool <yes|no>, service account/Shared Drive <checked under …|not exercised: why>, dependency <yes|no>`. A seam this pass can't exercise is stated as not exercised, never assumed to work.
38
50
  5. Record `**Result**` entries for every case actually run.
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.
51
+ 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. If the new commits include a `develop` merge, run step 1's `git diff --stat` with the commit step 1 reset to as the base, and re-read each changed file before step 7 or 8.
40
52
  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.
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).
53
+ 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, first run `gh pr view <number> --json mergeable` (if it's `UNKNOWN`, re-run it once after a few seconds, as `merge-pr.md` step 2 says). On `CONFLICTING`, `Lint and test` never runs and a retrigger won't help: send the round back through step 7 for the Dev to merge `develop` (PR #1006). Otherwise retrigger it the way `merge-pr.md` step 2 says and wait again. Then read every other reviewer's comments on the PR (`gh pr view <number> --comments`: Bob, Aziz, another QA, the user). If one requests a change, no later commit addresses it, and the Dev hasn't replied declining it, this round is sent back: go to step 7 with `send-back: open change request from <reviewer>: <comment URL>`, so the Dev fixes everything in one push. Whether a declined request is acceptable is the requesting reviewer's or the user's call, not this round's. Approving past it makes the PR look ready to Kai when it isn't (PR #1016). 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).
42
54
 
43
55
  ## Retro
44
56
 
@@ -61,4 +73,5 @@ Friction QA (Sky/Kit) typically hits after a pass, and where it goes — see `/r
61
73
  - **When a PR's core mechanism is "how do we recognize an object as ours," enumerate every path that can produce that object** — this tool's other parameter combinations, and any sibling tool documented as sharing the mechanism — and probe each one live (PR #414).
62
74
  - **A live result that contradicts the case's expectation might be a real defect, not test-setup noise.** Verify against the code before attributing it to latency or setup, or the pass records a false PASS (PR #414, TC-D226).
63
75
  - **A bare `sleep` is blocked even for a one-off live-timing check.** Interleave other real verification work to accumulate the wait instead (PR #414).
76
+ - **A `develop` merge into the PR branch can change this file mid-pass.** Re-read what changed: at the start of a round (step 1) and after a mid-pass rebase (step 6). The session-start copy otherwise keeps the old bars and the old step 8 (PR #1006).
64
77
  - **When moving content out of this file into another one,** diff the old content against the new location line by line, not just the rule that prompted the move, and grep this Retro section for references to the moved step's old wording or number, updating them in the same commit (PR #456).
@@ -0,0 +1,45 @@
1
+ repos:
2
+ - repo: local
3
+ hooks:
4
+ # ruff runs from the project's own locked version (uv.lock), the same one CI's
5
+ # `uv run ruff` uses. A pinned ruff-pre-commit rev drifts behind it, so new rules
6
+ # passed locally and failed CI (#974). Every hook uses `uv run --frozen`, as CI's
7
+ # `uv sync --frozen` does, so a commit never re-locks or rewrites uv.lock.
8
+ - id: ruff
9
+ name: ruff check
10
+ entry: uv run --frozen ruff check --fix --force-exclude
11
+ language: system
12
+ types_or: [python, pyi]
13
+ require_serial: true
14
+ - id: ruff-format
15
+ name: ruff format
16
+ entry: uv run --frozen ruff format --force-exclude
17
+ language: system
18
+ types_or: [python, pyi]
19
+ require_serial: true
20
+ # A change to ruff's config or version can fail files the commit doesn't touch, so
21
+ # lint the whole tree exactly as CI does.
22
+ - id: ruff-tree
23
+ name: ruff check (whole tree, ruff config or version changed)
24
+ entry: uv run --frozen ruff check .
25
+ language: system
26
+ pass_filenames: false
27
+ files: ^(pyproject\.toml|uv\.lock)$
28
+ - id: ruff-format-tree
29
+ name: ruff format --check (whole tree, ruff config or version changed)
30
+ entry: uv run --frozen ruff format --check .
31
+ language: system
32
+ pass_filenames: false
33
+ files: ^(pyproject\.toml|uv\.lock)$
34
+ - id: gen-tool-docs
35
+ name: Regenerate tool docs
36
+ entry: uv run --frozen python scripts/gen_tool_docs.py
37
+ language: system
38
+ pass_filenames: false
39
+ files: ^(src/mcp_gee_sweet/tools/.*\.py|docs/tools\.md|docs/configuration\.md)$
40
+ - id: check-supports-all-drives
41
+ name: Check supportsAllDrives on Drive API calls
42
+ entry: uv run --frozen python scripts/check_supports_all_drives.py
43
+ language: system
44
+ pass_filenames: false
45
+ files: ^src/mcp_gee_sweet/.*\.py$
@@ -43,6 +43,7 @@ Each entry below says what a module owns and the invariants a future edit could
43
43
  - **Two conversion mechanisms; don't conflate them.** Drive *native import conversion* uploads with the source mimeType and sets the target Workspace mimeType in metadata (`_CONVERT_MIME`: CSV/XLSX→Sheets, DOCX/MD/HTML→Docs, PPTX→Slides). It backs `upload_local_file(convert=)`, `upload_local_folder(convert=)`, `sync_folder(convert_markdown=)`, and `upload_file(convert_to_doc=)` (raw content, always a Doc; shares `_GOOGLE_DOC_MIME`). `docs/content.py`'s `create_doc_from_file` is different: it parses locally and rebuilds via Docs API requests.
44
44
  - **Converted `.md` Docs** keep the `.md` name in Drive and are recognized on every later sync by a Drive `properties` marker stamped at creation through `_convert_properties` (by both `_sync_level` and `_upload_local_file(convert=True)`), regardless of the current call's flags. Values must fit Drive's 124-byte per-property cap: `_CONVERT_MARKDOWN_SOURCE_PROP` holds the raw name when it fits, else `_CONVERT_SOURCE_PROP` holds a `sha256:` digest (a digest-marked Doc stops matching if renamed; see `docs/known-limitations.md`). Classify through `_converted_md_source_name`/`_is_converted_md_entry`, recomputed from the resource each time; never cache the classification on a `drive_map` entry. There is no reverse conversion: a drive-only or Drive-edited converted Doc is a `conflict` (message via `_NO_REVERSE_CONVERSION_CLAUSE`), except `direction='upload'`, which reports a plain `skip`.
45
45
  - **Name collisions** in `drive_map` (any duplicate name, any type) go through the plan as a `"collision"` action: `conflict` under `dry_run`, a `failed` entry (`kind: "collision_fail"`) on execution. Never write to `failed` from the `drive_map`-building loop.
46
+ - **Local directories are created at the first local write, never up front (#1012).** `download_file` validates `export_format` and fetches an export before its mkdir. `download_folder` creates `local_path` only once it has a file to download. `sync_folder` creates it at a file download (`_run_one`) or a Drive-only subfolder's creation, so a `dry_run`, an upload-only sync, or a call that fails before writing leaves nothing; a missing `local_path` plans as empty. A media download needs its directory before it streams, so a failed one keeps it. Never add an `rmdir` rollback: it can race another call writing into the same new directory (PR #1023).
46
47
  - **`dry_run`** never reports failures and never hashes. It leaves `uploaded`/`downloaded`/`skipped`/`conflicts`/`failed` empty; `actions` alone is the complete preview (duplicating it tripped the response cap).
47
48
  - **`modifiedTime` stamping.** Every upload stamps `modifiedTime` from the local mtime in `create()`. A converted upload also needs a metadata-only `update()` afterward, because Drive's asynchronous conversion overwrites the create-time value (the doubled latency is accepted). If that restamp fails after `create()` succeeded, report the created file's ID via `_restamp_failure_result` (`{"error", "fileId"}`); `_sync_level`, `upload_local_file`, and `upload_local_folder` must carry `fileId` into `failed` and treat that result as cache-dirtying. `_upload_local_file` catches broadly and returns `{"error": ...}`, since the tool has no try/except of its own. For a converted `.md` Doc the restamp is cosmetic, not load-bearing: the Docs backend updates `modifiedTime` asynchronously, minutes behind, and can overwrite it (#814).
48
49
  - **`sync_folder` comparison** for a name on both sides: mtime diff first, against `_SYNC_MTIME_TOLERANCE`. Within tolerance but a different `size` (non-Workspace files only) is a `conflict` for every direction: recency is unknown, so never auto-transfer. `use_checksum=True` hashes every both-sides pair that has a Drive `md5Checksum` (after the plan loop, concurrently, capped by `_SYNC_HASH_CONCURRENCY`, filling placeholder steps from `_mtime_step`): a match is in sync, a within-tolerance mismatch is a `conflict` (`_diverged_same_mtime_step`), and a mismatch outside tolerance falls through to the mtime logic. Under `dry_run` those reasons end in `(checksum not verified in dry_run)`. A local file that can't be read or stat'd becomes a `"local_read_fail"` plan action, never an uncaught raise. Workspace and converted files have no `md5Checksum`/`size` and compare by mtime alone, except a converted `.md` Doc carrying `_CONVERTED_MD_SOURCE_MTIME_PROP` (next bullet).
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: mcp-gee-sweet
3
- Version: 0.9.2.dev349
3
+ Version: 0.9.2.dev361
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
@@ -0,0 +1,39 @@
1
+ # Decision: Impact × Reach Triage and a Follow-Up Chain Stop Rule
2
+
3
+ **Date:** 2026-10-13
4
+ **Snapshot commit:** branch `develop`
5
+ **Issue:** #1024. Thresholds approved by the maintainer as written on 2026-10-13.
6
+
7
+ ## Background
8
+
9
+ v0.9.2 collected 178 issues. A one-pass hand classification of their text by impact × reach (reach is estimated; there's no usage telemetry yet, see #646) found that about 15 changed behavior a typical user would hit or be badly hurt by, and about 15 more were real but narrow. Most of the rest were rare-input defects, error-message polish, internal hygiene, tests, or team process.
10
+
11
+ | Impact ↓ / Reach → | Common | Narrow | Rare / latent |
12
+ |---|---|---|---|
13
+ | Severe (data loss, exposure, hang, unusable) | 4 | 6 | 5 |
14
+ | Silently wrong output | 5 | 15 | 8 |
15
+ | Loud failure / message quality | 1 | 10 | 7 |
16
+
17
+ Plus 42 hygiene, 24 tests/QA, 19 process/CI, 15 features, 7 docs, and 10 bundle tickets.
18
+
19
+ The high-yield tickets clustered at seams: auth or install (#811, #833, #872), the new Gmail domain (#790–#793), a non-default deployment shape such as a service account or a Shared Drive (#689, #989), and a dependency upgrade (#872). Almost none came from repeated review of parsing or formatting code.
20
+
21
+ The long tail came from two places the existing rules didn't cover:
22
+
23
+ 1. **Follow-up chains.** One real defect, then each fix's review files the next, smaller edge case: #690 → #724 → #836 → #874 → #887 → #990 → #1012 (7 tickets over 5 weeks); #439 → #713 → #714 → #715 → #727; #747 → #757 → #926 → #954 → #955; #936 → #938 → #951 → #969 → #984 → #977. Every follow-up cleared a `qa.md` step 3 bar as written. Nothing asked whether an area had had enough.
24
+ 2. **Paths other than `from-review`.** `kai.md`'s in-flight label rule (#995) covered only `from-review` tickets. The 2026-09-11 backlog triage moved "everything fixing/hardening/testing already-shipped functionality" into this release in one step, which is where most of the hygiene tickets came from.
25
+
26
+ ## Decisions
27
+
28
+ 1. **One rubric on every path into a version.** `kai.md` "Version labels" places a defect or hygiene ticket by its impact × reach cell, whether it arrives through backlog triage, `/retro`, a Dev follow-up, or a review finding. It replaces the #995 two-condition rule: condition (a) survives as "a regression since the last stable tag", and condition (b), an observed failure, now lifts only a `wrong/narrow` ticket into the in-flight release. Features, docs, test/QA, and process tickets aren't placed by it.
29
+ 2. **Hygiene never gets a release label of its own.** It's folded into a ticket that already touches the file, or into a timeboxed bundle no release waits on.
30
+ 3. **Chain stop rule.** After a root defect's second follow-up in its function family, later tickets in that family go to the next version unless severe or observed. The alternative is declaring the area done and recording its residual edges in `docs/known-limitations.md` (#692's precedent). `qa.md` step 3 and `dev.md` step 6 make the filer state the chain position so Kai can apply it.
31
+ 4. **Seam questions.** `qa.md` step 4 asks four seam questions each pass (install/auth, new domain or tool, service account and Shared Drive, dependency move) and records the answers in the round's comment. `dev.md` step 2 asks the Dev the same questions before the PR.
32
+ 5. **Measured.** `decision-review-finding-ticket-bar.md` decision 11 extends its 2026-10-18 checkpoint to count `from-review` tickets by cell.
33
+
34
+ ## Prompt-QA notes (Bob, 2026-10-13)
35
+
36
+ Two gaps in the approved text were filled in the role files and flagged for the maintainer on the PR rather than decided silently:
37
+
38
+ - The approved rubric doesn't place `loud/common`. `kai.md` sends it to the user unless it breaks install, auth, or first run.
39
+ - "Narrow" reach names deployment shape (service account, Shared Drive, SSE) as an example. The issue cites those as seams, not as a reach class, so this is an interpretation.
@@ -23,13 +23,14 @@ A PR's code review or live QA turns up findings. Each one can go back to the Dev
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
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. 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.
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, 10, and 11 (counts by impact × reach cell): 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
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.
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. Superseded by decision 11's rubric.
33
+ 11. **Version labels by impact × reach, measured by cell (2026-10-13, #1024).** Decision 10's two conditions are folded into `kai.md`'s impact × reach rubric, which applies to every path into a version, not only `from-review` (`decision-impact-reach-triage.md`). Decision 5's 2026-10-18 checkpoint also classifies each `from-review` ticket created since 2026-10-04 by its cell (`severe`/`wrong`/`loud`/`hygiene` × `common`/`narrow`/`rare`) and reports the count per cell, not only the overall rate. Tickets filed before the rubric don't name a cell, so classify those by hand from the issue text, the way #1024's table was built.
33
34
 
34
35
  ## History (moved from `qa.md`'s Retro section, 2026-10-04)
35
36
 
@@ -53,3 +54,4 @@ A PR's code review or live QA turns up findings. Each one can go back to the Dev
53
54
  - **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.
54
55
  - **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
56
  - **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.
57
+ - **A stale process doc isn't behavior impact (2026-10-13, PR #1006).** Kit filed #1014 under bar 2: CLAUDE.md's `transfer.py` invariant still said every quota site renders `_SA_QUOTA_ERROR`, which the PR had made false. CLAUDE.md wasn't in the diff, and edits to it go through Bob's prompt-QA gate, so "outside the diff" fit. The value test didn't. Stale agent guidance changes no tool output, and the argued path (an agent "fixing" a site back) was speculative. Kai caught it after merge, and the finding line was corrected to `dropped`. The user kept #1014 open for other reasons: it now carries the GHSA-hx2f `_safe_local_dest` CLAUDE.md rule. Command decision: bar 2's value test in `qa.md` step 3 now names this case, limited to the Bob-gated files (root `CLAUDE.md`, `.claude/team-roles/*.md`, `.claude/commands/*.md`) so the drop can't stretch to user-facing or generated docs (Bob's prompt-QA round 1). Open question, not decided here: a PR that makes a CLAUDE.md invariant false has no bar that tracks the fix.
@@ -31,3 +31,4 @@ Point-in-time records of specific decisions — context, alternatives, and reaso
31
31
  | [Review-Finding Ticket Bar](decision-review-finding-ticket-bar.md) | 2026-10-04 | decided | Review findings default to send-back; a ticket needs a named bar in a required finding list (`qa.md` step 3), checked by Kai at merge (`merge-pr.md` step 2); bar 2 restated as "outside this PR's diff"; `from-review` label for measurement |
32
32
  | [Tool Error Visibility Under mcp 2.3](decision-tool-error-visibility.md) | 2026-10-04 | decided | mcp 2.3 withholds any non-`ToolError` exception text; `_timed` re-raises an allowlist (auth, `HttpError`, `GoogleAuthError`, network, `ValueError`, `OSError`) as `ToolError` and leaves real crashes masked; same for `spreadsheet://{id}/info` via `ResourceError`; `mcp>=2.3.0,<3` with the lock bumped so CI matches PyPI installs (#872) |
33
33
  | [Role-File History](role-file-history.md) | 2026-10-08 | record | Incident history behind the rules in `dev.md`, `qa.md`, `aziz.md`, `kai.md`, and `bob.md`, moved there verbatim by #849 so each role file keeps only its rules |
34
+ | [Impact × Reach Triage](decision-impact-reach-triage.md) | 2026-10-13 | decided | One impact × reach rubric places every defect/hygiene ticket in a version, on every triage path (replaces #995's from-review-only rule); hygiene never gets its own release label; a follow-up chain stops gating the release after its second follow-up; QA and Dev answer four seam questions each pass (#1024) |
@@ -282,6 +282,10 @@ PR #1000 (#990, lane B) originally changed only `response_limits.py`. Its round
282
282
 
283
283
  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.
284
284
 
285
+ ### Re-read this file when a `develop` merge changes it mid-pass
286
+
287
+ PR #1006 (#989, lane B) took seven rounds, and `qa.md` changed under it twice. Kit read `qa.md` once, at session start, from a checkout whose step 8 had no CI wait. In round 3, Jay merged `develop` into the branch, bringing in #1008's new bar-2 boundary. Kit noticed the bar change in that merge's diff and re-triaged round 2's ticket lines: #1009 turned into a send-back. The CI wait already on `develop` went unnoticed, so rounds 5 and 7 applied `qa-approved` without waiting for CI. After round 5's label, Kai found the PR `CONFLICTING` with `develop` (PR #1011 had merged, touching the same quota sites), with only CodeQL run on the head and no `Lint and test`. Step 1 now diffs the process files after a `develop` merge and re-reads what changed, and step 6 does the same when its mid-pass rebase brings in a `develop` merge (Bob's prompt-QA round 1: step 1 alone didn't cover a merge pushed during a pass). Step 8 checks `mergeable` (re-reading once on `UNKNOWN`) before retriggering an absent `Lint and test`, since a conflicting PR never runs it.
288
+
285
289
  ## `aziz.md`
286
290
 
287
291
  ### Server slots during a release pass
@@ -416,6 +420,14 @@ Friction Kai typically hits during coordination, and where it goes — see `/ret
416
420
 
417
421
  - **Bulk-editing via `gh` in a loop: never `for x in $VAR` with a space-separated string in zsh.** 2026-09-11, the same triage pass: built a space-separated issue-number list in a shell variable, then looped `for n in $V091; do gh issue edit $n ...; done`. Zsh doesn't word-split an unquoted parameter expansion by default (unlike bash) — the loop ran exactly once with `$n` bound to the *entire string*, and `gh issue edit` failed with "invalid issue format" naming the whole blob. Silent-ish failure mode: it errors instead of hanging, but it's easy to misread as "one bad issue number" rather than "the loop never actually iterated." Fix: list the literal numbers directly in the `for` loop (`for n in 131 132 134 ...; do`) rather than through an intermediate variable, or use a bash array (`arr=(131 132 134); for n in "${arr[@]}"`) if the list needs to be built programmatically.
418
422
 
423
+ ### PR #1016 needed five agents: one QA reviewer, one fix round, code-doc hunks ride with the code
424
+
425
+ - **PR #1016 (#860, Joy) took five agents and two avoidable rounds.** Here is the timeline from 2026-10-13. Aziz did a code read at 05:29, and Joy fixed it. Bob requested `CLAUDE.md` wording changes at 20:16. Kit sent the PR back at 20:18 over a semantic conflict with #1006, which had merged at 20:01. Joy's fix at 20:21 addressed only Kit's finding. Kit approved at 20:22 while Bob's request was still open. Kai then pinged Bob, who had already reviewed, and relayed Bob's points to Joy. Joy did a second fix round, Bob re-checked, and the PR merged. The user called it "inefficient at best" and approved four changes:
426
+ 1. `dev.md` and `joy.md`: before pushing a fix round, answer every open review comment on the PR, not just the one that woke you.
427
+ 2. `qa.md` step 8: before `qa-approved`, check other reviewers' comments; an unaddressed change request is a send-back.
428
+ 3. `joy.md` and `kai.md` step 4: a non-lane code PR gets exactly one QA reviewer (Sky or Kit), assigned by Kai.
429
+ 4. `merge-pr.md` step 2, `bob.md` step 2, `qa.md`, `dev.md`, `kai.md`: a code-doc hunk (a three-part definition in `merge-pr.md` step 2: inside a per-module `## Architecture` entry, every sentence about this PR's `src/` code, no agent-process instruction touched) needs only `qa-approved`. QA checks it against the code and lists each hunk as a `code-doc hunk:` line in its approval, so the classification is written down, not judged at merge time (Bob's round 1 on PR #1021). This is a deliberate, user-approved narrowing of the 2026-07-21 "no fast path" rule. Every other prompt-file change still goes through Bob. Bob's #1016 findings were factual claims about the code (a false sentence, two missing invariants), which QA can check against that code.
430
+
419
431
  ## `bob.md`
420
432
 
421
433
  ### Why this role exists
@@ -0,0 +1,86 @@
1
+ # Design: Backup Copy Before Replacing a Doc's Content
2
+
3
+ **Status:** Implemented. Issue #878. Live-verified against real Drive/Docs API calls via scratch
4
+ scripts per `CLAUDE.md`'s "Verify a ticket's API premise live" convention (2026-10-12).
5
+
6
+ ## Problem
7
+
8
+ `write_doc_content` and `update_doc_from_file` share `_replace_doc_content`
9
+ (`tools/docs/content.py`). It clears the doc in its own `batchUpdate` and then writes the new
10
+ content in later calls. The clear has to be separate because of the same-batch `insertText`
11
+ style-inheritance quirk. If anything after the clear fails (the content `batchUpdate`, a non-image
12
+ retry failure, `fill_tables`, anchor resolution), the original content is already gone, and the
13
+ error didn't say so.
14
+
15
+ ## The decision that didn't survive measurement
16
+
17
+ The issue was triaged on 2026-10-04 to record the doc's current Drive revision ID before the clear,
18
+ and to name it in the error for recovery with `export_revision`. Restoring the old content by
19
+ re-inserting a snapshot was ruled out, because formatting, images, and tables don't round-trip.
20
+
21
+ Measured live before implementing:
22
+
23
+ | Case | Revisions before the clear | Right after the clear | `revisions.get` on the recorded ID |
24
+ |---|---|---|---|
25
+ | Doc written 5 s before the clear | `1, 3` (3 exported the original text) | `1, 4` | 404 at +0 s, +30 s, +2, +5, +8 min |
26
+ | Doc idle for 7 min before the clear | `1, 3` (same) | `1, 4` | 404 at +0 s, +30 s, +2, +5, +8 min |
27
+
28
+ Docs merges the revision that was current before the clear into the clear's own new revision
29
+ straight away, however old it is. The pre-clear content is no longer reachable through the
30
+ revisions API, so an error naming that revision would point at a 404. This matches the merge
31
+ behavior `doc-revision-export.md` recorded, except that here it happened immediately rather than
32
+ after a later edit.
33
+
34
+ ## Decision (maintainer, 2026-10-12)
35
+
36
+ Copy the doc with Drive (`files.copy`) before the clear. A copy is the real document, so formatting,
37
+ images, and tables survive, which a re-inserted snapshot wouldn't.
38
+
39
+ - **Only a doc with content is copied.** An empty doc (`endIndex <= 2`) has nothing to lose and
40
+ isn't cleared.
41
+ - **Name and location.** `"<title> (backup before replace)"`. With no `parents` in the request, the
42
+ copy inherits the source's parents, so it sits next to the doc.
43
+ - **Success:** the copy is removed with `markdown_export._discard_temp_doc`, the same helper
44
+ `export_revision`'s temporary Doc uses. It deletes the copy, or trashes it when `canDelete` is
45
+ false (a Content manager on a Shared Drive, #876), and retries on a 5xx or 429. A failed removal
46
+ doesn't fail the call. The result gets a `warning` naming the copy.
47
+ - **Failure after the clear:** the copy is kept. The result is `{"error", "docId", "backupId"}`
48
+ (plus `images` when there are any), and the error names the copy.
49
+ - **The clear answered with a 4xx (429 included):** the API ran nothing, so the doc is unchanged.
50
+ The copy is removed and the error says so. Anything else from the clear (a 5xx, a timeout, a
51
+ transport error) doesn't say whether it landed, so the copy is kept and the error says the
52
+ content *may have been* cleared. QA reproduced a 503 returned after a clear that had run (PR
53
+ #1017 round 1), which an earlier version treated as rejected, deleting the only copy.
54
+ - **The doc is re-read after the copy.** The copy takes seconds, and a concurrent edit meanwhile
55
+ would otherwise survive the clear (the doc grew) or make it fail (it shrank). A failed re-read
56
+ stops before the clear: the doc is unchanged and the copy is removed. A doc emptied meanwhile
57
+ isn't cleared, and a later failure still names the copy.
58
+ - **The copy fails:** nothing is changed, and an error is returned. A 429 is retried (up to 3 times,
59
+ with backoff), since Drive ran nothing. A 5xx isn't, since the copy may already exist and a
60
+ retry would make a second one. For a failure other than a 4xx, the error names the copy that
61
+ may have been created, so the caller can find and remove it. The exception is
62
+ `storageQuotaExceeded`. A service account can't own a copy of a user-owned doc, and
63
+ `write_doc_content` is the documented way for a service account to write into such a doc
64
+ (`known-limitations.md`'s quota section). That case replaces without a backup and logs a
65
+ warning. If the replace then fails, the error says no backup could be made. Whether other
66
+ permission or limit failures should also fall back to no backup is #1018.
67
+ - **Cancellation:** the copy is created inside a shielded scope, so its ID is always recorded (the
68
+ PR #877 rule). The scope is bounded by `_BACKUP_COPY_TIMEOUT` (60 s, all attempts together), per
69
+ `CLAUDE.md`'s rule that a cancel waits for shielded work; a timeout is reported like a 5xx.
70
+ Once the copy exists, a cancellation keeps it and logs a warning with its ID, since the doc may
71
+ already be cleared and the call has no result left to report it in.
72
+ - **On success,** the copy's removal and the `webViewLink` lookup run together.
73
+
74
+ ## Cost
75
+
76
+ Measured on a 20 KB doc: `files.copy` 2.5–4.0 s, delete 0.8–1.3 s, so about 3.5–5 s added to every
77
+ replace of a non-empty doc. The maintainer accepted this over options with no recovery path.
78
+
79
+ ## Options rejected
80
+
81
+ - **Name the pre-clear revision in the error.** The revision is gone at once (table above).
82
+ - **Snapshot and re-insert on failure.** Formatting, images, and tables don't round-trip (2026-10-04
83
+ triage).
84
+ - **Error message only, no recovery.** A silently emptied doc is real data loss (2026-10-04 triage).
85
+ - **Backup behind an opt-out parameter.** Considered on 2026-10-12. Not chosen: the default would
86
+ have been on anyway, and the latency cost is accepted.
@@ -16,3 +16,4 @@ These are more granular than the [decision records](../decisions/index.md), whic
16
16
  | [Re-authorizing OAuth from the Failing Tool Call](oauth-reauthorize-from-tool-call.md) | 2026-10-06 | #873/#906: a revoked or missing token offers the consent link from the failing call (URL elicitation, or the link in the `ToolError`), detected at `thread_http`'s transport so tools that catch errors are covered, adopted in place on every connection |
17
17
  | [Local-File Access Policy](local-file-access-policy.md) | 2026-10-10 | #796: `LOCAL_FILE_ACCESS=full\|roots\|off` resolved at import from argv (plus an HTTP-request tripwire for launches argv can't see), one `check_read`/`check_write` at each choke point and per entry in folder walks, an identity-based (`samefile`) deny-list of the server's own credential/config/cache/log files, `@tool(local_only=True)` unregistering nine tools in `off` mode, mode and roots reported in `server://auth-status` and the refusal |
18
18
  | [Google Doc Revisions as Markdown](doc-revision-export.md) | 2026-10-11 | #959: `export_revision` on a Doc via DOCX export → temporary Doc → `get_doc_as_markdown`'s own converter (Drive's Markdown and HTML exports measured lossy), heading links and image URLs rewritten so two exports diff cleanly, shielded temp-Doc cleanup |
19
+ | [Backup Copy Before Replacing a Doc's Content](doc-replace-backup.md) | 2026-10-12 | #878: `write_doc_content`/`update_doc_from_file` copy a non-empty doc with `files.copy` before the clear, delete it on success and name it as `backupId` on failure; the planned pre-clear revision ID was measured to 404 right after the clear |
@@ -162,6 +162,28 @@ Workaround for a *scratch* fixture sheet (never do this to a sheet with real dat
162
162
 
163
163
  ---
164
164
 
165
+ ## Forcing a real `storageQuotaExceeded` (service account only)
166
+
167
+ Several quota-error test cases say a quota error can't be forced live, so they verify only by unit test. That's true for a user identity, since the QA account's My Drive isn't full. A service account's error can be forced: it has no My Drive storage, so creating a file with no `parents` returns a real 403 `storageQuotaExceeded`. Run it from a fresh interpreter in the checkout under test (no MCP server involved), and pass the caught exception to the code under test:
168
+
169
+ ```
170
+ uv run python -I -c "
171
+ import mcp_gee_sweet
172
+ from mcp_gee_sweet import auth
173
+ from googleapiclient.discovery import build
174
+ d = build('drive', 'v3', credentials=auth._service_account_creds(), cache_discovery=False)
175
+ try:
176
+ r = d.files().create(body={'name': 'qa-sa-quota-probe', 'mimeType': 'application/vnd.google-apps.document'}, fields='id').execute()
177
+ print('UNEXPECTED: created'); d.files().delete(fileId=r['id']).execute()
178
+ except Exception as e:
179
+ print(type(e).__name__, e.resp.status) # then feed e to the helper under test
180
+ "
181
+ ```
182
+
183
+ This needs service-account credentials in `src/mcp_gee_sweet/.env` (`CREDENTIALS_CONFIG` or `SERVICE_ACCOUNT_PATH`). Nothing is created, so there's no teardown. Used for TC-D291 in PR #1006.
184
+
185
+ ---
186
+
165
187
  ## Missing `docs/qa/.env` in a role worktree
166
188
 
167
189
  `docs/qa/.env` is gitignored, so it doesn't exist by default in a freshly-provisioned `.claude/worktrees/<name>` slot — confirmed empty/absent across every role worktree and the main checkout, 2026-07-19, while doing a scoped QA pass from Kit's own role process (`.claude/team-roles/qa.md` step 4), not the full conductor-prompt flow this file otherwise documents. That flow's own fixture-check step (below) would just stop and ask the user to run `setup.md`, but a scoped single-PR QA pass doesn't need the whole `.env` — only the one fixture ID relevant to the PR under review.