Skip to content

Fix new exhale note failure#357

Merged
kojibai merged 3 commits intomainfrom
Fix-new-exhale-note-failure
Jan 31, 2026
Merged

Fix new exhale note failure#357
kojibai merged 3 commits intomainfrom
Fix-new-exhale-note-failure

Conversation

@kojibai
Copy link
Copy Markdown
Owner

@kojibai kojibai commented Jan 31, 2026

No description provided.

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 31, 2026

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

Project Deployment Actions Updated (UTC)
phi-network-5aii Ready Ready Preview, Comment Jan 31, 2026 11:41pm

Request Review

@kojibai kojibai merged commit 92117b6 into main Jan 31, 2026
2 checks passed
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d64e916874

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +160 to +164
const pulse = Number.isFinite(meta.pulse ?? NaN) ? meta.pulse : meta.kaiPulse;
const beat = Number.isFinite(meta.beat ?? NaN) ? meta.beat : undefined;
const stepIndex = Number.isFinite(meta.stepIndex ?? NaN) ? meta.stepIndex : undefined;
const chakraDay = typeof meta.chakraDay === "string" ? meta.chakraDay : "";
const seed = `${pulse ?? ""}|${beat ?? ""}|${stepIndex ?? ""}|${chakraDay ?? ""}`;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use canonical hash defaults consistent with verifier

This fallback builds the hash seed with empty strings for missing numeric fields. Elsewhere, canonical hashes default missing pulse/beat/stepIndex to 0 (e.g. canonicalHash() in src/verifier/validator.ts uses ${meta.pulse ?? 0}|${meta.beat ?? 0}|${meta.stepIndex ?? 0}|...). For legacy sigils that omit beat/stepIndex but still need a deterministic canonical, this will compute a different parent hash, so note send/claim metadata won’t match the canonical used by verification/ledger. Consider reusing the existing canonical hash helper or applying the same ?? 0 defaults here.

Useful? React with 👍 / 👎.

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