Conversation
AI Review: CHANGES REQUESTEDThis PR attempts to fix tana_create failures for workspace-only supertags by adding a database fallback. However, there are critical issues that must be addressed before merge. 🔴 BLOCKING ISSUES1. TypeScript Type Check Fails (CRITICAL)$ bun run typecheck
src/commands/create.ts(302,39): error TS2304: Cannot find name 'primarySchema'.
src/commands/create.ts(302,62): error TS2304: Cannot find name 'primarySchema'.
src/commands/create.ts(437,37): error TS2304: Cannot find name 'primarySchema'.Issue: The PR removed the
Fix Required: Add Per CLAUDE.md PR Checklist: "Run 2. Code Duplication - SQL Normalization (HIGH)Location: The fallback query reimplements normalization logic in SQL: LOWER(REPLACE(REPLACE(REPLACE(tag_name, ' ', ''), '-', ''), '_', ''))This duplicates the name.toLowerCase()
.replace(/[^\w\s-]/g, '') // Remove emojis and special chars
.replace(/[\s-_]+/g, '') // Remove spaces, dashes, underscoresProblems:
Fix Required: Extract normalization to a shared utility that can be used in both contexts, OR document why SQL normalization is intentionally incomplete. Per memory note: "Always use 3. No Tests for Fallback Path (HIGH)Issue: The core fallback functionality has zero test coverage:
Per PRD ISC Criteria: 34 criteria defined, but ISC-13 through ISC-18 (tests) are all unchecked. Fix Required: Add unit tests for Per CLAUDE.md PR Checklist: "Run
|
| Dimension | Status | Notes |
|---|---|---|
| Spec Compliance | ✅ PASS | Addresses core issue |
| Plan Adherence | Many ISC criteria unmet | |
| Security | ✅ PASS | No concerns |
| Code Quality | ❌ FAIL | TypeScript errors |
| Architecture | Code duplication | |
| Edge Cases | Emoji normalization | |
| Duplication | ❌ FAIL | SQL/TS normalization duplicated |
Verdict: Changes requested. Fix TypeScript errors, add tests, address code duplication before merge.
AI Code Review: CHANGES REQUESTED✅ Passes
|
AI Review: APPROVED ✅This PR successfully addresses Issue #78 by implementing a fallback mechanism for workspace-only supertags that aren't present in Tana exports. Review SummarySpec Compliance: ✅ Fully compliant Key Changes Reviewed
Technical ObservationsStrengths:
Design Trade-offs (acceptable):
Flow verification:
Security Assessment
Recommendations for Future WorkNone blocking for this PR. Future improvements could include:
Final VerdictThis PR is ready to merge. It solves the reported issue with minimal, focused changes and excellent test coverage. |
…review cleanup Graph executor: track source→target associations via join maps so CONNECTED TO queries correctly associate each source node with its specific targets (e.g., each meeting shows only its attendees). Also includes PR #79 review cleanup: simplified create.ts output, moved tag normalization to TypeScript for emoji support, simplified error handling in unified-schema-service. Added 13 integration tests covering join maps, dot-notation projections, shared targets, aggregates, and edge cases. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fixes #78
Automated fix for: Issue #78: [BUG] supertag-mcp: tana_create fails with Bad Request for webSource nodes; tana-local works