Skip to content

CoR: Harden requirements parsing - #1836

Merged
Matthew Fisher (MicroFish91) merged 1 commit into
feat/CoRfrom
microfish91-cor-requirements-json-validation
Sep 14, 2026
Merged

Matthew Fisher (MicroFish91) merged 1 commit into
feat/CoRfrom
microfish91-cor-requirements-json-validation

Conversation

@MicroFish91

@MicroFish91 Matthew Fisher (MicroFish91) commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Malformed requirements artifacts can currently leak unchecked values into the webview, including non-object roots, invalid workspace signals, and object answers coerced to strings.

This change adds shared runtime JSON guards and applies them to requirements parsing and pending-create marker parsing. It preserves valid siblings in partially malformed requirements while rejecting unsupported nested shapes, maps object answers to null, and accepts pending-create timestamps only when they are finite numbers.

Tests cover the shared guards, non-object roots, malformed nested fields, partial valid data, unsupported answer objects, and existing requirements telemetry behavior.

@MicroFish91 Matthew Fisher (MicroFish91) changed the title Harden Copilot on Rails requirements JSON validation CoR: Improve requirements parsing validation Sep 12, 2026
@MicroFish91
Matthew Fisher (MicroFish91) force-pushed the microfish91-cor-requirements-json-validation branch from 7542310 to 7dfd153 Compare September 12, 2026 16:32
@MicroFish91
Matthew Fisher (MicroFish91) changed the base branch from microfish91-harden-cor-parsing to feat/CoR September 12, 2026 16:33
@MicroFish91 Matthew Fisher (MicroFish91) changed the title CoR: Improve requirements parsing validation CoR: Harden requirements parsing Sep 12, 2026
@MicroFish91
Matthew Fisher (MicroFish91) added this pull request to stack #1838 September 12, 2026 16:39
@MicroFish91
Matthew Fisher (MicroFish91) merged commit b8273d7 into feat/CoR Sep 14, 2026
1 check passed
@MicroFish91
Matthew Fisher (MicroFish91) deleted the microfish91-cor-requirements-json-validation branch September 14, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant