Skip to content

key_signal Format is a Free String — Fixture Doesn't Validate the Schema Contract #134

@soumyaranjan77-web

Description

@soumyaranjan77-web

@Devnil434 Where:

  • key_signal = "near_keypad × 4 in restricted_door" in SUSPICIOUS_RESULT

What's wrong:

  • The × character (U+00D7, multiplication sign) is a non-ASCII Unicode character embedded directly in the fixture string. If Phase 6 frontend mocks parse key_signal using a regex like r"(\w+) x (\d+) in (\w+)" (ASCII x, common in JS/Python parsers), the pattern will silently fail to match, returning null/None and causing the frontend to render a blank signal field. The bug lives in the fixture establishing a Unicode format that the consuming code never expects.

Fix:

  • Use ASCII-safe format that matches the parser contract

  • key_signal = "near_keypad x 4 in restricted_door"
  • OR document that × is intentional and fix the regex on the consumer side

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions