Skip to content
Back to skills

Normalization Atomicity

ASecurity

Use when persisting rewards_box or any data structure to Firestore. ALL paths (streaming/polling/passthrough) must canonicalize before writing.

  • 6 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added November 26, 2026
tools

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add jleechanorg/jleechan-skills --skill normalization-atomicity --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Normalization Atomicity?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Normalization Atomicity
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jleechanorg-normalization-atomicity/badge)](https://www.skillsdirectory.com/skills/jleechanorg-normalization-atomicity)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: normalization-atomicity
description: "Use when persisting rewards_box or any data structure to Firestore. ALL paths (streaming/polling/passthrough) must canonicalize before writing."
---

# Normalization atomicity — all persisted data must be canonicalized


**Any value written to Firestore (or any persistent store) must pass through its canonicalizer before persistence — regardless of which execution path performs the write.**

Specific case: `rewards_box` dicts written to Firestore must pass through `normalize_rewards_box_for_ui()` (or `rewards_engine.canonicalize_rewards()`) before being stored. "Passthrough", "passthru", and "passthrough" path names are semantically misleading — they imply no transformation but persistence requires canonicalization.

Correct pattern:
- Streaming path → `llm_parser.py` → calls `canonicalize_rewards()` → normalized output persisted
- Polling path → `project_level_up_ui()` → normalized output stored
- Passthrough path → must still call `normalize_rewards_box_for_ui()` before persisting

**Why**: PR #6265 fixed the passthrough branch when `_has_level_up_ui_signal` was False — the raw LLM `rewards_box` was returned without normalization. A path labeled "passthrough" does not mean "skip normalization."

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.