fix(generation): do not advance profile hash without natal regen - #71
Draft
cursor[bot] wants to merge 1 commit into
Draft
cursor[bot] wants to merge 1 commit into
cursor[bot] wants to merge 1 commit into
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Sep 7, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
generate-catalog-batch) and on-demand tool persist (ensure-tool-report) now return 409 when live birth fields no longer match the committedprofileDataHash.persistOnDemandToolReportsno longer writesprofileDataHashunless natal charts already match that hash or this persist is rewriting Vedic/Western.Why this change is safe
users/comprehensiveMysticalProfileswhile natal reports kept the previousgenerationIdempotencyKey.isReportsStalethen went false, so Vedic/Western showed the old chart with no regen prompt.vedic+western; unchanged-hash catalog fill is unchanged; complementary to open fix(generation): refill catalog after birth-data hash change #69 (skip-fill) and Fix stale tool reports after birth-data regeneration #53/Fix on-demand persist reverting profile hash after concurrent generate #57/Fix on-demand tool persist unlocking in-flight natal generate #58 (display/lock races), not a duplicate.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
plan-api-lib:lint:securitypassed; new unit + catalog-batch/ensure-tool-report 409 tests passed.plan-core:pnpm test— 74 suites / 401 tests.Regression prevention
profileHashCommittests for committed vs live hash and natal key mismatch.Release checklist (solo-friendly)
CI / Lint + JestCI / Playwright smokemain.