mcp-gee-sweet 0.9.2.dev338__tar.gz → 0.9.2.dev349__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.
- mcp_gee_sweet-0.9.2.dev349/.claude/commands/security-advisory.md +27 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/team-roles/dev.md +2 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/CLAUDE.md +2 -1
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/PKG-INFO +1 -1
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-converted-doc-change-detection.md +24 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/index.md +1 -1
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/role-file-history.md +8 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/design/doc-revision-export.md +15 -4
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/known-limitations.md +43 -20
- mcp_gee_sweet-0.9.2.dev349/docs/qa/runs/v0.9.1.md +151 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/tests/drive_files.md +1 -1
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/tests/drive_transfer.md +162 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/roadmap.md +8 -4
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/tools.md +1 -1
- mcp_gee_sweet-0.9.2.dev349/scripts/qa_revision_temp_doc_parent.py +116 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/docs/content.py +3 -3
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/docs/images.py +2 -2
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/docs/markdown_export.py +1 -1
- mcp_gee_sweet-0.9.2.dev349/src/mcp_gee_sweet/tools/drive/__init__.py +46 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/drive/files.py +4 -4
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/drive/transfer.py +402 -77
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/http_errors.py +4 -3
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/drive/test_files.py +19 -5
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/drive/test_transfer.py +538 -20
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/fakes.py +12 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_docs_content.py +13 -2
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_docs_images.py +12 -2
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_docs_revision_export.py +26 -5
- mcp_gee_sweet-0.9.2.dev338/src/mcp_gee_sweet/tools/drive/__init__.py +0 -16
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/commands/cleanup-worktrees.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/commands/merge-pr.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/commands/notify-kai.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/commands/notify-partner.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/commands/orchestrator.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/commands/prep-for-pr.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/commands/qa-kickoff.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/commands/release.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/commands/retro.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/commands/roadmap-status.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/commands/start-worktree.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/commands/team-member.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/commands/verify-pr.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/settings.json +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/team-roles/amy.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/team-roles/aziz.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/team-roles/bob.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/team-roles/joy.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/team-roles/kai.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.claude/team-roles/qa.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.dockerignore +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.github/dependabot.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.github/workflows/ci.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.github/workflows/docs.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.github/workflows/publish-dev.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.github/workflows/release.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.gitignore +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.pre-commit-config.yaml +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/.python-version +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/CHANGELOG.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/CODE_OF_CONDUCT.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/CONTRIBUTING.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/Dockerfile +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/LICENSE +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/Makefile +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/README.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/SECURITY.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docker-compose.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/assets/logo.png +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/auth.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/client-setup.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/configuration.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-async-tool-execution.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-auth-status-limitation-categories.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-cache-invalidation.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-chart-theming.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-comments-first-class.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-composite-tools.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-condition-type-docstring-generation.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-dev-team.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-docs-formatting.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-fork.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-gmail-domain.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-grid-data-size-cap.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-local-fs-test-harness.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-mcp-v2-resource-context-access.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-pillow-image-dependency.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-prompt-qa-role.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-publishing.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-release-docs-roles.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-repositioning.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-response-size-cap-generalization.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-response-size-cap-reevaluation-519.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-review-finding-ticket-bar.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-supports-all-drives-lint-check.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-sync-folder-recursion.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-testing.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/decision-tool-error-visibility.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/design/blockquote-representation.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/design/borderless-table-columns.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/design/doc-to-markdown.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/design/docs-ast-pipeline.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/design/effectiveformat-spike.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/design/heading-anchor-resolution.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/design/image-conversion.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/design/index.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/design/local-file-access-policy.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/design/markdown-support.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/design/module-history.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/design/oauth-reauthorize-from-tool-call.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/design/phase3-theme-system.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/design/sse-consent-off-event-loop.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/design.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/index.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/notes-read.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/README.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/fixtures/qa-fixture-pixel.png +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/fixtures/tc-d195-create-doc.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/fixtures/tc-d196-create-doc.html +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/fixtures/tc-d213-dollar-escape.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/fixtures/tc-d226-heading-table.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/fixtures/tc-doc102-image-conversion.html +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/fixtures/tc-doc103-image-conversion.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/fixtures/tc-doc104-nested-lists.html +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/fixtures/tc-doc105-nested-lists-gfm.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/fixtures/tc-doc106-nested-lists-4space.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/fixtures/tc-doc135-paragraph-boundary.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/fixtures/tc-doc136-interrupted-block-boundary.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/fixtures/tc-doc137-inline-hr-no-block-ancestor.html +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/fixtures/tc-doc138-nbsp-spacer-paragraph.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/fixtures/tc-doc141-mismatched-list-tags.html +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/fixtures/tc-doc142-heading-anchors.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/fixtures/tc-doc144-anchor-in-table-cell.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/fixtures/tc-doc145-anchor-on-first-element.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/fixtures.template.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/gmail-test-plan.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/operations.yaml +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/playwright_oauth.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/results/.gitkeep +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/results/2026-06-02.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/results/2026-06-14.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/results/2026-06-17.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/results/2026-06-18.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/results/2026-06-21-drive-discovery.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/results/2026-06-21-sheets-delete-clear.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/results/2026-06-28.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/results/2026-07-04-docs.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/results/2026-07-04-drive-smoke.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/results/2026-07-04-infra.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/results/2026-07-04-sheets_read.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/results/2026-07-04.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/results/2026-09-04.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/retro-v0.8.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/retro-v0.9.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/run.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/runs/README.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/runs/v0.8.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/runs/v0.8.1.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/runs/v0.9.0.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/setup.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/tests/calendar.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/tests/docs_content.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/tests/docs_layout.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/tests/docs_style.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/tests/docs_tables.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/tests/drive_activity.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/tests/drive_sharing.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/tests/gmail.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/tests/infra.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/tests/sheets_charts.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/tests/sheets_mgmt.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/tests/sheets_read.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/qa/tests/sheets_write.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/style-guide.md +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/mkdocs.yml +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/pyproject.toml +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/pyrightconfig.json +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/scripts/check_supports_all_drives.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/scripts/gen_tool_docs.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/scripts/lane_context_hook.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/scripts/oauth_setup.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/scripts/qa_cancel_insert_local_images.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/scripts/qa_gmail_fixtures.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/scripts/setup_team.sh +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/scripts/write_team_mcp_configs.sh +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/server.json +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/.env.template +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/auth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/cache.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/http_transport.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/reauth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/server.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/sse_shutdown.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/atomic_write.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/cache.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/calendar.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/concurrency.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/docs/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/docs/anchors.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/docs/ast.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/docs/ast_to_markdown.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/docs/comments.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/docs/doc_to_ast.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/docs/editing.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/docs/emitter.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/docs/html_parser.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/docs/indices.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/docs/layout.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/docs/named_ranges.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/docs/style.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/docs/tables.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/drive/activity.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/drive/sharing.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/gmail.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/mime_types.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/pagination.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/response_limits.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/sheets/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/sheets/data.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/sheets/helpers.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/src/mcp_gee_sweet/tools/sheets/structure.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/conftest.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/drive/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/drive/test_activity.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/drive/test_sharing.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/integration/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/integration/conftest.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/integration/test_local_fs_harness.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/sheets/__init__.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/sheets/test_data.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/sheets/test_helpers.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/sheets/test_structure.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_atomic_write.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_auth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_cache.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_calendar.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_check_supports_all_drives.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_concurrency.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_docs_anchors.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_docs_comments.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_docs_core.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_docs_editing.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_docs_indices.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_docs_layout.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_docs_markdown_export.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_docs_named_ranges.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_docs_style.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_docs_tables.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_gen_tool_docs.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_gmail.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_http_errors.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_lane_context_hook.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_mime_types.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_qa_gmail_fixtures.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_reauth.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_response_limits.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_server.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_server_json.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_sse_shutdown.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/tests/test_team_mcp_configs.py +0 -0
- {mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/uv.lock +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Run a vulnerability fix through a private GitHub security advisory, from the confirmed report to the published advisory. Kai owns the run and invokes this command; the other roles each have a section below. Every role that touches the fix reads this file, so whoever picks up the fork PR finds the rules here and doesn't need them passed along in a hand-off message.
|
|
2
|
+
|
|
3
|
+
Why this exists: the first advisory fix (2026-10) worked, but its rules lived only in Kai's messages. Each hand-off, and each `/clear`, meant the human had to paste them into the next session.
|
|
4
|
+
|
|
5
|
+
## Rules that hold for the whole run
|
|
6
|
+
|
|
7
|
+
1. **Nothing public until the advisory is published.** No public issue, PR, PR comment, commit to `develop`, roadmap entry, memory pointer in a public file, or label that describes the vulnerability. This includes indirect tells: a public ticket held because it overlaps the fix gets a neutral hold comment ("held, overlaps in-flight work, Kai will re-RFD"), never the reason. Discussion goes on the private fork's PR or in the advisory's own comments.
|
|
8
|
+
2. **The work lives on the advisory's private fork** (`<owner>/<repo>-ghsa-xxxx-xxxx-xxxx`, created from the advisory page with "Start a temporary private fork"). Each role worktree adds it as a remote named `ghsa` (`git remote add ghsa https://github.com/<owner>/<repo>-ghsa-…git`). The fix branch keeps the normal naming (`fix/<dev>/ghsa-<short-id>`). **Dev's and QA's pushes in this run, including QA's Result-entry pushes and any step 7 backport commits, go to `ghsa`, never `origin`.** The only pushes to `origin` are Kai's release steps in step 7, which come after the human's merge (rule 6). Wherever a role file says `origin` (e.g. `qa.md` steps 1, 6, 7, 8), read `ghsa`.
|
|
9
|
+
3. **CI doesn't run on the fork.** Dev and QA each run `uv lock --check`, `uv run ruff check .`, `uv run ruff format --check .`, and `uv run python -m pytest` locally, and record the results (pytest pass/skip counts included) in the PR description or QA review. That replaces the CI check, including `qa.md` step 8's CI wait.
|
|
10
|
+
4. **QA routing is by explicit hand-off, not branch name.** `qa.md`'s partner-PR lookup runs `gh pr list` against the public repo, so it never finds a fork PR. Kai (or the Dev) names the fork PR by its full URL, never a bare `#<n>` (fork PR numbers overlap the public repo's), and points at this file. The QA session still needs its usual go-ahead (`qa.md`).
|
|
11
|
+
5. **The verdict goes on the fork PR, as a review.** GitHub forbids plain comments on an advisory's temporary private fork: `gh pr comment` fails with "This action is forbidden on workspace repositories" (confirmed 2026-10-03). Use `gh pr review <n> --repo <fork> --comment --body-file <file>` for both send-backs and the approval, with `qa.md`'s first line (`## QA round <N> (<Name>) @ <short-sha>: sent back` or `: approved`) and, on an approval, the cases run. `--approve` won't work either, because every team PR is authored by the same GitHub account. The fork has no labels, so no `qa-approved` is applied, and never label or comment on a public PR. Then message Kai (on a pass) or the Dev (on a send-back) directly with `SendMessage`, giving the fork PR's full URL. Don't run `/notify-kai`: it's scoped to the `qa-approved` label, which this run never applies.
|
|
12
|
+
6. **Only the human merges.** The fork PR is merged from the advisory page ("Merge pull request"), not with `gh pr merge` and not by Kai. GitHub merges it into the public default branch right away, *before* the advisory is published: from that moment the fix commit and its message are public. Keep the window between merge and publication as short as possible (steps 6–8 below in one sitting), and keep the commit message and test comments factual, describing the defect without a step-by-step exploit.
|
|
13
|
+
|
|
14
|
+
## Steps
|
|
15
|
+
|
|
16
|
+
1. **Kai — set up.** After the human confirms the report: create the private fork from the advisory page, set the advisory's affected range, and note the CWE. Pick the Dev and QA lane (the lane whose open work overlaps the fix least). Put any overlapping public tickets on a neutral hold (rule 1).
|
|
17
|
+
2. **Kai — hand off to Dev.** Send the Dev the fork URL, the advisory ID, and "follow `.claude/commands/security-advisory.md`". Nothing else needs restating.
|
|
18
|
+
3. **Dev — fix.** Normal `dev.md` flow with these changes: branch from the fork's default branch, push to `ghsa` (rule 2), open the PR against the fork (`gh pr create --repo <fork>`), run the local checks (rule 3), and add a QA test case to `docs/qa/tests/` in the same PR, as usual. Then wake QA with the fork PR's full URL (rule 4).
|
|
19
|
+
4. **QA — verify.** Normal `qa.md` pass, with these changes. `qa.md`'s step 1 reset is two commands: `git fetch ghsa <branch>`, then `git reset --hard FETCH_HEAD`. `qa.md`'s step 4 includes a live probe that reproduces the original report against the fixed code. Every push goes to `ghsa` (rule 2), and rule 3's local checks replace the CI wait. Clean up every probe file in Drive and on disk afterwards. Findings go back to the Dev on the fork PR, same bar as any PR. Verdict and hand-off: rule 5.
|
|
20
|
+
5. **Kai — pre-merge check.** Confirm the fork PR has QA's approval review, the local check results, and no conflict with current `develop`. Tell the human it's ready to merge from the advisory page.
|
|
21
|
+
6. **Human — merge** from the advisory page.
|
|
22
|
+
7. **Kai — confirm and release.** Confirm the merge landed on `develop`, lift the holds from step 1, and start a patch release (`/release`, with Aziz's sign-off). If `develop` holds unreleased work that shouldn't ship in a security patch, the patch is a **hotfix backport** instead:
|
|
23
|
+
- The Dev ports the fix by hand onto the last release tag, as branch `release/<x.y.z>-hotfix` on the fork, with base branch `release/<x.y.z>` pointing at the tag. The fork rejects a PR whose base isn't `develop`, and its compare API returns 404 (both confirmed 2026-10-03, during the GHSA-hx2f backport), so the backport is reviewed as a **branch, not a PR**: `git diff v<last>...FETCH_HEAD`. The Dev's wake to QA carries the branch, the base, and the differences from the `develop` version. The human pastes that message into the QA session in full, since a new session can't see it.
|
|
24
|
+
- QA reviews it in a **fresh session** (one review per session). Read `qa.md` and this file *before* resetting the worktree: the reset swaps every process file for the old tag's version. Live QA needs the server to run the branch's code, so reconnect after the reset, as usual. The test case's `**Result**` entries from `develop` don't carry over; record new ones on the branch. QA's verdict can't go on a PR, so it goes to Kai and the Dev by message, plus a `**Result**` commit pushed to the branch on `ghsa`.
|
|
25
|
+
- Aziz signs off the release, and Kai tags `v<x.y.z>` from the hotfix branch.
|
|
26
|
+
8. **Kai — publish.** After the release is on PyPI, set the advisory's patched version and ask the human to publish it (and request a CVE if wanted). Any QA-results PR or follow-up ticket that mentions the vulnerability can go public only after this.
|
|
27
|
+
9. **Follow-ups.** Codebase rules the fix implies (e.g. a new `CLAUDE.md` invariant) go through the normal flow after publication: a ticket, or Bob's gate for process files.
|
|
@@ -54,3 +54,5 @@ Friction Dev (Ash/Jay) typically hits after finishing a ticket, and where it goe
|
|
|
54
54
|
- **`uv lock` rewriting markers on packages you didn't touch means your local `uv` differs from the one that wrote the lock** (PR #877). Don't commit that. Re-lock with the current release without changing the installed one: `uvx --from uv@latest uv lock`. That may bump the lockfile's `revision =` header (3 → 5 with 0.12.23, checked 2026-10-04); that's expected, and older `uv` still reads it. Only marker changes on unrelated packages are the problem. If that isn't possible, revert `uv.lock`, add only the project's own lines (its `dependencies` and `requires-dist` entries) by hand, and confirm with `uv lock --check`.
|
|
55
55
|
- **A docstring's "same mechanism as X" isn't proof the paths share a fix.** When a fix adds a marker, flag, or stamped property so one code path recognizes an artifact, grep for every function whose docstring or comments claim equivalence and verify each one (PR #414).
|
|
56
56
|
- **Recognizing an artifact this tool already created must depend on the artifact's own persisted state, never on the current call's creation flag.** Only creating a *new* one should require the flag (PR #414: a resync that omitted `convert_markdown=True` duplicated the Doc).
|
|
57
|
+
- **Check a user-facing message against every case that reaches it.** When you add or reword a message chosen by a branch (identity, destination, mode), list the combinations that reach each branch and read the text as each one. Advice that's wrong for one of them ("use a Shared Drive" to an account already on a full one) is a send-back. Describe a branch in docs by the same predicate the code tests, not its most common member ("a user identity", not "OAuth") (PR #1006, rounds 1, 4 and 6).
|
|
58
|
+
- **Before widening a fix into files outside the ticket's original scope, check open PRs touching those files**: `gh pr list --state open --json number,headRefName,files --jq '.[] | select(any(.files[]; .path == "<file>")) | "\(.number) \(.headRefName)"'`. If another lane is editing the same code, tell Kai (or the user) before you write it, so the two PRs agree on the shared piece instead of colliding at merge (PR #1006 vs. #1011).
|
|
@@ -46,7 +46,8 @@ Each entry below says what a module owns and the invariants a future edit could
|
|
|
46
46
|
- **`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
47
|
- **`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
48
|
- **`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).
|
|
49
|
-
- **Converted `.md` change detection (#814).** A converted `.md` Doc carrying `_CONVERTED_MD_SOURCE_MTIME_PROP` never consults `modifiedTime`. Its local side compares against that stamp, and its Drive side against revision history (`_converted_md_drive_state`/`_converted_md_step`, fetched after the plan loop, during `dry_run` too). A Drive edit to such a Doc is always a `conflict`, even when the local file changed too. A revision-read failure is a `"drive_read_fail"` plan action. Every converted-`.md` upload must stamp through `_converted_md_upload_properties` (source mtime + upload time; with `reupload=True` it also records the baseline revision, read before the `update()`, and clears the import revision). A Doc without the stamp (converted before #814) stays on the mtime path until its next re-upload
|
|
49
|
+
- **Converted `.md` change detection (#814).** A converted `.md` Doc carrying `_CONVERTED_MD_SOURCE_MTIME_PROP` never consults `modifiedTime`. Its local side compares against that stamp, and its Drive side against revision history (`_converted_md_drive_state`/`_converted_md_step`, fetched after the plan loop, during `dry_run` too). A Drive edit to such a Doc is always a `conflict`, even when the local file changed too, until a call names it in `sync_folder(resolve=)` (next bullet). A revision-read failure is a `"drive_read_fail"` plan action. Every converted-`.md` upload must stamp through `_converted_md_upload_properties` (source mtime + upload time; with `reupload=True` it also records the baseline revision, read before the `update()`, and clears the import revision). A Doc without the stamp (converted before #814) stays on the mtime path until its next re-upload or a `resolve='keep_drive'`.
|
|
50
|
+
- **`sync_folder(resolve=)` (#860)** turns a converted-`.md` `conflict` into `keep_drive` or `keep_local` without changing the Doc's file ID (`docs/decisions/decision-converted-doc-change-detection.md`). Eligible: a `conflict` on a convert_markdown Doc with a matching local `.md`, whichever detection reported it (pre-#814 Docs included). Every key is checked first against a read-only `dry_run` pass of the whole tree, because a real run executes each level before planning the next. Any ineligible key makes the whole call return `{"error": ...}` with nothing written, so `dry_run` must never write, not even an import revision. A key that turns ineligible by the real pass lands in `failed` and never falls back to its step's planned action. `keep_local` reuses the re-upload path. `keep_drive` records the latest revision as the import revision and stamps the *planned* local mtime, not a fresh stat. If Drive's latest revision moved since planning, it reports `conflict` and changes nothing.
|
|
50
51
|
- **`upload_local_folder`** routes each file through `_upload_local_file(skip_if_exists=False)` but keeps its own single bulk `list()` for `skip_if_exists` (name match; name plus target mimeType when `convert=True`), so existence is checked once. An unsupported extension under `convert` lands in `failed`, never uploads as-is.
|
|
51
52
|
- **`sync_folder(result_local_path=)`** is its response-cap bypass (`local_path` already means the sync directory). It's rejected with `ValueError` before any API call if it resolves inside `local_path`, where the manifest would be synced up. `enforce_response_size_cap(local_path_param=...)` names the right parameter in the cap error.
|
|
52
53
|
- `tools/drive/activity.py` — `list_file_activity` (Drive Activity API v2; requires `drive.activity.readonly` scope)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: mcp-gee-sweet
|
|
3
|
-
Version: 0.9.2.
|
|
3
|
+
Version: 0.9.2.dev349
|
|
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
|
|
@@ -67,6 +67,30 @@ For a Doc recognized as converted (`_is_converted_md_entry`), `_sync_level` deci
|
|
|
67
67
|
|
|
68
68
|
**The restamp stays.** For converted Docs it's now purely cosmetic: it keeps Drive's displayed "last modified" near the source mtime, and correctness no longer depends on it. The shared `_restamp_modified_time` helper from #435 / PR #817 is where the new property stamping goes. That helper's docstring currently says the restamp "makes the stamp stick", which this measurement contradicts, so #814 corrects it.
|
|
69
69
|
|
|
70
|
+
## Follow-up: resolving a conflict (#860, decided 2026-10-04)
|
|
71
|
+
|
|
72
|
+
Under the design above, a Drive-edited Doc stays a `conflict` on every sync, because only a new upload resets the Drive-side signal and the upload is refused while that signal says Drive changed. The only way out was replacing the Doc, which gives it a new file ID and loses its sharing, comments, and inbound links.
|
|
73
|
+
|
|
74
|
+
**Decision:** one per-name parameter, `sync_folder(resolve={name: mode})`, offering both options #860 listed:
|
|
75
|
+
|
|
76
|
+
- `keep_drive`: record the Doc's current latest revision as its import revision, and the local mtime as its source mtime. Nothing in Drive changes. This records the local file as matching the Doc, so it's only right once the local `.md` holds exactly the Doc's content, i.e. the caller copied the Drive edits in and the file had no edits of its own. The next local change then uploads as usual.
|
|
77
|
+
- `keep_local`: re-upload the local file in place over the Drive edit, keeping the file ID, through the existing re-upload path (`_converted_md_upload_properties(reupload=True)`). This is also the way out of a both-sides conflict: merge the Drive edits into the local file, then upload it. With `keep_drive` there, the local edits would never reach Drive while every sync read "in sync" (PR #1016 review, finding 1). The both-sides conflict reason recommends `keep_local` for that reason.
|
|
78
|
+
|
|
79
|
+
**Guards against a careless folder-wide call:**
|
|
80
|
+
|
|
81
|
+
- Every key must name a convert_markdown Doc with a matching local `.md` that the sync reports under `conflicts`, using the name as the result reports it. Otherwise the call returns an error and changes nothing. There is no folder-wide form.
|
|
82
|
+
- `dry_run=True` previews each one as a `keep_drive` or `keep_local` action.
|
|
83
|
+
|
|
84
|
+
**Implementation notes:**
|
|
85
|
+
|
|
86
|
+
- *Checked against a read-only pass.* "Changes nothing" can't be checked inside a real run: `_sync_level` executes each level before planning its subfolders, so a bad key under `sub/` would only surface after the levels above it had synced. When `resolve` is set, `sync_folder` first runs the whole tree as a `dry_run` and checks every key against it. A `dry_run` writes nothing, not even an import revision. A real call costs a second planning pass, which is acceptable for an explicit, rare call. A `dry_run` call *is* that pass.
|
|
87
|
+
- *State that moves between passes.* On the real pass, a key whose step is no longer an eligible conflict lands in `failed` and nothing is done for it, rather than the resolution applying to a situation the caller never saw. A Drive edit between the plan and the write leaves the name in `conflicts`, using the same "Drive moved since planning" guard the upload path already had.
|
|
88
|
+
- *`keep_drive` stamps the planned mtime, not a fresh one.* A local save landing between the plan and the write then still uploads on the next sync, instead of being absorbed into the baseline.
|
|
89
|
+
- *Legacy Docs included.* A Doc converted before #814 that reads as "Drive newer" is eligible too. `keep_drive` gives it the properties, which is the migration this doc's **Legacy Docs** paragraph left to the next re-upload. Such a Doc has no revision job, so when `resolve` names one, the plan reads its revisions separately. That gives both modes the same "Drive moved since planning" guard (PR #1016 review, finding 2).
|
|
90
|
+
- *`keep_local` is refused with `direction='download'`*, before any API call, because that direction never uploads.
|
|
91
|
+
|
|
92
|
+
#818 (other conversion types) can adopt the same parameter shape.
|
|
93
|
+
|
|
70
94
|
## Out of scope
|
|
71
95
|
|
|
72
96
|
- **Other conversion types.** CSV → Sheet (and likely PPTX → Slides) matched back through `export_format` compare `modifiedTime` the same way, and probably share both the race and the edit-lag. There, the race's failure mode is a spurious download of the export over the local source. This wasn't measured here and is tracked in #818 rather than widening #814.
|
|
@@ -27,7 +27,7 @@ Point-in-time records of specific decisions — context, alternatives, and reaso
|
|
|
27
27
|
| [Condition-Type Docstring Generation](decision-condition-type-docstring-generation.md) | 2026-09-15 | decided | `_CONDITION_SPECS` single source of truth for `add_data_validation`'s per-condition-type value count + docstring prose (#751); docstring generated at import time via explicit `__doc__` assignment before manual `tool()` application, since a computed value can't populate `__doc__` as a literal and decoration happens synchronously with `def` |
|
|
28
28
|
| [supportsAllDrives Lint Check](decision-supports-all-drives-lint-check.md) | 2026-09-22 | decided | AST-based pre-commit check (`scripts/check_supports_all_drives.py`) over a runtime service wrapper for the recurring `supportsAllDrives=True` omission foot-gun (#696/#687); method set confirmed live against the Drive v3 discovery doc, not assumed |
|
|
29
29
|
| [Gmail Domain](decision-gmail-domain.md) | 2026-09-21 | decided | First Gmail domain ship (#785): 11 primitives (read / send-draft / organize) on `gmail_service` + three Gmail scopes; OAuth-only for now; Calendar wiring as template; composites (find-unanswered, send-reminders) and permanent delete explicitly out of scope |
|
|
30
|
-
| [Converted-Doc Change Detection](decision-converted-doc-change-detection.md) | 2026-09-26 | decided | `convert_markdown` Docs stop using Drive's `modifiedTime` for change detection (#814): it lags Docs edits by minutes and its late update overwrites the post-create restamp. Local changes are compared against a source mtime stamped in `properties`, Drive edits through `revisions.list` against a recorded import revision; both-sides-changed becomes a conflict instead of a silent overwrite |
|
|
30
|
+
| [Converted-Doc Change Detection](decision-converted-doc-change-detection.md) | 2026-09-26 | decided | `convert_markdown` Docs stop using Drive's `modifiedTime` for change detection (#814): it lags Docs edits by minutes and its late update overwrites the post-create restamp. Local changes are compared against a source mtime stamped in `properties`, Drive edits through `revisions.list` against a recorded import revision; both-sides-changed becomes a conflict instead of a silent overwrite. Follow-up (#860): `sync_folder(resolve=...)` clears such a conflict per name, `keep_drive` or `keep_local`, keeping the file ID |
|
|
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 |
|
{mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/decisions/role-file-history.md
RENAMED
|
@@ -118,6 +118,14 @@ Friction Dev (Ash/Jay) typically hits after finishing a ticket, and where it goe
|
|
|
118
118
|
|
|
119
119
|
- **A ticket's ask can rest on an unverified assumption about an external API's capabilities.** Issue #404/PR #471: `tab_stops` on `style_doc_range` shipped fully before QA's live round caught `HttpError 400 "Unallowed field: tabStops"` — the field was read-only per its own discovery-schema description. See `CLAUDE.md`'s "Verify a ticket's API premise live before implementing, not after" note for the operative rule — no separate incident detail needed here.
|
|
120
120
|
|
|
121
|
+
### Check a user-facing message against every case that reaches it
|
|
122
|
+
|
|
123
|
+
- **Check a user-facing message against every case that reaches it.** PR #1006 (#989, #1009) took six QA rounds, and three of the send-backs were wording that was right for the common case and wrong for another case reaching the same text. Round 1: the docs said "under OAuth" while the code branched on `is_service_account_identity`, which also routes ADC with user credentials to My Drive root. Round 4: the new user-identity quota message said "this account's storage is full", but a user writing to a Shared Drive whose pooled organization storage is full reaches it too. Round 6: `_SA_QUOTA_ERROR` told a service account already on a (full) Shared Drive to "use a Shared Drive destination", and an ADC-resolved service identity to "use OAuth or ADC". Each was a one-line fix QA had to find, one round at a time. Enumerating identity × destination once, before the first push, would have caught all three.
|
|
124
|
+
|
|
125
|
+
### Before widening a fix into files outside the ticket's original scope, check open PRs touching those files
|
|
126
|
+
|
|
127
|
+
- **Before widening a fix into files outside the ticket's original scope, check open PRs touching those files.** PR #1006, round 3: #1008's bar-2 rule pulled #1009 into the PR, and the fix grew to all 13 quota-error sites across `transfer.py`, `files.py`, `docs/content.py` and `docs/images.py`. PR #1011 (#916, lane A) was open at the same time, rewriting the same sites' quota check into `tools/http_errors.is_storage_quota_error`. It even showed up in this session's TC-ID collision check against `drive_transfer.md`, but nobody looked at its other files. #1011 merged first. #1006 went CONFLICTING in four files, CI skipped "Lint and test", and the merge had to be redone onto #916's helper, dropping this PR's own `_is_quota_error`. One `gh pr list ... files` check before writing the cross-cutting change would have surfaced the overlap while it was cheap to agree on one predicate.
|
|
128
|
+
|
|
121
129
|
## `qa.md`
|
|
122
130
|
|
|
123
131
|
### Opening paragraph: dedicated server and reconnect
|
{mcp_gee_sweet-0.9.2.dev338 → mcp_gee_sweet-0.9.2.dev349}/docs/design/doc-revision-export.md
RENAMED
|
@@ -72,10 +72,21 @@ Measured across two imports of the same DOCX:
|
|
|
72
72
|
|
|
73
73
|
## The temporary Doc
|
|
74
74
|
|
|
75
|
-
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
- Where it's created depends on the identity (#989), because the copy holds the revision's full
|
|
76
|
+
content and the default folder's audience can differ from the source Doc's:
|
|
77
|
+
- A user identity (OAuth, or ADC with user credentials) creates it in My Drive root, not the
|
|
78
|
+
default folder, so the copy isn't shared with anyone.
|
|
79
|
+
- A service account identity (`lc.is_service_account_identity`) creates it in the default
|
|
80
|
+
folder (`lc.folder_id`). A service account has no My Drive storage, so only a configured
|
|
81
|
+
Shared Drive works. The remaining exposure is documented in `docs/known-limitations.md`: the
|
|
82
|
+
Shared Drive's members can open the copy while the export runs, a Content manager's copy sits
|
|
83
|
+
in the trash for 30 days, and a failed cleanup leaves it live.
|
|
84
|
+
|
|
85
|
+
Rejected alternatives: the source Doc's parent folder matches the source's audience more
|
|
86
|
+
closely, but the identity may not be able to write there. Restricting the copy's permissions
|
|
87
|
+
after creation can't work on a Shared Drive, where member access is inherited.
|
|
88
|
+
- A storageQuotaExceeded error on create renders with the shared `_quota_error_text`: "storage is
|
|
89
|
+
full" for a user identity (a full My Drive), `_SA_QUOTA_ERROR` for a service account (#1009).
|
|
79
90
|
- Uploaded resumable: Drive takes a multipart upload only up to 5 MB, and a revision with
|
|
80
91
|
embedded images can exceed it.
|
|
81
92
|
- Named `export_revision temp (<file_id> r<revision_id>)`, so an orphan is identifiable.
|
|
@@ -134,19 +134,33 @@ as `get_doc_as_markdown`, with these differences and gaps:
|
|
|
134
134
|
3. A revision ID from `list_revisions` can stop existing: Docs folds a recent revision into the
|
|
135
135
|
next one while editing continues (measured: edits 90 seconds and 5 minutes later both merged it).
|
|
136
136
|
The export then fails with an error saying to list revisions again.
|
|
137
|
-
4. Each call creates and removes a temporary Google Doc
|
|
138
|
-
several seconds
|
|
139
|
-
|
|
137
|
+
4. Each call creates and removes a temporary Google Doc holding the revision's full content,
|
|
138
|
+
which takes several seconds. A user identity (OAuth, or ADC with user credentials) creates it
|
|
139
|
+
in My Drive root, not shared with anyone. That needs room in My Drive and permission to
|
|
140
|
+
create files there, even when `DRIVE_FOLDER_ID` is a Shared Drive with room: a full My Drive,
|
|
141
|
+
or a Workspace policy that blocks creating files in My Drive, makes the export fail. A service
|
|
142
|
+
account has no My Drive storage, so it uses the default folder, which must be a Shared Drive.
|
|
143
|
+
The source Doc's own sharing doesn't limit who can see that copy:
|
|
144
|
+
- Every member of the Shared Drive can open it while the export runs, including the image
|
|
145
|
+
downloads.
|
|
146
|
+
- A Content manager can only trash it, not delete it, so it stays in the Shared Drive's
|
|
147
|
+
trash for 30 days, where the drive's managers can see it.
|
|
148
|
+
- If removal fails, the copy stays live, and the result's `warning` names the Doc to delete
|
|
149
|
+
by hand.
|
|
140
150
|
|
|
141
151
|
**Why:** The Docs API reads only a document's current state, so the revision is exported as DOCX
|
|
142
152
|
and imported into a temporary Doc to be read. That Doc's ID, heading IDs, and image URLs are new
|
|
143
153
|
on every import, so (1) replaces them with values that stay the same between exports and keep
|
|
144
154
|
diffs clean. A bookmark has no text to make a stable anchor from, and an invented one could be
|
|
145
155
|
matched to the wrong heading if the Markdown is written back. (3) is how Drive keeps Docs
|
|
146
|
-
revision history.
|
|
156
|
+
revision history. (4) follows from that import: a service account can create files only in a
|
|
157
|
+
Shared Drive, and member access there is inherited, so the copy's permissions can't be narrowed.
|
|
147
158
|
|
|
148
159
|
**Workaround:** For (1), diff one revision's export against another's, not against
|
|
149
|
-
`get_doc_as_markdown` output. For (3), export a revision only after editing has settled.
|
|
160
|
+
`get_doc_as_markdown` output. For (3), export a revision only after editing has settled. For
|
|
161
|
+
(4), when a revision's content shouldn't reach the Shared Drive's members, export it with a user
|
|
162
|
+
identity (OAuth), or point `DRIVE_FOLDER_ID` at a Shared Drive whose membership matches the
|
|
163
|
+
source Doc's audience.
|
|
150
164
|
Related: docs/design/doc-revision-export.md.
|
|
151
165
|
|
|
152
166
|
---
|
|
@@ -190,21 +204,30 @@ delete the old Doc in Drive; the next sync converts the file again under its new
|
|
|
190
204
|
both sides to the same new name doesn't restore the link, because the digest still records the
|
|
191
205
|
old name.
|
|
192
206
|
|
|
193
|
-
### `sync_folder` — a `convert_markdown` Doc edited in Drive
|
|
207
|
+
### `sync_folder` — a `convert_markdown` Doc edited in Drive needs a manual resolve
|
|
194
208
|
|
|
195
209
|
**What:** Once a converted Doc is edited in Drive, every `sync_folder` run reports it under
|
|
196
210
|
`conflicts`, including after the local `.md` is edited too. Editing or touching the local file
|
|
197
|
-
doesn't clear the conflict
|
|
198
|
-
baseline or to force the upload over it.
|
|
211
|
+
doesn't clear the conflict. Clearing it takes a call that names the Doc in `resolve`.
|
|
199
212
|
|
|
200
|
-
**Why:** There's no reverse conversion (Doc → Markdown), so the Drive edit can't be downloaded
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
Doc's revision history, which only a new upload resets.
|
|
213
|
+
**Why:** There's no reverse conversion (Doc → Markdown), so the Drive edit can't be downloaded,
|
|
214
|
+
and uploading the local file would overwrite it. `sync_folder` used to do that silently and now
|
|
215
|
+
refuses (#814), so which side wins is the caller's choice.
|
|
204
216
|
|
|
205
|
-
**Workaround:**
|
|
206
|
-
|
|
207
|
-
|
|
217
|
+
**Workaround:** Name the Doc in `resolve`. The right choice depends on whether the local file has
|
|
218
|
+
edits of its own:
|
|
219
|
+
|
|
220
|
+
- **Only the Doc was edited:** copy the Drive edits into the local `.md` by hand, so the two
|
|
221
|
+
match, then sync with `resolve={"<name>": "keep_drive"}`. Nothing in Drive changes.
|
|
222
|
+
- **Both were edited:** merge the Drive edits into the local `.md`, then sync with
|
|
223
|
+
`resolve={"<name>": "keep_local"}`, which uploads the merged file in place. Don't use
|
|
224
|
+
`keep_drive` here. It records the local file as matching the Doc, so its own edits would never
|
|
225
|
+
reach Drive.
|
|
226
|
+
- **To discard the Drive edit:** sync with `"keep_local"` without merging. The edit stays in
|
|
227
|
+
the Doc's version history.
|
|
228
|
+
|
|
229
|
+
Either way the Doc keeps its file ID, sharing, comments, and links. Preview the call with
|
|
230
|
+
`dry_run=True` first.
|
|
208
231
|
|
|
209
232
|
### `sync_folder` — a `convert_markdown` Doc from before #814 can stay stuck in `conflicts`
|
|
210
233
|
|
|
@@ -217,11 +240,11 @@ never picks up the properties that would fix it.
|
|
|
217
240
|
**Why:** Migrating such a Doc means choosing a baseline revision for it. While it reads as Drive
|
|
218
241
|
newer, `sync_folder` can't tell a lagging timestamp from a real Drive edit, so it doesn't guess.
|
|
219
242
|
|
|
220
|
-
**Workaround:**
|
|
221
|
-
|
|
222
|
-
the
|
|
223
|
-
|
|
224
|
-
|
|
243
|
+
**Workaround:** Sync once with `resolve={"<name>": "keep_drive"}`. That stamps the properties
|
|
244
|
+
without changing the Doc's content, and from then on the Doc uses the new detection. Use it only
|
|
245
|
+
when the local file matches the Doc: if the Doc *was* edited in Drive, copy those edits into the
|
|
246
|
+
local file first. If the local file has edits of its own, merge and use `"keep_local"` instead,
|
|
247
|
+
which re-uploads in place and stamps the same properties.
|
|
225
248
|
|
|
226
249
|
### Downloads and `sync_folder` skip names that aren't a single filename
|
|
227
250
|
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# QA Run Gate — v0.9.1
|
|
2
|
+
|
|
3
|
+
**Release type:** Security patch (hotfix branch `release/0.9.1-hotfix`, based on `v0.9.0`)
|
|
4
|
+
**Suite required:** **Targeted** — TC-D278 plus a regression pass on the `download_file`, `download_folder`, and `sync_folder` cases that exist in v0.9.0. See the scoping audit below.
|
|
5
|
+
**Status:** ✅ **signed off 2026-10-03, cleared to tag v0.9.1 at `3d54bb9`.** Committed 2026-10-12, once advisory GHSA-hx2f-x3v8-jq2v was published.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Pre-flight
|
|
10
|
+
|
|
11
|
+
- [x] Release candidate: `690990a` on `release/0.9.1-hotfix` (`e09b849` is the fix; `690990a` adds Sky's TC-D278 results). Approved by Sky in the private advisory fork; SHA handed over by Kai.
|
|
12
|
+
- [x] Release commit: `3d54bb9` (`hotfix/v0.9.1`) = `690990a` + `chore(release): bump server.json to 0.9.1`. `git diff 690990a 3d54bb9` touches only `server.json` (two version strings). The package version comes from the git tag (`uv-dynamic-versioning`), so live results at `690990a` apply unchanged to `3d54bb9`. Kai reports the suite at `3d54bb9` at 1368 passed, 3 skipped.
|
|
13
|
+
- [x] Server: `mcp-gee-sweet-sky`, the only server on the release candidate. Sky's worktree (`team/sky`) resolves to `690990a`. Kai confirmed the server was reconnected after the reset.
|
|
14
|
+
- [x] Fixtures: repo-root `.env`. Each shard worked in its own throwaway Drive subfolder and `/tmp/aziz-091/*`; the shared `{FOLDER_ID}` was never modified.
|
|
15
|
+
|
|
16
|
+
**Auth method used:** OAuth (`mcp-gee-sweet-sky`).
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Scoping audit — why not Full Regression
|
|
21
|
+
|
|
22
|
+
Per `docs/qa/runs/README.md` §"Scoped gating".
|
|
23
|
+
|
|
24
|
+
1. **Enumerate.** `git log v0.9.0..690990a`: 2 commits, no merges. `git diff --stat v0.9.0 690990a`: `src/mcp_gee_sweet/tools/drive/transfer.py` (+200/−11), `tests/drive/test_transfer.py`, `docs/qa/tests/drive_transfer.md`, `docs/known-limitations.md`.
|
|
25
|
+
2. **Classify.** Behavior change in one module: how download/sync destination paths are built from Drive names.
|
|
26
|
+
3. **Map to domains.** Only `drive_transfer`, and within it only the three tools that write to `local_path`. Upload, export, and revision tools share the module but not the changed code paths.
|
|
27
|
+
4. **Structural?** No. There's no shared-helper change outside the destination-path logic, and no server, auth, or cache changes.
|
|
28
|
+
|
|
29
|
+
Conclusion: TC-D278 (the fix) plus every v0.9.0 `download_file` / `download_folder` / `sync_folder` case. Unit tests (TC-D249–251 and the new test_transfer cases) are covered by CI on the hotfix branch.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Shards
|
|
34
|
+
|
|
35
|
+
Run one after the other, because only one server carries the release candidate.
|
|
36
|
+
|
|
37
|
+
| Shard | Cases | Prefix |
|
|
38
|
+
|---|---|---|
|
|
39
|
+
| Download | TC-D101–106, D107–110, D195, D198, D200 | `mcp-gee-sweet-sky` |
|
|
40
|
+
| Sync A | TC-D111–119, D178, D190–194, D196–197, D199, D201 | `mcp-gee-sweet-sky` |
|
|
41
|
+
| Sync B | TC-D217–232, D238–239, D244–246 | `mcp-gee-sweet-sky` |
|
|
42
|
+
|
|
43
|
+
TC-D278: run live by Sky on the same server and commit (recorded in `690990a`).
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Results
|
|
48
|
+
|
|
49
|
+
### Download shard (2026-10-03): 13/13 PASS
|
|
50
|
+
|
|
51
|
+
| Case | Result | Observed |
|
|
52
|
+
|---|---|---|
|
|
53
|
+
| TC-D101 | ✅ | Uploaded PNG downloaded byte-identical; the missing directory was created |
|
|
54
|
+
| TC-D102 | ✅ | Doc → txt matches the body |
|
|
55
|
+
| TC-D103 | ✅ | Doc → pdf, valid 1-page PDF |
|
|
56
|
+
| TC-D104 | ✅ | Sheet → csv matches `get_sheet_data` (Sales) |
|
|
57
|
+
| TC-D105 | ✅ | Missing `export_format` errors and writes no file |
|
|
58
|
+
| TC-D106 | ✅ | Exact-file `local_path` honored, parent created |
|
|
59
|
+
| TC-D107 | ✅ | Raw files downloaded; Workspace files and subfolder skipped |
|
|
60
|
+
| TC-D108 | ✅ | `export_format=pdf` exports Doc and Sheet copies; subfolder skipped |
|
|
61
|
+
| TC-D109 | ✅ | Re-run skips all files, including names with the export extension added |
|
|
62
|
+
| TC-D110 | ✅ | `mime_type_filter` limits to the Doc |
|
|
63
|
+
| TC-D195 | ✅ | Subfolder skipped, never created locally |
|
|
64
|
+
| TC-D198 | ✅ ×3 | 12 files in about 1s per run, byte-identical, no mix-ups between files |
|
|
65
|
+
| TC-D200 | ✅ ×3 | Same-named pair: one downloaded, one in `failed` with the duplicate-filename reason; stable winner |
|
|
66
|
+
|
|
67
|
+
Extra regression probe (outside the listed cases): odd but legitimate names (`...`, `..leading-dots.txt`, `.hidden-ish`, `a..b.txt`, Unicode, `Q3: report.txt`) all downloaded via `download_folder` and `download_file`. Nothing was over-rejected and nothing landed outside the target.
|
|
68
|
+
|
|
69
|
+
Minor observation, likely older than the hotfix (the hotfix diff doesn't touch that code): with a trailing-slash `local_path`, TC-D105 creates the empty target directory before raising. Not a blocker.
|
|
70
|
+
|
|
71
|
+
### Sync shard A (2026-10-03): 18 PASS, 1 SKIP, 0 FAIL
|
|
72
|
+
|
|
73
|
+
| Case | Result | Observed |
|
|
74
|
+
|---|---|---|
|
|
75
|
+
| TC-D111 | ✅ | dry_run lists every file with its action; flat lists empty; nothing changed |
|
|
76
|
+
| TC-D112 | ✅ | Drive-only and Drive-newer files downloaded |
|
|
77
|
+
| TC-D113 | ✅ | Local-only file uploaded, md5 matches |
|
|
78
|
+
| TC-D114 | ✅ | Local newer → uploaded; Drive newer → downloaded; within tolerance → skipped |
|
|
79
|
+
| TC-D115 | ✅ | Drive `modifiedTime` equals local mtime; immediate re-sync skips everything |
|
|
80
|
+
| TC-D116 | ✅ | `direction='upload'`: nothing downloaded; Drive-newer file is a conflict |
|
|
81
|
+
| TC-D117 | ✅ | `direction='download'`: nothing uploaded; local-newer file is a conflict |
|
|
82
|
+
| TC-D118 | ✅ | Workspace file ignored without `export_format` |
|
|
83
|
+
| TC-D119 | ✅ | Invalid `direction`/`export_format` return an error dict; no directory created |
|
|
84
|
+
| TC-D178 | ✅ ×3 | Mixed upload/download batch; no mix-ups between files |
|
|
85
|
+
| TC-D190 | ✅ | Recursive: `nested/deep.txt` lands at the right nested path; re-sync skips |
|
|
86
|
+
| TC-D191 | ✅ | Drive-only subfolder listed in `folders_skipped`; nothing created locally |
|
|
87
|
+
| TC-D192 | ✅ | Non-recursive ignores subfolders |
|
|
88
|
+
| TC-D193 | ✅ | File/folder name collision goes to `failed` with a clear error; local file intact |
|
|
89
|
+
| TC-D194 | ✅ | Local-only subfolder created on Drive and uploaded |
|
|
90
|
+
| TC-D196 | ✅ (unit) | Live cap too high to trip; named unit tests and all 159 `test_transfer.py` tests pass at `690990a` |
|
|
91
|
+
| TC-D197 | ✅ ×3 | Sibling subfolders, same-named `common.txt` in each: each copy kept its own content |
|
|
92
|
+
| TC-D199 | ⏭ SKIP | Client can't observe `notifications/progress`; both tools still complete normally |
|
|
93
|
+
| TC-D201 | ✅ ×3 | Downloaded file isn't re-uploaded on the next sync |
|
|
94
|
+
|
|
95
|
+
Extra regression probe (outside the listed cases): unusual but legitimate names (`..leading-dots.txt`, `a..b.txt`, Unicode, a subfolder `sub folder ..x/`) and a 3-level nested path round-tripped to the exact expected local paths. Trailing-slash, no-trailing-slash, and symlinked `/tmp` `local_path` all accepted.
|
|
96
|
+
|
|
97
|
+
Minor observation, not caused by the hotfix (the same `mkdir` runs before the dry_run branch at `v0.9.0`): `dry_run` creates an empty `local_path` directory.
|
|
98
|
+
|
|
99
|
+
### Sync shard B (2026-10-03): 21/21 PASS
|
|
100
|
+
|
|
101
|
+
| Case | Result | Observed |
|
|
102
|
+
|---|---|---|
|
|
103
|
+
| TC-D217 | ✅ | `.md` uploads as a Doc named `notes.md`, `modifiedTime` = local mtime |
|
|
104
|
+
| TC-D218 | ✅ | Resync skips; still 1 file (re-checked about 5 min later) |
|
|
105
|
+
| TC-D219 | ✅ | Local edit re-converts in place, same file ID |
|
|
106
|
+
| TC-D220 | ✅ | No flag: uploads as `text/markdown` |
|
|
107
|
+
| TC-D221 | ✅ | Drive-only converted Doc is a clean conflict; nothing downloaded |
|
|
108
|
+
| TC-D222 | ✅ | Unrelated same-named Doc not matched; original untouched |
|
|
109
|
+
| TC-D223 | ✅ | Plain file not promoted; `failed` with the "cannot promote" message; original intact |
|
|
110
|
+
| TC-D224 | ✅ | `convert_markdown` + `export_format`: conflict, no `.md` written locally |
|
|
111
|
+
| TC-D225 | ✅ | Resync without the flag still matches; 1 file |
|
|
112
|
+
| TC-D226 | ✅ | `upload_local_file(convert=True)` Doc recognized by sync; skipped |
|
|
113
|
+
| TC-D227 | ✅ | Plain/converted name collision is a single `failed` entry; nothing touched |
|
|
114
|
+
| TC-D228 | ✅ | `modifiedTime` stamped from local mtime; sync skips (re-checked about 3 min later) |
|
|
115
|
+
| TC-D229 | ✅ | `direction='upload'` → skip; bidirectional → conflict |
|
|
116
|
+
| TC-D230 | ✅ | Two plain same-named files: collision `failed`, nothing touched |
|
|
117
|
+
| TC-D231 | ✅ | Local file colliding with a Drive pair goes to `failed`, not dropped |
|
|
118
|
+
| TC-D232 | ✅ | dry_run collision shows only in `actions` as `collision` |
|
|
119
|
+
| TC-D238 | ✅ | `use_checksum` skips identical content despite an mtime gap of about 22h; control uploads |
|
|
120
|
+
| TC-D239 | ✅ | `use_checksum` doesn't change Workspace-file handling |
|
|
121
|
+
| TC-D244 | ✅ | dry_run flat lists empty; `actions` complete |
|
|
122
|
+
| TC-D245 | ✅ | `result_local_path` writes `<folder_id>_sync_result.json` into an existing directory |
|
|
123
|
+
| TC-D246 | ✅ | `result_local_path` at or inside `local_path` rejected before any API call |
|
|
124
|
+
|
|
125
|
+
Extra regression probe: `my notes (v2) é..final.txt` synced down to the expected path, not over-rejected.
|
|
126
|
+
|
|
127
|
+
Minor observation, older than the hotfix (`response_limits.py` and every `result_local_path` line are unchanged between `v0.9.0` and `690990a`): a trailing-slash `result_local_path` naming a directory that doesn't exist yet is written as a *file* at that path, without the slash, rather than as a new directory. Fixed since on `develop` under #990.
|
|
128
|
+
|
|
129
|
+
Converted-Doc `modifiedTime` drift seen on TC-D221's Doc: this is the documented asynchronous backend overwrite (#814). It changed no outcome.
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Sign-off
|
|
134
|
+
|
|
135
|
+
| Scope | Result |
|
|
136
|
+
|---|---|
|
|
137
|
+
| TC-D278 (the fix) | ✅ Sky, live, on `mcp-gee-sweet-sky` at `690990a` |
|
|
138
|
+
| Download shard | 13/13 PASS |
|
|
139
|
+
| Sync shard A | 18 PASS, 1 SKIP (TC-D199, progress notifications not observable from this client) |
|
|
140
|
+
| Sync shard B | 21/21 PASS |
|
|
141
|
+
| **Total regression** | **52 PASS, 1 SKIP, 0 FAIL** |
|
|
142
|
+
|
|
143
|
+
No regressions; legitimate unusual filenames are never over-rejected. All throwaway Drive folders were trashed and `/tmp/aziz-091/*` removed; the shared fixture folder was never modified.
|
|
144
|
+
|
|
145
|
+
Post-advisory follow-ups (not blockers, all predate the hotfix):
|
|
146
|
+
1. `result_local_path` with a trailing slash on a missing directory writes a file, not a directory. Fixed under #990.
|
|
147
|
+
2. `download_file` (trailing-slash `local_path`) and `sync_folder(dry_run=True)` create an empty target directory before erroring or previewing. Filed as #1012.
|
|
148
|
+
|
|
149
|
+
**✅ Signed off by Aziz, 2026-10-03. Cleared to tag v0.9.1 at `3d54bb9` (code identical to tested `690990a`).**
|
|
150
|
+
|
|
151
|
+
Tagged: `v0.9.1` → `409d02b` on `main`. Its tree is identical to `3d54bb9` (`f6392a2`). Published to PyPI 2026-10-03.
|
|
@@ -61,7 +61,7 @@ Created 'QA-Create-Root' with no folder; get_file_metadata parents=["0APfXAGTeZY
|
|
|
61
61
|
**Setup:** `{PERSONAL_DRIVE_FOLDER_ID}` = a folder in the OAuth user's personal My Drive that the service account has no write quota for (e.g. the pre-Shared-Drive `TEST_FOLDER_ID`, or any personal-Drive folder shared to the SA). If no such folder is available this run, record SKIP(environmental) — the unit-level equivalent (`tests/drive/test_files.py::TestQuotaErrors`) still covers the error path.
|
|
62
62
|
|
|
63
63
|
**Checks**
|
|
64
|
-
- Call returns `{"error": ...}` containing `_SA_QUOTA_ERROR` text: "
|
|
64
|
+
- Call returns `{"error": ...}` containing `_SA_QUOTA_ERROR` text: "This service account has no My Drive storage, so it can create files only in a Shared Drive…"
|
|
65
65
|
- Run the same prompt with **no** folder (default → `DRIVE_FOLDER_ID` Shared Drive) and confirm it now **succeeds** for the SA — trash the result
|
|
66
66
|
|
|
67
67
|
**Result (2026-09-04) ⏭️ SKIP**
|