Skip to content

fix(generation): do not advance profile hash without natal regen - #71

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-investigation-b5bc
Draft

cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-investigation-b5bc

Conversation

@cursor

@cursor cursor Bot commented Sep 6, 2026

Copy link
Copy Markdown

What changed

  • Catalog fill (generate-catalog-batch) and on-demand tool persist (ensure-tool-report) now return 409 when live birth fields no longer match the committed profileDataHash.
  • persistOnDemandToolReports no longer writes profileDataHash unless natal charts already match that hash or this persist is rewriting Vedic/Western.

Why this change is safe

Bug and impact

A user who starts Generate, interrupts catalog fill, edits birth time, then returns to Profile (resume) or opens a tool without a report ends up with current-looking reports whose natal charts still describe the previous birth data. Ask the Seer and astrology tools treat that stale natal payload as authoritative.

Verification

  • Changed-file ESLint (0 issues).
  • plan-api-lib: lint:security passed; new unit + catalog-batch/ensure-tool-report 409 tests passed.
  • plan-core: pnpm test — 74 suites / 401 tests.
  • Playwright smoke run (API-only persist guard; no UI/routing changes).

Regression prevention

  • Added profileHashCommit tests for committed vs live hash and natal key mismatch.
  • Added API tests proving catalog batch and ensure-tool-report do not persist after a birth-data change.
  • Existing generate-mystical / readiness / catalog-complete tests remain green.

Release checklist (solo-friendly)

  • CI is green:
    • CI / Lint + Jest
    • CI / Playwright smoke
  • Ready to merge to main.
  • Post-merge sanity: interrupt catalog fill, change birth time, confirm resume asks to Generate and does not clear the stale state.
Open in Web View Automation 

Catalog fill and on-demand tool persist calculated a new profileDataHash
from edited birth fields and wrote it while Vedic/Western charts stayed
on the previous hash, which hid the stale-report banner.

Co-authored-by: Andy Oliver Rozario <andyrozario7@gmail.com>
@vercel

vercel Bot commented Sep 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
future-seer Ready Ready Preview Sep 6, 2026 11:14am UTC

This branch was successfully deployed

1 active deployment
Preview eebe8f90 Deployed Sep 6, 2026 by vercel[bot]
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.

1 participant