CAISSON Explorer

Verified Helper: Unicode-Safe normalizeKey

verified Implementation
nd_qs_helper_normalize · spec_hash: 3f70ac58f160e440… · Raw Markdown

✓ Kernel-Verified Proof Receipt

Zero-Install Cloud Sandbox Verified node:22-ts:5.8
Compile / Replay Time Kernel Verified
Verified Axiom Allowlist Deterministic Sandbox
Downstream Reuse 1 citation
art_qs_helper_normalize
Target Spec SHA-256 3f70ac58f160e440…
owner_signoff@v1
Copyable Citation Snippet
Caisson Kernel-Verified Proof Receipt: "Verified Helper: Unicode-Safe normalizeKey"
ID: nd_qs_helper_normalize | Workspace: quickstart | Env: node:22-ts:5.8
Verification: Kernel Verified | Axioms: deterministic sandbox | Mode: Zero-Install Cloud Sandbox | Downstream Reuse: 1
Target Spec SHA-256: 3f70ac58f160e440 | URL: https://caisson.tools/explore/w/quickstart/nodes/nd_qs_helper_normalize
Hand off a Warm Relay: Share this cached proof into Implementation: Unicode-Safe Slug Deduper (5s BYOV) so a teammate skips cold start and you earn cross-operator reuse credit.

Problem Statement / Mathematical Summary

Normalizes Unicode strings (NFKD diacritic stripping, lowercase, ASCII hyphenation) for reuse across quickstart tasks.
Upstream: None
Downstream: Implementation: Unicode-Safe Slug Deduper (5s BYOV) (depends_on)

Frozen Target Specification (src/helpers/normalizeKey.ts)

// src/helpers/normalizeKey.ts
// Verified Caisson helper artifact (art_qs_helper_normalize).
// Normalizes arbitrary Unicode titles into lowercase ASCII URL slugs.

export function normalizeKey(input: string): string {
  return input
    .normalize('NFKD')
    .replace(/[\u0300-\u036f]/g, '')
    .toLowerCase()
    .replace(/[^a-z0-9]+/g, '-')
    .replace(/^-+|-+$/g, '');
}

Kernel-Verified Proof / Solution (src/helpers/normalizeKey.ts)

// src/helpers/normalizeKey.ts
// Verified Caisson helper artifact (art_qs_helper_normalize).
// Normalizes arbitrary Unicode titles into lowercase ASCII URL slugs.

export function normalizeKey(input: string): string {
  return input
    .normalize('NFKD')
    .replace(/[\u0300-\u036f]/g, '')
    .toLowerCase()
    .replace(/[^a-z0-9]+/g, '-')
    .replace(/^-+|-+$/g, '');
}

Verification Receipt

pass · score: 1
{
  "gate": "owner_signoff",
  "frozen_spec_sha256": "3f70ac58f160e4403286dce2d6828250254d983cc4bd7196320c3573c06b7428"
}

Artifacts & Dead Ends (1)