Verification — R93 B4 Consensus Schema Regex Messages

Round: R93 debug-sweep · XS scope β task: 3cfa2d18-6820-4cd7-be77-7e85c1143279

§1. Gates

Gate Command Result
Build npm run build ✅ exit 0
Lint npm run lint ✅ exit 0
Test (run 1) npm test ⚠️ 3489 / 3492 (2 suites floated documented flakes — parity-harness G7.1 + reputation/tools parallel-migration race)
Test (run 2) npm test ✅ 3492 / 3492 — all green

Test count = baseline 3492 (no new tests added — schema message change does not alter test count).

§2. Edits

15 .regex(...) call sites in src/domains/consensus/tools.ts gained a descriptive second-arg message string. Three replacements used replace_all: true (same field name + regex pair appears in multiple schemas with identical lines).

Symbol Sites Message added
merkle_root_hex × HEX_64_RE 3 "merkle_root_hex must be 64 lowercase hex chars (32 bytes)"
rule_version_hash_hex × HEX_64_RE 2 "rule_version_hash_hex must be 64 lowercase hex chars (32 bytes)"
round_id × DECIMAL_POSITIVE_RE 4 "round_id must be a positive decimal integer (allocated by consensus_propose)"
privKey × HEX_EVEN_NONEMPTY_RE 1 "privKey must be non-empty lowercase hex (even number of chars)"
seed_hex, input_hex, priv_key_hex × HEX_EVEN_NONEMPTY_RE 3 per-field-name strings
evidence × HEX_EVEN_OR_EMPTY_RE 1 "evidence must be possibly-empty lowercase hex (even number of chars)"
output_hex, proof_hex × HEX_64_RE 2 per-field-name strings

15 sites total. Regex constants unchanged.

§3. Result

PASS. Ready to commit / push / PR / writeback.


Back to top

Colibri — documentation-first MCP runtime. Apache 2.0 + Commons Clause.

This site uses Just the Docs, a documentation theme for Jekyll.