Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Contracts and edge cases

Platform spec article

Contracts and edge cases

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

Key front-end contracts:

  • Parse failures must map to source spans users can act on.
  • Syntax nodes must preserve declaration identity needed by item resolution.
  • Optional syntax forms (attributes, docs, modifiers) must have explicit absent-state semantics, not implicit null behavior.

Frequent edge cases:

  • Unterminated grouped constructs should produce one primary error and avoid noisy cascades.
  • Unknown tokens after valid prefixes should preserve partial nodes for downstream reporting when safe.
  • Ambiguous grammar expansions must be resolved in parser logic, not deferred into semantic phases.