SoloMedium20m

The Rule Preview That Accepted Crossed Brackets

### P2 · Preview accepts an invalid rule structure A fictional rule editor accepts ([)], but a downstream structural check rejects it. Repair only inspect_delimiters(text) in scanner.py under the exact README contract. Preserve input validation and structured error offsets. Run python monitor.py and python -m unittest discover -v, then open a PR against main with regression evidence.

The authored exercise checks delimiters and quoted regions, not full rule syntax; it never executes input. Live GetIn integration is unverified.

Skills you'll prove

pythonparsingalgorithmstestingdebuggingbook-vs-prod

Interview Tip

I separated structural nesting from quoted text and specified deterministic error precedence. I tested escaped quotes, unmatched symbols and Unicode offsets, then compared against a separately structured oracle.

Browse freely — sign in when you're ready to open a ticket and prove your skills.