Skip to content

docs(gemini): Update knowledge base with user auth, notifications, and mapper best practices#2022

Merged
jcscottiii merged 5 commits intomainfrom
jcscottiii/2025-november-gemini-update
Nov 18, 2025
Merged

docs(gemini): Update knowledge base with user auth, notifications, and mapper best practices#2022
jcscottiii merged 5 commits intomainfrom
jcscottiii/2025-november-gemini-update

Conversation

@jcscottiii
Copy link
Copy Markdown
Collaborator

This commit significantly updates the GEMINI.md knowledge base to reflect recent changes and codify best practices. Key updates include:

  • Updated Last Analyzed Commit: The SHA for the last analyzed commit has been updated to 4b12e1c.
  • New Section: User Authentication and Notifications: A new section (3.4) has been added to describe the architecture and data flow for user authentication, profile synchronization, notification channels, and saved search subscriptions. This includes correcting the API endpoint and handler names for user profile sync.
  • Mapper Best Practices: The "Go Mapper Pattern for Spanner" section (3.2.1) has been enhanced with new guidelines:
    • An explicit "DO" rule to ensure mergeMapper implementations correctly copy all fields, especially UpdatedAt.
    • A new subsection "Using Mappers within a Transaction" detailing the importance of using ...WithTransaction variants of generic helpers within ReadWriteTransaction blocks and cautioning against standard helpers or manual mutation creation in such contexts.
  • Architectural Layering: A new "DON'T" rule has been added to prevent lib/gcpspanner from importing lib/backendtypes, reinforcing architectural separation.
  • "Verify, Don't Assume" Principle: A new core principle (5.9) has been introduced, emphasizing the importance of verifying information against canonical sources of truth (e.g., openapi.yaml for APIs, migration files for schema). This principle is also cross-referenced in the "Specifications & Generated Code" (Section 4) and "How-To Guides" (Section 6) sections, and explicitly integrated into the knowledge base update process (Section 7.2).

These updates aim to improve the accuracy, clarity, and utility of the knowledge base for future development.

I had GEMINI analyze #2009 and what existed on upstream main.

…d mapper best practices

This commit significantly updates the GEMINI.md knowledge base to reflect recent changes and codify best practices. Key updates include:

- **Updated Last Analyzed Commit**: The SHA for the last analyzed commit has been updated to 4b12e1c.
- **New Section: User Authentication and Notifications**: A new section (3.4) has been added to describe the architecture and data flow for user authentication, profile synchronization, notification channels, and saved search subscriptions. This includes correcting the API endpoint and handler names for user profile sync.
- **Mapper Best Practices**: The "Go Mapper Pattern for Spanner" section (3.2.1) has been enhanced with new guidelines:
    - An explicit "DO" rule to ensure `mergeMapper` implementations correctly copy all fields, especially `UpdatedAt`.
    - A new subsection "Using Mappers within a Transaction" detailing the importance of using `...WithTransaction` variants of generic helpers within `ReadWriteTransaction` blocks and cautioning against standard helpers or manual mutation creation in such contexts.
- **Architectural Layering**: A new "DON'T" rule has been added to prevent `lib/gcpspanner` from importing `lib/backendtypes`, reinforcing architectural separation.
- **"Verify, Don't Assume" Principle**: A new core principle (5.9) has been introduced, emphasizing the importance of verifying information against canonical sources of truth (e.g., `openapi.yaml` for APIs, migration files for schema). This principle is also cross-referenced in the "Specifications & Generated Code" (Section 4) and "How-To Guides" (Section 6) sections, and explicitly integrated into the knowledge base update process (Section 7.2).

These updates aim to improve the accuracy, clarity, and utility of the knowledge base for future development.

I had GEMINI analyze #2009 and what existed on upstream main.
@jcscottiii jcscottiii requested a review from jrobbins November 18, 2025 16:17
@jcscottiii jcscottiii added this pull request to the merge queue Nov 18, 2025
Merged via the queue into main with commit 8c8f31c Nov 18, 2025
7 checks passed
@jcscottiii jcscottiii deleted the jcscottiii/2025-november-gemini-update branch November 18, 2025 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants